Add Kerberos authentication - needs work
[siplcs.git] / autom4te.cache / output.2
blobbfef38ba1f0f1d8522ea32f66d949d6bd089b2ac
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 ## --------------------- ##
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
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
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
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
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='
68 IFS=" ""        $as_nl"
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
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
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
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; }
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='+ '
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
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
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
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
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'`
150 # CDPATH.
151 $as_unset CDPATH
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
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
165 as_func_success () {
166   as_func_return 0
168 as_func_failure () {
169   as_func_return 1
171 as_func_ret_success () {
172   return 0
174 as_func_ret_failure () {
175   return 1
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
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.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
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
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
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
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
277 (as_func_return () {
278   (exit $1)
280 as_func_success () {
281   as_func_return 0
283 as_func_failure () {
284   as_func_return 1
286 as_func_ret_success () {
287   return 0
289 as_func_ret_failure () {
290   return 1
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
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.
325 test $exitcode = 0) || { (exit 1); exit 1; }
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; }
333 _ASEOF
334 }; then
335   break
340       done
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+"$@"}
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; }
359     
366 (eval "as_func_return () {
367   (exit \$1)
369 as_func_success () {
370   as_func_return 0
372 as_func_failure () {
373   as_func_return 1
375 as_func_ret_success () {
376   return 0
378 as_func_ret_failure () {
379   return 1
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
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.
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
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" || {
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; }; }
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
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
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;;
480   ECHO_N='-n';;
481 esac
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
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
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'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
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
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   '
542 as_executable_p=$as_test_x
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'"
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'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
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
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+"$@"}
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
584   exit 0
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
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
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.
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"
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=:
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
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
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"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
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`
714 # Initializations.
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIB@&t@OBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
733 # Factoring default headers for most tests.
734 ac_includes_default="\
735 #include <stdio.h>
736 #ifdef HAVE_SYS_TYPES_H
737 # include <sys/types.h>
738 #endif
739 #ifdef HAVE_SYS_STAT_H
740 # include <sys/stat.h>
741 #endif
742 #ifdef STDC_HEADERS
743 # include <stdlib.h>
744 # include <stddef.h>
745 #else
746 # ifdef HAVE_STDLIB_H
747 #  include <stdlib.h>
748 # endif
749 #endif
750 #ifdef HAVE_STRING_H
751 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #  include <memory.h>
753 # endif
754 # include <string.h>
755 #endif
756 #ifdef HAVE_STRINGS_H
757 # include <strings.h>
758 #endif
759 #ifdef HAVE_INTTYPES_H
760 # include <inttypes.h>
761 #endif
762 #ifdef HAVE_STDINT_H
763 # include <stdint.h>
764 #endif
765 #ifdef HAVE_UNISTD_H
766 # include <unistd.h>
767 #endif"
769 ac_subst_vars='SHELL
770 PATH_SEPARATOR
771 PACKAGE_NAME
772 PACKAGE_TARNAME
773 PACKAGE_VERSION
774 PACKAGE_STRING
775 PACKAGE_BUGREPORT
776 exec_prefix
777 prefix
778 program_transform_name
779 bindir
780 sbindir
781 libexecdir
782 datarootdir
783 datadir
784 sysconfdir
785 sharedstatedir
786 localstatedir
787 includedir
788 oldincludedir
789 docdir
790 infodir
791 htmldir
792 dvidir
793 pdfdir
794 psdir
795 libdir
796 localedir
797 mandir
798 DEFS
799 ECHO_C
800 ECHO_N
801 ECHO_T
802 LIBS
803 build_alias
804 host_alias
805 target_alias
806 INSTALL_PROGRAM
807 INSTALL_SCRIPT
808 INSTALL_DATA
809 am__isrc
810 CYGPATH_W
811 PACKAGE
812 VERSION
813 ACLOCAL
814 AUTOCONF
815 AUTOMAKE
816 AUTOHEADER
817 MAKEINFO
818 install_sh
819 STRIP
820 INSTALL_STRIP_PROGRAM
821 mkdir_p
823 SET_MAKE
824 am__leading_dot
825 AMTAR
826 am__tar
827 am__untar
829 CFLAGS
830 LDFLAGS
831 CPPFLAGS
832 ac_ct_CC
833 EXEEXT
834 OBJEXT
835 DEPDIR
836 am__include
837 am__quote
838 AMDEP_TRUE
839 AMDEP_FALSE
840 AMDEPBACKSLASH
841 CCDEPMODE
842 am__fastdepCC_TRUE
843 am__fastdepCC_FALSE
844 build
845 build_cpu
846 build_vendor
847 build_os
848 host
849 host_cpu
850 host_vendor
851 host_os
853 GREP
854 EGREP
855 LN_S
856 ECHO
858 RANLIB
861 CXXFLAGS
862 ac_ct_CXX
863 CXXDEPMODE
864 am__fastdepCXX_TRUE
865 am__fastdepCXX_FALSE
866 CXXCPP
868 FFLAGS
869 ac_ct_F77
870 LIBTOOL
871 PIDGIN_MIN
872 PIDGIN_MAX
873 PKG_CONFIG
874 libpurple_CFLAGS
875 libpurple_LIBS
876 PIDGIN_CFLAGS
877 PIDGIN_LIBS
878 SIPE_LIBA
879 SIPE_STATIC_TRUE
880 SIPE_STATIC_FALSE
881 LIB@&t@OBJS
882 LTLIBOBJS'
883 ac_subst_files=''
884       ac_precious_vars='build_alias
885 host_alias
886 target_alias
888 CFLAGS
889 LDFLAGS
890 LIBS
891 CPPFLAGS
894 CXXFLAGS
896 CXXCPP
898 FFLAGS
899 PKG_CONFIG
900 libpurple_CFLAGS
901 libpurple_LIBS'
904 # Initialize some variables set by options.
905 ac_init_help=
906 ac_init_version=false
907 # The variables have the same names as the options, with
908 # dashes changed to underlines.
909 cache_file=/dev/null
910 exec_prefix=NONE
911 no_create=
912 no_recursion=
913 prefix=NONE
914 program_prefix=NONE
915 program_suffix=NONE
916 program_transform_name=s,x,x,
917 silent=
918 site=
919 srcdir=
920 verbose=
921 x_includes=NONE
922 x_libraries=NONE
924 # Installation directory options.
925 # These are left unexpanded so users can "make install exec_prefix=/foo"
926 # and all the variables that are supposed to be based on exec_prefix
927 # by default will actually change.
928 # Use braces instead of parens because sh, perl, etc. also accept them.
929 # (The list follows the same order as the GNU Coding Standards.)
930 bindir='${exec_prefix}/bin'
931 sbindir='${exec_prefix}/sbin'
932 libexecdir='${exec_prefix}/libexec'
933 datarootdir='${prefix}/share'
934 datadir='${datarootdir}'
935 sysconfdir='${prefix}/etc'
936 sharedstatedir='${prefix}/com'
937 localstatedir='${prefix}/var'
938 includedir='${prefix}/include'
939 oldincludedir='/usr/include'
940 docdir='${datarootdir}/doc/${PACKAGE}'
941 infodir='${datarootdir}/info'
942 htmldir='${docdir}'
943 dvidir='${docdir}'
944 pdfdir='${docdir}'
945 psdir='${docdir}'
946 libdir='${exec_prefix}/lib'
947 localedir='${datarootdir}/locale'
948 mandir='${datarootdir}/man'
950 ac_prev=
951 ac_dashdash=
952 for ac_option
954   # If the previous option needs an argument, assign it.
955   if test -n "$ac_prev"; then
956     eval $ac_prev=\$ac_option
957     ac_prev=
958     continue
959   fi
961   case $ac_option in
962   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963   *)    ac_optarg=yes ;;
964   esac
966   # Accept the important Cygnus configure options, so we can diagnose typos.
968   case $ac_dashdash$ac_option in
969   --)
970     ac_dashdash=yes ;;
972   -bindir | --bindir | --bindi | --bind | --bin | --bi)
973     ac_prev=bindir ;;
974   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975     bindir=$ac_optarg ;;
977   -build | --build | --buil | --bui | --bu)
978     ac_prev=build_alias ;;
979   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980     build_alias=$ac_optarg ;;
982   -cache-file | --cache-file | --cache-fil | --cache-fi \
983   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984     ac_prev=cache_file ;;
985   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987     cache_file=$ac_optarg ;;
989   --config-cache | -C)
990     cache_file=config.cache ;;
992   -datadir | --datadir | --datadi | --datad)
993     ac_prev=datadir ;;
994   -datadir=* | --datadir=* | --datadi=* | --datad=*)
995     datadir=$ac_optarg ;;
997   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998   | --dataroo | --dataro | --datar)
999     ac_prev=datarootdir ;;
1000   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002     datarootdir=$ac_optarg ;;
1004   -disable-* | --disable-*)
1005     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006     # Reject names that are not valid shell variable names.
1007     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1008       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1009    { (exit 1); exit 1; }; }
1010     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1011     eval enable_$ac_feature=no ;;
1013   -docdir | --docdir | --docdi | --doc | --do)
1014     ac_prev=docdir ;;
1015   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016     docdir=$ac_optarg ;;
1018   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019     ac_prev=dvidir ;;
1020   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021     dvidir=$ac_optarg ;;
1023   -enable-* | --enable-*)
1024     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025     # Reject names that are not valid shell variable names.
1026     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1027       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1028    { (exit 1); exit 1; }; }
1029     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1030     eval enable_$ac_feature=\$ac_optarg ;;
1032   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034   | --exec | --exe | --ex)
1035     ac_prev=exec_prefix ;;
1036   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038   | --exec=* | --exe=* | --ex=*)
1039     exec_prefix=$ac_optarg ;;
1041   -gas | --gas | --ga | --g)
1042     # Obsolete; use --with-gas.
1043     with_gas=yes ;;
1045   -help | --help | --hel | --he | -h)
1046     ac_init_help=long ;;
1047   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048     ac_init_help=recursive ;;
1049   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050     ac_init_help=short ;;
1052   -host | --host | --hos | --ho)
1053     ac_prev=host_alias ;;
1054   -host=* | --host=* | --hos=* | --ho=*)
1055     host_alias=$ac_optarg ;;
1057   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058     ac_prev=htmldir ;;
1059   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060   | --ht=*)
1061     htmldir=$ac_optarg ;;
1063   -includedir | --includedir | --includedi | --included | --include \
1064   | --includ | --inclu | --incl | --inc)
1065     ac_prev=includedir ;;
1066   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067   | --includ=* | --inclu=* | --incl=* | --inc=*)
1068     includedir=$ac_optarg ;;
1070   -infodir | --infodir | --infodi | --infod | --info | --inf)
1071     ac_prev=infodir ;;
1072   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1073     infodir=$ac_optarg ;;
1075   -libdir | --libdir | --libdi | --libd)
1076     ac_prev=libdir ;;
1077   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1078     libdir=$ac_optarg ;;
1080   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081   | --libexe | --libex | --libe)
1082     ac_prev=libexecdir ;;
1083   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084   | --libexe=* | --libex=* | --libe=*)
1085     libexecdir=$ac_optarg ;;
1087   -localedir | --localedir | --localedi | --localed | --locale)
1088     ac_prev=localedir ;;
1089   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090     localedir=$ac_optarg ;;
1092   -localstatedir | --localstatedir | --localstatedi | --localstated \
1093   | --localstate | --localstat | --localsta | --localst | --locals)
1094     ac_prev=localstatedir ;;
1095   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1096   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1097     localstatedir=$ac_optarg ;;
1099   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100     ac_prev=mandir ;;
1101   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1102     mandir=$ac_optarg ;;
1104   -nfp | --nfp | --nf)
1105     # Obsolete; use --without-fp.
1106     with_fp=no ;;
1108   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1109   | --no-cr | --no-c | -n)
1110     no_create=yes ;;
1112   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114     no_recursion=yes ;;
1116   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118   | --oldin | --oldi | --old | --ol | --o)
1119     ac_prev=oldincludedir ;;
1120   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1123     oldincludedir=$ac_optarg ;;
1125   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126     ac_prev=prefix ;;
1127   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1128     prefix=$ac_optarg ;;
1130   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131   | --program-pre | --program-pr | --program-p)
1132     ac_prev=program_prefix ;;
1133   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1135     program_prefix=$ac_optarg ;;
1137   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138   | --program-suf | --program-su | --program-s)
1139     ac_prev=program_suffix ;;
1140   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1142     program_suffix=$ac_optarg ;;
1144   -program-transform-name | --program-transform-name \
1145   | --program-transform-nam | --program-transform-na \
1146   | --program-transform-n | --program-transform- \
1147   | --program-transform | --program-transfor \
1148   | --program-transfo | --program-transf \
1149   | --program-trans | --program-tran \
1150   | --progr-tra | --program-tr | --program-t)
1151     ac_prev=program_transform_name ;;
1152   -program-transform-name=* | --program-transform-name=* \
1153   | --program-transform-nam=* | --program-transform-na=* \
1154   | --program-transform-n=* | --program-transform-=* \
1155   | --program-transform=* | --program-transfor=* \
1156   | --program-transfo=* | --program-transf=* \
1157   | --program-trans=* | --program-tran=* \
1158   | --progr-tra=* | --program-tr=* | --program-t=*)
1159     program_transform_name=$ac_optarg ;;
1161   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162     ac_prev=pdfdir ;;
1163   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164     pdfdir=$ac_optarg ;;
1166   -psdir | --psdir | --psdi | --psd | --ps)
1167     ac_prev=psdir ;;
1168   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169     psdir=$ac_optarg ;;
1171   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172   | -silent | --silent | --silen | --sile | --sil)
1173     silent=yes ;;
1175   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176     ac_prev=sbindir ;;
1177   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178   | --sbi=* | --sb=*)
1179     sbindir=$ac_optarg ;;
1181   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183   | --sharedst | --shareds | --shared | --share | --shar \
1184   | --sha | --sh)
1185     ac_prev=sharedstatedir ;;
1186   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189   | --sha=* | --sh=*)
1190     sharedstatedir=$ac_optarg ;;
1192   -site | --site | --sit)
1193     ac_prev=site ;;
1194   -site=* | --site=* | --sit=*)
1195     site=$ac_optarg ;;
1197   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198     ac_prev=srcdir ;;
1199   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1200     srcdir=$ac_optarg ;;
1202   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203   | --syscon | --sysco | --sysc | --sys | --sy)
1204     ac_prev=sysconfdir ;;
1205   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1207     sysconfdir=$ac_optarg ;;
1209   -target | --target | --targe | --targ | --tar | --ta | --t)
1210     ac_prev=target_alias ;;
1211   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1212     target_alias=$ac_optarg ;;
1214   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215     verbose=yes ;;
1217   -version | --version | --versio | --versi | --vers | -V)
1218     ac_init_version=: ;;
1220   -with-* | --with-*)
1221     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222     # Reject names that are not valid shell variable names.
1223     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224       { echo "$as_me: error: invalid package name: $ac_package" >&2
1225    { (exit 1); exit 1; }; }
1226     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1227     eval with_$ac_package=\$ac_optarg ;;
1229   -without-* | --without-*)
1230     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no ;;
1238   --x)
1239     # Obsolete; use --with-x.
1240     with_x=yes ;;
1242   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243   | --x-incl | --x-inc | --x-in | --x-i)
1244     ac_prev=x_includes ;;
1245   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247     x_includes=$ac_optarg ;;
1249   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251     ac_prev=x_libraries ;;
1252   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254     x_libraries=$ac_optarg ;;
1256   -*) { echo "$as_me: error: unrecognized option: $ac_option
1257 Try \`$0 --help' for more information." >&2
1258    { (exit 1); exit 1; }; }
1259     ;;
1261   *=*)
1262     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263     # Reject names that are not valid shell variable names.
1264     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1265       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1266    { (exit 1); exit 1; }; }
1267     eval $ac_envvar=\$ac_optarg
1268     export $ac_envvar ;;
1270   *)
1271     # FIXME: should be removed in autoconf 3.0.
1272     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1273     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1275     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1276     ;;
1278   esac
1279 done
1281 if test -n "$ac_prev"; then
1282   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283   { echo "$as_me: error: missing argument to $ac_option" >&2
1284    { (exit 1); exit 1; }; }
1287 # Be sure to have absolute directory names.
1288 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289                 datadir sysconfdir sharedstatedir localstatedir includedir \
1290                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291                 libdir localedir mandir
1293   eval ac_val=\$$ac_var
1294   case $ac_val in
1295     [\\/$]* | ?:[\\/]* )  continue;;
1296     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297   esac
1298   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1299    { (exit 1); exit 1; }; }
1300 done
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311   if test "x$build_alias" = x; then
1312     cross_compiling=maybe
1313     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1314     If a cross compiler is detected then cross compile mode will be used." >&2
1315   elif test "x$build_alias" != "x$host_alias"; then
1316     cross_compiling=yes
1317   fi
1320 ac_tool_prefix=
1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323 test "$silent" = yes && exec 6>/dev/null
1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329   { echo "$as_me: error: Working directory cannot be determined" >&2
1330    { (exit 1); exit 1; }; }
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332   { echo "$as_me: error: pwd does not report name of working directory" >&2
1333    { (exit 1); exit 1; }; }
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338   ac_srcdir_defaulted=yes
1339   # Try the directory containing this script, then the parent directory.
1340   ac_confdir=`$as_dirname -- "$0" ||
1341 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342          X"$0" : 'X\(//\)[^/]' \| \
1343          X"$0" : 'X\(//\)$' \| \
1344          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1345 echo X"$0" |
1346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347             s//\1/
1348             q
1349           }
1350           /^X\(\/\/\)[^/].*/{
1351             s//\1/
1352             q
1353           }
1354           /^X\(\/\/\)$/{
1355             s//\1/
1356             q
1357           }
1358           /^X\(\/\).*/{
1359             s//\1/
1360             q
1361           }
1362           s/.*/./; q'`
1363   srcdir=$ac_confdir
1364   if test ! -r "$srcdir/$ac_unique_file"; then
1365     srcdir=..
1366   fi
1367 else
1368   ac_srcdir_defaulted=no
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1373    { (exit 1); exit 1; }; }
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 ac_abs_confdir=`(
1377         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1378    { (exit 1); exit 1; }; }
1379         pwd)`
1380 # When building in place, set srcdir=.
1381 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382   srcdir=.
1384 # Remove unnecessary trailing slashes from srcdir.
1385 # Double slashes in file names in object file debugging info
1386 # mess up M-x gdb in Emacs.
1387 case $srcdir in
1388 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389 esac
1390 for ac_var in $ac_precious_vars; do
1391   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392   eval ac_env_${ac_var}_value=\$${ac_var}
1393   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395 done
1398 # Report the --help message.
1400 if test "$ac_init_help" = "long"; then
1401   # Omit some internal or obsolete options to make the list less imposing.
1402   # This message is too long to be a string in the A/UX 3.1 sh.
1403   cat <<_ACEOF
1404 \`configure' configures this package to adapt to many kinds of systems.
1406 Usage: $0 [OPTION]... [VAR=VALUE]...
1408 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409 VAR=VALUE.  See below for descriptions of some of the useful variables.
1411 Defaults for the options are specified in brackets.
1413 Configuration:
1414   -h, --help              display this help and exit
1415       --help=short        display options specific to this package
1416       --help=recursive    display the short help of all the included packages
1417   -V, --version           display version information and exit
1418   -q, --quiet, --silent   do not print \`checking...' messages
1419       --cache-file=FILE   cache test results in FILE [disabled]
1420   -C, --config-cache      alias for \`--cache-file=config.cache'
1421   -n, --no-create         do not create output files
1422       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1424 Installation directories:
1425   --prefix=PREFIX         install architecture-independent files in PREFIX
1426                           [$ac_default_prefix]
1427   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1428                           [PREFIX]
1430 By default, \`make install' will install all the files in
1431 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1432 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433 for instance \`--prefix=\$HOME'.
1435 For better control, use the options below.
1437 Fine tuning of the installation directories:
1438   --bindir=DIR           user executables [EPREFIX/bin]
1439   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1440   --libexecdir=DIR       program executables [EPREFIX/libexec]
1441   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1442   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1443   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1444   --libdir=DIR           object code libraries [EPREFIX/lib]
1445   --includedir=DIR       C header files [PREFIX/include]
1446   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1447   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1448   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1449   --infodir=DIR          info documentation [DATAROOTDIR/info]
1450   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1451   --mandir=DIR           man documentation [DATAROOTDIR/man]
1452   --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1453   --htmldir=DIR          html documentation [DOCDIR]
1454   --dvidir=DIR           dvi documentation [DOCDIR]
1455   --pdfdir=DIR           pdf documentation [DOCDIR]
1456   --psdir=DIR            ps documentation [DOCDIR]
1457 _ACEOF
1459   cat <<\_ACEOF
1461 Program names:
1462   --program-prefix=PREFIX            prepend PREFIX to installed program names
1463   --program-suffix=SUFFIX            append SUFFIX to installed program names
1464   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1466 System types:
1467   --build=BUILD     configure for building on BUILD [guessed]
1468   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1469 _ACEOF
1472 if test -n "$ac_init_help"; then
1474   cat <<\_ACEOF
1476 Optional Features:
1477   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1478   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1479   --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=no@:>@
1480   --disable-dependency-tracking  speeds up one-time build
1481   --enable-dependency-tracking   do not reject slow dependency extractors
1482   --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1483   --enable-fast-install@<:@=PKGS@:>@ 
1484                           optimize for fast installation @<:@default=yes@:>@
1485   --disable-libtool-lock  avoid locking (might break parallel builds)
1486   --enable-debug          compile with debugging support
1487   --enable-static-sipe  statically link in Simple Exchange
1489 Optional Packages:
1490   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1491   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1492   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1493   --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1494                           both@:>@
1495   --with-tags@<:@=TAGS@:>@      include additional configurations @<:@automatic@:>@
1497 Some influential environment variables:
1498   CC          C compiler command
1499   CFLAGS      C compiler flags
1500   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1501               nonstandard directory <lib dir>
1502   LIBS        libraries to pass to the linker, e.g. -l<library>
1503   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1504               you have headers in a nonstandard directory <include dir>
1505   CPP         C preprocessor
1506   CXX         C++ compiler command
1507   CXXFLAGS    C++ compiler flags
1508   CXXCPP      C++ preprocessor
1509   F77         Fortran 77 compiler command
1510   FFLAGS      Fortran 77 compiler flags
1511   PKG_CONFIG  path to pkg-config utility
1512   libpurple_CFLAGS 
1513               C compiler flags for libpurple, overriding pkg-config
1514   libpurple_LIBS 
1515               linker flags for libpurple, overriding pkg-config
1517 Use these variables to override the choices made by `configure' or to help
1518 it to find libraries and programs with nonstandard names/locations.
1520 _ACEOF
1521 ac_status=$?
1524 if test "$ac_init_help" = "recursive"; then
1525   # If there are subdirs, report their specific --help.
1526   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527     test -d "$ac_dir" || continue
1528     ac_builddir=.
1530 case "$ac_dir" in
1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1534   # A ".." for each directory in $ac_dir_suffix.
1535   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1536   case $ac_top_builddir_sub in
1537   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539   esac ;;
1540 esac
1541 ac_abs_top_builddir=$ac_pwd
1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543 # for backward compatibility:
1544 ac_top_builddir=$ac_top_build_prefix
1546 case $srcdir in
1547   .)  # We are building in place.
1548     ac_srcdir=.
1549     ac_top_srcdir=$ac_top_builddir_sub
1550     ac_abs_top_srcdir=$ac_pwd ;;
1551   [\\/]* | ?:[\\/]* )  # Absolute name.
1552     ac_srcdir=$srcdir$ac_dir_suffix;
1553     ac_top_srcdir=$srcdir
1554     ac_abs_top_srcdir=$srcdir ;;
1555   *) # Relative name.
1556     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557     ac_top_srcdir=$ac_top_build_prefix$srcdir
1558     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559 esac
1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562     cd "$ac_dir" || { ac_status=$?; continue; }
1563     # Check for guested configure.
1564     if test -f "$ac_srcdir/configure.gnu"; then
1565       echo &&
1566       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567     elif test -f "$ac_srcdir/configure"; then
1568       echo &&
1569       $SHELL "$ac_srcdir/configure" --help=recursive
1570     else
1571       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572     fi || ac_status=$?
1573     cd "$ac_pwd" || { ac_status=$?; break; }
1574   done
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1579   cat <<\_ACEOF
1580 configure
1581 generated by GNU Autoconf 2.61
1583 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1584 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1587 _ACEOF
1588   exit
1590 cat >config.log <<_ACEOF
1591 This file contains any messages produced by compilers while
1592 running configure, to aid debugging if configure makes a mistake.
1594 It was created by $as_me, which was
1595 generated by GNU Autoconf 2.61.  Invocation command line was
1597   $ $0 $@
1599 _ACEOF
1600 exec 5>>config.log
1602 cat <<_ASUNAME
1603 @%:@@%:@ --------- @%:@@%:@
1604 @%:@@%:@ Platform. @%:@@%:@
1605 @%:@@%:@ --------- @%:@@%:@
1607 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1608 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1609 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1610 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1611 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1613 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1614 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1616 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1617 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1618 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1619 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1620 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1621 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1622 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1624 _ASUNAME
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627 for as_dir in $PATH
1629   IFS=$as_save_IFS
1630   test -z "$as_dir" && as_dir=.
1631   echo "PATH: $as_dir"
1632 done
1633 IFS=$as_save_IFS
1635 } >&5
1637 cat >&5 <<_ACEOF
1640 @%:@@%:@ ----------- @%:@@%:@
1641 @%:@@%:@ Core tests. @%:@@%:@
1642 @%:@@%:@ ----------- @%:@@%:@
1644 _ACEOF
1647 # Keep a trace of the command line.
1648 # Strip out --no-create and --no-recursion so they do not pile up.
1649 # Strip out --silent because we don't want to record it for future runs.
1650 # Also quote any args containing shell meta-characters.
1651 # Make two passes to allow for proper duplicate-argument suppression.
1652 ac_configure_args=
1653 ac_configure_args0=
1654 ac_configure_args1=
1655 ac_must_keep_next=false
1656 for ac_pass in 1 2
1658   for ac_arg
1659   do
1660     case $ac_arg in
1661     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1662     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1663     | -silent | --silent | --silen | --sile | --sil)
1664       continue ;;
1665     *\'*)
1666       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1667     esac
1668     case $ac_pass in
1669     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1670     2)
1671       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1672       if test $ac_must_keep_next = true; then
1673         ac_must_keep_next=false # Got value, back to normal.
1674       else
1675         case $ac_arg in
1676           *=* | --config-cache | -C | -disable-* | --disable-* \
1677           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1678           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1679           | -with-* | --with-* | -without-* | --without-* | --x)
1680             case "$ac_configure_args0 " in
1681               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1682             esac
1683             ;;
1684           -* ) ac_must_keep_next=true ;;
1685         esac
1686       fi
1687       ac_configure_args="$ac_configure_args '$ac_arg'"
1688       ;;
1689     esac
1690   done
1691 done
1692 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1693 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1695 # When interrupted or exit'd, cleanup temporary files, and complete
1696 # config.log.  We remove comments because anyway the quotes in there
1697 # would cause problems or look ugly.
1698 # WARNING: Use '\'' to represent an apostrophe within the trap.
1699 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1700 trap 'exit_status=$?
1701   # Save into config.log some information that might help in debugging.
1702   {
1703     echo
1705     cat <<\_ASBOX
1706 @%:@@%:@ ---------------- @%:@@%:@
1707 @%:@@%:@ Cache variables. @%:@@%:@
1708 @%:@@%:@ ---------------- @%:@@%:@
1709 _ASBOX
1710     echo
1711     # The following way of writing the cache mishandles newlines in values,
1713   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1714     eval ac_val=\$$ac_var
1715     case $ac_val in #(
1716     *${as_nl}*)
1717       case $ac_var in #(
1718       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1719 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1720       esac
1721       case $ac_var in #(
1722       _ | IFS | as_nl) ;; #(
1723       *) $as_unset $ac_var ;;
1724       esac ;;
1725     esac
1726   done
1727   (set) 2>&1 |
1728     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1729     *${as_nl}ac_space=\ *)
1730       sed -n \
1731         "s/'\''/'\''\\\\'\'''\''/g;
1732           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1733       ;; #(
1734     *)
1735       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1736       ;;
1737     esac |
1738     sort
1740     echo
1742     cat <<\_ASBOX
1743 @%:@@%:@ ----------------- @%:@@%:@
1744 @%:@@%:@ Output variables. @%:@@%:@
1745 @%:@@%:@ ----------------- @%:@@%:@
1746 _ASBOX
1747     echo
1748     for ac_var in $ac_subst_vars
1749     do
1750       eval ac_val=\$$ac_var
1751       case $ac_val in
1752       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1753       esac
1754       echo "$ac_var='\''$ac_val'\''"
1755     done | sort
1756     echo
1758     if test -n "$ac_subst_files"; then
1759       cat <<\_ASBOX
1760 @%:@@%:@ ------------------- @%:@@%:@
1761 @%:@@%:@ File substitutions. @%:@@%:@
1762 @%:@@%:@ ------------------- @%:@@%:@
1763 _ASBOX
1764       echo
1765       for ac_var in $ac_subst_files
1766       do
1767         eval ac_val=\$$ac_var
1768         case $ac_val in
1769         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1770         esac
1771         echo "$ac_var='\''$ac_val'\''"
1772       done | sort
1773       echo
1774     fi
1776     if test -s confdefs.h; then
1777       cat <<\_ASBOX
1778 @%:@@%:@ ----------- @%:@@%:@
1779 @%:@@%:@ confdefs.h. @%:@@%:@
1780 @%:@@%:@ ----------- @%:@@%:@
1781 _ASBOX
1782       echo
1783       cat confdefs.h
1784       echo
1785     fi
1786     test "$ac_signal" != 0 &&
1787       echo "$as_me: caught signal $ac_signal"
1788     echo "$as_me: exit $exit_status"
1789   } >&5
1790   rm -f core *.core core.conftest.* &&
1791     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1792     exit $exit_status
1793 ' 0
1794 for ac_signal in 1 2 13 15; do
1795   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1796 done
1797 ac_signal=0
1799 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1800 rm -f -r conftest* confdefs.h
1802 # Predefined preprocessor variables.
1804 cat >>confdefs.h <<_ACEOF
1805 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1806 _ACEOF
1809 cat >>confdefs.h <<_ACEOF
1810 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1811 _ACEOF
1814 cat >>confdefs.h <<_ACEOF
1815 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1816 _ACEOF
1819 cat >>confdefs.h <<_ACEOF
1820 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1821 _ACEOF
1824 cat >>confdefs.h <<_ACEOF
1825 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1826 _ACEOF
1829 # Let the site file select an alternate cache file if it wants to.
1830 # Prefer explicitly selected file to automatically selected ones.
1831 if test -n "$CONFIG_SITE"; then
1832   set x "$CONFIG_SITE"
1833 elif test "x$prefix" != xNONE; then
1834   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1835 else
1836   set x "$ac_default_prefix/share/config.site" \
1837         "$ac_default_prefix/etc/config.site"
1839 shift
1840 for ac_site_file
1842   if test -r "$ac_site_file"; then
1843     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1844 echo "$as_me: loading site script $ac_site_file" >&6;}
1845     sed 's/^/| /' "$ac_site_file" >&5
1846     . "$ac_site_file"
1847   fi
1848 done
1850 if test -r "$cache_file"; then
1851   # Some versions of bash will fail to source /dev/null (special
1852   # files actually), so we avoid doing that.
1853   if test -f "$cache_file"; then
1854     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1855 echo "$as_me: loading cache $cache_file" >&6;}
1856     case $cache_file in
1857       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1858       *)                      . "./$cache_file";;
1859     esac
1860   fi
1861 else
1862   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1863 echo "$as_me: creating cache $cache_file" >&6;}
1864   >$cache_file
1867 # Check that the precious variables saved in the cache have kept the same
1868 # value.
1869 ac_cache_corrupted=false
1870 for ac_var in $ac_precious_vars; do
1871   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1872   eval ac_new_set=\$ac_env_${ac_var}_set
1873   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1874   eval ac_new_val=\$ac_env_${ac_var}_value
1875   case $ac_old_set,$ac_new_set in
1876     set,)
1877       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1878 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1879       ac_cache_corrupted=: ;;
1880     ,set)
1881       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1882 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1883       ac_cache_corrupted=: ;;
1884     ,);;
1885     *)
1886       if test "x$ac_old_val" != "x$ac_new_val"; then
1887         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1888 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1889         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1890 echo "$as_me:   former value:  $ac_old_val" >&2;}
1891         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1892 echo "$as_me:   current value: $ac_new_val" >&2;}
1893         ac_cache_corrupted=:
1894       fi;;
1895   esac
1896   # Pass precious variables to config.status.
1897   if test "$ac_new_set" = set; then
1898     case $ac_new_val in
1899     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1900     *) ac_arg=$ac_var=$ac_new_val ;;
1901     esac
1902     case " $ac_configure_args " in
1903       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1904       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1905     esac
1906   fi
1907 done
1908 if $ac_cache_corrupted; then
1909   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1910 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1911   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1912 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1913    { (exit 1); exit 1; }; }
1932 ac_ext=c
1933 ac_cpp='$CPP $CPPFLAGS'
1934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1939 am__api_version='1.10'
1941 ac_aux_dir=
1942 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1943   if test -f "$ac_dir/install-sh"; then
1944     ac_aux_dir=$ac_dir
1945     ac_install_sh="$ac_aux_dir/install-sh -c"
1946     break
1947   elif test -f "$ac_dir/install.sh"; then
1948     ac_aux_dir=$ac_dir
1949     ac_install_sh="$ac_aux_dir/install.sh -c"
1950     break
1951   elif test -f "$ac_dir/shtool"; then
1952     ac_aux_dir=$ac_dir
1953     ac_install_sh="$ac_aux_dir/shtool install -c"
1954     break
1955   fi
1956 done
1957 if test -z "$ac_aux_dir"; then
1958   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1959 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1960    { (exit 1); exit 1; }; }
1963 # These three variables are undocumented and unsupported,
1964 # and are intended to be withdrawn in a future Autoconf release.
1965 # They can cause serious problems if a builder's source tree is in a directory
1966 # whose full name contains unusual characters.
1967 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1968 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1969 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1972 # Find a good install program.  We prefer a C program (faster),
1973 # so one script is as good as another.  But avoid the broken or
1974 # incompatible versions:
1975 # SysV /etc/install, /usr/sbin/install
1976 # SunOS /usr/etc/install
1977 # IRIX /sbin/install
1978 # AIX /bin/install
1979 # AmigaOS /C/install, which installs bootblocks on floppy discs
1980 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1981 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1982 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1983 # OS/2's system install, which has a completely different semantic
1984 # ./install, which can be erroneously created by make from ./install.sh.
1985 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1986 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1987 if test -z "$INSTALL"; then
1988 if test "${ac_cv_path_install+set}" = set; then
1989   echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 for as_dir in $PATH
1994   IFS=$as_save_IFS
1995   test -z "$as_dir" && as_dir=.
1996   # Account for people who put trailing slashes in PATH elements.
1997 case $as_dir/ in
1998   ./ | .// | /cC/* | \
1999   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2000   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2001   /usr/ucb/* ) ;;
2002   *)
2003     # OSF1 and SCO ODT 3.0 have their own names for install.
2004     # Don't use installbsd from OSF since it installs stuff as root
2005     # by default.
2006     for ac_prog in ginstall scoinst install; do
2007       for ac_exec_ext in '' $ac_executable_extensions; do
2008         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2009           if test $ac_prog = install &&
2010             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2011             # AIX install.  It has an incompatible calling convention.
2012             :
2013           elif test $ac_prog = install &&
2014             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2015             # program-specific install script used by HP pwplus--don't use.
2016             :
2017           else
2018             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2019             break 3
2020           fi
2021         fi
2022       done
2023     done
2024     ;;
2025 esac
2026 done
2027 IFS=$as_save_IFS
2031   if test "${ac_cv_path_install+set}" = set; then
2032     INSTALL=$ac_cv_path_install
2033   else
2034     # As a last resort, use the slow shell script.  Don't cache a
2035     # value for INSTALL within a source directory, because that will
2036     # break other packages using the cache if that directory is
2037     # removed, or if the value is a relative name.
2038     INSTALL=$ac_install_sh
2039   fi
2041 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2042 echo "${ECHO_T}$INSTALL" >&6; }
2044 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2045 # It thinks the first close brace ends the variable substitution.
2046 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2048 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2050 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2052 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2053 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2054 # Just in case
2055 sleep 1
2056 echo timestamp > conftest.file
2057 # Do `set' in a subshell so we don't clobber the current shell's
2058 # arguments.  Must try -L first in case configure is actually a
2059 # symlink; some systems play weird games with the mod time of symlinks
2060 # (eg FreeBSD returns the mod time of the symlink's containing
2061 # directory).
2062 if (
2063    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2064    if test "$*" = "X"; then
2065       # -L didn't work.
2066       set X `ls -t $srcdir/configure conftest.file`
2067    fi
2068    rm -f conftest.file
2069    if test "$*" != "X $srcdir/configure conftest.file" \
2070       && test "$*" != "X conftest.file $srcdir/configure"; then
2072       # If neither matched, then we have a broken ls.  This can happen
2073       # if, for instance, CONFIG_SHELL is bash and it inherits a
2074       # broken ls alias from the environment.  This has actually
2075       # happened.  Such a system could not be considered "sane".
2076       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2077 alias in your environment" >&5
2078 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2079 alias in your environment" >&2;}
2080    { (exit 1); exit 1; }; }
2081    fi
2083    test "$2" = conftest.file
2084    )
2085 then
2086    # Ok.
2087    :
2088 else
2089    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2090 Check your system clock" >&5
2091 echo "$as_me: error: newly created file is older than distributed files!
2092 Check your system clock" >&2;}
2093    { (exit 1); exit 1; }; }
2095 { echo "$as_me:$LINENO: result: yes" >&5
2096 echo "${ECHO_T}yes" >&6; }
2097 test "$program_prefix" != NONE &&
2098   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2099 # Use a double $ so make ignores it.
2100 test "$program_suffix" != NONE &&
2101   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2102 # Double any \ or $.  echo might interpret backslashes.
2103 # By default was `s,x,x', remove it if useless.
2104 cat <<\_ACEOF >conftest.sed
2105 s/[\\$]/&&/g;s/;s,x,x,$//
2106 _ACEOF
2107 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2108 rm -f conftest.sed
2110 # expand $ac_aux_dir to an absolute path
2111 am_aux_dir=`cd $ac_aux_dir && pwd`
2113 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2114 # Use eval to expand $SHELL
2115 if eval "$MISSING --run true"; then
2116   am_missing_run="$MISSING --run "
2117 else
2118   am_missing_run=
2119   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2120 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2123 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2124 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2125 if test -z "$MKDIR_P"; then
2126   if test "${ac_cv_path_mkdir+set}" = set; then
2127   echo $ECHO_N "(cached) $ECHO_C" >&6
2128 else
2129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2132   IFS=$as_save_IFS
2133   test -z "$as_dir" && as_dir=.
2134   for ac_prog in mkdir gmkdir; do
2135          for ac_exec_ext in '' $ac_executable_extensions; do
2136            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2137            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2138              'mkdir (GNU coreutils) '* | \
2139              'mkdir (coreutils) '* | \
2140              'mkdir (fileutils) '4.1*)
2141                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2142                break 3;;
2143            esac
2144          done
2145        done
2146 done
2147 IFS=$as_save_IFS
2151   if test "${ac_cv_path_mkdir+set}" = set; then
2152     MKDIR_P="$ac_cv_path_mkdir -p"
2153   else
2154     # As a last resort, use the slow shell script.  Don't cache a
2155     # value for MKDIR_P within a source directory, because that will
2156     # break other packages using the cache if that directory is
2157     # removed, or if the value is a relative name.
2158     test -d ./--version && rmdir ./--version
2159     MKDIR_P="$ac_install_sh -d"
2160   fi
2162 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2163 echo "${ECHO_T}$MKDIR_P" >&6; }
2165 mkdir_p="$MKDIR_P"
2166 case $mkdir_p in
2167   [\\/$]* | ?:[\\/]*) ;;
2168   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2169 esac
2171 for ac_prog in gawk mawk nawk awk
2173   # Extract the first word of "$ac_prog", so it can be a program name with args.
2174 set dummy $ac_prog; ac_word=$2
2175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2177 if test "${ac_cv_prog_AWK+set}" = set; then
2178   echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180   if test -n "$AWK"; then
2181   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2182 else
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 for as_dir in $PATH
2186   IFS=$as_save_IFS
2187   test -z "$as_dir" && as_dir=.
2188   for ac_exec_ext in '' $ac_executable_extensions; do
2189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2190     ac_cv_prog_AWK="$ac_prog"
2191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192     break 2
2193   fi
2194 done
2195 done
2196 IFS=$as_save_IFS
2200 AWK=$ac_cv_prog_AWK
2201 if test -n "$AWK"; then
2202   { echo "$as_me:$LINENO: result: $AWK" >&5
2203 echo "${ECHO_T}$AWK" >&6; }
2204 else
2205   { echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6; }
2210   test -n "$AWK" && break
2211 done
2213 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2214 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2215 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2216 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2217   echo $ECHO_N "(cached) $ECHO_C" >&6
2218 else
2219   cat >conftest.make <<\_ACEOF
2220 SHELL = /bin/sh
2221 all:
2222         @echo '@@@%%%=$(MAKE)=@@@%%%'
2223 _ACEOF
2224 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2225 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2226   *@@@%%%=?*=@@@%%%*)
2227     eval ac_cv_prog_make_${ac_make}_set=yes;;
2228   *)
2229     eval ac_cv_prog_make_${ac_make}_set=no;;
2230 esac
2231 rm -f conftest.make
2233 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2234   { echo "$as_me:$LINENO: result: yes" >&5
2235 echo "${ECHO_T}yes" >&6; }
2236   SET_MAKE=
2237 else
2238   { echo "$as_me:$LINENO: result: no" >&5
2239 echo "${ECHO_T}no" >&6; }
2240   SET_MAKE="MAKE=${MAKE-make}"
2243 rm -rf .tst 2>/dev/null
2244 mkdir .tst 2>/dev/null
2245 if test -d .tst; then
2246   am__leading_dot=.
2247 else
2248   am__leading_dot=_
2250 rmdir .tst 2>/dev/null
2252 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2253   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2254   # is not polluted with repeated "-I."
2255   am__isrc=' -I$(srcdir)'
2256   # test to see if srcdir already configured
2257   if test -f $srcdir/config.status; then
2258     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2259 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2260    { (exit 1); exit 1; }; }
2261   fi
2264 # test whether we have cygpath
2265 if test -z "$CYGPATH_W"; then
2266   if (cygpath --version) >/dev/null 2>/dev/null; then
2267     CYGPATH_W='cygpath -w'
2268   else
2269     CYGPATH_W=echo
2270   fi
2274 # Define the identity of the package.
2275  PACKAGE=pidgin_sipe
2276  VERSION=1.2.0
2279 cat >>confdefs.h <<_ACEOF
2280 @%:@define PACKAGE "$PACKAGE"
2281 _ACEOF
2284 cat >>confdefs.h <<_ACEOF
2285 @%:@define VERSION "$VERSION"
2286 _ACEOF
2288 # Some tools Automake needs.
2290 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2293 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2296 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2299 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2302 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2304 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2306 # Installed binaries are usually stripped using `strip' when the user
2307 # run `make install-strip'.  However `strip' might not be the right
2308 # tool to use in cross-compilation environments, therefore Automake
2309 # will honor the `STRIP' environment variable to overrule this program.
2310 if test "$cross_compiling" != no; then
2311   if test -n "$ac_tool_prefix"; then
2312   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2313 set dummy ${ac_tool_prefix}strip; ac_word=$2
2314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2316 if test "${ac_cv_prog_STRIP+set}" = set; then
2317   echo $ECHO_N "(cached) $ECHO_C" >&6
2318 else
2319   if test -n "$STRIP"; then
2320   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2321 else
2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 for as_dir in $PATH
2325   IFS=$as_save_IFS
2326   test -z "$as_dir" && as_dir=.
2327   for ac_exec_ext in '' $ac_executable_extensions; do
2328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2329     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2331     break 2
2332   fi
2333 done
2334 done
2335 IFS=$as_save_IFS
2339 STRIP=$ac_cv_prog_STRIP
2340 if test -n "$STRIP"; then
2341   { echo "$as_me:$LINENO: result: $STRIP" >&5
2342 echo "${ECHO_T}$STRIP" >&6; }
2343 else
2344   { echo "$as_me:$LINENO: result: no" >&5
2345 echo "${ECHO_T}no" >&6; }
2350 if test -z "$ac_cv_prog_STRIP"; then
2351   ac_ct_STRIP=$STRIP
2352   # Extract the first word of "strip", so it can be a program name with args.
2353 set dummy strip; ac_word=$2
2354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2356 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2357   echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359   if test -n "$ac_ct_STRIP"; then
2360   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2361 else
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 for as_dir in $PATH
2365   IFS=$as_save_IFS
2366   test -z "$as_dir" && as_dir=.
2367   for ac_exec_ext in '' $ac_executable_extensions; do
2368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2369     ac_cv_prog_ac_ct_STRIP="strip"
2370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371     break 2
2372   fi
2373 done
2374 done
2375 IFS=$as_save_IFS
2379 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2380 if test -n "$ac_ct_STRIP"; then
2381   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2382 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2383 else
2384   { echo "$as_me:$LINENO: result: no" >&5
2385 echo "${ECHO_T}no" >&6; }
2388   if test "x$ac_ct_STRIP" = x; then
2389     STRIP=":"
2390   else
2391     case $cross_compiling:$ac_tool_warned in
2392 yes:)
2393 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2394 whose name does not start with the host triplet.  If you think this
2395 configuration is useful to you, please write to autoconf@gnu.org." >&5
2396 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2397 whose name does not start with the host triplet.  If you think this
2398 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2399 ac_tool_warned=yes ;;
2400 esac
2401     STRIP=$ac_ct_STRIP
2402   fi
2403 else
2404   STRIP="$ac_cv_prog_STRIP"
2408 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2410 # We need awk for the "check" target.  The system "awk" is bad on
2411 # some platforms.
2412 # Always define AMTAR for backward compatibility.
2414 AMTAR=${AMTAR-"${am_missing_run}tar"}
2416 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2425 # Check whether --enable-static was given.
2426 if test "${enable_static+set}" = set; then
2427   enableval=$enable_static; p=${PACKAGE-default}
2428     case $enableval in
2429     yes) enable_static=yes ;;
2430     no) enable_static=no ;;
2431     *)
2432      enable_static=no
2433       # Look at the argument we got.  We use all the common list separators.
2434       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2435       for pkg in $enableval; do
2436         IFS="$lt_save_ifs"
2437         if test "X$pkg" = "X$p"; then
2438           enable_static=yes
2439         fi
2440       done
2441       IFS="$lt_save_ifs"
2442       ;;
2443     esac
2444 else
2445   enable_static=no
2451 ac_ext=c
2452 ac_cpp='$CPP $CPPFLAGS'
2453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456 if test -n "$ac_tool_prefix"; then
2457   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2458 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_CC+set}" = set; then
2462   echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464   if test -n "$CC"; then
2465   ac_cv_prog_CC="$CC" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2470   IFS=$as_save_IFS
2471   test -z "$as_dir" && as_dir=.
2472   for ac_exec_ext in '' $ac_executable_extensions; do
2473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2474     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476     break 2
2477   fi
2478 done
2479 done
2480 IFS=$as_save_IFS
2484 CC=$ac_cv_prog_CC
2485 if test -n "$CC"; then
2486   { echo "$as_me:$LINENO: result: $CC" >&5
2487 echo "${ECHO_T}$CC" >&6; }
2488 else
2489   { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2495 if test -z "$ac_cv_prog_CC"; then
2496   ac_ct_CC=$CC
2497   # Extract the first word of "gcc", so it can be a program name with args.
2498 set dummy gcc; ac_word=$2
2499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2501 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2502   echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504   if test -n "$ac_ct_CC"; then
2505   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2510   IFS=$as_save_IFS
2511   test -z "$as_dir" && as_dir=.
2512   for ac_exec_ext in '' $ac_executable_extensions; do
2513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514     ac_cv_prog_ac_ct_CC="gcc"
2515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516     break 2
2517   fi
2518 done
2519 done
2520 IFS=$as_save_IFS
2524 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2525 if test -n "$ac_ct_CC"; then
2526   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2527 echo "${ECHO_T}$ac_ct_CC" >&6; }
2528 else
2529   { echo "$as_me:$LINENO: result: no" >&5
2530 echo "${ECHO_T}no" >&6; }
2533   if test "x$ac_ct_CC" = x; then
2534     CC=""
2535   else
2536     case $cross_compiling:$ac_tool_warned in
2537 yes:)
2538 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2539 whose name does not start with the host triplet.  If you think this
2540 configuration is useful to you, please write to autoconf@gnu.org." >&5
2541 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2542 whose name does not start with the host triplet.  If you think this
2543 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2544 ac_tool_warned=yes ;;
2545 esac
2546     CC=$ac_ct_CC
2547   fi
2548 else
2549   CC="$ac_cv_prog_CC"
2552 if test -z "$CC"; then
2553           if test -n "$ac_tool_prefix"; then
2554     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2555 set dummy ${ac_tool_prefix}cc; ac_word=$2
2556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2558 if test "${ac_cv_prog_CC+set}" = set; then
2559   echo $ECHO_N "(cached) $ECHO_C" >&6
2560 else
2561   if test -n "$CC"; then
2562   ac_cv_prog_CC="$CC" # Let the user override the test.
2563 else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2567   IFS=$as_save_IFS
2568   test -z "$as_dir" && as_dir=.
2569   for ac_exec_ext in '' $ac_executable_extensions; do
2570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571     ac_cv_prog_CC="${ac_tool_prefix}cc"
2572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2573     break 2
2574   fi
2575 done
2576 done
2577 IFS=$as_save_IFS
2581 CC=$ac_cv_prog_CC
2582 if test -n "$CC"; then
2583   { echo "$as_me:$LINENO: result: $CC" >&5
2584 echo "${ECHO_T}$CC" >&6; }
2585 else
2586   { echo "$as_me:$LINENO: result: no" >&5
2587 echo "${ECHO_T}no" >&6; }
2591   fi
2593 if test -z "$CC"; then
2594   # Extract the first word of "cc", so it can be a program name with args.
2595 set dummy cc; ac_word=$2
2596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2598 if test "${ac_cv_prog_CC+set}" = set; then
2599   echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601   if test -n "$CC"; then
2602   ac_cv_prog_CC="$CC" # Let the user override the test.
2603 else
2604   ac_prog_rejected=no
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 for as_dir in $PATH
2608   IFS=$as_save_IFS
2609   test -z "$as_dir" && as_dir=.
2610   for ac_exec_ext in '' $ac_executable_extensions; do
2611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2612     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2613        ac_prog_rejected=yes
2614        continue
2615      fi
2616     ac_cv_prog_CC="cc"
2617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618     break 2
2619   fi
2620 done
2621 done
2622 IFS=$as_save_IFS
2624 if test $ac_prog_rejected = yes; then
2625   # We found a bogon in the path, so make sure we never use it.
2626   set dummy $ac_cv_prog_CC
2627   shift
2628   if test $@%:@ != 0; then
2629     # We chose a different compiler from the bogus one.
2630     # However, it has the same basename, so the bogon will be chosen
2631     # first if we set CC to just the basename; use the full file name.
2632     shift
2633     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2634   fi
2638 CC=$ac_cv_prog_CC
2639 if test -n "$CC"; then
2640   { echo "$as_me:$LINENO: result: $CC" >&5
2641 echo "${ECHO_T}$CC" >&6; }
2642 else
2643   { echo "$as_me:$LINENO: result: no" >&5
2644 echo "${ECHO_T}no" >&6; }
2649 if test -z "$CC"; then
2650   if test -n "$ac_tool_prefix"; then
2651   for ac_prog in cl.exe
2652   do
2653     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2657 if test "${ac_cv_prog_CC+set}" = set; then
2658   echo $ECHO_N "(cached) $ECHO_C" >&6
2659 else
2660   if test -n "$CC"; then
2661   ac_cv_prog_CC="$CC" # Let the user override the test.
2662 else
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2666   IFS=$as_save_IFS
2667   test -z "$as_dir" && as_dir=.
2668   for ac_exec_ext in '' $ac_executable_extensions; do
2669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2670     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2672     break 2
2673   fi
2674 done
2675 done
2676 IFS=$as_save_IFS
2680 CC=$ac_cv_prog_CC
2681 if test -n "$CC"; then
2682   { echo "$as_me:$LINENO: result: $CC" >&5
2683 echo "${ECHO_T}$CC" >&6; }
2684 else
2685   { echo "$as_me:$LINENO: result: no" >&5
2686 echo "${ECHO_T}no" >&6; }
2690     test -n "$CC" && break
2691   done
2693 if test -z "$CC"; then
2694   ac_ct_CC=$CC
2695   for ac_prog in cl.exe
2697   # Extract the first word of "$ac_prog", so it can be a program name with args.
2698 set dummy $ac_prog; ac_word=$2
2699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2702   echo $ECHO_N "(cached) $ECHO_C" >&6
2703 else
2704   if test -n "$ac_ct_CC"; then
2705   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2706 else
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2710   IFS=$as_save_IFS
2711   test -z "$as_dir" && as_dir=.
2712   for ac_exec_ext in '' $ac_executable_extensions; do
2713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714     ac_cv_prog_ac_ct_CC="$ac_prog"
2715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2716     break 2
2717   fi
2718 done
2719 done
2720 IFS=$as_save_IFS
2724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2725 if test -n "$ac_ct_CC"; then
2726   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2727 echo "${ECHO_T}$ac_ct_CC" >&6; }
2728 else
2729   { echo "$as_me:$LINENO: result: no" >&5
2730 echo "${ECHO_T}no" >&6; }
2734   test -n "$ac_ct_CC" && break
2735 done
2737   if test "x$ac_ct_CC" = x; then
2738     CC=""
2739   else
2740     case $cross_compiling:$ac_tool_warned in
2741 yes:)
2742 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2743 whose name does not start with the host triplet.  If you think this
2744 configuration is useful to you, please write to autoconf@gnu.org." >&5
2745 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2746 whose name does not start with the host triplet.  If you think this
2747 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2748 ac_tool_warned=yes ;;
2749 esac
2750     CC=$ac_ct_CC
2751   fi
2757 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2758 See \`config.log' for more details." >&5
2759 echo "$as_me: error: no acceptable C compiler found in \$PATH
2760 See \`config.log' for more details." >&2;}
2761    { (exit 1); exit 1; }; }
2763 # Provide some information about the compiler.
2764 echo "$as_me:$LINENO: checking for C compiler version" >&5
2765 ac_compiler=`set X $ac_compile; echo $2`
2766 { (ac_try="$ac_compiler --version >&5"
2767 case "(($ac_try" in
2768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769   *) ac_try_echo=$ac_try;;
2770 esac
2771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2772   (eval "$ac_compiler --version >&5") 2>&5
2773   ac_status=$?
2774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775   (exit $ac_status); }
2776 { (ac_try="$ac_compiler -v >&5"
2777 case "(($ac_try" in
2778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779   *) ac_try_echo=$ac_try;;
2780 esac
2781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2782   (eval "$ac_compiler -v >&5") 2>&5
2783   ac_status=$?
2784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785   (exit $ac_status); }
2786 { (ac_try="$ac_compiler -V >&5"
2787 case "(($ac_try" in
2788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789   *) ac_try_echo=$ac_try;;
2790 esac
2791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792   (eval "$ac_compiler -V >&5") 2>&5
2793   ac_status=$?
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); }
2797 cat >conftest.$ac_ext <<_ACEOF
2798 /* confdefs.h.  */
2799 _ACEOF
2800 cat confdefs.h >>conftest.$ac_ext
2801 cat >>conftest.$ac_ext <<_ACEOF
2802 /* end confdefs.h.  */
2805 main ()
2808   ;
2809   return 0;
2811 _ACEOF
2812 ac_clean_files_save=$ac_clean_files
2813 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2814 # Try to create an executable without -o first, disregard a.out.
2815 # It will help us diagnose broken compilers, and finding out an intuition
2816 # of exeext.
2817 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2818 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2819 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2821 # List of possible output files, starting from the most likely.
2822 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2823 # only as a last resort.  b.out is created by i960 compilers.
2824 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2826 # The IRIX 6 linker writes into existing files which may not be
2827 # executable, retaining their permissions.  Remove them first so a
2828 # subsequent execution test works.
2829 ac_rmfiles=
2830 for ac_file in $ac_files
2832   case $ac_file in
2833     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2834     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2835   esac
2836 done
2837 rm -f $ac_rmfiles
2839 if { (ac_try="$ac_link_default"
2840 case "(($ac_try" in
2841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842   *) ac_try_echo=$ac_try;;
2843 esac
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845   (eval "$ac_link_default") 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); }; then
2849   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2850 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2851 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2852 # so that the user can short-circuit this test for compilers unknown to
2853 # Autoconf.
2854 for ac_file in $ac_files ''
2856   test -f "$ac_file" || continue
2857   case $ac_file in
2858     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2859         ;;
2860     [ab].out )
2861         # We found the default executable, but exeext='' is most
2862         # certainly right.
2863         break;;
2864     *.* )
2865         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2866         then :; else
2867            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2868         fi
2869         # We set ac_cv_exeext here because the later test for it is not
2870         # safe: cross compilers may not add the suffix if given an `-o'
2871         # argument, so we may need to know it at that point already.
2872         # Even if this section looks crufty: it has the advantage of
2873         # actually working.
2874         break;;
2875     * )
2876         break;;
2877   esac
2878 done
2879 test "$ac_cv_exeext" = no && ac_cv_exeext=
2881 else
2882   ac_file=''
2885 { echo "$as_me:$LINENO: result: $ac_file" >&5
2886 echo "${ECHO_T}$ac_file" >&6; }
2887 if test -z "$ac_file"; then
2888   echo "$as_me: failed program was:" >&5
2889 sed 's/^/| /' conftest.$ac_ext >&5
2891 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2892 See \`config.log' for more details." >&5
2893 echo "$as_me: error: C compiler cannot create executables
2894 See \`config.log' for more details." >&2;}
2895    { (exit 77); exit 77; }; }
2898 ac_exeext=$ac_cv_exeext
2900 # Check that the compiler produces executables we can run.  If not, either
2901 # the compiler is broken, or we cross compile.
2902 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2903 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2904 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2905 # If not cross compiling, check that we can run a simple program.
2906 if test "$cross_compiling" != yes; then
2907   if { ac_try='./$ac_file'
2908   { (case "(($ac_try" in
2909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910   *) ac_try_echo=$ac_try;;
2911 esac
2912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913   (eval "$ac_try") 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); }; }; then
2917     cross_compiling=no
2918   else
2919     if test "$cross_compiling" = maybe; then
2920         cross_compiling=yes
2921     else
2922         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2923 If you meant to cross compile, use \`--host'.
2924 See \`config.log' for more details." >&5
2925 echo "$as_me: error: cannot run C compiled programs.
2926 If you meant to cross compile, use \`--host'.
2927 See \`config.log' for more details." >&2;}
2928    { (exit 1); exit 1; }; }
2929     fi
2930   fi
2932 { echo "$as_me:$LINENO: result: yes" >&5
2933 echo "${ECHO_T}yes" >&6; }
2935 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2936 ac_clean_files=$ac_clean_files_save
2937 # Check that the compiler produces executables we can run.  If not, either
2938 # the compiler is broken, or we cross compile.
2939 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2940 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2941 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2942 echo "${ECHO_T}$cross_compiling" >&6; }
2944 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2945 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2946 if { (ac_try="$ac_link"
2947 case "(($ac_try" in
2948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949   *) ac_try_echo=$ac_try;;
2950 esac
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952   (eval "$ac_link") 2>&5
2953   ac_status=$?
2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); }; then
2956   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2957 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2958 # work properly (i.e., refer to `conftest.exe'), while it won't with
2959 # `rm'.
2960 for ac_file in conftest.exe conftest conftest.*; do
2961   test -f "$ac_file" || continue
2962   case $ac_file in
2963     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2964     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2965           break;;
2966     * ) break;;
2967   esac
2968 done
2969 else
2970   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2971 See \`config.log' for more details." >&5
2972 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2973 See \`config.log' for more details." >&2;}
2974    { (exit 1); exit 1; }; }
2977 rm -f conftest$ac_cv_exeext
2978 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2979 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2981 rm -f conftest.$ac_ext
2982 EXEEXT=$ac_cv_exeext
2983 ac_exeext=$EXEEXT
2984 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2985 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2986 if test "${ac_cv_objext+set}" = set; then
2987   echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989   cat >conftest.$ac_ext <<_ACEOF
2990 /* confdefs.h.  */
2991 _ACEOF
2992 cat confdefs.h >>conftest.$ac_ext
2993 cat >>conftest.$ac_ext <<_ACEOF
2994 /* end confdefs.h.  */
2997 main ()
3000   ;
3001   return 0;
3003 _ACEOF
3004 rm -f conftest.o conftest.obj
3005 if { (ac_try="$ac_compile"
3006 case "(($ac_try" in
3007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008   *) ac_try_echo=$ac_try;;
3009 esac
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011   (eval "$ac_compile") 2>&5
3012   ac_status=$?
3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); }; then
3015   for ac_file in conftest.o conftest.obj conftest.*; do
3016   test -f "$ac_file" || continue;
3017   case $ac_file in
3018     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3019     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3020        break;;
3021   esac
3022 done
3023 else
3024   echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3027 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3028 See \`config.log' for more details." >&5
3029 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3030 See \`config.log' for more details." >&2;}
3031    { (exit 1); exit 1; }; }
3034 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3036 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3037 echo "${ECHO_T}$ac_cv_objext" >&6; }
3038 OBJEXT=$ac_cv_objext
3039 ac_objext=$OBJEXT
3040 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3041 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3042 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3043   echo $ECHO_N "(cached) $ECHO_C" >&6
3044 else
3045   cat >conftest.$ac_ext <<_ACEOF
3046 /* confdefs.h.  */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h.  */
3053 main ()
3055 #ifndef __GNUC__
3056        choke me
3057 #endif
3059   ;
3060   return 0;
3062 _ACEOF
3063 rm -f conftest.$ac_objext
3064 if { (ac_try="$ac_compile"
3065 case "(($ac_try" in
3066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067   *) ac_try_echo=$ac_try;;
3068 esac
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070   (eval "$ac_compile") 2>conftest.er1
3071   ac_status=$?
3072   grep -v '^ *+' conftest.er1 >conftest.err
3073   rm -f conftest.er1
3074   cat conftest.err >&5
3075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076   (exit $ac_status); } && {
3077          test -z "$ac_c_werror_flag" ||
3078          test ! -s conftest.err
3079        } && test -s conftest.$ac_objext; then
3080   ac_compiler_gnu=yes
3081 else
3082   echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085         ac_compiler_gnu=no
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3092 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3093 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3094 GCC=`test $ac_compiler_gnu = yes && echo yes`
3095 ac_test_CFLAGS=${CFLAGS+set}
3096 ac_save_CFLAGS=$CFLAGS
3097 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3098 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3099 if test "${ac_cv_prog_cc_g+set}" = set; then
3100   echo $ECHO_N "(cached) $ECHO_C" >&6
3101 else
3102   ac_save_c_werror_flag=$ac_c_werror_flag
3103    ac_c_werror_flag=yes
3104    ac_cv_prog_cc_g=no
3105    CFLAGS="-g"
3106    cat >conftest.$ac_ext <<_ACEOF
3107 /* confdefs.h.  */
3108 _ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h.  */
3114 main ()
3117   ;
3118   return 0;
3120 _ACEOF
3121 rm -f conftest.$ac_objext
3122 if { (ac_try="$ac_compile"
3123 case "(($ac_try" in
3124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125   *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128   (eval "$ac_compile") 2>conftest.er1
3129   ac_status=$?
3130   grep -v '^ *+' conftest.er1 >conftest.err
3131   rm -f conftest.er1
3132   cat conftest.err >&5
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); } && {
3135          test -z "$ac_c_werror_flag" ||
3136          test ! -s conftest.err
3137        } && test -s conftest.$ac_objext; then
3138   ac_cv_prog_cc_g=yes
3139 else
3140   echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3143         CFLAGS=""
3144       cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h.  */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h.  */
3152 main ()
3155   ;
3156   return 0;
3158 _ACEOF
3159 rm -f conftest.$ac_objext
3160 if { (ac_try="$ac_compile"
3161 case "(($ac_try" in
3162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163   *) ac_try_echo=$ac_try;;
3164 esac
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166   (eval "$ac_compile") 2>conftest.er1
3167   ac_status=$?
3168   grep -v '^ *+' conftest.er1 >conftest.err
3169   rm -f conftest.er1
3170   cat conftest.err >&5
3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); } && {
3173          test -z "$ac_c_werror_flag" ||
3174          test ! -s conftest.err
3175        } && test -s conftest.$ac_objext; then
3176   :
3177 else
3178   echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3181         ac_c_werror_flag=$ac_save_c_werror_flag
3182          CFLAGS="-g"
3183          cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h.  */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h.  */
3191 main ()
3194   ;
3195   return 0;
3197 _ACEOF
3198 rm -f conftest.$ac_objext
3199 if { (ac_try="$ac_compile"
3200 case "(($ac_try" in
3201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202   *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205   (eval "$ac_compile") 2>conftest.er1
3206   ac_status=$?
3207   grep -v '^ *+' conftest.er1 >conftest.err
3208   rm -f conftest.er1
3209   cat conftest.err >&5
3210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211   (exit $ac_status); } && {
3212          test -z "$ac_c_werror_flag" ||
3213          test ! -s conftest.err
3214        } && test -s conftest.$ac_objext; then
3215   ac_cv_prog_cc_g=yes
3216 else
3217   echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3220         
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230    ac_c_werror_flag=$ac_save_c_werror_flag
3232 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3233 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3234 if test "$ac_test_CFLAGS" = set; then
3235   CFLAGS=$ac_save_CFLAGS
3236 elif test $ac_cv_prog_cc_g = yes; then
3237   if test "$GCC" = yes; then
3238     CFLAGS="-g -O2"
3239   else
3240     CFLAGS="-g"
3241   fi
3242 else
3243   if test "$GCC" = yes; then
3244     CFLAGS="-O2"
3245   else
3246     CFLAGS=
3247   fi
3249 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3250 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3251 if test "${ac_cv_prog_cc_c89+set}" = set; then
3252   echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254   ac_cv_prog_cc_c89=no
3255 ac_save_CC=$CC
3256 cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h.  */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h.  */
3262 #include <stdarg.h>
3263 #include <stdio.h>
3264 #include <sys/types.h>
3265 #include <sys/stat.h>
3266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3267 struct buf { int x; };
3268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269 static char *e (p, i)
3270      char **p;
3271      int i;
3273   return p[i];
3275 static char *f (char * (*g) (char **, int), char **p, ...)
3277   char *s;
3278   va_list v;
3279   va_start (v,p);
3280   s = g (p, va_arg (v,int));
3281   va_end (v);
3282   return s;
3285 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3286    function prototypes and stuff, but not '\xHH' hex character constants.
3287    These don't provoke an error unfortunately, instead are silently treated
3288    as 'x'.  The following induces an error, until -std is added to get
3289    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3290    array size at least.  It's necessary to write '\x00'==0 to get something
3291    that's true only with -std.  */
3292 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3294 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295    inside strings and character constants.  */
3296 #define FOO(x) 'x'
3297 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3299 int test (int i, double x);
3300 struct s1 {int (*f) (int a);};
3301 struct s2 {int (*f) (double a);};
3302 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3303 int argc;
3304 char **argv;
3306 main ()
3308 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3309   ;
3310   return 0;
3312 _ACEOF
3313 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3316   CC="$ac_save_CC $ac_arg"
3317   rm -f conftest.$ac_objext
3318 if { (ac_try="$ac_compile"
3319 case "(($ac_try" in
3320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321   *) ac_try_echo=$ac_try;;
3322 esac
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324   (eval "$ac_compile") 2>conftest.er1
3325   ac_status=$?
3326   grep -v '^ *+' conftest.er1 >conftest.err
3327   rm -f conftest.er1
3328   cat conftest.err >&5
3329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); } && {
3331          test -z "$ac_c_werror_flag" ||
3332          test ! -s conftest.err
3333        } && test -s conftest.$ac_objext; then
3334   ac_cv_prog_cc_c89=$ac_arg
3335 else
3336   echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3339         
3342 rm -f core conftest.err conftest.$ac_objext 
3343   test "x$ac_cv_prog_cc_c89" != "xno" && break
3344 done
3345 rm -f conftest.$ac_ext
3346 CC=$ac_save_CC
3349 # AC_CACHE_VAL
3350 case "x$ac_cv_prog_cc_c89" in
3351   x)
3352     { echo "$as_me:$LINENO: result: none needed" >&5
3353 echo "${ECHO_T}none needed" >&6; } ;;
3354   xno)
3355     { echo "$as_me:$LINENO: result: unsupported" >&5
3356 echo "${ECHO_T}unsupported" >&6; } ;;
3357   *)
3358     CC="$CC $ac_cv_prog_cc_c89"
3359     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3360 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3361 esac
3364 ac_ext=c
3365 ac_cpp='$CPP $CPPFLAGS'
3366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369 DEPDIR="${am__leading_dot}deps"
3371 ac_config_commands="$ac_config_commands depfiles"
3374 am_make=${MAKE-make}
3375 cat > confinc << 'END'
3376 am__doit:
3377         @echo done
3378 .PHONY: am__doit
3380 # If we don't find an include directive, just comment out the code.
3381 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3382 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3383 am__include="#"
3384 am__quote=
3385 _am_result=none
3386 # First try GNU make style include.
3387 echo "include confinc" > confmf
3388 # We grep out `Entering directory' and `Leaving directory'
3389 # messages which can occur if `w' ends up in MAKEFLAGS.
3390 # In particular we don't look at `^make:' because GNU make might
3391 # be invoked under some other name (usually "gmake"), in which
3392 # case it prints its new name instead of `make'.
3393 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3394    am__include=include
3395    am__quote=
3396    _am_result=GNU
3398 # Now try BSD make style include.
3399 if test "$am__include" = "#"; then
3400    echo '.include "confinc"' > confmf
3401    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3402       am__include=.include
3403       am__quote="\""
3404       _am_result=BSD
3405    fi
3409 { echo "$as_me:$LINENO: result: $_am_result" >&5
3410 echo "${ECHO_T}$_am_result" >&6; }
3411 rm -f confinc confmf
3413 # Check whether --enable-dependency-tracking was given.
3414 if test "${enable_dependency_tracking+set}" = set; then
3415   enableval=$enable_dependency_tracking; 
3418 if test "x$enable_dependency_tracking" != xno; then
3419   am_depcomp="$ac_aux_dir/depcomp"
3420   AMDEPBACKSLASH='\'
3422  if test "x$enable_dependency_tracking" != xno; then
3423   AMDEP_TRUE=
3424   AMDEP_FALSE='#'
3425 else
3426   AMDEP_TRUE='#'
3427   AMDEP_FALSE=
3432 depcc="$CC"   am_compiler_list=
3434 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3435 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3436 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3437   echo $ECHO_N "(cached) $ECHO_C" >&6
3438 else
3439   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3440   # We make a subdir and do the tests there.  Otherwise we can end up
3441   # making bogus files that we don't know about and never remove.  For
3442   # instance it was reported that on HP-UX the gcc test will end up
3443   # making a dummy file named `D' -- because `-MD' means `put the output
3444   # in D'.
3445   mkdir conftest.dir
3446   # Copy depcomp to subdir because otherwise we won't find it if we're
3447   # using a relative directory.
3448   cp "$am_depcomp" conftest.dir
3449   cd conftest.dir
3450   # We will build objects and dependencies in a subdirectory because
3451   # it helps to detect inapplicable dependency modes.  For instance
3452   # both Tru64's cc and ICC support -MD to output dependencies as a
3453   # side effect of compilation, but ICC will put the dependencies in
3454   # the current directory while Tru64 will put them in the object
3455   # directory.
3456   mkdir sub
3458   am_cv_CC_dependencies_compiler_type=none
3459   if test "$am_compiler_list" = ""; then
3460      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3461   fi
3462   for depmode in $am_compiler_list; do
3463     # Setup a source with many dependencies, because some compilers
3464     # like to wrap large dependency lists on column 80 (with \), and
3465     # we should not choose a depcomp mode which is confused by this.
3466     #
3467     # We need to recreate these files for each test, as the compiler may
3468     # overwrite some of them when testing with obscure command lines.
3469     # This happens at least with the AIX C compiler.
3470     : > sub/conftest.c
3471     for i in 1 2 3 4 5 6; do
3472       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3473       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3474       # Solaris 8's {/usr,}/bin/sh.
3475       touch sub/conftst$i.h
3476     done
3477     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3479     case $depmode in
3480     nosideeffect)
3481       # after this tag, mechanisms are not by side-effect, so they'll
3482       # only be used when explicitly requested
3483       if test "x$enable_dependency_tracking" = xyes; then
3484         continue
3485       else
3486         break
3487       fi
3488       ;;
3489     none) break ;;
3490     esac
3491     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3492     # mode.  It turns out that the SunPro C++ compiler does not properly
3493     # handle `-M -o', and we need to detect this.
3494     if depmode=$depmode \
3495        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3496        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3497        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3498          >/dev/null 2>conftest.err &&
3499        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3500        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3501        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3502        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3503       # icc doesn't choke on unknown options, it will just issue warnings
3504       # or remarks (even with -Werror).  So we grep stderr for any message
3505       # that says an option was ignored or not supported.
3506       # When given -MP, icc 7.0 and 7.1 complain thusly:
3507       #   icc: Command line warning: ignoring option '-M'; no argument required
3508       # The diagnosis changed in icc 8.0:
3509       #   icc: Command line remark: option '-MP' not supported
3510       if (grep 'ignoring option' conftest.err ||
3511           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3512         am_cv_CC_dependencies_compiler_type=$depmode
3513         break
3514       fi
3515     fi
3516   done
3518   cd ..
3519   rm -rf conftest.dir
3520 else
3521   am_cv_CC_dependencies_compiler_type=none
3525 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3526 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3527 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3529  if 
3530   test "x$enable_dependency_tracking" != xno \
3531   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3532   am__fastdepCC_TRUE=
3533   am__fastdepCC_FALSE='#'
3534 else
3535   am__fastdepCC_TRUE='#'
3536   am__fastdepCC_FALSE=
3540 # Find a good install program.  We prefer a C program (faster),
3541 # so one script is as good as another.  But avoid the broken or
3542 # incompatible versions:
3543 # SysV /etc/install, /usr/sbin/install
3544 # SunOS /usr/etc/install
3545 # IRIX /sbin/install
3546 # AIX /bin/install
3547 # AmigaOS /C/install, which installs bootblocks on floppy discs
3548 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3549 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3550 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3551 # OS/2's system install, which has a completely different semantic
3552 # ./install, which can be erroneously created by make from ./install.sh.
3553 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3554 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3555 if test -z "$INSTALL"; then
3556 if test "${ac_cv_path_install+set}" = set; then
3557   echo $ECHO_N "(cached) $ECHO_C" >&6
3558 else
3559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH
3562   IFS=$as_save_IFS
3563   test -z "$as_dir" && as_dir=.
3564   # Account for people who put trailing slashes in PATH elements.
3565 case $as_dir/ in
3566   ./ | .// | /cC/* | \
3567   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3568   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3569   /usr/ucb/* ) ;;
3570   *)
3571     # OSF1 and SCO ODT 3.0 have their own names for install.
3572     # Don't use installbsd from OSF since it installs stuff as root
3573     # by default.
3574     for ac_prog in ginstall scoinst install; do
3575       for ac_exec_ext in '' $ac_executable_extensions; do
3576         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3577           if test $ac_prog = install &&
3578             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3579             # AIX install.  It has an incompatible calling convention.
3580             :
3581           elif test $ac_prog = install &&
3582             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3583             # program-specific install script used by HP pwplus--don't use.
3584             :
3585           else
3586             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3587             break 3
3588           fi
3589         fi
3590       done
3591     done
3592     ;;
3593 esac
3594 done
3595 IFS=$as_save_IFS
3599   if test "${ac_cv_path_install+set}" = set; then
3600     INSTALL=$ac_cv_path_install
3601   else
3602     # As a last resort, use the slow shell script.  Don't cache a
3603     # value for INSTALL within a source directory, because that will
3604     # break other packages using the cache if that directory is
3605     # removed, or if the value is a relative name.
3606     INSTALL=$ac_install_sh
3607   fi
3609 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3610 echo "${ECHO_T}$INSTALL" >&6; }
3612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3613 # It thinks the first close brace ends the variable substitution.
3614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3620 # Check whether --enable-shared was given.
3621 if test "${enable_shared+set}" = set; then
3622   enableval=$enable_shared; p=${PACKAGE-default}
3623     case $enableval in
3624     yes) enable_shared=yes ;;
3625     no) enable_shared=no ;;
3626     *)
3627       enable_shared=no
3628       # Look at the argument we got.  We use all the common list separators.
3629       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3630       for pkg in $enableval; do
3631         IFS="$lt_save_ifs"
3632         if test "X$pkg" = "X$p"; then
3633           enable_shared=yes
3634         fi
3635       done
3636       IFS="$lt_save_ifs"
3637       ;;
3638     esac
3639 else
3640   enable_shared=yes
3644 # Check whether --enable-fast-install was given.
3645 if test "${enable_fast_install+set}" = set; then
3646   enableval=$enable_fast_install; p=${PACKAGE-default}
3647     case $enableval in
3648     yes) enable_fast_install=yes ;;
3649     no) enable_fast_install=no ;;
3650     *)
3651       enable_fast_install=no
3652       # Look at the argument we got.  We use all the common list separators.
3653       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3654       for pkg in $enableval; do
3655         IFS="$lt_save_ifs"
3656         if test "X$pkg" = "X$p"; then
3657           enable_fast_install=yes
3658         fi
3659       done
3660       IFS="$lt_save_ifs"
3661       ;;
3662     esac
3663 else
3664   enable_fast_install=yes
3668 # Make sure we can run config.sub.
3669 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3670   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3671 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3672    { (exit 1); exit 1; }; }
3674 { echo "$as_me:$LINENO: checking build system type" >&5
3675 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3676 if test "${ac_cv_build+set}" = set; then
3677   echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679   ac_build_alias=$build_alias
3680 test "x$ac_build_alias" = x &&
3681   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3682 test "x$ac_build_alias" = x &&
3683   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3684 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3685    { (exit 1); exit 1; }; }
3686 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3687   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3688 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3689    { (exit 1); exit 1; }; }
3692 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3693 echo "${ECHO_T}$ac_cv_build" >&6; }
3694 case $ac_cv_build in
3695 *-*-*) ;;
3696 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3697 echo "$as_me: error: invalid value of canonical build" >&2;}
3698    { (exit 1); exit 1; }; };;
3699 esac
3700 build=$ac_cv_build
3701 ac_save_IFS=$IFS; IFS='-'
3702 set x $ac_cv_build
3703 shift
3704 build_cpu=$1
3705 build_vendor=$2
3706 shift; shift
3707 # Remember, the first character of IFS is used to create $*,
3708 # except with old shells:
3709 build_os=$*
3710 IFS=$ac_save_IFS
3711 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3714 { echo "$as_me:$LINENO: checking host system type" >&5
3715 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3716 if test "${ac_cv_host+set}" = set; then
3717   echo $ECHO_N "(cached) $ECHO_C" >&6
3718 else
3719   if test "x$host_alias" = x; then
3720   ac_cv_host=$ac_cv_build
3721 else
3722   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3723     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3724 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3725    { (exit 1); exit 1; }; }
3729 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3730 echo "${ECHO_T}$ac_cv_host" >&6; }
3731 case $ac_cv_host in
3732 *-*-*) ;;
3733 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3734 echo "$as_me: error: invalid value of canonical host" >&2;}
3735    { (exit 1); exit 1; }; };;
3736 esac
3737 host=$ac_cv_host
3738 ac_save_IFS=$IFS; IFS='-'
3739 set x $ac_cv_host
3740 shift
3741 host_cpu=$1
3742 host_vendor=$2
3743 shift; shift
3744 # Remember, the first character of IFS is used to create $*,
3745 # except with old shells:
3746 host_os=$*
3747 IFS=$ac_save_IFS
3748 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3751 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3752 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3753 if test "${lt_cv_path_SED+set}" = set; then
3754   echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756   # Loop through the user's path and test for sed and gsed.
3757 # Then use that list of sed's as ones to test for truncation.
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH
3761   IFS=$as_save_IFS
3762   test -z "$as_dir" && as_dir=.
3763   for lt_ac_prog in sed gsed; do
3764     for ac_exec_ext in '' $ac_executable_extensions; do
3765       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3766         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3767       fi
3768     done
3769   done
3770 done
3771 IFS=$as_save_IFS
3772 lt_ac_max=0
3773 lt_ac_count=0
3774 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3775 # along with /bin/sed that truncates output.
3776 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3777   test ! -f $lt_ac_sed && continue
3778   cat /dev/null > conftest.in
3779   lt_ac_count=0
3780   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3781   # Check for GNU sed and select it if it is found.
3782   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3783     lt_cv_path_SED=$lt_ac_sed
3784     break
3785   fi
3786   while true; do
3787     cat conftest.in conftest.in >conftest.tmp
3788     mv conftest.tmp conftest.in
3789     cp conftest.in conftest.nl
3790     echo >>conftest.nl
3791     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3792     cmp -s conftest.out conftest.nl || break
3793     # 10000 chars as input seems more than enough
3794     test $lt_ac_count -gt 10 && break
3795     lt_ac_count=`expr $lt_ac_count + 1`
3796     if test $lt_ac_count -gt $lt_ac_max; then
3797       lt_ac_max=$lt_ac_count
3798       lt_cv_path_SED=$lt_ac_sed
3799     fi
3800   done
3801 done
3805 SED=$lt_cv_path_SED
3807 { echo "$as_me:$LINENO: result: $SED" >&5
3808 echo "${ECHO_T}$SED" >&6; }
3810 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3811 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3812 if test "${ac_cv_path_GREP+set}" = set; then
3813   echo $ECHO_N "(cached) $ECHO_C" >&6
3814 else
3815   # Extract the first word of "grep ggrep" to use in msg output
3816 if test -z "$GREP"; then
3817 set dummy grep ggrep; ac_prog_name=$2
3818 if test "${ac_cv_path_GREP+set}" = set; then
3819   echo $ECHO_N "(cached) $ECHO_C" >&6
3820 else
3821   ac_path_GREP_found=false
3822 # Loop through the user's path and test for each of PROGNAME-LIST
3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3826   IFS=$as_save_IFS
3827   test -z "$as_dir" && as_dir=.
3828   for ac_prog in grep ggrep; do
3829   for ac_exec_ext in '' $ac_executable_extensions; do
3830     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3831     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3832     # Check for GNU ac_path_GREP and select it if it is found.
3833   # Check for GNU $ac_path_GREP
3834 case `"$ac_path_GREP" --version 2>&1` in
3835 *GNU*)
3836   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3838   ac_count=0
3839   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3840   while :
3841   do
3842     cat "conftest.in" "conftest.in" >"conftest.tmp"
3843     mv "conftest.tmp" "conftest.in"
3844     cp "conftest.in" "conftest.nl"
3845     echo 'GREP' >> "conftest.nl"
3846     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3847     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3848     ac_count=`expr $ac_count + 1`
3849     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3850       # Best one so far, save it but keep looking for a better one
3851       ac_cv_path_GREP="$ac_path_GREP"
3852       ac_path_GREP_max=$ac_count
3853     fi
3854     # 10*(2^10) chars as input seems more than enough
3855     test $ac_count -gt 10 && break
3856   done
3857   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3858 esac
3861     $ac_path_GREP_found && break 3
3862   done
3863 done
3865 done
3866 IFS=$as_save_IFS
3871 GREP="$ac_cv_path_GREP"
3872 if test -z "$GREP"; then
3873   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3874 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3875    { (exit 1); exit 1; }; }
3878 else
3879   ac_cv_path_GREP=$GREP
3884 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3885 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3886  GREP="$ac_cv_path_GREP"
3889 { echo "$as_me:$LINENO: checking for egrep" >&5
3890 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3891 if test "${ac_cv_path_EGREP+set}" = set; then
3892   echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3895    then ac_cv_path_EGREP="$GREP -E"
3896    else
3897      # Extract the first word of "egrep" to use in msg output
3898 if test -z "$EGREP"; then
3899 set dummy egrep; ac_prog_name=$2
3900 if test "${ac_cv_path_EGREP+set}" = set; then
3901   echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903   ac_path_EGREP_found=false
3904 # Loop through the user's path and test for each of PROGNAME-LIST
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3908   IFS=$as_save_IFS
3909   test -z "$as_dir" && as_dir=.
3910   for ac_prog in egrep; do
3911   for ac_exec_ext in '' $ac_executable_extensions; do
3912     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3913     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3914     # Check for GNU ac_path_EGREP and select it if it is found.
3915   # Check for GNU $ac_path_EGREP
3916 case `"$ac_path_EGREP" --version 2>&1` in
3917 *GNU*)
3918   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3920   ac_count=0
3921   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3922   while :
3923   do
3924     cat "conftest.in" "conftest.in" >"conftest.tmp"
3925     mv "conftest.tmp" "conftest.in"
3926     cp "conftest.in" "conftest.nl"
3927     echo 'EGREP' >> "conftest.nl"
3928     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3929     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3930     ac_count=`expr $ac_count + 1`
3931     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3932       # Best one so far, save it but keep looking for a better one
3933       ac_cv_path_EGREP="$ac_path_EGREP"
3934       ac_path_EGREP_max=$ac_count
3935     fi
3936     # 10*(2^10) chars as input seems more than enough
3937     test $ac_count -gt 10 && break
3938   done
3939   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3940 esac
3943     $ac_path_EGREP_found && break 3
3944   done
3945 done
3947 done
3948 IFS=$as_save_IFS
3953 EGREP="$ac_cv_path_EGREP"
3954 if test -z "$EGREP"; then
3955   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3956 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3957    { (exit 1); exit 1; }; }
3960 else
3961   ac_cv_path_EGREP=$EGREP
3965    fi
3967 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3968 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3969  EGREP="$ac_cv_path_EGREP"
3973 # Check whether --with-gnu-ld was given.
3974 if test "${with_gnu_ld+set}" = set; then
3975   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3976 else
3977   with_gnu_ld=no
3980 ac_prog=ld
3981 if test "$GCC" = yes; then
3982   # Check if gcc -print-prog-name=ld gives a path.
3983   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3984 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3985   case $host in
3986   *-*-mingw*)
3987     # gcc leaves a trailing carriage return which upsets mingw
3988     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3989   *)
3990     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3991   esac
3992   case $ac_prog in
3993     # Accept absolute paths.
3994     [\\/]* | ?:[\\/]*)
3995       re_direlt='/[^/][^/]*/\.\./'
3996       # Canonicalize the pathname of ld
3997       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3998       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3999         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4000       done
4001       test -z "$LD" && LD="$ac_prog"
4002       ;;
4003   "")
4004     # If it fails, then pretend we aren't using GCC.
4005     ac_prog=ld
4006     ;;
4007   *)
4008     # If it is relative, then search for the first ld in PATH.
4009     with_gnu_ld=unknown
4010     ;;
4011   esac
4012 elif test "$with_gnu_ld" = yes; then
4013   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4014 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4015 else
4016   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4017 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4019 if test "${lt_cv_path_LD+set}" = set; then
4020   echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022   if test -z "$LD"; then
4023   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4024   for ac_dir in $PATH; do
4025     IFS="$lt_save_ifs"
4026     test -z "$ac_dir" && ac_dir=.
4027     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4028       lt_cv_path_LD="$ac_dir/$ac_prog"
4029       # Check to see if the program is GNU ld.  I'd rather use --version,
4030       # but apparently some variants of GNU ld only accept -v.
4031       # Break only if it was the GNU/non-GNU ld that we prefer.
4032       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4033       *GNU* | *'with BFD'*)
4034         test "$with_gnu_ld" != no && break
4035         ;;
4036       *)
4037         test "$with_gnu_ld" != yes && break
4038         ;;
4039       esac
4040     fi
4041   done
4042   IFS="$lt_save_ifs"
4043 else
4044   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4048 LD="$lt_cv_path_LD"
4049 if test -n "$LD"; then
4050   { echo "$as_me:$LINENO: result: $LD" >&5
4051 echo "${ECHO_T}$LD" >&6; }
4052 else
4053   { echo "$as_me:$LINENO: result: no" >&5
4054 echo "${ECHO_T}no" >&6; }
4056 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4057 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4058    { (exit 1); exit 1; }; }
4059 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4060 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4061 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4062   echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4065 case `$LD -v 2>&1 </dev/null` in
4066 *GNU* | *'with BFD'*)
4067   lt_cv_prog_gnu_ld=yes
4068   ;;
4070   lt_cv_prog_gnu_ld=no
4071   ;;
4072 esac
4074 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4075 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4076 with_gnu_ld=$lt_cv_prog_gnu_ld
4079 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4080 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4081 if test "${lt_cv_ld_reload_flag+set}" = set; then
4082   echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084   lt_cv_ld_reload_flag='-r'
4086 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4087 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4088 reload_flag=$lt_cv_ld_reload_flag
4089 case $reload_flag in
4090 "" | " "*) ;;
4091 *) reload_flag=" $reload_flag" ;;
4092 esac
4093 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4094 case $host_os in
4095   darwin*)
4096     if test "$GCC" = yes; then
4097       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4098     else
4099       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4100     fi
4101     ;;
4102 esac
4104 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4105 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4106 if test "${lt_cv_path_NM+set}" = set; then
4107   echo $ECHO_N "(cached) $ECHO_C" >&6
4108 else
4109   if test -n "$NM"; then
4110   # Let the user override the test.
4111   lt_cv_path_NM="$NM"
4112 else
4113   lt_nm_to_check="${ac_tool_prefix}nm"
4114   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4115     lt_nm_to_check="$lt_nm_to_check nm"
4116   fi
4117   for lt_tmp_nm in $lt_nm_to_check; do
4118     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4119     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4120       IFS="$lt_save_ifs"
4121       test -z "$ac_dir" && ac_dir=.
4122       tmp_nm="$ac_dir/$lt_tmp_nm"
4123       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4124         # Check to see if the nm accepts a BSD-compat flag.
4125         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4126         #   nm: unknown option "B" ignored
4127         # Tru64's nm complains that /dev/null is an invalid object file
4128         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4129         */dev/null* | *'Invalid file or object type'*)
4130           lt_cv_path_NM="$tmp_nm -B"
4131           break
4132           ;;
4133         *)
4134           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4135           */dev/null*)
4136             lt_cv_path_NM="$tmp_nm -p"
4137             break
4138             ;;
4139           *)
4140             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4141             continue # so that we can try to find one that supports BSD flags
4142             ;;
4143           esac
4144           ;;
4145         esac
4146       fi
4147     done
4148     IFS="$lt_save_ifs"
4149   done
4150   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4153 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4154 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4155 NM="$lt_cv_path_NM"
4157 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4158 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4159 LN_S=$as_ln_s
4160 if test "$LN_S" = "ln -s"; then
4161   { echo "$as_me:$LINENO: result: yes" >&5
4162 echo "${ECHO_T}yes" >&6; }
4163 else
4164   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4165 echo "${ECHO_T}no, using $LN_S" >&6; }
4168 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4169 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4170 if test "${lt_cv_deplibs_check_method+set}" = set; then
4171   echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173   lt_cv_file_magic_cmd='$MAGIC_CMD'
4174 lt_cv_file_magic_test_file=
4175 lt_cv_deplibs_check_method='unknown'
4176 # Need to set the preceding variable on all platforms that support
4177 # interlibrary dependencies.
4178 # 'none' -- dependencies not supported.
4179 # `unknown' -- same as none, but documents that we really don't know.
4180 # 'pass_all' -- all dependencies passed with no checks.
4181 # 'test_compile' -- check by making test program.
4182 # 'file_magic [[regex]]' -- check by looking for files in library path
4183 # which responds to the $file_magic_cmd with a given extended regex.
4184 # If you have `file' or equivalent on your system and you're not sure
4185 # whether `pass_all' will *always* work, you probably want this one.
4187 case $host_os in
4188 aix4* | aix5*)
4189   lt_cv_deplibs_check_method=pass_all
4190   ;;
4192 beos*)
4193   lt_cv_deplibs_check_method=pass_all
4194   ;;
4196 bsdi[45]*)
4197   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4198   lt_cv_file_magic_cmd='/usr/bin/file -L'
4199   lt_cv_file_magic_test_file=/shlib/libc.so
4200   ;;
4202 cygwin*)
4203   # func_win32_libid is a shell function defined in ltmain.sh
4204   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4205   lt_cv_file_magic_cmd='func_win32_libid'
4206   ;;
4208 mingw* | pw32*)
4209   # Base MSYS/MinGW do not provide the 'file' command needed by
4210   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4211   # unless we find 'file', for example because we are cross-compiling.
4212   if ( file / ) >/dev/null 2>&1; then
4213     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4214     lt_cv_file_magic_cmd='func_win32_libid'
4215   else
4216     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4217     lt_cv_file_magic_cmd='$OBJDUMP -f'
4218   fi
4219   ;;
4221 darwin* | rhapsody*)
4222   lt_cv_deplibs_check_method=pass_all
4223   ;;
4225 freebsd* | dragonfly*)
4226   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4227     case $host_cpu in
4228     i*86 )
4229       # Not sure whether the presence of OpenBSD here was a mistake.
4230       # Let's accept both of them until this is cleared up.
4231       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4232       lt_cv_file_magic_cmd=/usr/bin/file
4233       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4234       ;;
4235     esac
4236   else
4237     lt_cv_deplibs_check_method=pass_all
4238   fi
4239   ;;
4241 gnu*)
4242   lt_cv_deplibs_check_method=pass_all
4243   ;;
4245 hpux10.20* | hpux11*)
4246   lt_cv_file_magic_cmd=/usr/bin/file
4247   case $host_cpu in
4248   ia64*)
4249     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4250     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4251     ;;
4252   hppa*64*)
4253     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]'
4254     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4255     ;;
4256   *)
4257     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4258     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4259     ;;
4260   esac
4261   ;;
4263 interix[3-9]*)
4264   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4265   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4266   ;;
4268 irix5* | irix6* | nonstopux*)
4269   case $LD in
4270   *-32|*"-32 ") libmagic=32-bit;;
4271   *-n32|*"-n32 ") libmagic=N32;;
4272   *-64|*"-64 ") libmagic=64-bit;;
4273   *) libmagic=never-match;;
4274   esac
4275   lt_cv_deplibs_check_method=pass_all
4276   ;;
4278 # This must be Linux ELF.
4279 linux* | k*bsd*-gnu)
4280   lt_cv_deplibs_check_method=pass_all
4281   ;;
4283 netbsd*)
4284   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4285     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4286   else
4287     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4288   fi
4289   ;;
4291 newos6*)
4292   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4293   lt_cv_file_magic_cmd=/usr/bin/file
4294   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4295   ;;
4297 nto-qnx*)
4298   lt_cv_deplibs_check_method=unknown
4299   ;;
4301 openbsd*)
4302   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4303     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4304   else
4305     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4306   fi
4307   ;;
4309 osf3* | osf4* | osf5*)
4310   lt_cv_deplibs_check_method=pass_all
4311   ;;
4313 rdos*)
4314   lt_cv_deplibs_check_method=pass_all
4315   ;;
4317 solaris*)
4318   lt_cv_deplibs_check_method=pass_all
4319   ;;
4321 sysv4 | sysv4.3*)
4322   case $host_vendor in
4323   motorola)
4324     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]'
4325     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4326     ;;
4327   ncr)
4328     lt_cv_deplibs_check_method=pass_all
4329     ;;
4330   sequent)
4331     lt_cv_file_magic_cmd='/bin/file'
4332     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4333     ;;
4334   sni)
4335     lt_cv_file_magic_cmd='/bin/file'
4336     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4337     lt_cv_file_magic_test_file=/lib/libc.so
4338     ;;
4339   siemens)
4340     lt_cv_deplibs_check_method=pass_all
4341     ;;
4342   pc)
4343     lt_cv_deplibs_check_method=pass_all
4344     ;;
4345   esac
4346   ;;
4348 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4349   lt_cv_deplibs_check_method=pass_all
4350   ;;
4351 esac
4354 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4355 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4356 file_magic_cmd=$lt_cv_file_magic_cmd
4357 deplibs_check_method=$lt_cv_deplibs_check_method
4358 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4363 # If no C compiler was specified, use CC.
4364 LTCC=${LTCC-"$CC"}
4366 # If no C compiler flags were specified, use CFLAGS.
4367 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4369 # Allow CC to be a program name with arguments.
4370 compiler=$CC
4373 # Check whether --enable-libtool-lock was given.
4374 if test "${enable_libtool_lock+set}" = set; then
4375   enableval=$enable_libtool_lock; 
4378 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4380 # Some flags need to be propagated to the compiler or linker for good
4381 # libtool support.
4382 case $host in
4383 ia64-*-hpux*)
4384   # Find out which ABI we are using.
4385   echo 'int i;' > conftest.$ac_ext
4386   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4387   (eval $ac_compile) 2>&5
4388   ac_status=$?
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); }; then
4391     case `/usr/bin/file conftest.$ac_objext` in
4392     *ELF-32*)
4393       HPUX_IA64_MODE="32"
4394       ;;
4395     *ELF-64*)
4396       HPUX_IA64_MODE="64"
4397       ;;
4398     esac
4399   fi
4400   rm -rf conftest*
4401   ;;
4402 *-*-irix6*)
4403   # Find out which ABI we are using.
4404   echo '#line __oline__ "configure"' > conftest.$ac_ext
4405   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4406   (eval $ac_compile) 2>&5
4407   ac_status=$?
4408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409   (exit $ac_status); }; then
4410    if test "$lt_cv_prog_gnu_ld" = yes; then
4411     case `/usr/bin/file conftest.$ac_objext` in
4412     *32-bit*)
4413       LD="${LD-ld} -melf32bsmip"
4414       ;;
4415     *N32*)
4416       LD="${LD-ld} -melf32bmipn32"
4417       ;;
4418     *64-bit*)
4419       LD="${LD-ld} -melf64bmip"
4420       ;;
4421     esac
4422    else
4423     case `/usr/bin/file conftest.$ac_objext` in
4424     *32-bit*)
4425       LD="${LD-ld} -32"
4426       ;;
4427     *N32*)
4428       LD="${LD-ld} -n32"
4429       ;;
4430     *64-bit*)
4431       LD="${LD-ld} -64"
4432       ;;
4433     esac
4434    fi
4435   fi
4436   rm -rf conftest*
4437   ;;
4439 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4440 s390*-*linux*|sparc*-*linux*)
4441   # Find out which ABI we are using.
4442   echo 'int i;' > conftest.$ac_ext
4443   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444   (eval $ac_compile) 2>&5
4445   ac_status=$?
4446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447   (exit $ac_status); }; then
4448     case `/usr/bin/file conftest.o` in
4449     *32-bit*)
4450       case $host in
4451         x86_64-*kfreebsd*-gnu)
4452           LD="${LD-ld} -m elf_i386_fbsd"
4453           ;;
4454         x86_64-*linux*)
4455           LD="${LD-ld} -m elf_i386"
4456           ;;
4457         ppc64-*linux*|powerpc64-*linux*)
4458           LD="${LD-ld} -m elf32ppclinux"
4459           ;;
4460         s390x-*linux*)
4461           LD="${LD-ld} -m elf_s390"
4462           ;;
4463         sparc64-*linux*)
4464           LD="${LD-ld} -m elf32_sparc"
4465           ;;
4466       esac
4467       ;;
4468     *64-bit*)
4469       libsuff=64
4470       case $host in
4471         x86_64-*kfreebsd*-gnu)
4472           LD="${LD-ld} -m elf_x86_64_fbsd"
4473           ;;
4474         x86_64-*linux*)
4475           LD="${LD-ld} -m elf_x86_64"
4476           ;;
4477         ppc*-*linux*|powerpc*-*linux*)
4478           LD="${LD-ld} -m elf64ppc"
4479           ;;
4480         s390*-*linux*)
4481           LD="${LD-ld} -m elf64_s390"
4482           ;;
4483         sparc*-*linux*)
4484           LD="${LD-ld} -m elf64_sparc"
4485           ;;
4486       esac
4487       ;;
4488     esac
4489   fi
4490   rm -rf conftest*
4491   ;;
4493 *-*-sco3.2v5*)
4494   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4495   SAVE_CFLAGS="$CFLAGS"
4496   CFLAGS="$CFLAGS -belf"
4497   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4498 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4499 if test "${lt_cv_cc_needs_belf+set}" = set; then
4500   echo $ECHO_N "(cached) $ECHO_C" >&6
4501 else
4502   ac_ext=c
4503 ac_cpp='$CPP $CPPFLAGS'
4504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4508      cat >conftest.$ac_ext <<_ACEOF
4509 /* confdefs.h.  */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h.  */
4516 main ()
4519   ;
4520   return 0;
4522 _ACEOF
4523 rm -f conftest.$ac_objext conftest$ac_exeext
4524 if { (ac_try="$ac_link"
4525 case "(($ac_try" in
4526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527   *) ac_try_echo=$ac_try;;
4528 esac
4529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4530   (eval "$ac_link") 2>conftest.er1
4531   ac_status=$?
4532   grep -v '^ *+' conftest.er1 >conftest.err
4533   rm -f conftest.er1
4534   cat conftest.err >&5
4535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536   (exit $ac_status); } && {
4537          test -z "$ac_c_werror_flag" ||
4538          test ! -s conftest.err
4539        } && test -s conftest$ac_exeext &&
4540        $as_test_x conftest$ac_exeext; then
4541   lt_cv_cc_needs_belf=yes
4542 else
4543   echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4546         lt_cv_cc_needs_belf=no
4549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4550       conftest$ac_exeext conftest.$ac_ext
4551      ac_ext=c
4552 ac_cpp='$CPP $CPPFLAGS'
4553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4558 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4559 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4560   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4561     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4562     CFLAGS="$SAVE_CFLAGS"
4563   fi
4564   ;;
4565 sparc*-*solaris*)
4566   # Find out which ABI we are using.
4567   echo 'int i;' > conftest.$ac_ext
4568   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4569   (eval $ac_compile) 2>&5
4570   ac_status=$?
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); }; then
4573     case `/usr/bin/file conftest.o` in
4574     *64-bit*)
4575       case $lt_cv_prog_gnu_ld in
4576       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4577       *)    LD="${LD-ld} -64" ;;
4578       esac
4579       ;;
4580     esac
4581   fi
4582   rm -rf conftest*
4583   ;;
4586 esac
4588 need_locks="$enable_libtool_lock"
4591 ac_ext=c
4592 ac_cpp='$CPP $CPPFLAGS'
4593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4597 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4598 # On Suns, sometimes $CPP names a directory.
4599 if test -n "$CPP" && test -d "$CPP"; then
4600   CPP=
4602 if test -z "$CPP"; then
4603   if test "${ac_cv_prog_CPP+set}" = set; then
4604   echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606       # Double quotes because CPP needs to be expanded
4607     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4608     do
4609       ac_preproc_ok=false
4610 for ac_c_preproc_warn_flag in '' yes
4612   # Use a header file that comes with gcc, so configuring glibc
4613   # with a fresh cross-compiler works.
4614   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4615   # <limits.h> exists even on freestanding compilers.
4616   # On the NeXT, cc -E runs the code through the compiler's parser,
4617   # not just through cpp. "Syntax error" is here to catch this case.
4618   cat >conftest.$ac_ext <<_ACEOF
4619 /* confdefs.h.  */
4620 _ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h.  */
4624 @%:@ifdef __STDC__
4625 @%:@ include <limits.h>
4626 @%:@else
4627 @%:@ include <assert.h>
4628 @%:@endif
4629                      Syntax error
4630 _ACEOF
4631 if { (ac_try="$ac_cpp conftest.$ac_ext"
4632 case "(($ac_try" in
4633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634   *) ac_try_echo=$ac_try;;
4635 esac
4636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4638   ac_status=$?
4639   grep -v '^ *+' conftest.er1 >conftest.err
4640   rm -f conftest.er1
4641   cat conftest.err >&5
4642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643   (exit $ac_status); } >/dev/null && {
4644          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4645          test ! -s conftest.err
4646        }; then
4647   :
4648 else
4649   echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.$ac_ext >&5
4652   # Broken: fails on valid input.
4653 continue
4656 rm -f conftest.err conftest.$ac_ext
4658   # OK, works on sane cases.  Now check whether nonexistent headers
4659   # can be detected and how.
4660   cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h.  */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h.  */
4666 @%:@include <ac_nonexistent.h>
4667 _ACEOF
4668 if { (ac_try="$ac_cpp conftest.$ac_ext"
4669 case "(($ac_try" in
4670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4671   *) ac_try_echo=$ac_try;;
4672 esac
4673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4674   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4675   ac_status=$?
4676   grep -v '^ *+' conftest.er1 >conftest.err
4677   rm -f conftest.er1
4678   cat conftest.err >&5
4679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680   (exit $ac_status); } >/dev/null && {
4681          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4682          test ! -s conftest.err
4683        }; then
4684   # Broken: success on invalid input.
4685 continue
4686 else
4687   echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4690   # Passes both tests.
4691 ac_preproc_ok=:
4692 break
4695 rm -f conftest.err conftest.$ac_ext
4697 done
4698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4699 rm -f conftest.err conftest.$ac_ext
4700 if $ac_preproc_ok; then
4701   break
4704     done
4705     ac_cv_prog_CPP=$CPP
4706   
4708   CPP=$ac_cv_prog_CPP
4709 else
4710   ac_cv_prog_CPP=$CPP
4712 { echo "$as_me:$LINENO: result: $CPP" >&5
4713 echo "${ECHO_T}$CPP" >&6; }
4714 ac_preproc_ok=false
4715 for ac_c_preproc_warn_flag in '' yes
4717   # Use a header file that comes with gcc, so configuring glibc
4718   # with a fresh cross-compiler works.
4719   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4720   # <limits.h> exists even on freestanding compilers.
4721   # On the NeXT, cc -E runs the code through the compiler's parser,
4722   # not just through cpp. "Syntax error" is here to catch this case.
4723   cat >conftest.$ac_ext <<_ACEOF
4724 /* confdefs.h.  */
4725 _ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h.  */
4729 @%:@ifdef __STDC__
4730 @%:@ include <limits.h>
4731 @%:@else
4732 @%:@ include <assert.h>
4733 @%:@endif
4734                      Syntax error
4735 _ACEOF
4736 if { (ac_try="$ac_cpp conftest.$ac_ext"
4737 case "(($ac_try" in
4738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739   *) ac_try_echo=$ac_try;;
4740 esac
4741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4742   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4743   ac_status=$?
4744   grep -v '^ *+' conftest.er1 >conftest.err
4745   rm -f conftest.er1
4746   cat conftest.err >&5
4747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748   (exit $ac_status); } >/dev/null && {
4749          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4750          test ! -s conftest.err
4751        }; then
4752   :
4753 else
4754   echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4757   # Broken: fails on valid input.
4758 continue
4761 rm -f conftest.err conftest.$ac_ext
4763   # OK, works on sane cases.  Now check whether nonexistent headers
4764   # can be detected and how.
4765   cat >conftest.$ac_ext <<_ACEOF
4766 /* confdefs.h.  */
4767 _ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h.  */
4771 @%:@include <ac_nonexistent.h>
4772 _ACEOF
4773 if { (ac_try="$ac_cpp conftest.$ac_ext"
4774 case "(($ac_try" in
4775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776   *) ac_try_echo=$ac_try;;
4777 esac
4778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4779   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4780   ac_status=$?
4781   grep -v '^ *+' conftest.er1 >conftest.err
4782   rm -f conftest.er1
4783   cat conftest.err >&5
4784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785   (exit $ac_status); } >/dev/null && {
4786          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4787          test ! -s conftest.err
4788        }; then
4789   # Broken: success on invalid input.
4790 continue
4791 else
4792   echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4795   # Passes both tests.
4796 ac_preproc_ok=:
4797 break
4800 rm -f conftest.err conftest.$ac_ext
4802 done
4803 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4804 rm -f conftest.err conftest.$ac_ext
4805 if $ac_preproc_ok; then
4806   :
4807 else
4808   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4809 See \`config.log' for more details." >&5
4810 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4811 See \`config.log' for more details." >&2;}
4812    { (exit 1); exit 1; }; }
4815 ac_ext=c
4816 ac_cpp='$CPP $CPPFLAGS'
4817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4822 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4823 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4824 if test "${ac_cv_header_stdc+set}" = set; then
4825   echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827   cat >conftest.$ac_ext <<_ACEOF
4828 /* confdefs.h.  */
4829 _ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h.  */
4833 #include <stdlib.h>
4834 #include <stdarg.h>
4835 #include <string.h>
4836 #include <float.h>
4839 main ()
4842   ;
4843   return 0;
4845 _ACEOF
4846 rm -f conftest.$ac_objext
4847 if { (ac_try="$ac_compile"
4848 case "(($ac_try" in
4849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850   *) ac_try_echo=$ac_try;;
4851 esac
4852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4853   (eval "$ac_compile") 2>conftest.er1
4854   ac_status=$?
4855   grep -v '^ *+' conftest.er1 >conftest.err
4856   rm -f conftest.er1
4857   cat conftest.err >&5
4858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859   (exit $ac_status); } && {
4860          test -z "$ac_c_werror_flag" ||
4861          test ! -s conftest.err
4862        } && test -s conftest.$ac_objext; then
4863   ac_cv_header_stdc=yes
4864 else
4865   echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4868         ac_cv_header_stdc=no
4871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873 if test $ac_cv_header_stdc = yes; then
4874   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4875   cat >conftest.$ac_ext <<_ACEOF
4876 /* confdefs.h.  */
4877 _ACEOF
4878 cat confdefs.h >>conftest.$ac_ext
4879 cat >>conftest.$ac_ext <<_ACEOF
4880 /* end confdefs.h.  */
4881 #include <string.h>
4883 _ACEOF
4884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4885   $EGREP "memchr" >/dev/null 2>&1; then
4886   :
4887 else
4888   ac_cv_header_stdc=no
4890 rm -f conftest*
4894 if test $ac_cv_header_stdc = yes; then
4895   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4896   cat >conftest.$ac_ext <<_ACEOF
4897 /* confdefs.h.  */
4898 _ACEOF
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h.  */
4902 #include <stdlib.h>
4904 _ACEOF
4905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4906   $EGREP "free" >/dev/null 2>&1; then
4907   :
4908 else
4909   ac_cv_header_stdc=no
4911 rm -f conftest*
4915 if test $ac_cv_header_stdc = yes; then
4916   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4917   if test "$cross_compiling" = yes; then
4918   :
4919 else
4920   cat >conftest.$ac_ext <<_ACEOF
4921 /* confdefs.h.  */
4922 _ACEOF
4923 cat confdefs.h >>conftest.$ac_ext
4924 cat >>conftest.$ac_ext <<_ACEOF
4925 /* end confdefs.h.  */
4926 #include <ctype.h>
4927 #include <stdlib.h>
4928 #if ((' ' & 0x0FF) == 0x020)
4929 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4930 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4931 #else
4932 # define ISLOWER(c) \
4933                    (('a' <= (c) && (c) <= 'i') \
4934                      || ('j' <= (c) && (c) <= 'r') \
4935                      || ('s' <= (c) && (c) <= 'z'))
4936 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4937 #endif
4939 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4941 main ()
4943   int i;
4944   for (i = 0; i < 256; i++)
4945     if (XOR (islower (i), ISLOWER (i))
4946         || toupper (i) != TOUPPER (i))
4947       return 2;
4948   return 0;
4950 _ACEOF
4951 rm -f conftest$ac_exeext
4952 if { (ac_try="$ac_link"
4953 case "(($ac_try" in
4954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955   *) ac_try_echo=$ac_try;;
4956 esac
4957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4958   (eval "$ac_link") 2>&5
4959   ac_status=$?
4960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4962   { (case "(($ac_try" in
4963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964   *) ac_try_echo=$ac_try;;
4965 esac
4966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4967   (eval "$ac_try") 2>&5
4968   ac_status=$?
4969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); }; }; then
4971   :
4972 else
4973   echo "$as_me: program exited with status $ac_status" >&5
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4977 ( exit $ac_status )
4978 ac_cv_header_stdc=no
4980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4986 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4987 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4988 if test $ac_cv_header_stdc = yes; then
4989   
4990 cat >>confdefs.h <<\_ACEOF
4991 @%:@define STDC_HEADERS 1
4992 _ACEOF
4996 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5006 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5007                   inttypes.h stdint.h unistd.h
5009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5013   echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015   cat >conftest.$ac_ext <<_ACEOF
5016 /* confdefs.h.  */
5017 _ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h.  */
5021 $ac_includes_default
5023 @%:@include <$ac_header>
5024 _ACEOF
5025 rm -f conftest.$ac_objext
5026 if { (ac_try="$ac_compile"
5027 case "(($ac_try" in
5028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029   *) ac_try_echo=$ac_try;;
5030 esac
5031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5032   (eval "$ac_compile") 2>conftest.er1
5033   ac_status=$?
5034   grep -v '^ *+' conftest.er1 >conftest.err
5035   rm -f conftest.er1
5036   cat conftest.err >&5
5037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038   (exit $ac_status); } && {
5039          test -z "$ac_c_werror_flag" ||
5040          test ! -s conftest.err
5041        } && test -s conftest.$ac_objext; then
5042   eval "$as_ac_Header=yes"
5043 else
5044   echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5047         eval "$as_ac_Header=no"
5050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052 ac_res=`eval echo '${'$as_ac_Header'}'`
5053                { echo "$as_me:$LINENO: result: $ac_res" >&5
5054 echo "${ECHO_T}$ac_res" >&6; }
5055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5056   cat >>confdefs.h <<_ACEOF
5057 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5058 _ACEOF
5062 done
5066 for ac_header in dlfcn.h
5068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5070   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5073   echo $ECHO_N "(cached) $ECHO_C" >&6
5075 ac_res=`eval echo '${'$as_ac_Header'}'`
5076                { echo "$as_me:$LINENO: result: $ac_res" >&5
5077 echo "${ECHO_T}$ac_res" >&6; }
5078 else
5079   # Is the header compilable?
5080 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5082 cat >conftest.$ac_ext <<_ACEOF
5083 /* confdefs.h.  */
5084 _ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h.  */
5088 $ac_includes_default
5089 @%:@include <$ac_header>
5090 _ACEOF
5091 rm -f conftest.$ac_objext
5092 if { (ac_try="$ac_compile"
5093 case "(($ac_try" in
5094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095   *) ac_try_echo=$ac_try;;
5096 esac
5097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098   (eval "$ac_compile") 2>conftest.er1
5099   ac_status=$?
5100   grep -v '^ *+' conftest.er1 >conftest.err
5101   rm -f conftest.er1
5102   cat conftest.err >&5
5103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104   (exit $ac_status); } && {
5105          test -z "$ac_c_werror_flag" ||
5106          test ! -s conftest.err
5107        } && test -s conftest.$ac_objext; then
5108   ac_header_compiler=yes
5109 else
5110   echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5113         ac_header_compiler=no
5116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5118 echo "${ECHO_T}$ac_header_compiler" >&6; }
5120 # Is the header present?
5121 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5123 cat >conftest.$ac_ext <<_ACEOF
5124 /* confdefs.h.  */
5125 _ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h.  */
5129 @%:@include <$ac_header>
5130 _ACEOF
5131 if { (ac_try="$ac_cpp conftest.$ac_ext"
5132 case "(($ac_try" in
5133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5134   *) ac_try_echo=$ac_try;;
5135 esac
5136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5137   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5138   ac_status=$?
5139   grep -v '^ *+' conftest.er1 >conftest.err
5140   rm -f conftest.er1
5141   cat conftest.err >&5
5142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143   (exit $ac_status); } >/dev/null && {
5144          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5145          test ! -s conftest.err
5146        }; then
5147   ac_header_preproc=yes
5148 else
5149   echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5152   ac_header_preproc=no
5155 rm -f conftest.err conftest.$ac_ext
5156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5157 echo "${ECHO_T}$ac_header_preproc" >&6; }
5159 # So?  What about this header?
5160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5161   yes:no: )
5162     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5164     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5166     ac_header_preproc=yes
5167     ;;
5168   no:yes:* )
5169     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5171     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5172 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5173     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5175     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5176 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5179     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5181     
5182     ;;
5183 esac
5184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5187   echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189   eval "$as_ac_Header=\$ac_header_preproc"
5191 ac_res=`eval echo '${'$as_ac_Header'}'`
5192                { echo "$as_me:$LINENO: result: $ac_res" >&5
5193 echo "${ECHO_T}$ac_res" >&6; }
5196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5197   cat >>confdefs.h <<_ACEOF
5198 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5199 _ACEOF
5203 done
5205 ac_ext=cpp
5206 ac_cpp='$CXXCPP $CPPFLAGS'
5207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5210 if test -z "$CXX"; then
5211   if test -n "$CCC"; then
5212     CXX=$CCC
5213   else
5214     if test -n "$ac_tool_prefix"; then
5215   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5216   do
5217     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5218 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5221 if test "${ac_cv_prog_CXX+set}" = set; then
5222   echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224   if test -n "$CXX"; then
5225   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5226 else
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5230   IFS=$as_save_IFS
5231   test -z "$as_dir" && as_dir=.
5232   for ac_exec_ext in '' $ac_executable_extensions; do
5233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236     break 2
5237   fi
5238 done
5239 done
5240 IFS=$as_save_IFS
5244 CXX=$ac_cv_prog_CXX
5245 if test -n "$CXX"; then
5246   { echo "$as_me:$LINENO: result: $CXX" >&5
5247 echo "${ECHO_T}$CXX" >&6; }
5248 else
5249   { echo "$as_me:$LINENO: result: no" >&5
5250 echo "${ECHO_T}no" >&6; }
5254     test -n "$CXX" && break
5255   done
5257 if test -z "$CXX"; then
5258   ac_ct_CXX=$CXX
5259   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5261   # Extract the first word of "$ac_prog", so it can be a program name with args.
5262 set dummy $ac_prog; ac_word=$2
5263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5265 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5266   echo $ECHO_N "(cached) $ECHO_C" >&6
5267 else
5268   if test -n "$ac_ct_CXX"; then
5269   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5270 else
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5274   IFS=$as_save_IFS
5275   test -z "$as_dir" && as_dir=.
5276   for ac_exec_ext in '' $ac_executable_extensions; do
5277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5278     ac_cv_prog_ac_ct_CXX="$ac_prog"
5279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5280     break 2
5281   fi
5282 done
5283 done
5284 IFS=$as_save_IFS
5288 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5289 if test -n "$ac_ct_CXX"; then
5290   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5291 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5292 else
5293   { echo "$as_me:$LINENO: result: no" >&5
5294 echo "${ECHO_T}no" >&6; }
5298   test -n "$ac_ct_CXX" && break
5299 done
5301   if test "x$ac_ct_CXX" = x; then
5302     CXX="g++"
5303   else
5304     case $cross_compiling:$ac_tool_warned in
5305 yes:)
5306 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5307 whose name does not start with the host triplet.  If you think this
5308 configuration is useful to you, please write to autoconf@gnu.org." >&5
5309 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5310 whose name does not start with the host triplet.  If you think this
5311 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5312 ac_tool_warned=yes ;;
5313 esac
5314     CXX=$ac_ct_CXX
5315   fi
5318   fi
5320 # Provide some information about the compiler.
5321 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5322 ac_compiler=`set X $ac_compile; echo $2`
5323 { (ac_try="$ac_compiler --version >&5"
5324 case "(($ac_try" in
5325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326   *) ac_try_echo=$ac_try;;
5327 esac
5328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5329   (eval "$ac_compiler --version >&5") 2>&5
5330   ac_status=$?
5331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332   (exit $ac_status); }
5333 { (ac_try="$ac_compiler -v >&5"
5334 case "(($ac_try" in
5335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336   *) ac_try_echo=$ac_try;;
5337 esac
5338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5339   (eval "$ac_compiler -v >&5") 2>&5
5340   ac_status=$?
5341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342   (exit $ac_status); }
5343 { (ac_try="$ac_compiler -V >&5"
5344 case "(($ac_try" in
5345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346   *) ac_try_echo=$ac_try;;
5347 esac
5348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349   (eval "$ac_compiler -V >&5") 2>&5
5350   ac_status=$?
5351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352   (exit $ac_status); }
5354 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5355 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5356 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5357   echo $ECHO_N "(cached) $ECHO_C" >&6
5358 else
5359   cat >conftest.$ac_ext <<_ACEOF
5360 /* confdefs.h.  */
5361 _ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h.  */
5367 main ()
5369 #ifndef __GNUC__
5370        choke me
5371 #endif
5373   ;
5374   return 0;
5376 _ACEOF
5377 rm -f conftest.$ac_objext
5378 if { (ac_try="$ac_compile"
5379 case "(($ac_try" in
5380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381   *) ac_try_echo=$ac_try;;
5382 esac
5383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384   (eval "$ac_compile") 2>conftest.er1
5385   ac_status=$?
5386   grep -v '^ *+' conftest.er1 >conftest.err
5387   rm -f conftest.er1
5388   cat conftest.err >&5
5389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390   (exit $ac_status); } && {
5391          test -z "$ac_cxx_werror_flag" ||
5392          test ! -s conftest.err
5393        } && test -s conftest.$ac_objext; then
5394   ac_compiler_gnu=yes
5395 else
5396   echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5399         ac_compiler_gnu=no
5402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5406 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5407 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5408 GXX=`test $ac_compiler_gnu = yes && echo yes`
5409 ac_test_CXXFLAGS=${CXXFLAGS+set}
5410 ac_save_CXXFLAGS=$CXXFLAGS
5411 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5412 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5413 if test "${ac_cv_prog_cxx_g+set}" = set; then
5414   echo $ECHO_N "(cached) $ECHO_C" >&6
5415 else
5416   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5417    ac_cxx_werror_flag=yes
5418    ac_cv_prog_cxx_g=no
5419    CXXFLAGS="-g"
5420    cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h.  */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h.  */
5428 main ()
5431   ;
5432   return 0;
5434 _ACEOF
5435 rm -f conftest.$ac_objext
5436 if { (ac_try="$ac_compile"
5437 case "(($ac_try" in
5438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439   *) ac_try_echo=$ac_try;;
5440 esac
5441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442   (eval "$ac_compile") 2>conftest.er1
5443   ac_status=$?
5444   grep -v '^ *+' conftest.er1 >conftest.err
5445   rm -f conftest.er1
5446   cat conftest.err >&5
5447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448   (exit $ac_status); } && {
5449          test -z "$ac_cxx_werror_flag" ||
5450          test ! -s conftest.err
5451        } && test -s conftest.$ac_objext; then
5452   ac_cv_prog_cxx_g=yes
5453 else
5454   echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5457         CXXFLAGS=""
5458       cat >conftest.$ac_ext <<_ACEOF
5459 /* confdefs.h.  */
5460 _ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h.  */
5466 main ()
5469   ;
5470   return 0;
5472 _ACEOF
5473 rm -f conftest.$ac_objext
5474 if { (ac_try="$ac_compile"
5475 case "(($ac_try" in
5476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477   *) ac_try_echo=$ac_try;;
5478 esac
5479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5480   (eval "$ac_compile") 2>conftest.er1
5481   ac_status=$?
5482   grep -v '^ *+' conftest.er1 >conftest.err
5483   rm -f conftest.er1
5484   cat conftest.err >&5
5485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486   (exit $ac_status); } && {
5487          test -z "$ac_cxx_werror_flag" ||
5488          test ! -s conftest.err
5489        } && test -s conftest.$ac_objext; then
5490   :
5491 else
5492   echo "$as_me: failed program was:" >&5
5493 sed 's/^/| /' conftest.$ac_ext >&5
5495         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5496          CXXFLAGS="-g"
5497          cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h.  */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h.  */
5505 main ()
5508   ;
5509   return 0;
5511 _ACEOF
5512 rm -f conftest.$ac_objext
5513 if { (ac_try="$ac_compile"
5514 case "(($ac_try" in
5515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516   *) ac_try_echo=$ac_try;;
5517 esac
5518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519   (eval "$ac_compile") 2>conftest.er1
5520   ac_status=$?
5521   grep -v '^ *+' conftest.er1 >conftest.err
5522   rm -f conftest.er1
5523   cat conftest.err >&5
5524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525   (exit $ac_status); } && {
5526          test -z "$ac_cxx_werror_flag" ||
5527          test ! -s conftest.err
5528        } && test -s conftest.$ac_objext; then
5529   ac_cv_prog_cxx_g=yes
5530 else
5531   echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5534         
5537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5546 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5547 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5548 if test "$ac_test_CXXFLAGS" = set; then
5549   CXXFLAGS=$ac_save_CXXFLAGS
5550 elif test $ac_cv_prog_cxx_g = yes; then
5551   if test "$GXX" = yes; then
5552     CXXFLAGS="-g -O2"
5553   else
5554     CXXFLAGS="-g"
5555   fi
5556 else
5557   if test "$GXX" = yes; then
5558     CXXFLAGS="-O2"
5559   else
5560     CXXFLAGS=
5561   fi
5563 ac_ext=cpp
5564 ac_cpp='$CXXCPP $CPPFLAGS'
5565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5569 depcc="$CXX"  am_compiler_list=
5571 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5572 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5573 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5574   echo $ECHO_N "(cached) $ECHO_C" >&6
5575 else
5576   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5577   # We make a subdir and do the tests there.  Otherwise we can end up
5578   # making bogus files that we don't know about and never remove.  For
5579   # instance it was reported that on HP-UX the gcc test will end up
5580   # making a dummy file named `D' -- because `-MD' means `put the output
5581   # in D'.
5582   mkdir conftest.dir
5583   # Copy depcomp to subdir because otherwise we won't find it if we're
5584   # using a relative directory.
5585   cp "$am_depcomp" conftest.dir
5586   cd conftest.dir
5587   # We will build objects and dependencies in a subdirectory because
5588   # it helps to detect inapplicable dependency modes.  For instance
5589   # both Tru64's cc and ICC support -MD to output dependencies as a
5590   # side effect of compilation, but ICC will put the dependencies in
5591   # the current directory while Tru64 will put them in the object
5592   # directory.
5593   mkdir sub
5595   am_cv_CXX_dependencies_compiler_type=none
5596   if test "$am_compiler_list" = ""; then
5597      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5598   fi
5599   for depmode in $am_compiler_list; do
5600     # Setup a source with many dependencies, because some compilers
5601     # like to wrap large dependency lists on column 80 (with \), and
5602     # we should not choose a depcomp mode which is confused by this.
5603     #
5604     # We need to recreate these files for each test, as the compiler may
5605     # overwrite some of them when testing with obscure command lines.
5606     # This happens at least with the AIX C compiler.
5607     : > sub/conftest.c
5608     for i in 1 2 3 4 5 6; do
5609       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5610       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5611       # Solaris 8's {/usr,}/bin/sh.
5612       touch sub/conftst$i.h
5613     done
5614     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5616     case $depmode in
5617     nosideeffect)
5618       # after this tag, mechanisms are not by side-effect, so they'll
5619       # only be used when explicitly requested
5620       if test "x$enable_dependency_tracking" = xyes; then
5621         continue
5622       else
5623         break
5624       fi
5625       ;;
5626     none) break ;;
5627     esac
5628     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5629     # mode.  It turns out that the SunPro C++ compiler does not properly
5630     # handle `-M -o', and we need to detect this.
5631     if depmode=$depmode \
5632        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5633        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5634        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5635          >/dev/null 2>conftest.err &&
5636        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5637        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5638        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5639        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5640       # icc doesn't choke on unknown options, it will just issue warnings
5641       # or remarks (even with -Werror).  So we grep stderr for any message
5642       # that says an option was ignored or not supported.
5643       # When given -MP, icc 7.0 and 7.1 complain thusly:
5644       #   icc: Command line warning: ignoring option '-M'; no argument required
5645       # The diagnosis changed in icc 8.0:
5646       #   icc: Command line remark: option '-MP' not supported
5647       if (grep 'ignoring option' conftest.err ||
5648           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5649         am_cv_CXX_dependencies_compiler_type=$depmode
5650         break
5651       fi
5652     fi
5653   done
5655   cd ..
5656   rm -rf conftest.dir
5657 else
5658   am_cv_CXX_dependencies_compiler_type=none
5662 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5663 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5664 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5666  if 
5667   test "x$enable_dependency_tracking" != xno \
5668   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5669   am__fastdepCXX_TRUE=
5670   am__fastdepCXX_FALSE='#'
5671 else
5672   am__fastdepCXX_TRUE='#'
5673   am__fastdepCXX_FALSE=
5679 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5680     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5681     (test "X$CXX" != "Xg++"))) ; then
5682   ac_ext=cpp
5683 ac_cpp='$CXXCPP $CPPFLAGS'
5684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5687 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5688 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5689 if test -z "$CXXCPP"; then
5690   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5691   echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693       # Double quotes because CXXCPP needs to be expanded
5694     for CXXCPP in "$CXX -E" "/lib/cpp"
5695     do
5696       ac_preproc_ok=false
5697 for ac_cxx_preproc_warn_flag in '' yes
5699   # Use a header file that comes with gcc, so configuring glibc
5700   # with a fresh cross-compiler works.
5701   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5702   # <limits.h> exists even on freestanding compilers.
5703   # On the NeXT, cc -E runs the code through the compiler's parser,
5704   # not just through cpp. "Syntax error" is here to catch this case.
5705   cat >conftest.$ac_ext <<_ACEOF
5706 /* confdefs.h.  */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h.  */
5711 @%:@ifdef __STDC__
5712 @%:@ include <limits.h>
5713 @%:@else
5714 @%:@ include <assert.h>
5715 @%:@endif
5716                      Syntax error
5717 _ACEOF
5718 if { (ac_try="$ac_cpp conftest.$ac_ext"
5719 case "(($ac_try" in
5720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721   *) ac_try_echo=$ac_try;;
5722 esac
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5725   ac_status=$?
5726   grep -v '^ *+' conftest.er1 >conftest.err
5727   rm -f conftest.er1
5728   cat conftest.err >&5
5729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730   (exit $ac_status); } >/dev/null && {
5731          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5732          test ! -s conftest.err
5733        }; then
5734   :
5735 else
5736   echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5739   # Broken: fails on valid input.
5740 continue
5743 rm -f conftest.err conftest.$ac_ext
5745   # OK, works on sane cases.  Now check whether nonexistent headers
5746   # can be detected and how.
5747   cat >conftest.$ac_ext <<_ACEOF
5748 /* confdefs.h.  */
5749 _ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h.  */
5753 @%:@include <ac_nonexistent.h>
5754 _ACEOF
5755 if { (ac_try="$ac_cpp conftest.$ac_ext"
5756 case "(($ac_try" in
5757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758   *) ac_try_echo=$ac_try;;
5759 esac
5760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5762   ac_status=$?
5763   grep -v '^ *+' conftest.er1 >conftest.err
5764   rm -f conftest.er1
5765   cat conftest.err >&5
5766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767   (exit $ac_status); } >/dev/null && {
5768          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5769          test ! -s conftest.err
5770        }; then
5771   # Broken: success on invalid input.
5772 continue
5773 else
5774   echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5777   # Passes both tests.
5778 ac_preproc_ok=:
5779 break
5782 rm -f conftest.err conftest.$ac_ext
5784 done
5785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5786 rm -f conftest.err conftest.$ac_ext
5787 if $ac_preproc_ok; then
5788   break
5791     done
5792     ac_cv_prog_CXXCPP=$CXXCPP
5793   
5795   CXXCPP=$ac_cv_prog_CXXCPP
5796 else
5797   ac_cv_prog_CXXCPP=$CXXCPP
5799 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5800 echo "${ECHO_T}$CXXCPP" >&6; }
5801 ac_preproc_ok=false
5802 for ac_cxx_preproc_warn_flag in '' yes
5804   # Use a header file that comes with gcc, so configuring glibc
5805   # with a fresh cross-compiler works.
5806   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5807   # <limits.h> exists even on freestanding compilers.
5808   # On the NeXT, cc -E runs the code through the compiler's parser,
5809   # not just through cpp. "Syntax error" is here to catch this case.
5810   cat >conftest.$ac_ext <<_ACEOF
5811 /* confdefs.h.  */
5812 _ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h.  */
5816 @%:@ifdef __STDC__
5817 @%:@ include <limits.h>
5818 @%:@else
5819 @%:@ include <assert.h>
5820 @%:@endif
5821                      Syntax error
5822 _ACEOF
5823 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
5836          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5837          test ! -s conftest.err
5838        }; then
5839   :
5840 else
5841   echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5844   # Broken: fails on valid input.
5845 continue
5848 rm -f conftest.err conftest.$ac_ext
5850   # OK, works on sane cases.  Now check whether nonexistent headers
5851   # can be detected and how.
5852   cat >conftest.$ac_ext <<_ACEOF
5853 /* confdefs.h.  */
5854 _ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h.  */
5858 @%:@include <ac_nonexistent.h>
5859 _ACEOF
5860 if { (ac_try="$ac_cpp conftest.$ac_ext"
5861 case "(($ac_try" in
5862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863   *) ac_try_echo=$ac_try;;
5864 esac
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5867   ac_status=$?
5868   grep -v '^ *+' conftest.er1 >conftest.err
5869   rm -f conftest.er1
5870   cat conftest.err >&5
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); } >/dev/null && {
5873          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5874          test ! -s conftest.err
5875        }; then
5876   # Broken: success on invalid input.
5877 continue
5878 else
5879   echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5882   # Passes both tests.
5883 ac_preproc_ok=:
5884 break
5887 rm -f conftest.err conftest.$ac_ext
5889 done
5890 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5891 rm -f conftest.err conftest.$ac_ext
5892 if $ac_preproc_ok; then
5893   :
5894 else
5895   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5896 See \`config.log' for more details." >&5
5897 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5898 See \`config.log' for more details." >&2;}
5899    { (exit 1); exit 1; }; }
5902 ac_ext=cpp
5903 ac_cpp='$CXXCPP $CPPFLAGS'
5904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5911 ac_ext=f
5912 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5913 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5914 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5915 if test -n "$ac_tool_prefix"; then
5916   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
5917   do
5918     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5919 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5922 if test "${ac_cv_prog_F77+set}" = set; then
5923   echo $ECHO_N "(cached) $ECHO_C" >&6
5924 else
5925   if test -n "$F77"; then
5926   ac_cv_prog_F77="$F77" # Let the user override the test.
5927 else
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5931   IFS=$as_save_IFS
5932   test -z "$as_dir" && as_dir=.
5933   for ac_exec_ext in '' $ac_executable_extensions; do
5934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937     break 2
5938   fi
5939 done
5940 done
5941 IFS=$as_save_IFS
5945 F77=$ac_cv_prog_F77
5946 if test -n "$F77"; then
5947   { echo "$as_me:$LINENO: result: $F77" >&5
5948 echo "${ECHO_T}$F77" >&6; }
5949 else
5950   { echo "$as_me:$LINENO: result: no" >&5
5951 echo "${ECHO_T}no" >&6; }
5955     test -n "$F77" && break
5956   done
5958 if test -z "$F77"; then
5959   ac_ct_F77=$F77
5960   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
5962   # Extract the first word of "$ac_prog", so it can be a program name with args.
5963 set dummy $ac_prog; ac_word=$2
5964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5966 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5967   echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969   if test -n "$ac_ct_F77"; then
5970   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5971 else
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 for as_dir in $PATH
5975   IFS=$as_save_IFS
5976   test -z "$as_dir" && as_dir=.
5977   for ac_exec_ext in '' $ac_executable_extensions; do
5978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5979     ac_cv_prog_ac_ct_F77="$ac_prog"
5980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981     break 2
5982   fi
5983 done
5984 done
5985 IFS=$as_save_IFS
5989 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5990 if test -n "$ac_ct_F77"; then
5991   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5992 echo "${ECHO_T}$ac_ct_F77" >&6; }
5993 else
5994   { echo "$as_me:$LINENO: result: no" >&5
5995 echo "${ECHO_T}no" >&6; }
5999   test -n "$ac_ct_F77" && break
6000 done
6002   if test "x$ac_ct_F77" = x; then
6003     F77=""
6004   else
6005     case $cross_compiling:$ac_tool_warned in
6006 yes:)
6007 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6008 whose name does not start with the host triplet.  If you think this
6009 configuration is useful to you, please write to autoconf@gnu.org." >&5
6010 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6011 whose name does not start with the host triplet.  If you think this
6012 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6013 ac_tool_warned=yes ;;
6014 esac
6015     F77=$ac_ct_F77
6016   fi
6020 # Provide some information about the compiler.
6021 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6022 ac_compiler=`set X $ac_compile; echo $2`
6023 { (ac_try="$ac_compiler --version >&5"
6024 case "(($ac_try" in
6025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026   *) ac_try_echo=$ac_try;;
6027 esac
6028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029   (eval "$ac_compiler --version >&5") 2>&5
6030   ac_status=$?
6031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032   (exit $ac_status); }
6033 { (ac_try="$ac_compiler -v >&5"
6034 case "(($ac_try" in
6035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036   *) ac_try_echo=$ac_try;;
6037 esac
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039   (eval "$ac_compiler -v >&5") 2>&5
6040   ac_status=$?
6041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042   (exit $ac_status); }
6043 { (ac_try="$ac_compiler -V >&5"
6044 case "(($ac_try" in
6045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046   *) ac_try_echo=$ac_try;;
6047 esac
6048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049   (eval "$ac_compiler -V >&5") 2>&5
6050   ac_status=$?
6051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052   (exit $ac_status); }
6053 rm -f a.out
6055 # If we don't use `.F' as extension, the preprocessor is not run on the
6056 # input file.  (Note that this only needs to work for GNU compilers.)
6057 ac_save_ext=$ac_ext
6058 ac_ext=F
6059 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6060 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6061 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6062   echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064   cat >conftest.$ac_ext <<_ACEOF
6065       program main
6066 #ifndef __GNUC__
6067        choke me
6068 #endif
6070       end
6071 _ACEOF
6072 rm -f conftest.$ac_objext
6073 if { (ac_try="$ac_compile"
6074 case "(($ac_try" in
6075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076   *) ac_try_echo=$ac_try;;
6077 esac
6078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6079   (eval "$ac_compile") 2>conftest.er1
6080   ac_status=$?
6081   grep -v '^ *+' conftest.er1 >conftest.err
6082   rm -f conftest.er1
6083   cat conftest.err >&5
6084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085   (exit $ac_status); } && {
6086          test -z "$ac_f77_werror_flag" ||
6087          test ! -s conftest.err
6088        } && test -s conftest.$ac_objext; then
6089   ac_compiler_gnu=yes
6090 else
6091   echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6094         ac_compiler_gnu=no
6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6101 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6102 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6103 ac_ext=$ac_save_ext
6104 ac_test_FFLAGS=${FFLAGS+set}
6105 ac_save_FFLAGS=$FFLAGS
6106 FFLAGS=
6107 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6108 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6109 if test "${ac_cv_prog_f77_g+set}" = set; then
6110   echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112   FFLAGS=-g
6113 cat >conftest.$ac_ext <<_ACEOF
6114       program main
6116       end
6117 _ACEOF
6118 rm -f conftest.$ac_objext
6119 if { (ac_try="$ac_compile"
6120 case "(($ac_try" in
6121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122   *) ac_try_echo=$ac_try;;
6123 esac
6124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125   (eval "$ac_compile") 2>conftest.er1
6126   ac_status=$?
6127   grep -v '^ *+' conftest.er1 >conftest.err
6128   rm -f conftest.er1
6129   cat conftest.err >&5
6130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131   (exit $ac_status); } && {
6132          test -z "$ac_f77_werror_flag" ||
6133          test ! -s conftest.err
6134        } && test -s conftest.$ac_objext; then
6135   ac_cv_prog_f77_g=yes
6136 else
6137   echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6140         ac_cv_prog_f77_g=no
6143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6146 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6147 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6148 if test "$ac_test_FFLAGS" = set; then
6149   FFLAGS=$ac_save_FFLAGS
6150 elif test $ac_cv_prog_f77_g = yes; then
6151   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6152     FFLAGS="-g -O2"
6153   else
6154     FFLAGS="-g"
6155   fi
6156 else
6157   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6158     FFLAGS="-O2"
6159   else
6160     FFLAGS=
6161   fi
6164 G77=`test $ac_compiler_gnu = yes && echo yes`
6165 ac_ext=c
6166 ac_cpp='$CPP $CPPFLAGS'
6167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6173 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6175 # find the maximum length of command line arguments
6176 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6177 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6178 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6179   echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181     i=0
6182   teststring="ABCD"
6184   case $build_os in
6185   msdosdjgpp*)
6186     # On DJGPP, this test can blow up pretty badly due to problems in libc
6187     # (any single argument exceeding 2000 bytes causes a buffer overrun
6188     # during glob expansion).  Even if it were fixed, the result of this
6189     # check would be larger than it should be.
6190     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6191     ;;
6193   gnu*)
6194     # Under GNU Hurd, this test is not required because there is
6195     # no limit to the length of command line arguments.
6196     # Libtool will interpret -1 as no limit whatsoever
6197     lt_cv_sys_max_cmd_len=-1;
6198     ;;
6200   cygwin* | mingw*)
6201     # On Win9x/ME, this test blows up -- it succeeds, but takes
6202     # about 5 minutes as the teststring grows exponentially.
6203     # Worse, since 9x/ME are not pre-emptively multitasking,
6204     # you end up with a "frozen" computer, even though with patience
6205     # the test eventually succeeds (with a max line length of 256k).
6206     # Instead, let's just punt: use the minimum linelength reported by
6207     # all of the supported platforms: 8192 (on NT/2K/XP).
6208     lt_cv_sys_max_cmd_len=8192;
6209     ;;
6211   amigaos*)
6212     # On AmigaOS with pdksh, this test takes hours, literally.
6213     # So we just punt and use a minimum line length of 8192.
6214     lt_cv_sys_max_cmd_len=8192;
6215     ;;
6217   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6218     # This has been around since 386BSD, at least.  Likely further.
6219     if test -x /sbin/sysctl; then
6220       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6221     elif test -x /usr/sbin/sysctl; then
6222       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6223     else
6224       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6225     fi
6226     # And add a safety zone
6227     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6228     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6229     ;;
6231   interix*)
6232     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6233     lt_cv_sys_max_cmd_len=196608
6234     ;;
6236   osf*)
6237     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6238     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6239     # nice to cause kernel panics so lets avoid the loop below.
6240     # First set a reasonable default.
6241     lt_cv_sys_max_cmd_len=16384
6242     #
6243     if test -x /sbin/sysconfig; then
6244       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6245         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6246       esac
6247     fi
6248     ;;
6249   sco3.2v5*)
6250     lt_cv_sys_max_cmd_len=102400
6251     ;;
6252   sysv5* | sco5v6* | sysv4.2uw2*)
6253     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6254     if test -n "$kargmax"; then
6255       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6256     else
6257       lt_cv_sys_max_cmd_len=32768
6258     fi
6259     ;;
6260   *)
6261     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6262     if test -n "$lt_cv_sys_max_cmd_len"; then
6263       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6264       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6265     else
6266       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6267       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6268                = "XX$teststring") >/dev/null 2>&1 &&
6269               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6270               lt_cv_sys_max_cmd_len=$new_result &&
6271               test $i != 17 # 1/2 MB should be enough
6272       do
6273         i=`expr $i + 1`
6274         teststring=$teststring$teststring
6275       done
6276       teststring=
6277       # Add a significant safety factor because C++ compilers can tack on massive
6278       # amounts of additional arguments before passing them to the linker.
6279       # It appears as though 1/2 is a usable value.
6280       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6281     fi
6282     ;;
6283   esac
6287 if test -n $lt_cv_sys_max_cmd_len ; then
6288   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6289 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6290 else
6291   { echo "$as_me:$LINENO: result: none" >&5
6292 echo "${ECHO_T}none" >&6; }
6299 # Check for command to grab the raw symbol name followed by C symbol from nm.
6300 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6301 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6302 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6303   echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305   
6306 # These are sane defaults that work on at least a few old systems.
6307 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6309 # Character class describing NM global symbol codes.
6310 symcode='[BCDEGRST]'
6312 # Regexp to match symbols that can be accessed directly from C.
6313 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6315 # Transform an extracted symbol line into a proper C declaration
6316 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6318 # Transform an extracted symbol line into symbol name and symbol address
6319 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6321 # Define system-specific variables.
6322 case $host_os in
6323 aix*)
6324   symcode='[BCDT]'
6325   ;;
6326 cygwin* | mingw* | pw32*)
6327   symcode='[ABCDGISTW]'
6328   ;;
6329 hpux*) # Its linker distinguishes data from code symbols
6330   if test "$host_cpu" = ia64; then
6331     symcode='[ABCDEGRST]'
6332   fi
6333   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6334   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'"
6335   ;;
6336 linux* | k*bsd*-gnu)
6337   if test "$host_cpu" = ia64; then
6338     symcode='[ABCDGIRSTW]'
6339     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6340     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'"
6341   fi
6342   ;;
6343 irix* | nonstopux*)
6344   symcode='[BCDEGRST]'
6345   ;;
6346 osf*)
6347   symcode='[BCDEGQRST]'
6348   ;;
6349 solaris*)
6350   symcode='[BDRT]'
6351   ;;
6352 sco3.2v5*)
6353   symcode='[DT]'
6354   ;;
6355 sysv4.2uw2*)
6356   symcode='[DT]'
6357   ;;
6358 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6359   symcode='[ABDT]'
6360   ;;
6361 sysv4)
6362   symcode='[DFNSTU]'
6363   ;;
6364 esac
6366 # Handle CRLF in mingw tool chain
6367 opt_cr=
6368 case $build_os in
6369 mingw*)
6370   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6371   ;;
6372 esac
6374 # If we're using GNU nm, then use its standard symbol codes.
6375 case `$NM -V 2>&1` in
6376 *GNU* | *'with BFD'*)
6377   symcode='[ABCDGIRSTW]' ;;
6378 esac
6380 # Try without a prefix undercore, then with it.
6381 for ac_symprfx in "" "_"; do
6383   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6384   symxfrm="\\1 $ac_symprfx\\2 \\2"
6386   # Write the raw and C identifiers.
6387   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6389   # Check to see that the pipe works correctly.
6390   pipe_works=no
6392   rm -f conftest*
6393   cat > conftest.$ac_ext <<EOF
6394 #ifdef __cplusplus
6395 extern "C" {
6396 #endif
6397 char nm_test_var;
6398 void nm_test_func(){}
6399 #ifdef __cplusplus
6401 #endif
6402 int main(){nm_test_var='a';nm_test_func();return(0);}
6405   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406   (eval $ac_compile) 2>&5
6407   ac_status=$?
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); }; then
6410     # Now try to grab the symbols.
6411     nlist=conftest.nm
6412     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6413   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6414   ac_status=$?
6415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416   (exit $ac_status); } && test -s "$nlist"; then
6417       # Try sorting and uniquifying the output.
6418       if sort "$nlist" | uniq > "$nlist"T; then
6419         mv -f "$nlist"T "$nlist"
6420       else
6421         rm -f "$nlist"T
6422       fi
6424       # Make sure that we snagged all the symbols we need.
6425       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6426         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6427           cat <<EOF > conftest.$ac_ext
6428 #ifdef __cplusplus
6429 extern "C" {
6430 #endif
6433           # Now generate the symbol file.
6434           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6436           cat <<EOF >> conftest.$ac_ext
6437 #if defined (__STDC__) && __STDC__
6438 # define lt_ptr_t void *
6439 #else
6440 # define lt_ptr_t char *
6441 # define const
6442 #endif
6444 /* The mapping between symbol names and symbols. */
6445 const struct {
6446   const char *name;
6447   lt_ptr_t address;
6449 lt_preloaded_symbols[] =
6452           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6453           cat <<\EOF >> conftest.$ac_ext
6454   {0, (lt_ptr_t) 0}
6457 #ifdef __cplusplus
6459 #endif
6461           # Now try linking the two files.
6462           mv conftest.$ac_objext conftstm.$ac_objext
6463           lt_save_LIBS="$LIBS"
6464           lt_save_CFLAGS="$CFLAGS"
6465           LIBS="conftstm.$ac_objext"
6466           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6467           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6468   (eval $ac_link) 2>&5
6469   ac_status=$?
6470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6472             pipe_works=yes
6473           fi
6474           LIBS="$lt_save_LIBS"
6475           CFLAGS="$lt_save_CFLAGS"
6476         else
6477           echo "cannot find nm_test_func in $nlist" >&5
6478         fi
6479       else
6480         echo "cannot find nm_test_var in $nlist" >&5
6481       fi
6482     else
6483       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6484     fi
6485   else
6486     echo "$progname: failed program was:" >&5
6487     cat conftest.$ac_ext >&5
6488   fi
6489   rm -f conftest* conftst*
6491   # Do not use the global_symbol_pipe unless it works.
6492   if test "$pipe_works" = yes; then
6493     break
6494   else
6495     lt_cv_sys_global_symbol_pipe=
6496   fi
6497 done
6501 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6502   lt_cv_sys_global_symbol_to_cdecl=
6504 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6505   { echo "$as_me:$LINENO: result: failed" >&5
6506 echo "${ECHO_T}failed" >&6; }
6507 else
6508   { echo "$as_me:$LINENO: result: ok" >&5
6509 echo "${ECHO_T}ok" >&6; }
6512 { echo "$as_me:$LINENO: checking for objdir" >&5
6513 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6514 if test "${lt_cv_objdir+set}" = set; then
6515   echo $ECHO_N "(cached) $ECHO_C" >&6
6516 else
6517   rm -f .libs 2>/dev/null
6518 mkdir .libs 2>/dev/null
6519 if test -d .libs; then
6520   lt_cv_objdir=.libs
6521 else
6522   # MS-DOS does not allow filenames that begin with a dot.
6523   lt_cv_objdir=_libs
6525 rmdir .libs 2>/dev/null
6527 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6528 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6529 objdir=$lt_cv_objdir
6535 case $host_os in
6536 aix3*)
6537   # AIX sometimes has problems with the GCC collect2 program.  For some
6538   # reason, if we set the COLLECT_NAMES environment variable, the problems
6539   # vanish in a puff of smoke.
6540   if test "X${COLLECT_NAMES+set}" != Xset; then
6541     COLLECT_NAMES=
6542     export COLLECT_NAMES
6543   fi
6544   ;;
6545 esac
6547 # Sed substitution that helps us do robust quoting.  It backslashifies
6548 # metacharacters that are still active within double-quoted strings.
6549 Xsed='sed -e 1s/^X//'
6550 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6552 # Same as above, but do not quote variable references.
6553 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6555 # Sed substitution to delay expansion of an escaped shell variable in a
6556 # double_quote_subst'ed string.
6557 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6559 # Sed substitution to avoid accidental globbing in evaled expressions
6560 no_glob_subst='s/\*/\\\*/g'
6562 # Constants:
6563 rm="rm -f"
6565 # Global variables:
6566 default_ofile=libtool
6567 can_build_shared=yes
6569 # All known linkers require a `.a' archive for static linking (except MSVC,
6570 # which needs '.lib').
6571 libext=a
6572 ltmain="$ac_aux_dir/ltmain.sh"
6573 ofile="$default_ofile"
6574 with_gnu_ld="$lt_cv_prog_gnu_ld"
6576 if test -n "$ac_tool_prefix"; then
6577   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6578 set dummy ${ac_tool_prefix}ar; ac_word=$2
6579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6581 if test "${ac_cv_prog_AR+set}" = set; then
6582   echo $ECHO_N "(cached) $ECHO_C" >&6
6583 else
6584   if test -n "$AR"; then
6585   ac_cv_prog_AR="$AR" # Let the user override the test.
6586 else
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 for as_dir in $PATH
6590   IFS=$as_save_IFS
6591   test -z "$as_dir" && as_dir=.
6592   for ac_exec_ext in '' $ac_executable_extensions; do
6593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6594     ac_cv_prog_AR="${ac_tool_prefix}ar"
6595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6596     break 2
6597   fi
6598 done
6599 done
6600 IFS=$as_save_IFS
6604 AR=$ac_cv_prog_AR
6605 if test -n "$AR"; then
6606   { echo "$as_me:$LINENO: result: $AR" >&5
6607 echo "${ECHO_T}$AR" >&6; }
6608 else
6609   { echo "$as_me:$LINENO: result: no" >&5
6610 echo "${ECHO_T}no" >&6; }
6615 if test -z "$ac_cv_prog_AR"; then
6616   ac_ct_AR=$AR
6617   # Extract the first word of "ar", so it can be a program name with args.
6618 set dummy ar; ac_word=$2
6619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6621 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6622   echo $ECHO_N "(cached) $ECHO_C" >&6
6623 else
6624   if test -n "$ac_ct_AR"; then
6625   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6626 else
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 for as_dir in $PATH
6630   IFS=$as_save_IFS
6631   test -z "$as_dir" && as_dir=.
6632   for ac_exec_ext in '' $ac_executable_extensions; do
6633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6634     ac_cv_prog_ac_ct_AR="ar"
6635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6636     break 2
6637   fi
6638 done
6639 done
6640 IFS=$as_save_IFS
6644 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6645 if test -n "$ac_ct_AR"; then
6646   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6647 echo "${ECHO_T}$ac_ct_AR" >&6; }
6648 else
6649   { echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6; }
6653   if test "x$ac_ct_AR" = x; then
6654     AR="false"
6655   else
6656     case $cross_compiling:$ac_tool_warned in
6657 yes:)
6658 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6659 whose name does not start with the host triplet.  If you think this
6660 configuration is useful to you, please write to autoconf@gnu.org." >&5
6661 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6662 whose name does not start with the host triplet.  If you think this
6663 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6664 ac_tool_warned=yes ;;
6665 esac
6666     AR=$ac_ct_AR
6667   fi
6668 else
6669   AR="$ac_cv_prog_AR"
6672 if test -n "$ac_tool_prefix"; then
6673   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6674 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677 if test "${ac_cv_prog_RANLIB+set}" = set; then
6678   echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680   if test -n "$RANLIB"; then
6681   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6686   IFS=$as_save_IFS
6687   test -z "$as_dir" && as_dir=.
6688   for ac_exec_ext in '' $ac_executable_extensions; do
6689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6692     break 2
6693   fi
6694 done
6695 done
6696 IFS=$as_save_IFS
6700 RANLIB=$ac_cv_prog_RANLIB
6701 if test -n "$RANLIB"; then
6702   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6703 echo "${ECHO_T}$RANLIB" >&6; }
6704 else
6705   { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6711 if test -z "$ac_cv_prog_RANLIB"; then
6712   ac_ct_RANLIB=$RANLIB
6713   # Extract the first word of "ranlib", so it can be a program name with args.
6714 set dummy ranlib; ac_word=$2
6715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6717 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6718   echo $ECHO_N "(cached) $ECHO_C" >&6
6719 else
6720   if test -n "$ac_ct_RANLIB"; then
6721   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6722 else
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6726   IFS=$as_save_IFS
6727   test -z "$as_dir" && as_dir=.
6728   for ac_exec_ext in '' $ac_executable_extensions; do
6729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6730     ac_cv_prog_ac_ct_RANLIB="ranlib"
6731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732     break 2
6733   fi
6734 done
6735 done
6736 IFS=$as_save_IFS
6740 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6741 if test -n "$ac_ct_RANLIB"; then
6742   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6743 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6744 else
6745   { echo "$as_me:$LINENO: result: no" >&5
6746 echo "${ECHO_T}no" >&6; }
6749   if test "x$ac_ct_RANLIB" = x; then
6750     RANLIB=":"
6751   else
6752     case $cross_compiling:$ac_tool_warned in
6753 yes:)
6754 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6755 whose name does not start with the host triplet.  If you think this
6756 configuration is useful to you, please write to autoconf@gnu.org." >&5
6757 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6758 whose name does not start with the host triplet.  If you think this
6759 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6760 ac_tool_warned=yes ;;
6761 esac
6762     RANLIB=$ac_ct_RANLIB
6763   fi
6764 else
6765   RANLIB="$ac_cv_prog_RANLIB"
6768 if test -n "$ac_tool_prefix"; then
6769   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6770 set dummy ${ac_tool_prefix}strip; ac_word=$2
6771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6773 if test "${ac_cv_prog_STRIP+set}" = set; then
6774   echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776   if test -n "$STRIP"; then
6777   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6782   IFS=$as_save_IFS
6783   test -z "$as_dir" && as_dir=.
6784   for ac_exec_ext in '' $ac_executable_extensions; do
6785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788     break 2
6789   fi
6790 done
6791 done
6792 IFS=$as_save_IFS
6796 STRIP=$ac_cv_prog_STRIP
6797 if test -n "$STRIP"; then
6798   { echo "$as_me:$LINENO: result: $STRIP" >&5
6799 echo "${ECHO_T}$STRIP" >&6; }
6800 else
6801   { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6807 if test -z "$ac_cv_prog_STRIP"; then
6808   ac_ct_STRIP=$STRIP
6809   # Extract the first word of "strip", so it can be a program name with args.
6810 set dummy strip; ac_word=$2
6811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6813 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6814   echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816   if test -n "$ac_ct_STRIP"; then
6817   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6822   IFS=$as_save_IFS
6823   test -z "$as_dir" && as_dir=.
6824   for ac_exec_ext in '' $ac_executable_extensions; do
6825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826     ac_cv_prog_ac_ct_STRIP="strip"
6827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828     break 2
6829   fi
6830 done
6831 done
6832 IFS=$as_save_IFS
6836 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6837 if test -n "$ac_ct_STRIP"; then
6838   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6839 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6840 else
6841   { echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6; }
6845   if test "x$ac_ct_STRIP" = x; then
6846     STRIP=":"
6847   else
6848     case $cross_compiling:$ac_tool_warned in
6849 yes:)
6850 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6851 whose name does not start with the host triplet.  If you think this
6852 configuration is useful to you, please write to autoconf@gnu.org." >&5
6853 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6854 whose name does not start with the host triplet.  If you think this
6855 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6856 ac_tool_warned=yes ;;
6857 esac
6858     STRIP=$ac_ct_STRIP
6859   fi
6860 else
6861   STRIP="$ac_cv_prog_STRIP"
6865 old_CC="$CC"
6866 old_CFLAGS="$CFLAGS"
6868 # Set sane defaults for various variables
6869 test -z "$AR" && AR=ar
6870 test -z "$AR_FLAGS" && AR_FLAGS=cru
6871 test -z "$AS" && AS=as
6872 test -z "$CC" && CC=cc
6873 test -z "$LTCC" && LTCC=$CC
6874 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6875 test -z "$DLLTOOL" && DLLTOOL=dlltool
6876 test -z "$LD" && LD=ld
6877 test -z "$LN_S" && LN_S="ln -s"
6878 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6879 test -z "$NM" && NM=nm
6880 test -z "$SED" && SED=sed
6881 test -z "$OBJDUMP" && OBJDUMP=objdump
6882 test -z "$RANLIB" && RANLIB=:
6883 test -z "$STRIP" && STRIP=:
6884 test -z "$ac_objext" && ac_objext=o
6886 # Determine commands to create old-style static archives.
6887 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6888 old_postinstall_cmds='chmod 644 $oldlib'
6889 old_postuninstall_cmds=
6891 if test -n "$RANLIB"; then
6892   case $host_os in
6893   openbsd*)
6894     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6895     ;;
6896   *)
6897     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6898     ;;
6899   esac
6900   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6903 for cc_temp in $compiler""; do
6904   case $cc_temp in
6905     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6906     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6907     \-*) ;;
6908     *) break;;
6909   esac
6910 done
6911 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6914 # Only perform the check for file, if the check method requires it
6915 case $deplibs_check_method in
6916 file_magic*)
6917   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6918     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6919 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6920 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6921   echo $ECHO_N "(cached) $ECHO_C" >&6
6922 else
6923   case $MAGIC_CMD in
6924 [\\/*] |  ?:[\\/]*)
6925   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6926   ;;
6928   lt_save_MAGIC_CMD="$MAGIC_CMD"
6929   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6930   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6931   for ac_dir in $ac_dummy; do
6932     IFS="$lt_save_ifs"
6933     test -z "$ac_dir" && ac_dir=.
6934     if test -f $ac_dir/${ac_tool_prefix}file; then
6935       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6936       if test -n "$file_magic_test_file"; then
6937         case $deplibs_check_method in
6938         "file_magic "*)
6939           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6940           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6941           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6942             $EGREP "$file_magic_regex" > /dev/null; then
6943             :
6944           else
6945             cat <<EOF 1>&2
6947 *** Warning: the command libtool uses to detect shared libraries,
6948 *** $file_magic_cmd, produces output that libtool cannot recognize.
6949 *** The result is that libtool may fail to recognize shared libraries
6950 *** as such.  This will affect the creation of libtool libraries that
6951 *** depend on shared libraries, but programs linked with such libtool
6952 *** libraries will work regardless of this problem.  Nevertheless, you
6953 *** may want to report the problem to your system manager and/or to
6954 *** bug-libtool@gnu.org
6957           fi ;;
6958         esac
6959       fi
6960       break
6961     fi
6962   done
6963   IFS="$lt_save_ifs"
6964   MAGIC_CMD="$lt_save_MAGIC_CMD"
6965   ;;
6966 esac
6969 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6970 if test -n "$MAGIC_CMD"; then
6971   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6972 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6973 else
6974   { echo "$as_me:$LINENO: result: no" >&5
6975 echo "${ECHO_T}no" >&6; }
6978 if test -z "$lt_cv_path_MAGIC_CMD"; then
6979   if test -n "$ac_tool_prefix"; then
6980     { echo "$as_me:$LINENO: checking for file" >&5
6981 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6982 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6983   echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985   case $MAGIC_CMD in
6986 [\\/*] |  ?:[\\/]*)
6987   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6988   ;;
6990   lt_save_MAGIC_CMD="$MAGIC_CMD"
6991   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6992   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6993   for ac_dir in $ac_dummy; do
6994     IFS="$lt_save_ifs"
6995     test -z "$ac_dir" && ac_dir=.
6996     if test -f $ac_dir/file; then
6997       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6998       if test -n "$file_magic_test_file"; then
6999         case $deplibs_check_method in
7000         "file_magic "*)
7001           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7002           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7003           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7004             $EGREP "$file_magic_regex" > /dev/null; then
7005             :
7006           else
7007             cat <<EOF 1>&2
7009 *** Warning: the command libtool uses to detect shared libraries,
7010 *** $file_magic_cmd, produces output that libtool cannot recognize.
7011 *** The result is that libtool may fail to recognize shared libraries
7012 *** as such.  This will affect the creation of libtool libraries that
7013 *** depend on shared libraries, but programs linked with such libtool
7014 *** libraries will work regardless of this problem.  Nevertheless, you
7015 *** may want to report the problem to your system manager and/or to
7016 *** bug-libtool@gnu.org
7019           fi ;;
7020         esac
7021       fi
7022       break
7023     fi
7024   done
7025   IFS="$lt_save_ifs"
7026   MAGIC_CMD="$lt_save_MAGIC_CMD"
7027   ;;
7028 esac
7031 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7032 if test -n "$MAGIC_CMD"; then
7033   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7034 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7035 else
7036   { echo "$as_me:$LINENO: result: no" >&5
7037 echo "${ECHO_T}no" >&6; }
7040   else
7041     MAGIC_CMD=:
7042   fi
7045   fi
7046   ;;
7047 esac
7049 enable_dlopen=no
7050 enable_win32_dll=no
7052 # Check whether --enable-libtool-lock was given.
7053 if test "${enable_libtool_lock+set}" = set; then
7054   enableval=$enable_libtool_lock; 
7057 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7060 # Check whether --with-pic was given.
7061 if test "${with_pic+set}" = set; then
7062   withval=$with_pic; pic_mode="$withval"
7063 else
7064   pic_mode=default
7067 test -z "$pic_mode" && pic_mode=default
7069 # Use C for the default configuration in the libtool script
7070 tagname=
7071 lt_save_CC="$CC"
7072 ac_ext=c
7073 ac_cpp='$CPP $CPPFLAGS'
7074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7079 # Source file extension for C test sources.
7080 ac_ext=c
7082 # Object file extension for compiled C test sources.
7083 objext=o
7084 objext=$objext
7086 # Code to be used in simple compile tests
7087 lt_simple_compile_test_code="int some_variable = 0;"
7089 # Code to be used in simple link tests
7090 lt_simple_link_test_code='int main(){return(0);}'
7093 # If no C compiler was specified, use CC.
7094 LTCC=${LTCC-"$CC"}
7096 # If no C compiler flags were specified, use CFLAGS.
7097 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7099 # Allow CC to be a program name with arguments.
7100 compiler=$CC
7103 # save warnings/boilerplate of simple test code
7104 ac_outfile=conftest.$ac_objext
7105 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7106 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7107 _lt_compiler_boilerplate=`cat conftest.err`
7108 $rm conftest*
7110 ac_outfile=conftest.$ac_objext
7111 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7112 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7113 _lt_linker_boilerplate=`cat conftest.err`
7114 $rm conftest*
7117 ## CAVEAT EMPTOR:
7118 ## There is no encapsulation within the following macros, do not change
7119 ## the running order or otherwise move them around unless you know exactly
7120 ## what you are doing...
7122 lt_prog_compiler_no_builtin_flag=
7124 if test "$GCC" = yes; then
7125   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7127   
7128 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7129 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7130 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7131   echo $ECHO_N "(cached) $ECHO_C" >&6
7132 else
7133   lt_cv_prog_compiler_rtti_exceptions=no
7134   ac_outfile=conftest.$ac_objext
7135    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7136    lt_compiler_flag="-fno-rtti -fno-exceptions"
7137    # Insert the option either (1) after the last *FLAGS variable, or
7138    # (2) before a word containing "conftest.", or (3) at the end.
7139    # Note that $ac_compile itself does not contain backslashes and begins
7140    # with a dollar sign (not a hyphen), so the echo should work correctly.
7141    # The option is referenced via a variable to avoid confusing sed.
7142    lt_compile=`echo "$ac_compile" | $SED \
7143    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7144    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7145    -e 's:$: $lt_compiler_flag:'`
7146    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7147    (eval "$lt_compile" 2>conftest.err)
7148    ac_status=$?
7149    cat conftest.err >&5
7150    echo "$as_me:__oline__: \$? = $ac_status" >&5
7151    if (exit $ac_status) && test -s "$ac_outfile"; then
7152      # The compiler can only warn and ignore the option if not recognized
7153      # So say no if there are warnings other than the usual output.
7154      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7155      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7156      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7157        lt_cv_prog_compiler_rtti_exceptions=yes
7158      fi
7159    fi
7160    $rm conftest*
7163 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7164 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7166 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7167     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7168 else
7169     :
7174 lt_prog_compiler_wl=
7175 lt_prog_compiler_pic=
7176 lt_prog_compiler_static=
7178 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7179 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7181   if test "$GCC" = yes; then
7182     lt_prog_compiler_wl='-Wl,'
7183     lt_prog_compiler_static='-static'
7185     case $host_os in
7186       aix*)
7187       # All AIX code is PIC.
7188       if test "$host_cpu" = ia64; then
7189         # AIX 5 now supports IA64 processor
7190         lt_prog_compiler_static='-Bstatic'
7191       fi
7192       ;;
7194     amigaos*)
7195       # FIXME: we need at least 68020 code to build shared libraries, but
7196       # adding the `-m68020' flag to GCC prevents building anything better,
7197       # like `-m68040'.
7198       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7199       ;;
7201     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7202       # PIC is the default for these OSes.
7203       ;;
7205     mingw* | cygwin* | pw32* | os2*)
7206       # This hack is so that the source file can tell whether it is being
7207       # built for inclusion in a dll (and should export symbols for example).
7208       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7209       # (--disable-auto-import) libraries
7210       lt_prog_compiler_pic='-DDLL_EXPORT'
7211       ;;
7213     darwin* | rhapsody*)
7214       # PIC is the default on this platform
7215       # Common symbols not allowed in MH_DYLIB files
7216       lt_prog_compiler_pic='-fno-common'
7217       ;;
7219     interix[3-9]*)
7220       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7221       # Instead, we relocate shared libraries at runtime.
7222       ;;
7224     msdosdjgpp*)
7225       # Just because we use GCC doesn't mean we suddenly get shared libraries
7226       # on systems that don't support them.
7227       lt_prog_compiler_can_build_shared=no
7228       enable_shared=no
7229       ;;
7231     sysv4*MP*)
7232       if test -d /usr/nec; then
7233         lt_prog_compiler_pic=-Kconform_pic
7234       fi
7235       ;;
7237     hpux*)
7238       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7239       # not for PA HP-UX.
7240       case $host_cpu in
7241       hppa*64*|ia64*)
7242         # +Z the default
7243         ;;
7244       *)
7245         lt_prog_compiler_pic='-fPIC'
7246         ;;
7247       esac
7248       ;;
7250     *)
7251       lt_prog_compiler_pic='-fPIC'
7252       ;;
7253     esac
7254   else
7255     # PORTME Check for flag to pass linker flags through the system compiler.
7256     case $host_os in
7257     aix*)
7258       lt_prog_compiler_wl='-Wl,'
7259       if test "$host_cpu" = ia64; then
7260         # AIX 5 now supports IA64 processor
7261         lt_prog_compiler_static='-Bstatic'
7262       else
7263         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7264       fi
7265       ;;
7266       darwin*)
7267         # PIC is the default on this platform
7268         # Common symbols not allowed in MH_DYLIB files
7269        case $cc_basename in
7270          xlc*)
7271          lt_prog_compiler_pic='-qnocommon'
7272          lt_prog_compiler_wl='-Wl,'
7273          ;;
7274        esac
7275        ;;
7277     mingw* | cygwin* | pw32* | os2*)
7278       # This hack is so that the source file can tell whether it is being
7279       # built for inclusion in a dll (and should export symbols for example).
7280       lt_prog_compiler_pic='-DDLL_EXPORT'
7281       ;;
7283     hpux9* | hpux10* | hpux11*)
7284       lt_prog_compiler_wl='-Wl,'
7285       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7286       # not for PA HP-UX.
7287       case $host_cpu in
7288       hppa*64*|ia64*)
7289         # +Z the default
7290         ;;
7291       *)
7292         lt_prog_compiler_pic='+Z'
7293         ;;
7294       esac
7295       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7296       lt_prog_compiler_static='${wl}-a ${wl}archive'
7297       ;;
7299     irix5* | irix6* | nonstopux*)
7300       lt_prog_compiler_wl='-Wl,'
7301       # PIC (with -KPIC) is the default.
7302       lt_prog_compiler_static='-non_shared'
7303       ;;
7305     newsos6)
7306       lt_prog_compiler_pic='-KPIC'
7307       lt_prog_compiler_static='-Bstatic'
7308       ;;
7310     linux* | k*bsd*-gnu)
7311       case $cc_basename in
7312       icc* | ecc*)
7313         lt_prog_compiler_wl='-Wl,'
7314         lt_prog_compiler_pic='-KPIC'
7315         lt_prog_compiler_static='-static'
7316         ;;
7317       pgcc* | pgf77* | pgf90* | pgf95*)
7318         # Portland Group compilers (*not* the Pentium gcc compiler,
7319         # which looks to be a dead project)
7320         lt_prog_compiler_wl='-Wl,'
7321         lt_prog_compiler_pic='-fpic'
7322         lt_prog_compiler_static='-Bstatic'
7323         ;;
7324       ccc*)
7325         lt_prog_compiler_wl='-Wl,'
7326         # All Alpha code is PIC.
7327         lt_prog_compiler_static='-non_shared'
7328         ;;
7329       *)
7330         case `$CC -V 2>&1 | sed 5q` in
7331         *Sun\ C*)
7332           # Sun C 5.9
7333           lt_prog_compiler_pic='-KPIC'
7334           lt_prog_compiler_static='-Bstatic'
7335           lt_prog_compiler_wl='-Wl,'
7336           ;;
7337         *Sun\ F*)
7338           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7339           lt_prog_compiler_pic='-KPIC'
7340           lt_prog_compiler_static='-Bstatic'
7341           lt_prog_compiler_wl=''
7342           ;;
7343         esac
7344         ;;
7345       esac
7346       ;;
7348     osf3* | osf4* | osf5*)
7349       lt_prog_compiler_wl='-Wl,'
7350       # All OSF/1 code is PIC.
7351       lt_prog_compiler_static='-non_shared'
7352       ;;
7354     rdos*)
7355       lt_prog_compiler_static='-non_shared'
7356       ;;
7358     solaris*)
7359       lt_prog_compiler_pic='-KPIC'
7360       lt_prog_compiler_static='-Bstatic'
7361       case $cc_basename in
7362       f77* | f90* | f95*)
7363         lt_prog_compiler_wl='-Qoption ld ';;
7364       *)
7365         lt_prog_compiler_wl='-Wl,';;
7366       esac
7367       ;;
7369     sunos4*)
7370       lt_prog_compiler_wl='-Qoption ld '
7371       lt_prog_compiler_pic='-PIC'
7372       lt_prog_compiler_static='-Bstatic'
7373       ;;
7375     sysv4 | sysv4.2uw2* | sysv4.3*)
7376       lt_prog_compiler_wl='-Wl,'
7377       lt_prog_compiler_pic='-KPIC'
7378       lt_prog_compiler_static='-Bstatic'
7379       ;;
7381     sysv4*MP*)
7382       if test -d /usr/nec ;then
7383         lt_prog_compiler_pic='-Kconform_pic'
7384         lt_prog_compiler_static='-Bstatic'
7385       fi
7386       ;;
7388     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7389       lt_prog_compiler_wl='-Wl,'
7390       lt_prog_compiler_pic='-KPIC'
7391       lt_prog_compiler_static='-Bstatic'
7392       ;;
7394     unicos*)
7395       lt_prog_compiler_wl='-Wl,'
7396       lt_prog_compiler_can_build_shared=no
7397       ;;
7399     uts4*)
7400       lt_prog_compiler_pic='-pic'
7401       lt_prog_compiler_static='-Bstatic'
7402       ;;
7404     *)
7405       lt_prog_compiler_can_build_shared=no
7406       ;;
7407     esac
7408   fi
7410 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7411 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7414 # Check to make sure the PIC flag actually works.
7416 if test -n "$lt_prog_compiler_pic"; then
7417   
7418 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7419 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7420 if test "${lt_prog_compiler_pic_works+set}" = set; then
7421   echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423   lt_prog_compiler_pic_works=no
7424   ac_outfile=conftest.$ac_objext
7425    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7426    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7427    # Insert the option either (1) after the last *FLAGS variable, or
7428    # (2) before a word containing "conftest.", or (3) at the end.
7429    # Note that $ac_compile itself does not contain backslashes and begins
7430    # with a dollar sign (not a hyphen), so the echo should work correctly.
7431    # The option is referenced via a variable to avoid confusing sed.
7432    lt_compile=`echo "$ac_compile" | $SED \
7433    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7434    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7435    -e 's:$: $lt_compiler_flag:'`
7436    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7437    (eval "$lt_compile" 2>conftest.err)
7438    ac_status=$?
7439    cat conftest.err >&5
7440    echo "$as_me:__oline__: \$? = $ac_status" >&5
7441    if (exit $ac_status) && test -s "$ac_outfile"; then
7442      # The compiler can only warn and ignore the option if not recognized
7443      # So say no if there are warnings other than the usual output.
7444      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7445      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7446      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7447        lt_prog_compiler_pic_works=yes
7448      fi
7449    fi
7450    $rm conftest*
7453 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7454 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7456 if test x"$lt_prog_compiler_pic_works" = xyes; then
7457     case $lt_prog_compiler_pic in
7458      "" | " "*) ;;
7459      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7460      esac
7461 else
7462     lt_prog_compiler_pic=
7463      lt_prog_compiler_can_build_shared=no
7467 case $host_os in
7468   # For platforms which do not support PIC, -DPIC is meaningless:
7469   *djgpp*)
7470     lt_prog_compiler_pic=
7471     ;;
7472   *)
7473     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7474     ;;
7475 esac
7478 # Check to make sure the static flag actually works.
7480 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7481 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7482 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7483 if test "${lt_prog_compiler_static_works+set}" = set; then
7484   echo $ECHO_N "(cached) $ECHO_C" >&6
7485 else
7486   lt_prog_compiler_static_works=no
7487    save_LDFLAGS="$LDFLAGS"
7488    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7489    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7490    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7491      # The linker can only warn and ignore the option if not recognized
7492      # So say no if there are warnings
7493      if test -s conftest.err; then
7494        # Append any errors to the config.log.
7495        cat conftest.err 1>&5
7496        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7497        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7498        if diff conftest.exp conftest.er2 >/dev/null; then
7499          lt_prog_compiler_static_works=yes
7500        fi
7501      else
7502        lt_prog_compiler_static_works=yes
7503      fi
7504    fi
7505    $rm conftest*
7506    LDFLAGS="$save_LDFLAGS"
7509 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7510 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7512 if test x"$lt_prog_compiler_static_works" = xyes; then
7513     :
7514 else
7515     lt_prog_compiler_static=
7519 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7520 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7521 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7522   echo $ECHO_N "(cached) $ECHO_C" >&6
7523 else
7524   lt_cv_prog_compiler_c_o=no
7525    $rm -r conftest 2>/dev/null
7526    mkdir conftest
7527    cd conftest
7528    mkdir out
7529    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7531    lt_compiler_flag="-o out/conftest2.$ac_objext"
7532    # Insert the option either (1) after the last *FLAGS variable, or
7533    # (2) before a word containing "conftest.", or (3) at the end.
7534    # Note that $ac_compile itself does not contain backslashes and begins
7535    # with a dollar sign (not a hyphen), so the echo should work correctly.
7536    lt_compile=`echo "$ac_compile" | $SED \
7537    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7538    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7539    -e 's:$: $lt_compiler_flag:'`
7540    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7541    (eval "$lt_compile" 2>out/conftest.err)
7542    ac_status=$?
7543    cat out/conftest.err >&5
7544    echo "$as_me:__oline__: \$? = $ac_status" >&5
7545    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7546    then
7547      # The compiler can only warn and ignore the option if not recognized
7548      # So say no if there are warnings
7549      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7550      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7551      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7552        lt_cv_prog_compiler_c_o=yes
7553      fi
7554    fi
7555    chmod u+w . 2>&5
7556    $rm conftest*
7557    # SGI C++ compiler will create directory out/ii_files/ for
7558    # template instantiation
7559    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7560    $rm out/* && rmdir out
7561    cd ..
7562    rmdir conftest
7563    $rm conftest*
7566 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7567 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7570 hard_links="nottested"
7571 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7572   # do not overwrite the value of need_locks provided by the user
7573   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7574 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7575   hard_links=yes
7576   $rm conftest*
7577   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7578   touch conftest.a
7579   ln conftest.a conftest.b 2>&5 || hard_links=no
7580   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7581   { echo "$as_me:$LINENO: result: $hard_links" >&5
7582 echo "${ECHO_T}$hard_links" >&6; }
7583   if test "$hard_links" = no; then
7584     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7585 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7586     need_locks=warn
7587   fi
7588 else
7589   need_locks=no
7592 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7593 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7595   runpath_var=
7596   allow_undefined_flag=
7597   enable_shared_with_static_runtimes=no
7598   archive_cmds=
7599   archive_expsym_cmds=
7600   old_archive_From_new_cmds=
7601   old_archive_from_expsyms_cmds=
7602   export_dynamic_flag_spec=
7603   whole_archive_flag_spec=
7604   thread_safe_flag_spec=
7605   hardcode_libdir_flag_spec=
7606   hardcode_libdir_flag_spec_ld=
7607   hardcode_libdir_separator=
7608   hardcode_direct=no
7609   hardcode_minus_L=no
7610   hardcode_shlibpath_var=unsupported
7611   link_all_deplibs=unknown
7612   hardcode_automatic=no
7613   module_cmds=
7614   module_expsym_cmds=
7615   always_export_symbols=no
7616   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7617   # include_expsyms should be a list of space-separated symbols to be *always*
7618   # included in the symbol list
7619   include_expsyms=
7620   # exclude_expsyms can be an extended regexp of symbols to exclude
7621   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7622   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7623   # as well as any symbol that contains `d'.
7624   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7625   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7626   # platforms (ab)use it in PIC code, but their linkers get confused if
7627   # the symbol is explicitly referenced.  Since portable code cannot
7628   # rely on this symbol name, it's probably fine to never include it in
7629   # preloaded symbol tables.
7630   extract_expsyms_cmds=
7631   # Just being paranoid about ensuring that cc_basename is set.
7632   for cc_temp in $compiler""; do
7633   case $cc_temp in
7634     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7635     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7636     \-*) ;;
7637     *) break;;
7638   esac
7639 done
7640 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7642   case $host_os in
7643   cygwin* | mingw* | pw32*)
7644     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7645     # When not using gcc, we currently assume that we are using
7646     # Microsoft Visual C++.
7647     if test "$GCC" != yes; then
7648       with_gnu_ld=no
7649     fi
7650     ;;
7651   interix*)
7652     # we just hope/assume this is gcc and not c89 (= MSVC++)
7653     with_gnu_ld=yes
7654     ;;
7655   openbsd*)
7656     with_gnu_ld=no
7657     ;;
7658   esac
7660   ld_shlibs=yes
7661   if test "$with_gnu_ld" = yes; then
7662     # If archive_cmds runs LD, not CC, wlarc should be empty
7663     wlarc='${wl}'
7665     # Set some defaults for GNU ld with shared library support. These
7666     # are reset later if shared libraries are not supported. Putting them
7667     # here allows them to be overridden if necessary.
7668     runpath_var=LD_RUN_PATH
7669     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7670     export_dynamic_flag_spec='${wl}--export-dynamic'
7671     # ancient GNU ld didn't support --whole-archive et. al.
7672     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7673         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7674       else
7675         whole_archive_flag_spec=
7676     fi
7677     supports_anon_versioning=no
7678     case `$LD -v 2>/dev/null` in
7679       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7680       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7681       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7682       *\ 2.11.*) ;; # other 2.11 versions
7683       *) supports_anon_versioning=yes ;;
7684     esac
7686     # See if GNU ld supports shared libraries.
7687     case $host_os in
7688     aix3* | aix4* | aix5*)
7689       # On AIX/PPC, the GNU linker is very broken
7690       if test "$host_cpu" != ia64; then
7691         ld_shlibs=no
7692         cat <<EOF 1>&2
7694 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7695 *** to be unable to reliably create shared libraries on AIX.
7696 *** Therefore, libtool is disabling shared libraries support.  If you
7697 *** really care for shared libraries, you may want to modify your PATH
7698 *** so that a non-GNU linker is found, and then restart.
7701       fi
7702       ;;
7704     amigaos*)
7705       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)'
7706       hardcode_libdir_flag_spec='-L$libdir'
7707       hardcode_minus_L=yes
7709       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7710       # that the semantics of dynamic libraries on AmigaOS, at least up
7711       # to version 4, is to share data among multiple programs linked
7712       # with the same dynamic library.  Since this doesn't match the
7713       # behavior of shared libraries on other platforms, we can't use
7714       # them.
7715       ld_shlibs=no
7716       ;;
7718     beos*)
7719       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7720         allow_undefined_flag=unsupported
7721         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7722         # support --undefined.  This deserves some investigation.  FIXME
7723         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7724       else
7725         ld_shlibs=no
7726       fi
7727       ;;
7729     cygwin* | mingw* | pw32*)
7730       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7731       # as there is no search path for DLLs.
7732       hardcode_libdir_flag_spec='-L$libdir'
7733       allow_undefined_flag=unsupported
7734       always_export_symbols=no
7735       enable_shared_with_static_runtimes=yes
7736       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7738       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7739         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7740         # If the export-symbols file already is a .def file (1st line
7741         # is EXPORTS), use it as is; otherwise, prepend...
7742         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7743           cp $export_symbols $output_objdir/$soname.def;
7744         else
7745           echo EXPORTS > $output_objdir/$soname.def;
7746           cat $export_symbols >> $output_objdir/$soname.def;
7747         fi~
7748         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7749       else
7750         ld_shlibs=no
7751       fi
7752       ;;
7754     interix[3-9]*)
7755       hardcode_direct=no
7756       hardcode_shlibpath_var=no
7757       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7758       export_dynamic_flag_spec='${wl}-E'
7759       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7760       # Instead, shared libraries are loaded at an image base (0x10000000 by
7761       # default) and relocated if they conflict, which is a slow very memory
7762       # consuming and fragmenting process.  To avoid this, we pick a random,
7763       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7764       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7765       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7766       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'
7767       ;;
7769     gnu* | linux* | k*bsd*-gnu)
7770       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7771         tmp_addflag=
7772         case $cc_basename,$host_cpu in
7773         pgcc*)                          # Portland Group C compiler
7774           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'
7775           tmp_addflag=' $pic_flag'
7776           ;;
7777         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7778           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'
7779           tmp_addflag=' $pic_flag -Mnomain' ;;
7780         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7781           tmp_addflag=' -i_dynamic' ;;
7782         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7783           tmp_addflag=' -i_dynamic -nofor_main' ;;
7784         ifc* | ifort*)                  # Intel Fortran compiler
7785           tmp_addflag=' -nofor_main' ;;
7786         esac
7787         case `$CC -V 2>&1 | sed 5q` in
7788         *Sun\ C*)                       # Sun C 5.9
7789           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'
7790           tmp_sharedflag='-G' ;;
7791         *Sun\ F*)                       # Sun Fortran 8.3
7792           tmp_sharedflag='-G' ;;
7793         *)
7794           tmp_sharedflag='-shared' ;;
7795         esac
7796         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7798         if test $supports_anon_versioning = yes; then
7799           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7800   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7801   $echo "local: *; };" >> $output_objdir/$libname.ver~
7802           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7803         fi
7804       else
7805         ld_shlibs=no
7806       fi
7807       ;;
7809     netbsd*)
7810       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7811         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7812         wlarc=
7813       else
7814         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7815         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7816       fi
7817       ;;
7819     solaris*)
7820       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7821         ld_shlibs=no
7822         cat <<EOF 1>&2
7824 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7825 *** create shared libraries on Solaris systems.  Therefore, libtool
7826 *** is disabling shared libraries support.  We urge you to upgrade GNU
7827 *** binutils to release 2.9.1 or newer.  Another option is to modify
7828 *** your PATH or compiler configuration so that the native linker is
7829 *** used, and then restart.
7832       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7833         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7834         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7835       else
7836         ld_shlibs=no
7837       fi
7838       ;;
7840     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7841       case `$LD -v 2>&1` in
7842         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7843         ld_shlibs=no
7844         cat <<_LT_EOF 1>&2
7846 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7847 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7848 *** is disabling shared libraries support.  We urge you to upgrade GNU
7849 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7850 *** your PATH or compiler configuration so that the native linker is
7851 *** used, and then restart.
7853 _LT_EOF
7854         ;;
7855         *)
7856           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7857             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7858             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7859             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7860           else
7861             ld_shlibs=no
7862           fi
7863         ;;
7864       esac
7865       ;;
7867     sunos4*)
7868       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7869       wlarc=
7870       hardcode_direct=yes
7871       hardcode_shlibpath_var=no
7872       ;;
7874     *)
7875       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7876         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7877         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7878       else
7879         ld_shlibs=no
7880       fi
7881       ;;
7882     esac
7884     if test "$ld_shlibs" = no; then
7885       runpath_var=
7886       hardcode_libdir_flag_spec=
7887       export_dynamic_flag_spec=
7888       whole_archive_flag_spec=
7889     fi
7890   else
7891     # PORTME fill in a description of your system's linker (not GNU ld)
7892     case $host_os in
7893     aix3*)
7894       allow_undefined_flag=unsupported
7895       always_export_symbols=yes
7896       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'
7897       # Note: this linker hardcodes the directories in LIBPATH if there
7898       # are no directories specified by -L.
7899       hardcode_minus_L=yes
7900       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7901         # Neither direct hardcoding nor static linking is supported with a
7902         # broken collect2.
7903         hardcode_direct=unsupported
7904       fi
7905       ;;
7907     aix4* | aix5*)
7908       if test "$host_cpu" = ia64; then
7909         # On IA64, the linker does run time linking by default, so we don't
7910         # have to do anything special.
7911         aix_use_runtimelinking=no
7912         exp_sym_flag='-Bexport'
7913         no_entry_flag=""
7914       else
7915         # If we're using GNU nm, then we don't want the "-C" option.
7916         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7917         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7918           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'
7919         else
7920           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'
7921         fi
7922         aix_use_runtimelinking=no
7924         # Test if we are trying to use run time linking or normal
7925         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7926         # need to do runtime linking.
7927         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7928           for ld_flag in $LDFLAGS; do
7929           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7930             aix_use_runtimelinking=yes
7931             break
7932           fi
7933           done
7934           ;;
7935         esac
7937         exp_sym_flag='-bexport'
7938         no_entry_flag='-bnoentry'
7939       fi
7941       # When large executables or shared objects are built, AIX ld can
7942       # have problems creating the table of contents.  If linking a library
7943       # or program results in "error TOC overflow" add -mminimal-toc to
7944       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7945       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7947       archive_cmds=''
7948       hardcode_direct=yes
7949       hardcode_libdir_separator=':'
7950       link_all_deplibs=yes
7952       if test "$GCC" = yes; then
7953         case $host_os in aix4.[012]|aix4.[012].*)
7954         # We only want to do this on AIX 4.2 and lower, the check
7955         # below for broken collect2 doesn't work under 4.3+
7956           collect2name=`${CC} -print-prog-name=collect2`
7957           if test -f "$collect2name" && \
7958            strings "$collect2name" | grep resolve_lib_name >/dev/null
7959           then
7960           # We have reworked collect2
7961           :
7962           else
7963           # We have old collect2
7964           hardcode_direct=unsupported
7965           # It fails to find uninstalled libraries when the uninstalled
7966           # path is not listed in the libpath.  Setting hardcode_minus_L
7967           # to unsupported forces relinking
7968           hardcode_minus_L=yes
7969           hardcode_libdir_flag_spec='-L$libdir'
7970           hardcode_libdir_separator=
7971           fi
7972           ;;
7973         esac
7974         shared_flag='-shared'
7975         if test "$aix_use_runtimelinking" = yes; then
7976           shared_flag="$shared_flag "'${wl}-G'
7977         fi
7978       else
7979         # not using gcc
7980         if test "$host_cpu" = ia64; then
7981         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7982         # chokes on -Wl,-G. The following line is correct:
7983           shared_flag='-G'
7984         else
7985           if test "$aix_use_runtimelinking" = yes; then
7986             shared_flag='${wl}-G'
7987           else
7988             shared_flag='${wl}-bM:SRE'
7989           fi
7990         fi
7991       fi
7993       # It seems that -bexpall does not export symbols beginning with
7994       # underscore (_), so it is better to generate a list of symbols to export.
7995       always_export_symbols=yes
7996       if test "$aix_use_runtimelinking" = yes; then
7997         # Warning - without using the other runtime loading flags (-brtl),
7998         # -berok will link without error, but may produce a broken library.
7999         allow_undefined_flag='-berok'
8000        # Determine the default libpath from the value encoded in an empty executable.
8001        cat >conftest.$ac_ext <<_ACEOF
8002 /* confdefs.h.  */
8003 _ACEOF
8004 cat confdefs.h >>conftest.$ac_ext
8005 cat >>conftest.$ac_ext <<_ACEOF
8006 /* end confdefs.h.  */
8009 main ()
8012   ;
8013   return 0;
8015 _ACEOF
8016 rm -f conftest.$ac_objext conftest$ac_exeext
8017 if { (ac_try="$ac_link"
8018 case "(($ac_try" in
8019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020   *) ac_try_echo=$ac_try;;
8021 esac
8022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8023   (eval "$ac_link") 2>conftest.er1
8024   ac_status=$?
8025   grep -v '^ *+' conftest.er1 >conftest.err
8026   rm -f conftest.er1
8027   cat conftest.err >&5
8028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029   (exit $ac_status); } && {
8030          test -z "$ac_c_werror_flag" ||
8031          test ! -s conftest.err
8032        } && test -s conftest$ac_exeext &&
8033        $as_test_x conftest$ac_exeext; then
8034   
8035 lt_aix_libpath_sed='
8036     /Import File Strings/,/^$/ {
8037         /^0/ {
8038             s/^0  *\(.*\)$/\1/
8039             p
8040         }
8041     }'
8042 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8043 # Check for a 64-bit object if we didn't find anything.
8044 if test -z "$aix_libpath"; then
8045   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8047 else
8048   echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8051         
8054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8055       conftest$ac_exeext conftest.$ac_ext
8056 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8058        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8059         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"
8060        else
8061         if test "$host_cpu" = ia64; then
8062           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8063           allow_undefined_flag="-z nodefs"
8064           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"
8065         else
8066          # Determine the default libpath from the value encoded in an empty executable.
8067          cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h.  */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h.  */
8075 main ()
8078   ;
8079   return 0;
8081 _ACEOF
8082 rm -f conftest.$ac_objext conftest$ac_exeext
8083 if { (ac_try="$ac_link"
8084 case "(($ac_try" in
8085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086   *) ac_try_echo=$ac_try;;
8087 esac
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089   (eval "$ac_link") 2>conftest.er1
8090   ac_status=$?
8091   grep -v '^ *+' conftest.er1 >conftest.err
8092   rm -f conftest.er1
8093   cat conftest.err >&5
8094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095   (exit $ac_status); } && {
8096          test -z "$ac_c_werror_flag" ||
8097          test ! -s conftest.err
8098        } && test -s conftest$ac_exeext &&
8099        $as_test_x conftest$ac_exeext; then
8100   
8101 lt_aix_libpath_sed='
8102     /Import File Strings/,/^$/ {
8103         /^0/ {
8104             s/^0  *\(.*\)$/\1/
8105             p
8106         }
8107     }'
8108 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8109 # Check for a 64-bit object if we didn't find anything.
8110 if test -z "$aix_libpath"; then
8111   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8113 else
8114   echo "$as_me: failed program was:" >&5
8115 sed 's/^/| /' conftest.$ac_ext >&5
8117         
8120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8121       conftest$ac_exeext conftest.$ac_ext
8122 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8124          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8125           # Warning - without using the other run time loading flags,
8126           # -berok will link without error, but may produce a broken library.
8127           no_undefined_flag=' ${wl}-bernotok'
8128           allow_undefined_flag=' ${wl}-berok'
8129           # Exported symbols can be pulled into shared objects from archives
8130           whole_archive_flag_spec='$convenience'
8131           archive_cmds_need_lc=yes
8132           # This is similar to how AIX traditionally builds its shared libraries.
8133           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'
8134         fi
8135       fi
8136       ;;
8138     amigaos*)
8139       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)'
8140       hardcode_libdir_flag_spec='-L$libdir'
8141       hardcode_minus_L=yes
8142       # see comment about different semantics on the GNU ld section
8143       ld_shlibs=no
8144       ;;
8146     bsdi[45]*)
8147       export_dynamic_flag_spec=-rdynamic
8148       ;;
8150     cygwin* | mingw* | pw32*)
8151       # When not using gcc, we currently assume that we are using
8152       # Microsoft Visual C++.
8153       # hardcode_libdir_flag_spec is actually meaningless, as there is
8154       # no search path for DLLs.
8155       hardcode_libdir_flag_spec=' '
8156       allow_undefined_flag=unsupported
8157       # Tell ltmain to make .lib files, not .a files.
8158       libext=lib
8159       # Tell ltmain to make .dll files, not .so files.
8160       shrext_cmds=".dll"
8161       # FIXME: Setting linknames here is a bad hack.
8162       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8163       # The linker will automatically build a .lib file if we build a DLL.
8164       old_archive_From_new_cmds='true'
8165       # FIXME: Should let the user specify the lib program.
8166       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8167       fix_srcfile_path='`cygpath -w "$srcfile"`'
8168       enable_shared_with_static_runtimes=yes
8169       ;;
8171     darwin* | rhapsody*)
8172       case $host_os in
8173         rhapsody* | darwin1.[012])
8174          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8175          ;;
8176        *) # Darwin 1.3 on
8177          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8178            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8179          else
8180            case ${MACOSX_DEPLOYMENT_TARGET} in
8181              10.[012])
8182                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8183                ;;
8184              10.*)
8185                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8186                ;;
8187            esac
8188          fi
8189          ;;
8190       esac
8191       archive_cmds_need_lc=no
8192       hardcode_direct=no
8193       hardcode_automatic=yes
8194       hardcode_shlibpath_var=unsupported
8195       whole_archive_flag_spec=''
8196       link_all_deplibs=yes
8197     if test "$GCC" = yes ; then
8198         output_verbose_link_cmd='echo'
8199         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8200       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8201       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8202       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8203       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}'
8204     else
8205       case $cc_basename in
8206         xlc*)
8207          output_verbose_link_cmd='echo'
8208          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8209          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8210           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8211          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}'
8212           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}'
8213           ;;
8214        *)
8215          ld_shlibs=no
8216           ;;
8217       esac
8218     fi
8219       ;;
8221     dgux*)
8222       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8223       hardcode_libdir_flag_spec='-L$libdir'
8224       hardcode_shlibpath_var=no
8225       ;;
8227     freebsd1*)
8228       ld_shlibs=no
8229       ;;
8231     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8232     # support.  Future versions do this automatically, but an explicit c++rt0.o
8233     # does not break anything, and helps significantly (at the cost of a little
8234     # extra space).
8235     freebsd2.2*)
8236       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8237       hardcode_libdir_flag_spec='-R$libdir'
8238       hardcode_direct=yes
8239       hardcode_shlibpath_var=no
8240       ;;
8242     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8243     freebsd2*)
8244       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8245       hardcode_direct=yes
8246       hardcode_minus_L=yes
8247       hardcode_shlibpath_var=no
8248       ;;
8250     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8251     freebsd* | dragonfly*)
8252       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8253       hardcode_libdir_flag_spec='-R$libdir'
8254       hardcode_direct=yes
8255       hardcode_shlibpath_var=no
8256       ;;
8258     hpux9*)
8259       if test "$GCC" = yes; then
8260         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'
8261       else
8262         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'
8263       fi
8264       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8265       hardcode_libdir_separator=:
8266       hardcode_direct=yes
8268       # hardcode_minus_L: Not really in the search PATH,
8269       # but as the default location of the library.
8270       hardcode_minus_L=yes
8271       export_dynamic_flag_spec='${wl}-E'
8272       ;;
8274     hpux10*)
8275       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8276         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8277       else
8278         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8279       fi
8280       if test "$with_gnu_ld" = no; then
8281         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8282         hardcode_libdir_separator=:
8284         hardcode_direct=yes
8285         export_dynamic_flag_spec='${wl}-E'
8287         # hardcode_minus_L: Not really in the search PATH,
8288         # but as the default location of the library.
8289         hardcode_minus_L=yes
8290       fi
8291       ;;
8293     hpux11*)
8294       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8295         case $host_cpu in
8296         hppa*64*)
8297           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8298           ;;
8299         ia64*)
8300           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8301           ;;
8302         *)
8303           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8304           ;;
8305         esac
8306       else
8307         case $host_cpu in
8308         hppa*64*)
8309           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8310           ;;
8311         ia64*)
8312           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8313           ;;
8314         *)
8315           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8316           ;;
8317         esac
8318       fi
8319       if test "$with_gnu_ld" = no; then
8320         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8321         hardcode_libdir_separator=:
8323         case $host_cpu in
8324         hppa*64*|ia64*)
8325           hardcode_libdir_flag_spec_ld='+b $libdir'
8326           hardcode_direct=no
8327           hardcode_shlibpath_var=no
8328           ;;
8329         *)
8330           hardcode_direct=yes
8331           export_dynamic_flag_spec='${wl}-E'
8333           # hardcode_minus_L: Not really in the search PATH,
8334           # but as the default location of the library.
8335           hardcode_minus_L=yes
8336           ;;
8337         esac
8338       fi
8339       ;;
8341     irix5* | irix6* | nonstopux*)
8342       if test "$GCC" = yes; then
8343         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'
8344       else
8345         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'
8346         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8347       fi
8348       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8349       hardcode_libdir_separator=:
8350       link_all_deplibs=yes
8351       ;;
8353     netbsd*)
8354       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8355         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8356       else
8357         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8358       fi
8359       hardcode_libdir_flag_spec='-R$libdir'
8360       hardcode_direct=yes
8361       hardcode_shlibpath_var=no
8362       ;;
8364     newsos6)
8365       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8366       hardcode_direct=yes
8367       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8368       hardcode_libdir_separator=:
8369       hardcode_shlibpath_var=no
8370       ;;
8372     openbsd*)
8373       if test -f /usr/libexec/ld.so; then
8374         hardcode_direct=yes
8375         hardcode_shlibpath_var=no
8376         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8377           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8378           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8379           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8380           export_dynamic_flag_spec='${wl}-E'
8381         else
8382           case $host_os in
8383            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8384              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8385              hardcode_libdir_flag_spec='-R$libdir'
8386              ;;
8387            *)
8388              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8389              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8390              ;;
8391           esac
8392         fi
8393       else
8394         ld_shlibs=no
8395       fi
8396       ;;
8398     os2*)
8399       hardcode_libdir_flag_spec='-L$libdir'
8400       hardcode_minus_L=yes
8401       allow_undefined_flag=unsupported
8402       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'
8403       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8404       ;;
8406     osf3*)
8407       if test "$GCC" = yes; then
8408         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8409         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'
8410       else
8411         allow_undefined_flag=' -expect_unresolved \*'
8412         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'
8413       fi
8414       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8415       hardcode_libdir_separator=:
8416       ;;
8418     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8419       if test "$GCC" = yes; then
8420         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8421         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'
8422         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8423       else
8424         allow_undefined_flag=' -expect_unresolved \*'
8425         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'
8426         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8427         $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'
8429         # Both c and cxx compiler support -rpath directly
8430         hardcode_libdir_flag_spec='-rpath $libdir'
8431       fi
8432       hardcode_libdir_separator=:
8433       ;;
8435     solaris*)
8436       no_undefined_flag=' -z text'
8437       if test "$GCC" = yes; then
8438         wlarc='${wl}'
8439         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8440         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8441           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8442       else
8443         wlarc=''
8444         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8445         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8446         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8447       fi
8448       hardcode_libdir_flag_spec='-R$libdir'
8449       hardcode_shlibpath_var=no
8450       case $host_os in
8451       solaris2.[0-5] | solaris2.[0-5].*) ;;
8452       *)
8453         # The compiler driver will combine and reorder linker options,
8454         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8455         # but is careful enough not to reorder.
8456         # Supported since Solaris 2.6 (maybe 2.5.1?)
8457         if test "$GCC" = yes; then
8458           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8459         else
8460           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8461         fi
8462         ;;
8463       esac
8464       link_all_deplibs=yes
8465       ;;
8467     sunos4*)
8468       if test "x$host_vendor" = xsequent; then
8469         # Use $CC to link under sequent, because it throws in some extra .o
8470         # files that make .init and .fini sections work.
8471         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8472       else
8473         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8474       fi
8475       hardcode_libdir_flag_spec='-L$libdir'
8476       hardcode_direct=yes
8477       hardcode_minus_L=yes
8478       hardcode_shlibpath_var=no
8479       ;;
8481     sysv4)
8482       case $host_vendor in
8483         sni)
8484           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8485           hardcode_direct=yes # is this really true???
8486         ;;
8487         siemens)
8488           ## LD is ld it makes a PLAMLIB
8489           ## CC just makes a GrossModule.
8490           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8491           reload_cmds='$CC -r -o $output$reload_objs'
8492           hardcode_direct=no
8493         ;;
8494         motorola)
8495           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8496           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8497         ;;
8498       esac
8499       runpath_var='LD_RUN_PATH'
8500       hardcode_shlibpath_var=no
8501       ;;
8503     sysv4.3*)
8504       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8505       hardcode_shlibpath_var=no
8506       export_dynamic_flag_spec='-Bexport'
8507       ;;
8509     sysv4*MP*)
8510       if test -d /usr/nec; then
8511         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8512         hardcode_shlibpath_var=no
8513         runpath_var=LD_RUN_PATH
8514         hardcode_runpath_var=yes
8515         ld_shlibs=yes
8516       fi
8517       ;;
8519     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8520       no_undefined_flag='${wl}-z,text'
8521       archive_cmds_need_lc=no
8522       hardcode_shlibpath_var=no
8523       runpath_var='LD_RUN_PATH'
8525       if test "$GCC" = yes; then
8526         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8527         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8528       else
8529         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8530         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8531       fi
8532       ;;
8534     sysv5* | sco3.2v5* | sco5v6*)
8535       # Note: We can NOT use -z defs as we might desire, because we do not
8536       # link with -lc, and that would cause any symbols used from libc to
8537       # always be unresolved, which means just about no library would
8538       # ever link correctly.  If we're not using GNU ld we use -z text
8539       # though, which does catch some bad symbols but isn't as heavy-handed
8540       # as -z defs.
8541       no_undefined_flag='${wl}-z,text'
8542       allow_undefined_flag='${wl}-z,nodefs'
8543       archive_cmds_need_lc=no
8544       hardcode_shlibpath_var=no
8545       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8546       hardcode_libdir_separator=':'
8547       link_all_deplibs=yes
8548       export_dynamic_flag_spec='${wl}-Bexport'
8549       runpath_var='LD_RUN_PATH'
8551       if test "$GCC" = yes; then
8552         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8553         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8554       else
8555         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8556         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8557       fi
8558       ;;
8560     uts4*)
8561       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8562       hardcode_libdir_flag_spec='-L$libdir'
8563       hardcode_shlibpath_var=no
8564       ;;
8566     *)
8567       ld_shlibs=no
8568       ;;
8569     esac
8570   fi
8572 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8573 echo "${ECHO_T}$ld_shlibs" >&6; }
8574 test "$ld_shlibs" = no && can_build_shared=no
8577 # Do we need to explicitly link libc?
8579 case "x$archive_cmds_need_lc" in
8580 x|xyes)
8581   # Assume -lc should be added
8582   archive_cmds_need_lc=yes
8584   if test "$enable_shared" = yes && test "$GCC" = yes; then
8585     case $archive_cmds in
8586     *'~'*)
8587       # FIXME: we may have to deal with multi-command sequences.
8588       ;;
8589     '$CC '*)
8590       # Test whether the compiler implicitly links with -lc since on some
8591       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8592       # to ld, don't add -lc before -lgcc.
8593       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8594 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8595       $rm conftest*
8596       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8598       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8599   (eval $ac_compile) 2>&5
8600   ac_status=$?
8601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602   (exit $ac_status); } 2>conftest.err; then
8603         soname=conftest
8604         lib=conftest
8605         libobjs=conftest.$ac_objext
8606         deplibs=
8607         wl=$lt_prog_compiler_wl
8608         pic_flag=$lt_prog_compiler_pic
8609         compiler_flags=-v
8610         linker_flags=-v
8611         verstring=
8612         output_objdir=.
8613         libname=conftest
8614         lt_save_allow_undefined_flag=$allow_undefined_flag
8615         allow_undefined_flag=
8616         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8617   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8618   ac_status=$?
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); }
8621         then
8622           archive_cmds_need_lc=no
8623         else
8624           archive_cmds_need_lc=yes
8625         fi
8626         allow_undefined_flag=$lt_save_allow_undefined_flag
8627       else
8628         cat conftest.err 1>&5
8629       fi
8630       $rm conftest*
8631       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8632 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8633       ;;
8634     esac
8635   fi
8636   ;;
8637 esac
8639 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8640 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8641 library_names_spec=
8642 libname_spec='lib$name'
8643 soname_spec=
8644 shrext_cmds=".so"
8645 postinstall_cmds=
8646 postuninstall_cmds=
8647 finish_cmds=
8648 finish_eval=
8649 shlibpath_var=
8650 shlibpath_overrides_runpath=unknown
8651 version_type=none
8652 dynamic_linker="$host_os ld.so"
8653 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8655 if test "$GCC" = yes; then
8656   case $host_os in
8657     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8658     *) lt_awk_arg="/^libraries:/" ;;
8659   esac
8660   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8661   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8662     # if the path contains ";" then we assume it to be the separator
8663     # otherwise default to the standard path separator (i.e. ":") - it is
8664     # assumed that no part of a normal pathname contains ";" but that should
8665     # okay in the real world where ";" in dirpaths is itself problematic.
8666     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8667   else
8668     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8669   fi
8670   # Ok, now we have the path, separated by spaces, we can step through it
8671   # and add multilib dir if necessary.
8672   lt_tmp_lt_search_path_spec=
8673   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8674   for lt_sys_path in $lt_search_path_spec; do
8675     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8676       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8677     else
8678       test -d "$lt_sys_path" && \
8679         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8680     fi
8681   done
8682   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8683 BEGIN {RS=" "; FS="/|\n";} {
8684   lt_foo="";
8685   lt_count=0;
8686   for (lt_i = NF; lt_i > 0; lt_i--) {
8687     if ($lt_i != "" && $lt_i != ".") {
8688       if ($lt_i == "..") {
8689         lt_count++;
8690       } else {
8691         if (lt_count == 0) {
8692           lt_foo="/" $lt_i lt_foo;
8693         } else {
8694           lt_count--;
8695         }
8696       }
8697     }
8698   }
8699   if (lt_foo != "") { lt_freq[lt_foo]++; }
8700   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8702   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8703 else
8704   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8706 need_lib_prefix=unknown
8707 hardcode_into_libs=no
8709 # when you set need_version to no, make sure it does not cause -set_version
8710 # flags to be left without arguments
8711 need_version=unknown
8713 case $host_os in
8714 aix3*)
8715   version_type=linux
8716   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8717   shlibpath_var=LIBPATH
8719   # AIX 3 has no versioning support, so we append a major version to the name.
8720   soname_spec='${libname}${release}${shared_ext}$major'
8721   ;;
8723 aix4* | aix5*)
8724   version_type=linux
8725   need_lib_prefix=no
8726   need_version=no
8727   hardcode_into_libs=yes
8728   if test "$host_cpu" = ia64; then
8729     # AIX 5 supports IA64
8730     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8731     shlibpath_var=LD_LIBRARY_PATH
8732   else
8733     # With GCC up to 2.95.x, collect2 would create an import file
8734     # for dependence libraries.  The import file would start with
8735     # the line `#! .'.  This would cause the generated library to
8736     # depend on `.', always an invalid library.  This was fixed in
8737     # development snapshots of GCC prior to 3.0.
8738     case $host_os in
8739       aix4 | aix4.[01] | aix4.[01].*)
8740       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8741            echo ' yes '
8742            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8743         :
8744       else
8745         can_build_shared=no
8746       fi
8747       ;;
8748     esac
8749     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8750     # soname into executable. Probably we can add versioning support to
8751     # collect2, so additional links can be useful in future.
8752     if test "$aix_use_runtimelinking" = yes; then
8753       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8754       # instead of lib<name>.a to let people know that these are not
8755       # typical AIX shared libraries.
8756       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8757     else
8758       # We preserve .a as extension for shared libraries through AIX4.2
8759       # and later when we are not doing run time linking.
8760       library_names_spec='${libname}${release}.a $libname.a'
8761       soname_spec='${libname}${release}${shared_ext}$major'
8762     fi
8763     shlibpath_var=LIBPATH
8764   fi
8765   ;;
8767 amigaos*)
8768   library_names_spec='$libname.ixlibrary $libname.a'
8769   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8770   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'
8771   ;;
8773 beos*)
8774   library_names_spec='${libname}${shared_ext}'
8775   dynamic_linker="$host_os ld.so"
8776   shlibpath_var=LIBRARY_PATH
8777   ;;
8779 bsdi[45]*)
8780   version_type=linux
8781   need_version=no
8782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8783   soname_spec='${libname}${release}${shared_ext}$major'
8784   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8785   shlibpath_var=LD_LIBRARY_PATH
8786   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8787   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8788   # the default ld.so.conf also contains /usr/contrib/lib and
8789   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8790   # libtool to hard-code these into programs
8791   ;;
8793 cygwin* | mingw* | pw32*)
8794   version_type=windows
8795   shrext_cmds=".dll"
8796   need_version=no
8797   need_lib_prefix=no
8799   case $GCC,$host_os in
8800   yes,cygwin* | yes,mingw* | yes,pw32*)
8801     library_names_spec='$libname.dll.a'
8802     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8803     postinstall_cmds='base_file=`basename \${file}`~
8804       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8805       dldir=$destdir/`dirname \$dlpath`~
8806       test -d \$dldir || mkdir -p \$dldir~
8807       $install_prog $dir/$dlname \$dldir/$dlname~
8808       chmod a+x \$dldir/$dlname'
8809     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8810       dlpath=$dir/\$dldll~
8811        $rm \$dlpath'
8812     shlibpath_overrides_runpath=yes
8814     case $host_os in
8815     cygwin*)
8816       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8817       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8818       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8819       ;;
8820     mingw*)
8821       # MinGW DLLs use traditional 'lib' prefix
8822       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8823       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8824       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8825         # It is most probably a Windows format PATH printed by
8826         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8827         # path with ; separators, and with drive letters. We can handle the
8828         # drive letters (cygwin fileutils understands them), so leave them,
8829         # especially as we might pass files found there to a mingw objdump,
8830         # which wouldn't understand a cygwinified path. Ahh.
8831         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8832       else
8833         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8834       fi
8835       ;;
8836     pw32*)
8837       # pw32 DLLs use 'pw' prefix rather than 'lib'
8838       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8839       ;;
8840     esac
8841     ;;
8843   *)
8844     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8845     ;;
8846   esac
8847   dynamic_linker='Win32 ld.exe'
8848   # FIXME: first we should search . and the directory the executable is in
8849   shlibpath_var=PATH
8850   ;;
8852 darwin* | rhapsody*)
8853   dynamic_linker="$host_os dyld"
8854   version_type=darwin
8855   need_lib_prefix=no
8856   need_version=no
8857   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8858   soname_spec='${libname}${release}${major}$shared_ext'
8859   shlibpath_overrides_runpath=yes
8860   shlibpath_var=DYLD_LIBRARY_PATH
8861   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8862   
8863   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 
8864   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8865   ;;
8867 dgux*)
8868   version_type=linux
8869   need_lib_prefix=no
8870   need_version=no
8871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8872   soname_spec='${libname}${release}${shared_ext}$major'
8873   shlibpath_var=LD_LIBRARY_PATH
8874   ;;
8876 freebsd1*)
8877   dynamic_linker=no
8878   ;;
8880 freebsd* | dragonfly*)
8881   # DragonFly does not have aout.  When/if they implement a new
8882   # versioning mechanism, adjust this.
8883   if test -x /usr/bin/objformat; then
8884     objformat=`/usr/bin/objformat`
8885   else
8886     case $host_os in
8887     freebsd[123]*) objformat=aout ;;
8888     *) objformat=elf ;;
8889     esac
8890   fi
8891   version_type=freebsd-$objformat
8892   case $version_type in
8893     freebsd-elf*)
8894       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8895       need_version=no
8896       need_lib_prefix=no
8897       ;;
8898     freebsd-*)
8899       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8900       need_version=yes
8901       ;;
8902   esac
8903   shlibpath_var=LD_LIBRARY_PATH
8904   case $host_os in
8905   freebsd2*)
8906     shlibpath_overrides_runpath=yes
8907     ;;
8908   freebsd3.[01]* | freebsdelf3.[01]*)
8909     shlibpath_overrides_runpath=yes
8910     hardcode_into_libs=yes
8911     ;;
8912   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8913   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8914     shlibpath_overrides_runpath=no
8915     hardcode_into_libs=yes
8916     ;;
8917   *) # from 4.6 on, and DragonFly
8918     shlibpath_overrides_runpath=yes
8919     hardcode_into_libs=yes
8920     ;;
8921   esac
8922   ;;
8924 gnu*)
8925   version_type=linux
8926   need_lib_prefix=no
8927   need_version=no
8928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8929   soname_spec='${libname}${release}${shared_ext}$major'
8930   shlibpath_var=LD_LIBRARY_PATH
8931   hardcode_into_libs=yes
8932   ;;
8934 hpux9* | hpux10* | hpux11*)
8935   # Give a soname corresponding to the major version so that dld.sl refuses to
8936   # link against other versions.
8937   version_type=sunos
8938   need_lib_prefix=no
8939   need_version=no
8940   case $host_cpu in
8941   ia64*)
8942     shrext_cmds='.so'
8943     hardcode_into_libs=yes
8944     dynamic_linker="$host_os dld.so"
8945     shlibpath_var=LD_LIBRARY_PATH
8946     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8947     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8948     soname_spec='${libname}${release}${shared_ext}$major'
8949     if test "X$HPUX_IA64_MODE" = X32; then
8950       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8951     else
8952       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8953     fi
8954     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8955     ;;
8956    hppa*64*)
8957      shrext_cmds='.sl'
8958      hardcode_into_libs=yes
8959      dynamic_linker="$host_os dld.sl"
8960      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8961      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8962      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8963      soname_spec='${libname}${release}${shared_ext}$major'
8964      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8965      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8966      ;;
8967    *)
8968     shrext_cmds='.sl'
8969     dynamic_linker="$host_os dld.sl"
8970     shlibpath_var=SHLIB_PATH
8971     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8972     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8973     soname_spec='${libname}${release}${shared_ext}$major'
8974     ;;
8975   esac
8976   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8977   postinstall_cmds='chmod 555 $lib'
8978   ;;
8980 interix[3-9]*)
8981   version_type=linux
8982   need_lib_prefix=no
8983   need_version=no
8984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8985   soname_spec='${libname}${release}${shared_ext}$major'
8986   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8987   shlibpath_var=LD_LIBRARY_PATH
8988   shlibpath_overrides_runpath=no
8989   hardcode_into_libs=yes
8990   ;;
8992 irix5* | irix6* | nonstopux*)
8993   case $host_os in
8994     nonstopux*) version_type=nonstopux ;;
8995     *)
8996         if test "$lt_cv_prog_gnu_ld" = yes; then
8997                 version_type=linux
8998         else
8999                 version_type=irix
9000         fi ;;
9001   esac
9002   need_lib_prefix=no
9003   need_version=no
9004   soname_spec='${libname}${release}${shared_ext}$major'
9005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9006   case $host_os in
9007   irix5* | nonstopux*)
9008     libsuff= shlibsuff=
9009     ;;
9010   *)
9011     case $LD in # libtool.m4 will add one of these switches to LD
9012     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9013       libsuff= shlibsuff= libmagic=32-bit;;
9014     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9015       libsuff=32 shlibsuff=N32 libmagic=N32;;
9016     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9017       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9018     *) libsuff= shlibsuff= libmagic=never-match;;
9019     esac
9020     ;;
9021   esac
9022   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9023   shlibpath_overrides_runpath=no
9024   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9025   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9026   hardcode_into_libs=yes
9027   ;;
9029 # No shared lib support for Linux oldld, aout, or coff.
9030 linux*oldld* | linux*aout* | linux*coff*)
9031   dynamic_linker=no
9032   ;;
9034 # This must be Linux ELF.
9035 linux* | k*bsd*-gnu)
9036   version_type=linux
9037   need_lib_prefix=no
9038   need_version=no
9039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9040   soname_spec='${libname}${release}${shared_ext}$major'
9041   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9042   shlibpath_var=LD_LIBRARY_PATH
9043   shlibpath_overrides_runpath=no
9044   # This implies no fast_install, which is unacceptable.
9045   # Some rework will be needed to allow for fast_install
9046   # before this can be enabled.
9047   hardcode_into_libs=yes
9048   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9049   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9051   # Append ld.so.conf contents to the search path
9052   if test -f /etc/ld.so.conf; then
9053     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' ' '`
9054     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9055   fi
9057   # We used to test for /lib/ld.so.1 and disable shared libraries on
9058   # powerpc, because MkLinux only supported shared libraries with the
9059   # GNU dynamic linker.  Since this was broken with cross compilers,
9060   # most powerpc-linux boxes support dynamic linking these days and
9061   # people can always --disable-shared, the test was removed, and we
9062   # assume the GNU/Linux dynamic linker is in use.
9063   dynamic_linker='GNU/Linux ld.so'
9064   ;;
9066 netbsd*)
9067   version_type=sunos
9068   need_lib_prefix=no
9069   need_version=no
9070   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9071     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9072     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9073     dynamic_linker='NetBSD (a.out) ld.so'
9074   else
9075     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9076     soname_spec='${libname}${release}${shared_ext}$major'
9077     dynamic_linker='NetBSD ld.elf_so'
9078   fi
9079   shlibpath_var=LD_LIBRARY_PATH
9080   shlibpath_overrides_runpath=yes
9081   hardcode_into_libs=yes
9082   ;;
9084 newsos6)
9085   version_type=linux
9086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087   shlibpath_var=LD_LIBRARY_PATH
9088   shlibpath_overrides_runpath=yes
9089   ;;
9091 nto-qnx*)
9092   version_type=linux
9093   need_lib_prefix=no
9094   need_version=no
9095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9096   soname_spec='${libname}${release}${shared_ext}$major'
9097   shlibpath_var=LD_LIBRARY_PATH
9098   shlibpath_overrides_runpath=yes
9099   ;;
9101 openbsd*)
9102   version_type=sunos
9103   sys_lib_dlsearch_path_spec="/usr/lib"
9104   need_lib_prefix=no
9105   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9106   case $host_os in
9107     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9108     *)                         need_version=no  ;;
9109   esac
9110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9111   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9112   shlibpath_var=LD_LIBRARY_PATH
9113   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9114     case $host_os in
9115       openbsd2.[89] | openbsd2.[89].*)
9116         shlibpath_overrides_runpath=no
9117         ;;
9118       *)
9119         shlibpath_overrides_runpath=yes
9120         ;;
9121       esac
9122   else
9123     shlibpath_overrides_runpath=yes
9124   fi
9125   ;;
9127 os2*)
9128   libname_spec='$name'
9129   shrext_cmds=".dll"
9130   need_lib_prefix=no
9131   library_names_spec='$libname${shared_ext} $libname.a'
9132   dynamic_linker='OS/2 ld.exe'
9133   shlibpath_var=LIBPATH
9134   ;;
9136 osf3* | osf4* | osf5*)
9137   version_type=osf
9138   need_lib_prefix=no
9139   need_version=no
9140   soname_spec='${libname}${release}${shared_ext}$major'
9141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142   shlibpath_var=LD_LIBRARY_PATH
9143   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9144   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9145   ;;
9147 rdos*)
9148   dynamic_linker=no
9149   ;;
9151 solaris*)
9152   version_type=linux
9153   need_lib_prefix=no
9154   need_version=no
9155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156   soname_spec='${libname}${release}${shared_ext}$major'
9157   shlibpath_var=LD_LIBRARY_PATH
9158   shlibpath_overrides_runpath=yes
9159   hardcode_into_libs=yes
9160   # ldd complains unless libraries are executable
9161   postinstall_cmds='chmod +x $lib'
9162   ;;
9164 sunos4*)
9165   version_type=sunos
9166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9167   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9168   shlibpath_var=LD_LIBRARY_PATH
9169   shlibpath_overrides_runpath=yes
9170   if test "$with_gnu_ld" = yes; then
9171     need_lib_prefix=no
9172   fi
9173   need_version=yes
9174   ;;
9176 sysv4 | sysv4.3*)
9177   version_type=linux
9178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179   soname_spec='${libname}${release}${shared_ext}$major'
9180   shlibpath_var=LD_LIBRARY_PATH
9181   case $host_vendor in
9182     sni)
9183       shlibpath_overrides_runpath=no
9184       need_lib_prefix=no
9185       export_dynamic_flag_spec='${wl}-Blargedynsym'
9186       runpath_var=LD_RUN_PATH
9187       ;;
9188     siemens)
9189       need_lib_prefix=no
9190       ;;
9191     motorola)
9192       need_lib_prefix=no
9193       need_version=no
9194       shlibpath_overrides_runpath=no
9195       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9196       ;;
9197   esac
9198   ;;
9200 sysv4*MP*)
9201   if test -d /usr/nec ;then
9202     version_type=linux
9203     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9204     soname_spec='$libname${shared_ext}.$major'
9205     shlibpath_var=LD_LIBRARY_PATH
9206   fi
9207   ;;
9209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9210   version_type=freebsd-elf
9211   need_lib_prefix=no
9212   need_version=no
9213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9214   soname_spec='${libname}${release}${shared_ext}$major'
9215   shlibpath_var=LD_LIBRARY_PATH
9216   hardcode_into_libs=yes
9217   if test "$with_gnu_ld" = yes; then
9218     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9219     shlibpath_overrides_runpath=no
9220   else
9221     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9222     shlibpath_overrides_runpath=yes
9223     case $host_os in
9224       sco3.2v5*)
9225         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9226         ;;
9227     esac
9228   fi
9229   sys_lib_dlsearch_path_spec='/usr/lib'
9230   ;;
9232 uts4*)
9233   version_type=linux
9234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235   soname_spec='${libname}${release}${shared_ext}$major'
9236   shlibpath_var=LD_LIBRARY_PATH
9237   ;;
9240   dynamic_linker=no
9241   ;;
9242 esac
9243 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9244 echo "${ECHO_T}$dynamic_linker" >&6; }
9245 test "$dynamic_linker" = no && can_build_shared=no
9247 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9248 if test "$GCC" = yes; then
9249   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9252 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9253 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9254 hardcode_action=
9255 if test -n "$hardcode_libdir_flag_spec" || \
9256    test -n "$runpath_var" || \
9257    test "X$hardcode_automatic" = "Xyes" ; then
9259   # We can hardcode non-existant directories.
9260   if test "$hardcode_direct" != no &&
9261      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9262      # have to relink, otherwise we might link with an installed library
9263      # when we should be linking with a yet-to-be-installed one
9264      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9265      test "$hardcode_minus_L" != no; then
9266     # Linking always hardcodes the temporary library directory.
9267     hardcode_action=relink
9268   else
9269     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9270     hardcode_action=immediate
9271   fi
9272 else
9273   # We cannot hardcode anything, or else we can only hardcode existing
9274   # directories.
9275   hardcode_action=unsupported
9277 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9278 echo "${ECHO_T}$hardcode_action" >&6; }
9280 if test "$hardcode_action" = relink; then
9281   # Fast installation is not supported
9282   enable_fast_install=no
9283 elif test "$shlibpath_overrides_runpath" = yes ||
9284      test "$enable_shared" = no; then
9285   # Fast installation is not necessary
9286   enable_fast_install=needless
9289 striplib=
9290 old_striplib=
9291 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9292 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9293 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9294   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9295   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9296   { echo "$as_me:$LINENO: result: yes" >&5
9297 echo "${ECHO_T}yes" >&6; }
9298 else
9299 # FIXME - insert some real tests, host_os isn't really good enough
9300   case $host_os in
9301    darwin*)
9302        if test -n "$STRIP" ; then
9303          striplib="$STRIP -x"
9304          old_striplib="$STRIP -S"
9305          { echo "$as_me:$LINENO: result: yes" >&5
9306 echo "${ECHO_T}yes" >&6; }
9307        else
9308   { echo "$as_me:$LINENO: result: no" >&5
9309 echo "${ECHO_T}no" >&6; }
9311        ;;
9312    *)
9313   { echo "$as_me:$LINENO: result: no" >&5
9314 echo "${ECHO_T}no" >&6; }
9315     ;;
9316   esac
9319 if test "x$enable_dlopen" != xyes; then
9320   enable_dlopen=unknown
9321   enable_dlopen_self=unknown
9322   enable_dlopen_self_static=unknown
9323 else
9324   lt_cv_dlopen=no
9325   lt_cv_dlopen_libs=
9327   case $host_os in
9328   beos*)
9329     lt_cv_dlopen="load_add_on"
9330     lt_cv_dlopen_libs=
9331     lt_cv_dlopen_self=yes
9332     ;;
9334   mingw* | pw32*)
9335     lt_cv_dlopen="LoadLibrary"
9336     lt_cv_dlopen_libs=
9337    ;;
9339   cygwin*)
9340     lt_cv_dlopen="dlopen"
9341     lt_cv_dlopen_libs=
9342    ;;
9344   darwin*)
9345   # if libdl is installed we need to link against it
9346     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9347 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9348 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9349   echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351   ac_check_lib_save_LIBS=$LIBS
9352 LIBS="-ldl  $LIBS"
9353 cat >conftest.$ac_ext <<_ACEOF
9354 /* confdefs.h.  */
9355 _ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h.  */
9360 /* Override any GCC internal prototype to avoid an error.
9361    Use char because int might match the return type of a GCC
9362    builtin and then its argument prototype would still apply.  */
9363 #ifdef __cplusplus
9364 extern "C"
9365 #endif
9366 char dlopen ();
9368 main ()
9370 return dlopen ();
9371   ;
9372   return 0;
9374 _ACEOF
9375 rm -f conftest.$ac_objext conftest$ac_exeext
9376 if { (ac_try="$ac_link"
9377 case "(($ac_try" in
9378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9379   *) ac_try_echo=$ac_try;;
9380 esac
9381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9382   (eval "$ac_link") 2>conftest.er1
9383   ac_status=$?
9384   grep -v '^ *+' conftest.er1 >conftest.err
9385   rm -f conftest.er1
9386   cat conftest.err >&5
9387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388   (exit $ac_status); } && {
9389          test -z "$ac_c_werror_flag" ||
9390          test ! -s conftest.err
9391        } && test -s conftest$ac_exeext &&
9392        $as_test_x conftest$ac_exeext; then
9393   ac_cv_lib_dl_dlopen=yes
9394 else
9395   echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.$ac_ext >&5
9398         ac_cv_lib_dl_dlopen=no
9401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9402       conftest$ac_exeext conftest.$ac_ext
9403 LIBS=$ac_check_lib_save_LIBS
9405 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9406 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9407 if test $ac_cv_lib_dl_dlopen = yes; then
9408   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9409 else
9410   
9411     lt_cv_dlopen="dyld"
9412     lt_cv_dlopen_libs=
9413     lt_cv_dlopen_self=yes
9414     
9417    ;;
9419   *)
9420     { echo "$as_me:$LINENO: checking for shl_load" >&5
9421 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9422 if test "${ac_cv_func_shl_load+set}" = set; then
9423   echo $ECHO_N "(cached) $ECHO_C" >&6
9424 else
9425   cat >conftest.$ac_ext <<_ACEOF
9426 /* confdefs.h.  */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h.  */
9431 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9432    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9433 #define shl_load innocuous_shl_load
9435 /* System header to define __stub macros and hopefully few prototypes,
9436     which can conflict with char shl_load (); below.
9437     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9438     <limits.h> exists even on freestanding compilers.  */
9440 #ifdef __STDC__
9441 # include <limits.h>
9442 #else
9443 # include <assert.h>
9444 #endif
9446 #undef shl_load
9448 /* Override any GCC internal prototype to avoid an error.
9449    Use char because int might match the return type of a GCC
9450    builtin and then its argument prototype would still apply.  */
9451 #ifdef __cplusplus
9452 extern "C"
9453 #endif
9454 char shl_load ();
9455 /* The GNU C library defines this for functions which it implements
9456     to always fail with ENOSYS.  Some functions are actually named
9457     something starting with __ and the normal name is an alias.  */
9458 #if defined __stub_shl_load || defined __stub___shl_load
9459 choke me
9460 #endif
9463 main ()
9465 return shl_load ();
9466   ;
9467   return 0;
9469 _ACEOF
9470 rm -f conftest.$ac_objext conftest$ac_exeext
9471 if { (ac_try="$ac_link"
9472 case "(($ac_try" in
9473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474   *) ac_try_echo=$ac_try;;
9475 esac
9476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9477   (eval "$ac_link") 2>conftest.er1
9478   ac_status=$?
9479   grep -v '^ *+' conftest.er1 >conftest.err
9480   rm -f conftest.er1
9481   cat conftest.err >&5
9482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483   (exit $ac_status); } && {
9484          test -z "$ac_c_werror_flag" ||
9485          test ! -s conftest.err
9486        } && test -s conftest$ac_exeext &&
9487        $as_test_x conftest$ac_exeext; then
9488   ac_cv_func_shl_load=yes
9489 else
9490   echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9493         ac_cv_func_shl_load=no
9496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9497       conftest$ac_exeext conftest.$ac_ext
9499 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9500 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9501 if test $ac_cv_func_shl_load = yes; then
9502   lt_cv_dlopen="shl_load"
9503 else
9504   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9505 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9506 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9507   echo $ECHO_N "(cached) $ECHO_C" >&6
9508 else
9509   ac_check_lib_save_LIBS=$LIBS
9510 LIBS="-ldld  $LIBS"
9511 cat >conftest.$ac_ext <<_ACEOF
9512 /* confdefs.h.  */
9513 _ACEOF
9514 cat confdefs.h >>conftest.$ac_ext
9515 cat >>conftest.$ac_ext <<_ACEOF
9516 /* end confdefs.h.  */
9518 /* Override any GCC internal prototype to avoid an error.
9519    Use char because int might match the return type of a GCC
9520    builtin and then its argument prototype would still apply.  */
9521 #ifdef __cplusplus
9522 extern "C"
9523 #endif
9524 char shl_load ();
9526 main ()
9528 return shl_load ();
9529   ;
9530   return 0;
9532 _ACEOF
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (ac_try="$ac_link"
9535 case "(($ac_try" in
9536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537   *) ac_try_echo=$ac_try;;
9538 esac
9539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540   (eval "$ac_link") 2>conftest.er1
9541   ac_status=$?
9542   grep -v '^ *+' conftest.er1 >conftest.err
9543   rm -f conftest.er1
9544   cat conftest.err >&5
9545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); } && {
9547          test -z "$ac_c_werror_flag" ||
9548          test ! -s conftest.err
9549        } && test -s conftest$ac_exeext &&
9550        $as_test_x conftest$ac_exeext; then
9551   ac_cv_lib_dld_shl_load=yes
9552 else
9553   echo "$as_me: failed program was:" >&5
9554 sed 's/^/| /' conftest.$ac_ext >&5
9556         ac_cv_lib_dld_shl_load=no
9559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9560       conftest$ac_exeext conftest.$ac_ext
9561 LIBS=$ac_check_lib_save_LIBS
9563 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9564 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9565 if test $ac_cv_lib_dld_shl_load = yes; then
9566   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9567 else
9568   { echo "$as_me:$LINENO: checking for dlopen" >&5
9569 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9570 if test "${ac_cv_func_dlopen+set}" = set; then
9571   echo $ECHO_N "(cached) $ECHO_C" >&6
9572 else
9573   cat >conftest.$ac_ext <<_ACEOF
9574 /* confdefs.h.  */
9575 _ACEOF
9576 cat confdefs.h >>conftest.$ac_ext
9577 cat >>conftest.$ac_ext <<_ACEOF
9578 /* end confdefs.h.  */
9579 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9581 #define dlopen innocuous_dlopen
9583 /* System header to define __stub macros and hopefully few prototypes,
9584     which can conflict with char dlopen (); below.
9585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9586     <limits.h> exists even on freestanding compilers.  */
9588 #ifdef __STDC__
9589 # include <limits.h>
9590 #else
9591 # include <assert.h>
9592 #endif
9594 #undef dlopen
9596 /* Override any GCC internal prototype to avoid an error.
9597    Use char because int might match the return type of a GCC
9598    builtin and then its argument prototype would still apply.  */
9599 #ifdef __cplusplus
9600 extern "C"
9601 #endif
9602 char dlopen ();
9603 /* The GNU C library defines this for functions which it implements
9604     to always fail with ENOSYS.  Some functions are actually named
9605     something starting with __ and the normal name is an alias.  */
9606 #if defined __stub_dlopen || defined __stub___dlopen
9607 choke me
9608 #endif
9611 main ()
9613 return dlopen ();
9614   ;
9615   return 0;
9617 _ACEOF
9618 rm -f conftest.$ac_objext conftest$ac_exeext
9619 if { (ac_try="$ac_link"
9620 case "(($ac_try" in
9621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622   *) ac_try_echo=$ac_try;;
9623 esac
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625   (eval "$ac_link") 2>conftest.er1
9626   ac_status=$?
9627   grep -v '^ *+' conftest.er1 >conftest.err
9628   rm -f conftest.er1
9629   cat conftest.err >&5
9630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631   (exit $ac_status); } && {
9632          test -z "$ac_c_werror_flag" ||
9633          test ! -s conftest.err
9634        } && test -s conftest$ac_exeext &&
9635        $as_test_x conftest$ac_exeext; then
9636   ac_cv_func_dlopen=yes
9637 else
9638   echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9641         ac_cv_func_dlopen=no
9644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9645       conftest$ac_exeext conftest.$ac_ext
9647 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9648 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9649 if test $ac_cv_func_dlopen = yes; then
9650   lt_cv_dlopen="dlopen"
9651 else
9652   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9653 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9654 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9655   echo $ECHO_N "(cached) $ECHO_C" >&6
9656 else
9657   ac_check_lib_save_LIBS=$LIBS
9658 LIBS="-ldl  $LIBS"
9659 cat >conftest.$ac_ext <<_ACEOF
9660 /* confdefs.h.  */
9661 _ACEOF
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h.  */
9666 /* Override any GCC internal prototype to avoid an error.
9667    Use char because int might match the return type of a GCC
9668    builtin and then its argument prototype would still apply.  */
9669 #ifdef __cplusplus
9670 extern "C"
9671 #endif
9672 char dlopen ();
9674 main ()
9676 return dlopen ();
9677   ;
9678   return 0;
9680 _ACEOF
9681 rm -f conftest.$ac_objext conftest$ac_exeext
9682 if { (ac_try="$ac_link"
9683 case "(($ac_try" in
9684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685   *) ac_try_echo=$ac_try;;
9686 esac
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688   (eval "$ac_link") 2>conftest.er1
9689   ac_status=$?
9690   grep -v '^ *+' conftest.er1 >conftest.err
9691   rm -f conftest.er1
9692   cat conftest.err >&5
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); } && {
9695          test -z "$ac_c_werror_flag" ||
9696          test ! -s conftest.err
9697        } && test -s conftest$ac_exeext &&
9698        $as_test_x conftest$ac_exeext; then
9699   ac_cv_lib_dl_dlopen=yes
9700 else
9701   echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9704         ac_cv_lib_dl_dlopen=no
9707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9708       conftest$ac_exeext conftest.$ac_ext
9709 LIBS=$ac_check_lib_save_LIBS
9711 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9712 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9713 if test $ac_cv_lib_dl_dlopen = yes; then
9714   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9715 else
9716   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9717 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9718 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9719   echo $ECHO_N "(cached) $ECHO_C" >&6
9720 else
9721   ac_check_lib_save_LIBS=$LIBS
9722 LIBS="-lsvld  $LIBS"
9723 cat >conftest.$ac_ext <<_ACEOF
9724 /* confdefs.h.  */
9725 _ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h.  */
9730 /* Override any GCC internal prototype to avoid an error.
9731    Use char because int might match the return type of a GCC
9732    builtin and then its argument prototype would still apply.  */
9733 #ifdef __cplusplus
9734 extern "C"
9735 #endif
9736 char dlopen ();
9738 main ()
9740 return dlopen ();
9741   ;
9742   return 0;
9744 _ACEOF
9745 rm -f conftest.$ac_objext conftest$ac_exeext
9746 if { (ac_try="$ac_link"
9747 case "(($ac_try" in
9748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749   *) ac_try_echo=$ac_try;;
9750 esac
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752   (eval "$ac_link") 2>conftest.er1
9753   ac_status=$?
9754   grep -v '^ *+' conftest.er1 >conftest.err
9755   rm -f conftest.er1
9756   cat conftest.err >&5
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); } && {
9759          test -z "$ac_c_werror_flag" ||
9760          test ! -s conftest.err
9761        } && test -s conftest$ac_exeext &&
9762        $as_test_x conftest$ac_exeext; then
9763   ac_cv_lib_svld_dlopen=yes
9764 else
9765   echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9768         ac_cv_lib_svld_dlopen=no
9771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9772       conftest$ac_exeext conftest.$ac_ext
9773 LIBS=$ac_check_lib_save_LIBS
9775 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9776 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9777 if test $ac_cv_lib_svld_dlopen = yes; then
9778   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9779 else
9780   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9781 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9782 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9783   echo $ECHO_N "(cached) $ECHO_C" >&6
9784 else
9785   ac_check_lib_save_LIBS=$LIBS
9786 LIBS="-ldld  $LIBS"
9787 cat >conftest.$ac_ext <<_ACEOF
9788 /* confdefs.h.  */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h.  */
9794 /* Override any GCC internal prototype to avoid an error.
9795    Use char because int might match the return type of a GCC
9796    builtin and then its argument prototype would still apply.  */
9797 #ifdef __cplusplus
9798 extern "C"
9799 #endif
9800 char dld_link ();
9802 main ()
9804 return dld_link ();
9805   ;
9806   return 0;
9808 _ACEOF
9809 rm -f conftest.$ac_objext conftest$ac_exeext
9810 if { (ac_try="$ac_link"
9811 case "(($ac_try" in
9812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813   *) ac_try_echo=$ac_try;;
9814 esac
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816   (eval "$ac_link") 2>conftest.er1
9817   ac_status=$?
9818   grep -v '^ *+' conftest.er1 >conftest.err
9819   rm -f conftest.er1
9820   cat conftest.err >&5
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); } && {
9823          test -z "$ac_c_werror_flag" ||
9824          test ! -s conftest.err
9825        } && test -s conftest$ac_exeext &&
9826        $as_test_x conftest$ac_exeext; then
9827   ac_cv_lib_dld_dld_link=yes
9828 else
9829   echo "$as_me: failed program was:" >&5
9830 sed 's/^/| /' conftest.$ac_ext >&5
9832         ac_cv_lib_dld_dld_link=no
9835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9836       conftest$ac_exeext conftest.$ac_ext
9837 LIBS=$ac_check_lib_save_LIBS
9839 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9840 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9841 if test $ac_cv_lib_dld_dld_link = yes; then
9842   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9845               
9848             
9851           
9854         
9857       
9860     ;;
9861   esac
9863   if test "x$lt_cv_dlopen" != xno; then
9864     enable_dlopen=yes
9865   else
9866     enable_dlopen=no
9867   fi
9869   case $lt_cv_dlopen in
9870   dlopen)
9871     save_CPPFLAGS="$CPPFLAGS"
9872     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9874     save_LDFLAGS="$LDFLAGS"
9875     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9877     save_LIBS="$LIBS"
9878     LIBS="$lt_cv_dlopen_libs $LIBS"
9880     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9881 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9882 if test "${lt_cv_dlopen_self+set}" = set; then
9883   echo $ECHO_N "(cached) $ECHO_C" >&6
9884 else
9885           if test "$cross_compiling" = yes; then :
9886   lt_cv_dlopen_self=cross
9887 else
9888   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9889   lt_status=$lt_dlunknown
9890   cat > conftest.$ac_ext <<EOF
9891 #line __oline__ "configure"
9892 #include "confdefs.h"
9894 #if HAVE_DLFCN_H
9895 #include <dlfcn.h>
9896 #endif
9898 #include <stdio.h>
9900 #ifdef RTLD_GLOBAL
9901 #  define LT_DLGLOBAL           RTLD_GLOBAL
9902 #else
9903 #  ifdef DL_GLOBAL
9904 #    define LT_DLGLOBAL         DL_GLOBAL
9905 #  else
9906 #    define LT_DLGLOBAL         0
9907 #  endif
9908 #endif
9910 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9911    find out it does not work in some platform. */
9912 #ifndef LT_DLLAZY_OR_NOW
9913 #  ifdef RTLD_LAZY
9914 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9915 #  else
9916 #    ifdef DL_LAZY
9917 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9918 #    else
9919 #      ifdef RTLD_NOW
9920 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9921 #      else
9922 #        ifdef DL_NOW
9923 #          define LT_DLLAZY_OR_NOW      DL_NOW
9924 #        else
9925 #          define LT_DLLAZY_OR_NOW      0
9926 #        endif
9927 #      endif
9928 #    endif
9929 #  endif
9930 #endif
9932 #ifdef __cplusplus
9933 extern "C" void exit (int);
9934 #endif
9936 void fnord() { int i=42;}
9937 int main ()
9939   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9940   int status = $lt_dlunknown;
9942   if (self)
9943     {
9944       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9945       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9946       /* dlclose (self); */
9947     }
9948   else
9949     puts (dlerror ());
9951     exit (status);
9954   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9955   (eval $ac_link) 2>&5
9956   ac_status=$?
9957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9959     (./conftest; exit; ) >&5 2>/dev/null
9960     lt_status=$?
9961     case x$lt_status in
9962       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9963       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9964       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9965     esac
9966   else :
9967     # compilation failed
9968     lt_cv_dlopen_self=no
9969   fi
9971 rm -fr conftest*
9973     
9975 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9976 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9978     if test "x$lt_cv_dlopen_self" = xyes; then
9979       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9980       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9981 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9982 if test "${lt_cv_dlopen_self_static+set}" = set; then
9983   echo $ECHO_N "(cached) $ECHO_C" >&6
9984 else
9985           if test "$cross_compiling" = yes; then :
9986   lt_cv_dlopen_self_static=cross
9987 else
9988   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9989   lt_status=$lt_dlunknown
9990   cat > conftest.$ac_ext <<EOF
9991 #line __oline__ "configure"
9992 #include "confdefs.h"
9994 #if HAVE_DLFCN_H
9995 #include <dlfcn.h>
9996 #endif
9998 #include <stdio.h>
10000 #ifdef RTLD_GLOBAL
10001 #  define LT_DLGLOBAL           RTLD_GLOBAL
10002 #else
10003 #  ifdef DL_GLOBAL
10004 #    define LT_DLGLOBAL         DL_GLOBAL
10005 #  else
10006 #    define LT_DLGLOBAL         0
10007 #  endif
10008 #endif
10010 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10011    find out it does not work in some platform. */
10012 #ifndef LT_DLLAZY_OR_NOW
10013 #  ifdef RTLD_LAZY
10014 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10015 #  else
10016 #    ifdef DL_LAZY
10017 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10018 #    else
10019 #      ifdef RTLD_NOW
10020 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10021 #      else
10022 #        ifdef DL_NOW
10023 #          define LT_DLLAZY_OR_NOW      DL_NOW
10024 #        else
10025 #          define LT_DLLAZY_OR_NOW      0
10026 #        endif
10027 #      endif
10028 #    endif
10029 #  endif
10030 #endif
10032 #ifdef __cplusplus
10033 extern "C" void exit (int);
10034 #endif
10036 void fnord() { int i=42;}
10037 int main ()
10039   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10040   int status = $lt_dlunknown;
10042   if (self)
10043     {
10044       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10045       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10046       /* dlclose (self); */
10047     }
10048   else
10049     puts (dlerror ());
10051     exit (status);
10054   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10055   (eval $ac_link) 2>&5
10056   ac_status=$?
10057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10059     (./conftest; exit; ) >&5 2>/dev/null
10060     lt_status=$?
10061     case x$lt_status in
10062       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10063       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10064       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10065     esac
10066   else :
10067     # compilation failed
10068     lt_cv_dlopen_self_static=no
10069   fi
10071 rm -fr conftest*
10073       
10075 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10076 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10077     fi
10079     CPPFLAGS="$save_CPPFLAGS"
10080     LDFLAGS="$save_LDFLAGS"
10081     LIBS="$save_LIBS"
10082     ;;
10083   esac
10085   case $lt_cv_dlopen_self in
10086   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10087   *) enable_dlopen_self=unknown ;;
10088   esac
10090   case $lt_cv_dlopen_self_static in
10091   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10092   *) enable_dlopen_self_static=unknown ;;
10093   esac
10097 # Report which library types will actually be built
10098 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10099 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10100 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10101 echo "${ECHO_T}$can_build_shared" >&6; }
10103 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10104 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10105 test "$can_build_shared" = "no" && enable_shared=no
10107 # On AIX, shared libraries and static libraries use the same namespace, and
10108 # are all built from PIC.
10109 case $host_os in
10110 aix3*)
10111   test "$enable_shared" = yes && enable_static=no
10112   if test -n "$RANLIB"; then
10113     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10114     postinstall_cmds='$RANLIB $lib'
10115   fi
10116   ;;
10118 aix4* | aix5*)
10119   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10120     test "$enable_shared" = yes && enable_static=no
10121   fi
10122     ;;
10123 esac
10124 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10125 echo "${ECHO_T}$enable_shared" >&6; }
10127 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10128 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10129 # Make sure either enable_shared or enable_static is yes.
10130 test "$enable_shared" = yes || enable_static=yes
10131 { echo "$as_me:$LINENO: result: $enable_static" >&5
10132 echo "${ECHO_T}$enable_static" >&6; }
10134 # The else clause should only fire when bootstrapping the
10135 # libtool distribution, otherwise you forgot to ship ltmain.sh
10136 # with your package, and you will get complaints that there are
10137 # no rules to generate ltmain.sh.
10138 if test -f "$ltmain"; then
10139   # See if we are running on zsh, and set the options which allow our commands through
10140   # without removal of \ escapes.
10141   if test -n "${ZSH_VERSION+set}" ; then
10142     setopt NO_GLOB_SUBST
10143   fi
10144   # Now quote all the things that may contain metacharacters while being
10145   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10146   # variables and quote the copies for generation of the libtool script.
10147   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10148     SED SHELL STRIP \
10149     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10150     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10151     deplibs_check_method reload_flag reload_cmds need_locks \
10152     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10153     lt_cv_sys_global_symbol_to_c_name_address \
10154     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10155     old_postinstall_cmds old_postuninstall_cmds \
10156     compiler \
10157     CC \
10158     LD \
10159     lt_prog_compiler_wl \
10160     lt_prog_compiler_pic \
10161     lt_prog_compiler_static \
10162     lt_prog_compiler_no_builtin_flag \
10163     export_dynamic_flag_spec \
10164     thread_safe_flag_spec \
10165     whole_archive_flag_spec \
10166     enable_shared_with_static_runtimes \
10167     old_archive_cmds \
10168     old_archive_from_new_cmds \
10169     predep_objects \
10170     postdep_objects \
10171     predeps \
10172     postdeps \
10173     compiler_lib_search_path \
10174     archive_cmds \
10175     archive_expsym_cmds \
10176     postinstall_cmds \
10177     postuninstall_cmds \
10178     old_archive_from_expsyms_cmds \
10179     allow_undefined_flag \
10180     no_undefined_flag \
10181     export_symbols_cmds \
10182     hardcode_libdir_flag_spec \
10183     hardcode_libdir_flag_spec_ld \
10184     hardcode_libdir_separator \
10185     hardcode_automatic \
10186     module_cmds \
10187     module_expsym_cmds \
10188     lt_cv_prog_compiler_c_o \
10189     fix_srcfile_path \
10190     exclude_expsyms \
10191     include_expsyms; do
10193     case $var in
10194     old_archive_cmds | \
10195     old_archive_from_new_cmds | \
10196     archive_cmds | \
10197     archive_expsym_cmds | \
10198     module_cmds | \
10199     module_expsym_cmds | \
10200     old_archive_from_expsyms_cmds | \
10201     export_symbols_cmds | \
10202     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10203     postinstall_cmds | postuninstall_cmds | \
10204     old_postinstall_cmds | old_postuninstall_cmds | \
10205     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10206       # Double-quote double-evaled strings.
10207       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10208       ;;
10209     *)
10210       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10211       ;;
10212     esac
10213   done
10215   case $lt_echo in
10216   *'\$0 --fallback-echo"')
10217     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10218     ;;
10219   esac
10221 cfgfile="${ofile}T"
10222   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10223   $rm -f "$cfgfile"
10224   { echo "$as_me:$LINENO: creating $ofile" >&5
10225 echo "$as_me: creating $ofile" >&6;}
10227   cat <<__EOF__ >> "$cfgfile"
10228 #! $SHELL
10230 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10231 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10232 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10234 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10235 # Free Software Foundation, Inc.
10237 # This file is part of GNU Libtool:
10238 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10240 # This program is free software; you can redistribute it and/or modify
10241 # it under the terms of the GNU General Public License as published by
10242 # the Free Software Foundation; either version 2 of the License, or
10243 # (at your option) any later version.
10245 # This program is distributed in the hope that it will be useful, but
10246 # WITHOUT ANY WARRANTY; without even the implied warranty of
10247 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10248 # General Public License for more details.
10250 # You should have received a copy of the GNU General Public License
10251 # along with this program; if not, write to the Free Software
10252 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10254 # As a special exception to the GNU General Public License, if you
10255 # distribute this file as part of a program that contains a
10256 # configuration script generated by Autoconf, you may include it under
10257 # the same distribution terms that you use for the rest of that program.
10259 # A sed program that does not truncate output.
10260 SED=$lt_SED
10262 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10263 Xsed="$SED -e 1s/^X//"
10265 # The HP-UX ksh and POSIX shell print the target directory to stdout
10266 # if CDPATH is set.
10267 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10269 # The names of the tagged configurations supported by this script.
10270 available_tags=
10272 # ### BEGIN LIBTOOL CONFIG
10274 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10276 # Shell to use when invoking shell scripts.
10277 SHELL=$lt_SHELL
10279 # Whether or not to build shared libraries.
10280 build_libtool_libs=$enable_shared
10282 # Whether or not to build static libraries.
10283 build_old_libs=$enable_static
10285 # Whether or not to add -lc for building shared libraries.
10286 build_libtool_need_lc=$archive_cmds_need_lc
10288 # Whether or not to disallow shared libs when runtime libs are static
10289 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10291 # Whether or not to optimize for fast installation.
10292 fast_install=$enable_fast_install
10294 # The host system.
10295 host_alias=$host_alias
10296 host=$host
10297 host_os=$host_os
10299 # The build system.
10300 build_alias=$build_alias
10301 build=$build
10302 build_os=$build_os
10304 # An echo program that does not interpret backslashes.
10305 echo=$lt_echo
10307 # The archiver.
10308 AR=$lt_AR
10309 AR_FLAGS=$lt_AR_FLAGS
10311 # A C compiler.
10312 LTCC=$lt_LTCC
10314 # LTCC compiler flags.
10315 LTCFLAGS=$lt_LTCFLAGS
10317 # A language-specific compiler.
10318 CC=$lt_compiler
10320 # Is the compiler the GNU C compiler?
10321 with_gcc=$GCC
10323 # An ERE matcher.
10324 EGREP=$lt_EGREP
10326 # The linker used to build libraries.
10327 LD=$lt_LD
10329 # Whether we need hard or soft links.
10330 LN_S=$lt_LN_S
10332 # A BSD-compatible nm program.
10333 NM=$lt_NM
10335 # A symbol stripping program
10336 STRIP=$lt_STRIP
10338 # Used to examine libraries when file_magic_cmd begins "file"
10339 MAGIC_CMD=$MAGIC_CMD
10341 # Used on cygwin: DLL creation program.
10342 DLLTOOL="$DLLTOOL"
10344 # Used on cygwin: object dumper.
10345 OBJDUMP="$OBJDUMP"
10347 # Used on cygwin: assembler.
10348 AS="$AS"
10350 # The name of the directory that contains temporary libtool files.
10351 objdir=$objdir
10353 # How to create reloadable object files.
10354 reload_flag=$lt_reload_flag
10355 reload_cmds=$lt_reload_cmds
10357 # How to pass a linker flag through the compiler.
10358 wl=$lt_lt_prog_compiler_wl
10360 # Object file suffix (normally "o").
10361 objext="$ac_objext"
10363 # Old archive suffix (normally "a").
10364 libext="$libext"
10366 # Shared library suffix (normally ".so").
10367 shrext_cmds='$shrext_cmds'
10369 # Executable file suffix (normally "").
10370 exeext="$exeext"
10372 # Additional compiler flags for building library objects.
10373 pic_flag=$lt_lt_prog_compiler_pic
10374 pic_mode=$pic_mode
10376 # What is the maximum length of a command?
10377 max_cmd_len=$lt_cv_sys_max_cmd_len
10379 # Does compiler simultaneously support -c and -o options?
10380 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10382 # Must we lock files when doing compilation?
10383 need_locks=$lt_need_locks
10385 # Do we need the lib prefix for modules?
10386 need_lib_prefix=$need_lib_prefix
10388 # Do we need a version for libraries?
10389 need_version=$need_version
10391 # Whether dlopen is supported.
10392 dlopen_support=$enable_dlopen
10394 # Whether dlopen of programs is supported.
10395 dlopen_self=$enable_dlopen_self
10397 # Whether dlopen of statically linked programs is supported.
10398 dlopen_self_static=$enable_dlopen_self_static
10400 # Compiler flag to prevent dynamic linking.
10401 link_static_flag=$lt_lt_prog_compiler_static
10403 # Compiler flag to turn off builtin functions.
10404 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10406 # Compiler flag to allow reflexive dlopens.
10407 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10409 # Compiler flag to generate shared objects directly from archives.
10410 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10412 # Compiler flag to generate thread-safe objects.
10413 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10415 # Library versioning type.
10416 version_type=$version_type
10418 # Format of library name prefix.
10419 libname_spec=$lt_libname_spec
10421 # List of archive names.  First name is the real one, the rest are links.
10422 # The last name is the one that the linker finds with -lNAME.
10423 library_names_spec=$lt_library_names_spec
10425 # The coded name of the library, if different from the real name.
10426 soname_spec=$lt_soname_spec
10428 # Commands used to build and install an old-style archive.
10429 RANLIB=$lt_RANLIB
10430 old_archive_cmds=$lt_old_archive_cmds
10431 old_postinstall_cmds=$lt_old_postinstall_cmds
10432 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10434 # Create an old-style archive from a shared archive.
10435 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10437 # Create a temporary old-style archive to link instead of a shared archive.
10438 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10440 # Commands used to build and install a shared archive.
10441 archive_cmds=$lt_archive_cmds
10442 archive_expsym_cmds=$lt_archive_expsym_cmds
10443 postinstall_cmds=$lt_postinstall_cmds
10444 postuninstall_cmds=$lt_postuninstall_cmds
10446 # Commands used to build a loadable module (assumed same as above if empty)
10447 module_cmds=$lt_module_cmds
10448 module_expsym_cmds=$lt_module_expsym_cmds
10450 # Commands to strip libraries.
10451 old_striplib=$lt_old_striplib
10452 striplib=$lt_striplib
10454 # Dependencies to place before the objects being linked to create a
10455 # shared library.
10456 predep_objects=$lt_predep_objects
10458 # Dependencies to place after the objects being linked to create a
10459 # shared library.
10460 postdep_objects=$lt_postdep_objects
10462 # Dependencies to place before the objects being linked to create a
10463 # shared library.
10464 predeps=$lt_predeps
10466 # Dependencies to place after the objects being linked to create a
10467 # shared library.
10468 postdeps=$lt_postdeps
10470 # The library search path used internally by the compiler when linking
10471 # a shared library.
10472 compiler_lib_search_path=$lt_compiler_lib_search_path
10474 # Method to check whether dependent libraries are shared objects.
10475 deplibs_check_method=$lt_deplibs_check_method
10477 # Command to use when deplibs_check_method == file_magic.
10478 file_magic_cmd=$lt_file_magic_cmd
10480 # Flag that allows shared libraries with undefined symbols to be built.
10481 allow_undefined_flag=$lt_allow_undefined_flag
10483 # Flag that forces no undefined symbols.
10484 no_undefined_flag=$lt_no_undefined_flag
10486 # Commands used to finish a libtool library installation in a directory.
10487 finish_cmds=$lt_finish_cmds
10489 # Same as above, but a single script fragment to be evaled but not shown.
10490 finish_eval=$lt_finish_eval
10492 # Take the output of nm and produce a listing of raw symbols and C names.
10493 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10495 # Transform the output of nm in a proper C declaration
10496 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10498 # Transform the output of nm in a C name address pair
10499 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10501 # This is the shared library runtime path variable.
10502 runpath_var=$runpath_var
10504 # This is the shared library path variable.
10505 shlibpath_var=$shlibpath_var
10507 # Is shlibpath searched before the hard-coded library search path?
10508 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10510 # How to hardcode a shared library path into an executable.
10511 hardcode_action=$hardcode_action
10513 # Whether we should hardcode library paths into libraries.
10514 hardcode_into_libs=$hardcode_into_libs
10516 # Flag to hardcode \$libdir into a binary during linking.
10517 # This must work even if \$libdir does not exist.
10518 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10520 # If ld is used when linking, flag to hardcode \$libdir into
10521 # a binary during linking. This must work even if \$libdir does
10522 # not exist.
10523 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10525 # Whether we need a single -rpath flag with a separated argument.
10526 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10528 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10529 # resulting binary.
10530 hardcode_direct=$hardcode_direct
10532 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10533 # resulting binary.
10534 hardcode_minus_L=$hardcode_minus_L
10536 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10537 # the resulting binary.
10538 hardcode_shlibpath_var=$hardcode_shlibpath_var
10540 # Set to yes if building a shared library automatically hardcodes DIR into the library
10541 # and all subsequent libraries and executables linked against it.
10542 hardcode_automatic=$hardcode_automatic
10544 # Variables whose values should be saved in libtool wrapper scripts and
10545 # restored at relink time.
10546 variables_saved_for_relink="$variables_saved_for_relink"
10548 # Whether libtool must link a program against all its dependency libraries.
10549 link_all_deplibs=$link_all_deplibs
10551 # Compile-time system search path for libraries
10552 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10554 # Run-time system search path for libraries
10555 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10557 # Fix the shell variable \$srcfile for the compiler.
10558 fix_srcfile_path=$lt_fix_srcfile_path
10560 # Set to yes if exported symbols are required.
10561 always_export_symbols=$always_export_symbols
10563 # The commands to list exported symbols.
10564 export_symbols_cmds=$lt_export_symbols_cmds
10566 # The commands to extract the exported symbol list from a shared archive.
10567 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10569 # Symbols that should not be listed in the preloaded symbols.
10570 exclude_expsyms=$lt_exclude_expsyms
10572 # Symbols that must always be exported.
10573 include_expsyms=$lt_include_expsyms
10575 # ### END LIBTOOL CONFIG
10577 __EOF__
10580   case $host_os in
10581   aix3*)
10582     cat <<\EOF >> "$cfgfile"
10584 # AIX sometimes has problems with the GCC collect2 program.  For some
10585 # reason, if we set the COLLECT_NAMES environment variable, the problems
10586 # vanish in a puff of smoke.
10587 if test "X${COLLECT_NAMES+set}" != Xset; then
10588   COLLECT_NAMES=
10589   export COLLECT_NAMES
10592     ;;
10593   esac
10595   # We use sed instead of cat because bash on DJGPP gets confused if
10596   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10597   # text mode, it properly converts lines to CR/LF.  This bash problem
10598   # is reportedly fixed, but why not run on old versions too?
10599   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10601   mv -f "$cfgfile" "$ofile" || \
10602     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10603   chmod +x "$ofile"
10605 else
10606   # If there is no Makefile yet, we rely on a make rule to execute
10607   # `config.status --recheck' to rerun these tests and create the
10608   # libtool script then.
10609   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10610   if test -f "$ltmain_in"; then
10611     test -f Makefile && make "$ltmain"
10612   fi
10616 ac_ext=c
10617 ac_cpp='$CPP $CPPFLAGS'
10618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10622 CC="$lt_save_CC"
10625 # Check whether --with-tags was given.
10626 if test "${with_tags+set}" = set; then
10627   withval=$with_tags; tagnames="$withval"
10631 if test -f "$ltmain" && test -n "$tagnames"; then
10632   if test ! -f "${ofile}"; then
10633     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10634 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10635   fi
10637   if test -z "$LTCC"; then
10638     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10639     if test -z "$LTCC"; then
10640       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10641 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10642     else
10643       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10644 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10645     fi
10646   fi
10647   if test -z "$LTCFLAGS"; then
10648     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10649   fi
10651   # Extract list of available tagged configurations in $ofile.
10652   # Note that this assumes the entire list is on one line.
10653   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10655   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10656   for tagname in $tagnames; do
10657     IFS="$lt_save_ifs"
10658     # Check whether tagname contains only valid characters
10659     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10660     "") ;;
10661     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10662 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10663    { (exit 1); exit 1; }; }
10664         ;;
10665     esac
10667     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10668     then
10669       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10670 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10671    { (exit 1); exit 1; }; }
10672     fi
10674     # Update the list of available tags.
10675     if test -n "$tagname"; then
10676       echo appending configuration tag \"$tagname\" to $ofile
10678       case $tagname in
10679       CXX)
10680         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10681             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10682             (test "X$CXX" != "Xg++"))) ; then
10683           ac_ext=cpp
10684 ac_cpp='$CXXCPP $CPPFLAGS'
10685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10692 archive_cmds_need_lc_CXX=no
10693 allow_undefined_flag_CXX=
10694 always_export_symbols_CXX=no
10695 archive_expsym_cmds_CXX=
10696 export_dynamic_flag_spec_CXX=
10697 hardcode_direct_CXX=no
10698 hardcode_libdir_flag_spec_CXX=
10699 hardcode_libdir_flag_spec_ld_CXX=
10700 hardcode_libdir_separator_CXX=
10701 hardcode_minus_L_CXX=no
10702 hardcode_shlibpath_var_CXX=unsupported
10703 hardcode_automatic_CXX=no
10704 module_cmds_CXX=
10705 module_expsym_cmds_CXX=
10706 link_all_deplibs_CXX=unknown
10707 old_archive_cmds_CXX=$old_archive_cmds
10708 no_undefined_flag_CXX=
10709 whole_archive_flag_spec_CXX=
10710 enable_shared_with_static_runtimes_CXX=no
10712 # Dependencies to place before and after the object being linked:
10713 predep_objects_CXX=
10714 postdep_objects_CXX=
10715 predeps_CXX=
10716 postdeps_CXX=
10717 compiler_lib_search_path_CXX=
10719 # Source file extension for C++ test sources.
10720 ac_ext=cpp
10722 # Object file extension for compiled C++ test sources.
10723 objext=o
10724 objext_CXX=$objext
10726 # Code to be used in simple compile tests
10727 lt_simple_compile_test_code="int some_variable = 0;"
10729 # Code to be used in simple link tests
10730 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10732 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10734 # If no C compiler was specified, use CC.
10735 LTCC=${LTCC-"$CC"}
10737 # If no C compiler flags were specified, use CFLAGS.
10738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10740 # Allow CC to be a program name with arguments.
10741 compiler=$CC
10744 # save warnings/boilerplate of simple test code
10745 ac_outfile=conftest.$ac_objext
10746 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10747 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10748 _lt_compiler_boilerplate=`cat conftest.err`
10749 $rm conftest*
10751 ac_outfile=conftest.$ac_objext
10752 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10753 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10754 _lt_linker_boilerplate=`cat conftest.err`
10755 $rm conftest*
10758 # Allow CC to be a program name with arguments.
10759 lt_save_CC=$CC
10760 lt_save_LD=$LD
10761 lt_save_GCC=$GCC
10762 GCC=$GXX
10763 lt_save_with_gnu_ld=$with_gnu_ld
10764 lt_save_path_LD=$lt_cv_path_LD
10765 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10766   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10767 else
10768   $as_unset lt_cv_prog_gnu_ld
10770 if test -n "${lt_cv_path_LDCXX+set}"; then
10771   lt_cv_path_LD=$lt_cv_path_LDCXX
10772 else
10773   $as_unset lt_cv_path_LD
10775 test -z "${LDCXX+set}" || LD=$LDCXX
10776 CC=${CXX-"c++"}
10777 compiler=$CC
10778 compiler_CXX=$CC
10779 for cc_temp in $compiler""; do
10780   case $cc_temp in
10781     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10782     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10783     \-*) ;;
10784     *) break;;
10785   esac
10786 done
10787 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10790 # We don't want -fno-exception wen compiling C++ code, so set the
10791 # no_builtin_flag separately
10792 if test "$GXX" = yes; then
10793   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10794 else
10795   lt_prog_compiler_no_builtin_flag_CXX=
10798 if test "$GXX" = yes; then
10799   # Set up default GNU C++ configuration
10801   
10802 # Check whether --with-gnu-ld was given.
10803 if test "${with_gnu_ld+set}" = set; then
10804   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10805 else
10806   with_gnu_ld=no
10809 ac_prog=ld
10810 if test "$GCC" = yes; then
10811   # Check if gcc -print-prog-name=ld gives a path.
10812   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10813 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10814   case $host in
10815   *-*-mingw*)
10816     # gcc leaves a trailing carriage return which upsets mingw
10817     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10818   *)
10819     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10820   esac
10821   case $ac_prog in
10822     # Accept absolute paths.
10823     [\\/]* | ?:[\\/]*)
10824       re_direlt='/[^/][^/]*/\.\./'
10825       # Canonicalize the pathname of ld
10826       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10827       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10828         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10829       done
10830       test -z "$LD" && LD="$ac_prog"
10831       ;;
10832   "")
10833     # If it fails, then pretend we aren't using GCC.
10834     ac_prog=ld
10835     ;;
10836   *)
10837     # If it is relative, then search for the first ld in PATH.
10838     with_gnu_ld=unknown
10839     ;;
10840   esac
10841 elif test "$with_gnu_ld" = yes; then
10842   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10843 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10844 else
10845   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10846 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10848 if test "${lt_cv_path_LD+set}" = set; then
10849   echo $ECHO_N "(cached) $ECHO_C" >&6
10850 else
10851   if test -z "$LD"; then
10852   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10853   for ac_dir in $PATH; do
10854     IFS="$lt_save_ifs"
10855     test -z "$ac_dir" && ac_dir=.
10856     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10857       lt_cv_path_LD="$ac_dir/$ac_prog"
10858       # Check to see if the program is GNU ld.  I'd rather use --version,
10859       # but apparently some variants of GNU ld only accept -v.
10860       # Break only if it was the GNU/non-GNU ld that we prefer.
10861       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10862       *GNU* | *'with BFD'*)
10863         test "$with_gnu_ld" != no && break
10864         ;;
10865       *)
10866         test "$with_gnu_ld" != yes && break
10867         ;;
10868       esac
10869     fi
10870   done
10871   IFS="$lt_save_ifs"
10872 else
10873   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10877 LD="$lt_cv_path_LD"
10878 if test -n "$LD"; then
10879   { echo "$as_me:$LINENO: result: $LD" >&5
10880 echo "${ECHO_T}$LD" >&6; }
10881 else
10882   { echo "$as_me:$LINENO: result: no" >&5
10883 echo "${ECHO_T}no" >&6; }
10885 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10886 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10887    { (exit 1); exit 1; }; }
10888 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10889 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10890 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10891   echo $ECHO_N "(cached) $ECHO_C" >&6
10892 else
10893   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10894 case `$LD -v 2>&1 </dev/null` in
10895 *GNU* | *'with BFD'*)
10896   lt_cv_prog_gnu_ld=yes
10897   ;;
10899   lt_cv_prog_gnu_ld=no
10900   ;;
10901 esac
10903 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10904 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10905 with_gnu_ld=$lt_cv_prog_gnu_ld
10909   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10910   # archiving commands below assume that GNU ld is being used.
10911   if test "$with_gnu_ld" = yes; then
10912     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10913     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'
10915     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10916     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10918     # If archive_cmds runs LD, not CC, wlarc should be empty
10919     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10920     #     investigate it a little bit more. (MM)
10921     wlarc='${wl}'
10923     # ancient GNU ld didn't support --whole-archive et. al.
10924     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10925         grep 'no-whole-archive' > /dev/null; then
10926       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10927     else
10928       whole_archive_flag_spec_CXX=
10929     fi
10930   else
10931     with_gnu_ld=no
10932     wlarc=
10934     # A generic and very simple default shared library creation
10935     # command for GNU C++ for the case where it uses the native
10936     # linker, instead of GNU ld.  If possible, this setting should
10937     # overridden to take advantage of the native linker features on
10938     # the platform it is being used on.
10939     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10940   fi
10942   # Commands to make compiler produce verbose output that lists
10943   # what "hidden" libraries, object files and flags are used when
10944   # linking a shared library.
10945   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10947 else
10948   GXX=no
10949   with_gnu_ld=no
10950   wlarc=
10953 # PORTME: fill in a description of your system's C++ link characteristics
10954 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10955 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10956 ld_shlibs_CXX=yes
10957 case $host_os in
10958   aix3*)
10959     # FIXME: insert proper C++ library support
10960     ld_shlibs_CXX=no
10961     ;;
10962   aix4* | aix5*)
10963     if test "$host_cpu" = ia64; then
10964       # On IA64, the linker does run time linking by default, so we don't
10965       # have to do anything special.
10966       aix_use_runtimelinking=no
10967       exp_sym_flag='-Bexport'
10968       no_entry_flag=""
10969     else
10970       aix_use_runtimelinking=no
10972       # Test if we are trying to use run time linking or normal
10973       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10974       # need to do runtime linking.
10975       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10976         for ld_flag in $LDFLAGS; do
10977           case $ld_flag in
10978           *-brtl*)
10979             aix_use_runtimelinking=yes
10980             break
10981             ;;
10982           esac
10983         done
10984         ;;
10985       esac
10987       exp_sym_flag='-bexport'
10988       no_entry_flag='-bnoentry'
10989     fi
10991     # When large executables or shared objects are built, AIX ld can
10992     # have problems creating the table of contents.  If linking a library
10993     # or program results in "error TOC overflow" add -mminimal-toc to
10994     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10995     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10997     archive_cmds_CXX=''
10998     hardcode_direct_CXX=yes
10999     hardcode_libdir_separator_CXX=':'
11000     link_all_deplibs_CXX=yes
11002     if test "$GXX" = yes; then
11003       case $host_os in aix4.[012]|aix4.[012].*)
11004       # We only want to do this on AIX 4.2 and lower, the check
11005       # below for broken collect2 doesn't work under 4.3+
11006         collect2name=`${CC} -print-prog-name=collect2`
11007         if test -f "$collect2name" && \
11008            strings "$collect2name" | grep resolve_lib_name >/dev/null
11009         then
11010           # We have reworked collect2
11011           :
11012         else
11013           # We have old collect2
11014           hardcode_direct_CXX=unsupported
11015           # It fails to find uninstalled libraries when the uninstalled
11016           # path is not listed in the libpath.  Setting hardcode_minus_L
11017           # to unsupported forces relinking
11018           hardcode_minus_L_CXX=yes
11019           hardcode_libdir_flag_spec_CXX='-L$libdir'
11020           hardcode_libdir_separator_CXX=
11021         fi
11022         ;;
11023       esac
11024       shared_flag='-shared'
11025       if test "$aix_use_runtimelinking" = yes; then
11026         shared_flag="$shared_flag "'${wl}-G'
11027       fi
11028     else
11029       # not using gcc
11030       if test "$host_cpu" = ia64; then
11031         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11032         # chokes on -Wl,-G. The following line is correct:
11033         shared_flag='-G'
11034       else
11035         if test "$aix_use_runtimelinking" = yes; then
11036           shared_flag='${wl}-G'
11037         else
11038           shared_flag='${wl}-bM:SRE'
11039         fi
11040       fi
11041     fi
11043     # It seems that -bexpall does not export symbols beginning with
11044     # underscore (_), so it is better to generate a list of symbols to export.
11045     always_export_symbols_CXX=yes
11046     if test "$aix_use_runtimelinking" = yes; then
11047       # Warning - without using the other runtime loading flags (-brtl),
11048       # -berok will link without error, but may produce a broken library.
11049       allow_undefined_flag_CXX='-berok'
11050       # Determine the default libpath from the value encoded in an empty executable.
11051       cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h.  */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h.  */
11059 main ()
11062   ;
11063   return 0;
11065 _ACEOF
11066 rm -f conftest.$ac_objext conftest$ac_exeext
11067 if { (ac_try="$ac_link"
11068 case "(($ac_try" in
11069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11070   *) ac_try_echo=$ac_try;;
11071 esac
11072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11073   (eval "$ac_link") 2>conftest.er1
11074   ac_status=$?
11075   grep -v '^ *+' conftest.er1 >conftest.err
11076   rm -f conftest.er1
11077   cat conftest.err >&5
11078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079   (exit $ac_status); } && {
11080          test -z "$ac_cxx_werror_flag" ||
11081          test ! -s conftest.err
11082        } && test -s conftest$ac_exeext &&
11083        $as_test_x conftest$ac_exeext; then
11084   
11085 lt_aix_libpath_sed='
11086     /Import File Strings/,/^$/ {
11087         /^0/ {
11088             s/^0  *\(.*\)$/\1/
11089             p
11090         }
11091     }'
11092 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11093 # Check for a 64-bit object if we didn't find anything.
11094 if test -z "$aix_libpath"; then
11095   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11097 else
11098   echo "$as_me: failed program was:" >&5
11099 sed 's/^/| /' conftest.$ac_ext >&5
11101         
11104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11105       conftest$ac_exeext conftest.$ac_ext
11106 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11108       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11110       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"
11111      else
11112       if test "$host_cpu" = ia64; then
11113         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11114         allow_undefined_flag_CXX="-z nodefs"
11115         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"
11116       else
11117         # Determine the default libpath from the value encoded in an empty executable.
11118         cat >conftest.$ac_ext <<_ACEOF
11119 /* confdefs.h.  */
11120 _ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h.  */
11126 main ()
11129   ;
11130   return 0;
11132 _ACEOF
11133 rm -f conftest.$ac_objext conftest$ac_exeext
11134 if { (ac_try="$ac_link"
11135 case "(($ac_try" in
11136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137   *) ac_try_echo=$ac_try;;
11138 esac
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140   (eval "$ac_link") 2>conftest.er1
11141   ac_status=$?
11142   grep -v '^ *+' conftest.er1 >conftest.err
11143   rm -f conftest.er1
11144   cat conftest.err >&5
11145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146   (exit $ac_status); } && {
11147          test -z "$ac_cxx_werror_flag" ||
11148          test ! -s conftest.err
11149        } && test -s conftest$ac_exeext &&
11150        $as_test_x conftest$ac_exeext; then
11151   
11152 lt_aix_libpath_sed='
11153     /Import File Strings/,/^$/ {
11154         /^0/ {
11155             s/^0  *\(.*\)$/\1/
11156             p
11157         }
11158     }'
11159 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11160 # Check for a 64-bit object if we didn't find anything.
11161 if test -z "$aix_libpath"; then
11162   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11164 else
11165   echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11168         
11171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11172       conftest$ac_exeext conftest.$ac_ext
11173 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11175         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11176         # Warning - without using the other run time loading flags,
11177         # -berok will link without error, but may produce a broken library.
11178         no_undefined_flag_CXX=' ${wl}-bernotok'
11179         allow_undefined_flag_CXX=' ${wl}-berok'
11180         # Exported symbols can be pulled into shared objects from archives
11181         whole_archive_flag_spec_CXX='$convenience'
11182         archive_cmds_need_lc_CXX=yes
11183         # This is similar to how AIX traditionally builds its shared libraries.
11184         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'
11185       fi
11186     fi
11187     ;;
11189   beos*)
11190     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11191       allow_undefined_flag_CXX=unsupported
11192       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11193       # support --undefined.  This deserves some investigation.  FIXME
11194       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11195     else
11196       ld_shlibs_CXX=no
11197     fi
11198     ;;
11200   chorus*)
11201     case $cc_basename in
11202       *)
11203         # FIXME: insert proper C++ library support
11204         ld_shlibs_CXX=no
11205         ;;
11206     esac
11207     ;;
11209   cygwin* | mingw* | pw32*)
11210     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11211     # as there is no search path for DLLs.
11212     hardcode_libdir_flag_spec_CXX='-L$libdir'
11213     allow_undefined_flag_CXX=unsupported
11214     always_export_symbols_CXX=no
11215     enable_shared_with_static_runtimes_CXX=yes
11217     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11218       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'
11219       # If the export-symbols file already is a .def file (1st line
11220       # is EXPORTS), use it as is; otherwise, prepend...
11221       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11222         cp $export_symbols $output_objdir/$soname.def;
11223       else
11224         echo EXPORTS > $output_objdir/$soname.def;
11225         cat $export_symbols >> $output_objdir/$soname.def;
11226       fi~
11227       $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'
11228     else
11229       ld_shlibs_CXX=no
11230     fi
11231   ;;
11232       darwin* | rhapsody*)
11233         case $host_os in
11234         rhapsody* | darwin1.[012])
11235          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11236          ;;
11237        *) # Darwin 1.3 on
11238          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11239            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11240          else
11241            case ${MACOSX_DEPLOYMENT_TARGET} in
11242              10.[012])
11243                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11244                ;;
11245              10.*)
11246                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11247                ;;
11248            esac
11249          fi
11250          ;;
11251         esac
11252       archive_cmds_need_lc_CXX=no
11253       hardcode_direct_CXX=no
11254       hardcode_automatic_CXX=yes
11255       hardcode_shlibpath_var_CXX=unsupported
11256       whole_archive_flag_spec_CXX=''
11257       link_all_deplibs_CXX=yes
11259     if test "$GXX" = yes ; then
11260       lt_int_apple_cc_single_mod=no
11261       output_verbose_link_cmd='echo'
11262       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11263        lt_int_apple_cc_single_mod=yes
11264       fi
11265       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11266        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11267       else
11268           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'
11269         fi
11270         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11271         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11272           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11273             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11274           else
11275             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11276           fi
11277             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}'
11278       else
11279       case $cc_basename in
11280         xlc*)
11281          output_verbose_link_cmd='echo'
11282           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'
11283           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11284           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11285           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}'
11286           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}'
11287           ;;
11288        *)
11289          ld_shlibs_CXX=no
11290           ;;
11291       esac
11292       fi
11293         ;;
11295   dgux*)
11296     case $cc_basename in
11297       ec++*)
11298         # FIXME: insert proper C++ library support
11299         ld_shlibs_CXX=no
11300         ;;
11301       ghcx*)
11302         # Green Hills C++ Compiler
11303         # FIXME: insert proper C++ library support
11304         ld_shlibs_CXX=no
11305         ;;
11306       *)
11307         # FIXME: insert proper C++ library support
11308         ld_shlibs_CXX=no
11309         ;;
11310     esac
11311     ;;
11312   freebsd[12]*)
11313     # C++ shared libraries reported to be fairly broken before switch to ELF
11314     ld_shlibs_CXX=no
11315     ;;
11316   freebsd-elf*)
11317     archive_cmds_need_lc_CXX=no
11318     ;;
11319   freebsd* | dragonfly*)
11320     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11321     # conventions
11322     ld_shlibs_CXX=yes
11323     ;;
11324   gnu*)
11325     ;;
11326   hpux9*)
11327     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11328     hardcode_libdir_separator_CXX=:
11329     export_dynamic_flag_spec_CXX='${wl}-E'
11330     hardcode_direct_CXX=yes
11331     hardcode_minus_L_CXX=yes # Not in the search PATH,
11332                                 # but as the default
11333                                 # location of the library.
11335     case $cc_basename in
11336     CC*)
11337       # FIXME: insert proper C++ library support
11338       ld_shlibs_CXX=no
11339       ;;
11340     aCC*)
11341       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'
11342       # Commands to make compiler produce verbose output that lists
11343       # what "hidden" libraries, object files and flags are used when
11344       # linking a shared library.
11345       #
11346       # There doesn't appear to be a way to prevent this compiler from
11347       # explicitly linking system object files so we need to strip them
11348       # from the output so that they don't get included in the library
11349       # dependencies.
11350       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'
11351       ;;
11352     *)
11353       if test "$GXX" = yes; then
11354         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'
11355       else
11356         # FIXME: insert proper C++ library support
11357         ld_shlibs_CXX=no
11358       fi
11359       ;;
11360     esac
11361     ;;
11362   hpux10*|hpux11*)
11363     if test $with_gnu_ld = no; then
11364       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11365       hardcode_libdir_separator_CXX=:
11367       case $host_cpu in
11368       hppa*64*|ia64*) ;;
11369       *)
11370         export_dynamic_flag_spec_CXX='${wl}-E'
11371         ;;
11372       esac
11373     fi
11374     case $host_cpu in
11375     hppa*64*|ia64*)
11376       hardcode_direct_CXX=no
11377       hardcode_shlibpath_var_CXX=no
11378       ;;
11379     *)
11380       hardcode_direct_CXX=yes
11381       hardcode_minus_L_CXX=yes # Not in the search PATH,
11382                                               # but as the default
11383                                               # location of the library.
11384       ;;
11385     esac
11387     case $cc_basename in
11388       CC*)
11389         # FIXME: insert proper C++ library support
11390         ld_shlibs_CXX=no
11391         ;;
11392       aCC*)
11393         case $host_cpu in
11394         hppa*64*)
11395           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11396           ;;
11397         ia64*)
11398           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11399           ;;
11400         *)
11401           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11402           ;;
11403         esac
11404         # Commands to make compiler produce verbose output that lists
11405         # what "hidden" libraries, object files and flags are used when
11406         # linking a shared library.
11407         #
11408         # There doesn't appear to be a way to prevent this compiler from
11409         # explicitly linking system object files so we need to strip them
11410         # from the output so that they don't get included in the library
11411         # dependencies.
11412         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'
11413         ;;
11414       *)
11415         if test "$GXX" = yes; then
11416           if test $with_gnu_ld = no; then
11417             case $host_cpu in
11418             hppa*64*)
11419               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11420               ;;
11421             ia64*)
11422               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11423               ;;
11424             *)
11425               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'
11426               ;;
11427             esac
11428           fi
11429         else
11430           # FIXME: insert proper C++ library support
11431           ld_shlibs_CXX=no
11432         fi
11433         ;;
11434     esac
11435     ;;
11436   interix[3-9]*)
11437     hardcode_direct_CXX=no
11438     hardcode_shlibpath_var_CXX=no
11439     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11440     export_dynamic_flag_spec_CXX='${wl}-E'
11441     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11442     # Instead, shared libraries are loaded at an image base (0x10000000 by
11443     # default) and relocated if they conflict, which is a slow very memory
11444     # consuming and fragmenting process.  To avoid this, we pick a random,
11445     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11446     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11447     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'
11448     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'
11449     ;;
11450   irix5* | irix6*)
11451     case $cc_basename in
11452       CC*)
11453         # SGI C++
11454         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'
11456         # Archives containing C++ object files must be created using
11457         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11458         # necessary to make sure instantiated templates are included
11459         # in the archive.
11460         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11461         ;;
11462       *)
11463         if test "$GXX" = yes; then
11464           if test "$with_gnu_ld" = no; then
11465             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'
11466           else
11467             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'
11468           fi
11469         fi
11470         link_all_deplibs_CXX=yes
11471         ;;
11472     esac
11473     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11474     hardcode_libdir_separator_CXX=:
11475     ;;
11476   linux* | k*bsd*-gnu)
11477     case $cc_basename in
11478       KCC*)
11479         # Kuck and Associates, Inc. (KAI) C++ Compiler
11481         # KCC will only create a shared library if the output file
11482         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11483         # to its proper name (with version) after linking.
11484         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'
11485         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'
11486         # Commands to make compiler produce verbose output that lists
11487         # what "hidden" libraries, object files and flags are used when
11488         # linking a shared library.
11489         #
11490         # There doesn't appear to be a way to prevent this compiler from
11491         # explicitly linking system object files so we need to strip them
11492         # from the output so that they don't get included in the library
11493         # dependencies.
11494         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'
11496         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11497         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11499         # Archives containing C++ object files must be created using
11500         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11501         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11502         ;;
11503       icpc*)
11504         # Intel C++
11505         with_gnu_ld=yes
11506         # version 8.0 and above of icpc choke on multiply defined symbols
11507         # if we add $predep_objects and $postdep_objects, however 7.1 and
11508         # earlier do not add the objects themselves.
11509         case `$CC -V 2>&1` in
11510         *"Version 7."*)
11511           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11512           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'
11513           ;;
11514         *)  # Version 8.0 or newer
11515           tmp_idyn=
11516           case $host_cpu in
11517             ia64*) tmp_idyn=' -i_dynamic';;
11518           esac
11519           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11520           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'
11521           ;;
11522         esac
11523         archive_cmds_need_lc_CXX=no
11524         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11525         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11526         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11527         ;;
11528       pgCC*)
11529         # Portland Group C++ compiler
11530         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11531         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'
11533         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11534         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11535         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'
11536         ;;
11537       cxx*)
11538         # Compaq C++
11539         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11540         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'
11542         runpath_var=LD_RUN_PATH
11543         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11544         hardcode_libdir_separator_CXX=:
11546         # Commands to make compiler produce verbose output that lists
11547         # what "hidden" libraries, object files and flags are used when
11548         # linking a shared library.
11549         #
11550         # There doesn't appear to be a way to prevent this compiler from
11551         # explicitly linking system object files so we need to strip them
11552         # from the output so that they don't get included in the library
11553         # dependencies.
11554         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'
11555         ;;
11556       *)
11557         case `$CC -V 2>&1 | sed 5q` in
11558         *Sun\ C*)
11559           # Sun C++ 5.9
11560           no_undefined_flag_CXX=' -zdefs'
11561           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11562           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'
11563           hardcode_libdir_flag_spec_CXX='-R$libdir'
11564           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'
11566           # Not sure whether something based on
11567           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11568           # would be better.
11569           output_verbose_link_cmd='echo'
11571           # Archives containing C++ object files must be created using
11572           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11573           # necessary to make sure instantiated templates are included
11574           # in the archive.
11575           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11576           ;;
11577         esac
11578         ;;
11579     esac
11580     ;;
11581   lynxos*)
11582     # FIXME: insert proper C++ library support
11583     ld_shlibs_CXX=no
11584     ;;
11585   m88k*)
11586     # FIXME: insert proper C++ library support
11587     ld_shlibs_CXX=no
11588     ;;
11589   mvs*)
11590     case $cc_basename in
11591       cxx*)
11592         # FIXME: insert proper C++ library support
11593         ld_shlibs_CXX=no
11594         ;;
11595       *)
11596         # FIXME: insert proper C++ library support
11597         ld_shlibs_CXX=no
11598         ;;
11599     esac
11600     ;;
11601   netbsd*)
11602     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11603       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11604       wlarc=
11605       hardcode_libdir_flag_spec_CXX='-R$libdir'
11606       hardcode_direct_CXX=yes
11607       hardcode_shlibpath_var_CXX=no
11608     fi
11609     # Workaround some broken pre-1.5 toolchains
11610     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11611     ;;
11612   openbsd2*)
11613     # C++ shared libraries are fairly broken
11614     ld_shlibs_CXX=no
11615     ;;
11616   openbsd*)
11617     if test -f /usr/libexec/ld.so; then
11618       hardcode_direct_CXX=yes
11619       hardcode_shlibpath_var_CXX=no
11620       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11621       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11622       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11623         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11624         export_dynamic_flag_spec_CXX='${wl}-E'
11625         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11626       fi
11627       output_verbose_link_cmd='echo'
11628     else
11629       ld_shlibs_CXX=no
11630     fi
11631     ;;
11632   osf3*)
11633     case $cc_basename in
11634       KCC*)
11635         # Kuck and Associates, Inc. (KAI) C++ Compiler
11637         # KCC will only create a shared library if the output file
11638         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11639         # to its proper name (with version) after linking.
11640         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'
11642         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11643         hardcode_libdir_separator_CXX=:
11645         # Archives containing C++ object files must be created using
11646         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11647         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11649         ;;
11650       RCC*)
11651         # Rational C++ 2.4.1
11652         # FIXME: insert proper C++ library support
11653         ld_shlibs_CXX=no
11654         ;;
11655       cxx*)
11656         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11657         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'
11659         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11660         hardcode_libdir_separator_CXX=:
11662         # Commands to make compiler produce verbose output that lists
11663         # what "hidden" libraries, object files and flags are used when
11664         # linking a shared library.
11665         #
11666         # There doesn't appear to be a way to prevent this compiler from
11667         # explicitly linking system object files so we need to strip them
11668         # from the output so that they don't get included in the library
11669         # dependencies.
11670         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'
11671         ;;
11672       *)
11673         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11674           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11675           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'
11677           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11678           hardcode_libdir_separator_CXX=:
11680           # Commands to make compiler produce verbose output that lists
11681           # what "hidden" libraries, object files and flags are used when
11682           # linking a shared library.
11683           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11685         else
11686           # FIXME: insert proper C++ library support
11687           ld_shlibs_CXX=no
11688         fi
11689         ;;
11690     esac
11691     ;;
11692   osf4* | osf5*)
11693     case $cc_basename in
11694       KCC*)
11695         # Kuck and Associates, Inc. (KAI) C++ Compiler
11697         # KCC will only create a shared library if the output file
11698         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11699         # to its proper name (with version) after linking.
11700         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'
11702         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11703         hardcode_libdir_separator_CXX=:
11705         # Archives containing C++ object files must be created using
11706         # the KAI C++ compiler.
11707         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11708         ;;
11709       RCC*)
11710         # Rational C++ 2.4.1
11711         # FIXME: insert proper C++ library support
11712         ld_shlibs_CXX=no
11713         ;;
11714       cxx*)
11715         allow_undefined_flag_CXX=' -expect_unresolved \*'
11716         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'
11717         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11718           echo "-hidden">> $lib.exp~
11719           $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~
11720           $rm $lib.exp'
11722         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11723         hardcode_libdir_separator_CXX=:
11725         # Commands to make compiler produce verbose output that lists
11726         # what "hidden" libraries, object files and flags are used when
11727         # linking a shared library.
11728         #
11729         # There doesn't appear to be a way to prevent this compiler from
11730         # explicitly linking system object files so we need to strip them
11731         # from the output so that they don't get included in the library
11732         # dependencies.
11733         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'
11734         ;;
11735       *)
11736         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11737           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11738          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'
11740           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11741           hardcode_libdir_separator_CXX=:
11743           # Commands to make compiler produce verbose output that lists
11744           # what "hidden" libraries, object files and flags are used when
11745           # linking a shared library.
11746           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11748         else
11749           # FIXME: insert proper C++ library support
11750           ld_shlibs_CXX=no
11751         fi
11752         ;;
11753     esac
11754     ;;
11755   psos*)
11756     # FIXME: insert proper C++ library support
11757     ld_shlibs_CXX=no
11758     ;;
11759   sunos4*)
11760     case $cc_basename in
11761       CC*)
11762         # Sun C++ 4.x
11763         # FIXME: insert proper C++ library support
11764         ld_shlibs_CXX=no
11765         ;;
11766       lcc*)
11767         # Lucid
11768         # FIXME: insert proper C++ library support
11769         ld_shlibs_CXX=no
11770         ;;
11771       *)
11772         # FIXME: insert proper C++ library support
11773         ld_shlibs_CXX=no
11774         ;;
11775     esac
11776     ;;
11777   solaris*)
11778     case $cc_basename in
11779       CC*)
11780         # Sun C++ 4.2, 5.x and Centerline C++
11781         archive_cmds_need_lc_CXX=yes
11782         no_undefined_flag_CXX=' -zdefs'
11783         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11784         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11785         $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'
11787         hardcode_libdir_flag_spec_CXX='-R$libdir'
11788         hardcode_shlibpath_var_CXX=no
11789         case $host_os in
11790           solaris2.[0-5] | solaris2.[0-5].*) ;;
11791           *)
11792             # The compiler driver will combine and reorder linker options,
11793             # but understands `-z linker_flag'.
11794             # Supported since Solaris 2.6 (maybe 2.5.1?)
11795             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11796             ;;
11797         esac
11798         link_all_deplibs_CXX=yes
11800         output_verbose_link_cmd='echo'
11802         # Archives containing C++ object files must be created using
11803         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11804         # necessary to make sure instantiated templates are included
11805         # in the archive.
11806         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11807         ;;
11808       gcx*)
11809         # Green Hills C++ Compiler
11810         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11812         # The C++ compiler must be used to create the archive.
11813         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11814         ;;
11815       *)
11816         # GNU C++ compiler with Solaris linker
11817         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11818           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11819           if $CC --version | grep -v '^2\.7' > /dev/null; then
11820             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11821             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11822                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11824             # Commands to make compiler produce verbose output that lists
11825             # what "hidden" libraries, object files and flags are used when
11826             # linking a shared library.
11827             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11828           else
11829             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11830             # platform.
11831             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11832             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11833                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11835             # Commands to make compiler produce verbose output that lists
11836             # what "hidden" libraries, object files and flags are used when
11837             # linking a shared library.
11838             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11839           fi
11841           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11842           case $host_os in
11843           solaris2.[0-5] | solaris2.[0-5].*) ;;
11844           *)
11845             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11846             ;;
11847           esac
11848         fi
11849         ;;
11850     esac
11851     ;;
11852   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11853     no_undefined_flag_CXX='${wl}-z,text'
11854     archive_cmds_need_lc_CXX=no
11855     hardcode_shlibpath_var_CXX=no
11856     runpath_var='LD_RUN_PATH'
11858     case $cc_basename in
11859       CC*)
11860         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11861         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11862         ;;
11863       *)
11864         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11865         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11866         ;;
11867     esac
11868     ;;
11869   sysv5* | sco3.2v5* | sco5v6*)
11870     # Note: We can NOT use -z defs as we might desire, because we do not
11871     # link with -lc, and that would cause any symbols used from libc to
11872     # always be unresolved, which means just about no library would
11873     # ever link correctly.  If we're not using GNU ld we use -z text
11874     # though, which does catch some bad symbols but isn't as heavy-handed
11875     # as -z defs.
11876     # For security reasons, it is highly recommended that you always
11877     # use absolute paths for naming shared libraries, and exclude the
11878     # DT_RUNPATH tag from executables and libraries.  But doing so
11879     # requires that you compile everything twice, which is a pain.
11880     # So that behaviour is only enabled if SCOABSPATH is set to a
11881     # non-empty value in the environment.  Most likely only useful for
11882     # creating official distributions of packages.
11883     # This is a hack until libtool officially supports absolute path
11884     # names for shared libraries.
11885     no_undefined_flag_CXX='${wl}-z,text'
11886     allow_undefined_flag_CXX='${wl}-z,nodefs'
11887     archive_cmds_need_lc_CXX=no
11888     hardcode_shlibpath_var_CXX=no
11889     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11890     hardcode_libdir_separator_CXX=':'
11891     link_all_deplibs_CXX=yes
11892     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11893     runpath_var='LD_RUN_PATH'
11895     case $cc_basename in
11896       CC*)
11897         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11898         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11899         ;;
11900       *)
11901         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11902         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11903         ;;
11904     esac
11905     ;;
11906   tandem*)
11907     case $cc_basename in
11908       NCC*)
11909         # NonStop-UX NCC 3.20
11910         # FIXME: insert proper C++ library support
11911         ld_shlibs_CXX=no
11912         ;;
11913       *)
11914         # FIXME: insert proper C++ library support
11915         ld_shlibs_CXX=no
11916         ;;
11917     esac
11918     ;;
11919   vxworks*)
11920     # FIXME: insert proper C++ library support
11921     ld_shlibs_CXX=no
11922     ;;
11923   *)
11924     # FIXME: insert proper C++ library support
11925     ld_shlibs_CXX=no
11926     ;;
11927 esac
11928 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11929 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11930 test "$ld_shlibs_CXX" = no && can_build_shared=no
11932 GCC_CXX="$GXX"
11933 LD_CXX="$LD"
11935 ## CAVEAT EMPTOR:
11936 ## There is no encapsulation within the following macros, do not change
11937 ## the running order or otherwise move them around unless you know exactly
11938 ## what you are doing...
11940 cat > conftest.$ac_ext <<EOF
11941 class Foo
11943 public:
11944   Foo (void) { a = 0; }
11945 private:
11946   int a;
11950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11951   (eval $ac_compile) 2>&5
11952   ac_status=$?
11953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954   (exit $ac_status); }; then
11955   # Parse the compiler output and extract the necessary
11956   # objects, libraries and library flags.
11958   # Sentinel used to keep track of whether or not we are before
11959   # the conftest object file.
11960   pre_test_object_deps_done=no
11962   # The `*' in the case matches for architectures that use `case' in
11963   # $output_verbose_cmd can trigger glob expansion during the loop
11964   # eval without this substitution.
11965   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11967   for p in `eval $output_verbose_link_cmd`; do
11968     case $p in
11970     -L* | -R* | -l*)
11971        # Some compilers place space between "-{L,R}" and the path.
11972        # Remove the space.
11973        if test $p = "-L" \
11974           || test $p = "-R"; then
11975          prev=$p
11976          continue
11977        else
11978          prev=
11979        fi
11981        if test "$pre_test_object_deps_done" = no; then
11982          case $p in
11983          -L* | -R*)
11984            # Internal compiler library paths should come after those
11985            # provided the user.  The postdeps already come after the
11986            # user supplied libs so there is no need to process them.
11987            if test -z "$compiler_lib_search_path_CXX"; then
11988              compiler_lib_search_path_CXX="${prev}${p}"
11989            else
11990              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11991            fi
11992            ;;
11993          # The "-l" case would never come before the object being
11994          # linked, so don't bother handling this case.
11995          esac
11996        else
11997          if test -z "$postdeps_CXX"; then
11998            postdeps_CXX="${prev}${p}"
11999          else
12000            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12001          fi
12002        fi
12003        ;;
12005     *.$objext)
12006        # This assumes that the test object file only shows up
12007        # once in the compiler output.
12008        if test "$p" = "conftest.$objext"; then
12009          pre_test_object_deps_done=yes
12010          continue
12011        fi
12013        if test "$pre_test_object_deps_done" = no; then
12014          if test -z "$predep_objects_CXX"; then
12015            predep_objects_CXX="$p"
12016          else
12017            predep_objects_CXX="$predep_objects_CXX $p"
12018          fi
12019        else
12020          if test -z "$postdep_objects_CXX"; then
12021            postdep_objects_CXX="$p"
12022          else
12023            postdep_objects_CXX="$postdep_objects_CXX $p"
12024          fi
12025        fi
12026        ;;
12028     *) ;; # Ignore the rest.
12030     esac
12031   done
12033   # Clean up.
12034   rm -f a.out a.exe
12035 else
12036   echo "libtool.m4: error: problem compiling CXX test program"
12039 $rm -f confest.$objext
12041 # PORTME: override above test on systems where it is broken
12042 case $host_os in
12043 interix[3-9]*)
12044   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12045   # hack all around it, let's just trust "g++" to DTRT.
12046   predep_objects_CXX=
12047   postdep_objects_CXX=
12048   postdeps_CXX=
12049   ;;
12051 linux*)
12052   case `$CC -V 2>&1 | sed 5q` in
12053   *Sun\ C*)
12054     # Sun C++ 5.9
12055     #
12056     # The more standards-conforming stlport4 library is
12057     # incompatible with the Cstd library. Avoid specifying
12058     # it if it's in CXXFLAGS. Ignore libCrun as
12059     # -library=stlport4 depends on it.
12060     case " $CXX $CXXFLAGS " in
12061     *" -library=stlport4 "*)
12062       solaris_use_stlport4=yes
12063       ;;
12064     esac
12065     if test "$solaris_use_stlport4" != yes; then
12066       postdeps_CXX='-library=Cstd -library=Crun'
12067     fi
12068     ;;
12069   esac
12070   ;;
12072 solaris*)
12073   case $cc_basename in
12074   CC*)
12075     # The more standards-conforming stlport4 library is
12076     # incompatible with the Cstd library. Avoid specifying
12077     # it if it's in CXXFLAGS. Ignore libCrun as
12078     # -library=stlport4 depends on it.
12079     case " $CXX $CXXFLAGS " in
12080     *" -library=stlport4 "*)
12081       solaris_use_stlport4=yes
12082       ;;
12083     esac
12085     # Adding this requires a known-good setup of shared libraries for
12086     # Sun compiler versions before 5.6, else PIC objects from an old
12087     # archive will be linked into the output, leading to subtle bugs.
12088     if test "$solaris_use_stlport4" != yes; then
12089       postdeps_CXX='-library=Cstd -library=Crun'
12090     fi
12091     ;;
12092   esac
12093   ;;
12094 esac
12097 case " $postdeps_CXX " in
12098 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12099 esac
12101 lt_prog_compiler_wl_CXX=
12102 lt_prog_compiler_pic_CXX=
12103 lt_prog_compiler_static_CXX=
12105 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12106 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12108   # C++ specific cases for pic, static, wl, etc.
12109   if test "$GXX" = yes; then
12110     lt_prog_compiler_wl_CXX='-Wl,'
12111     lt_prog_compiler_static_CXX='-static'
12113     case $host_os in
12114     aix*)
12115       # All AIX code is PIC.
12116       if test "$host_cpu" = ia64; then
12117         # AIX 5 now supports IA64 processor
12118         lt_prog_compiler_static_CXX='-Bstatic'
12119       fi
12120       ;;
12121     amigaos*)
12122       # FIXME: we need at least 68020 code to build shared libraries, but
12123       # adding the `-m68020' flag to GCC prevents building anything better,
12124       # like `-m68040'.
12125       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12126       ;;
12127     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12128       # PIC is the default for these OSes.
12129       ;;
12130     mingw* | cygwin* | os2* | pw32*)
12131       # This hack is so that the source file can tell whether it is being
12132       # built for inclusion in a dll (and should export symbols for example).
12133       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12134       # (--disable-auto-import) libraries
12135       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12136       ;;
12137     darwin* | rhapsody*)
12138       # PIC is the default on this platform
12139       # Common symbols not allowed in MH_DYLIB files
12140       lt_prog_compiler_pic_CXX='-fno-common'
12141       ;;
12142     *djgpp*)
12143       # DJGPP does not support shared libraries at all
12144       lt_prog_compiler_pic_CXX=
12145       ;;
12146     interix[3-9]*)
12147       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12148       # Instead, we relocate shared libraries at runtime.
12149       ;;
12150     sysv4*MP*)
12151       if test -d /usr/nec; then
12152         lt_prog_compiler_pic_CXX=-Kconform_pic
12153       fi
12154       ;;
12155     hpux*)
12156       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12157       # not for PA HP-UX.
12158       case $host_cpu in
12159       hppa*64*|ia64*)
12160         ;;
12161       *)
12162         lt_prog_compiler_pic_CXX='-fPIC'
12163         ;;
12164       esac
12165       ;;
12166     *)
12167       lt_prog_compiler_pic_CXX='-fPIC'
12168       ;;
12169     esac
12170   else
12171     case $host_os in
12172       aix4* | aix5*)
12173         # All AIX code is PIC.
12174         if test "$host_cpu" = ia64; then
12175           # AIX 5 now supports IA64 processor
12176           lt_prog_compiler_static_CXX='-Bstatic'
12177         else
12178           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12179         fi
12180         ;;
12181       chorus*)
12182         case $cc_basename in
12183         cxch68*)
12184           # Green Hills C++ Compiler
12185           # _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"
12186           ;;
12187         esac
12188         ;;
12189        darwin*)
12190          # PIC is the default on this platform
12191          # Common symbols not allowed in MH_DYLIB files
12192          case $cc_basename in
12193            xlc*)
12194            lt_prog_compiler_pic_CXX='-qnocommon'
12195            lt_prog_compiler_wl_CXX='-Wl,'
12196            ;;
12197          esac
12198        ;;
12199       dgux*)
12200         case $cc_basename in
12201           ec++*)
12202             lt_prog_compiler_pic_CXX='-KPIC'
12203             ;;
12204           ghcx*)
12205             # Green Hills C++ Compiler
12206             lt_prog_compiler_pic_CXX='-pic'
12207             ;;
12208           *)
12209             ;;
12210         esac
12211         ;;
12212       freebsd* | dragonfly*)
12213         # FreeBSD uses GNU C++
12214         ;;
12215       hpux9* | hpux10* | hpux11*)
12216         case $cc_basename in
12217           CC*)
12218             lt_prog_compiler_wl_CXX='-Wl,'
12219             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12220             if test "$host_cpu" != ia64; then
12221               lt_prog_compiler_pic_CXX='+Z'
12222             fi
12223             ;;
12224           aCC*)
12225             lt_prog_compiler_wl_CXX='-Wl,'
12226             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12227             case $host_cpu in
12228             hppa*64*|ia64*)
12229               # +Z the default
12230               ;;
12231             *)
12232               lt_prog_compiler_pic_CXX='+Z'
12233               ;;
12234             esac
12235             ;;
12236           *)
12237             ;;
12238         esac
12239         ;;
12240       interix*)
12241         # This is c89, which is MS Visual C++ (no shared libs)
12242         # Anyone wants to do a port?
12243         ;;
12244       irix5* | irix6* | nonstopux*)
12245         case $cc_basename in
12246           CC*)
12247             lt_prog_compiler_wl_CXX='-Wl,'
12248             lt_prog_compiler_static_CXX='-non_shared'
12249             # CC pic flag -KPIC is the default.
12250             ;;
12251           *)
12252             ;;
12253         esac
12254         ;;
12255       linux* | k*bsd*-gnu)
12256         case $cc_basename in
12257           KCC*)
12258             # KAI C++ Compiler
12259             lt_prog_compiler_wl_CXX='--backend -Wl,'
12260             lt_prog_compiler_pic_CXX='-fPIC'
12261             ;;
12262           icpc* | ecpc*)
12263             # Intel C++
12264             lt_prog_compiler_wl_CXX='-Wl,'
12265             lt_prog_compiler_pic_CXX='-KPIC'
12266             lt_prog_compiler_static_CXX='-static'
12267             ;;
12268           pgCC*)
12269             # Portland Group C++ compiler.
12270             lt_prog_compiler_wl_CXX='-Wl,'
12271             lt_prog_compiler_pic_CXX='-fpic'
12272             lt_prog_compiler_static_CXX='-Bstatic'
12273             ;;
12274           cxx*)
12275             # Compaq C++
12276             # Make sure the PIC flag is empty.  It appears that all Alpha
12277             # Linux and Compaq Tru64 Unix objects are PIC.
12278             lt_prog_compiler_pic_CXX=
12279             lt_prog_compiler_static_CXX='-non_shared'
12280             ;;
12281           *)
12282             case `$CC -V 2>&1 | sed 5q` in
12283             *Sun\ C*)
12284               # Sun C++ 5.9
12285               lt_prog_compiler_pic_CXX='-KPIC'
12286               lt_prog_compiler_static_CXX='-Bstatic'
12287               lt_prog_compiler_wl_CXX='-Qoption ld '
12288               ;;
12289             esac
12290             ;;
12291         esac
12292         ;;
12293       lynxos*)
12294         ;;
12295       m88k*)
12296         ;;
12297       mvs*)
12298         case $cc_basename in
12299           cxx*)
12300             lt_prog_compiler_pic_CXX='-W c,exportall'
12301             ;;
12302           *)
12303             ;;
12304         esac
12305         ;;
12306       netbsd*)
12307         ;;
12308       osf3* | osf4* | osf5*)
12309         case $cc_basename in
12310           KCC*)
12311             lt_prog_compiler_wl_CXX='--backend -Wl,'
12312             ;;
12313           RCC*)
12314             # Rational C++ 2.4.1
12315             lt_prog_compiler_pic_CXX='-pic'
12316             ;;
12317           cxx*)
12318             # Digital/Compaq C++
12319             lt_prog_compiler_wl_CXX='-Wl,'
12320             # Make sure the PIC flag is empty.  It appears that all Alpha
12321             # Linux and Compaq Tru64 Unix objects are PIC.
12322             lt_prog_compiler_pic_CXX=
12323             lt_prog_compiler_static_CXX='-non_shared'
12324             ;;
12325           *)
12326             ;;
12327         esac
12328         ;;
12329       psos*)
12330         ;;
12331       solaris*)
12332         case $cc_basename in
12333           CC*)
12334             # Sun C++ 4.2, 5.x and Centerline C++
12335             lt_prog_compiler_pic_CXX='-KPIC'
12336             lt_prog_compiler_static_CXX='-Bstatic'
12337             lt_prog_compiler_wl_CXX='-Qoption ld '
12338             ;;
12339           gcx*)
12340             # Green Hills C++ Compiler
12341             lt_prog_compiler_pic_CXX='-PIC'
12342             ;;
12343           *)
12344             ;;
12345         esac
12346         ;;
12347       sunos4*)
12348         case $cc_basename in
12349           CC*)
12350             # Sun C++ 4.x
12351             lt_prog_compiler_pic_CXX='-pic'
12352             lt_prog_compiler_static_CXX='-Bstatic'
12353             ;;
12354           lcc*)
12355             # Lucid
12356             lt_prog_compiler_pic_CXX='-pic'
12357             ;;
12358           *)
12359             ;;
12360         esac
12361         ;;
12362       tandem*)
12363         case $cc_basename in
12364           NCC*)
12365             # NonStop-UX NCC 3.20
12366             lt_prog_compiler_pic_CXX='-KPIC'
12367             ;;
12368           *)
12369             ;;
12370         esac
12371         ;;
12372       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12373         case $cc_basename in
12374           CC*)
12375             lt_prog_compiler_wl_CXX='-Wl,'
12376             lt_prog_compiler_pic_CXX='-KPIC'
12377             lt_prog_compiler_static_CXX='-Bstatic'
12378             ;;
12379         esac
12380         ;;
12381       vxworks*)
12382         ;;
12383       *)
12384         lt_prog_compiler_can_build_shared_CXX=no
12385         ;;
12386     esac
12387   fi
12389 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12390 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12393 # Check to make sure the PIC flag actually works.
12395 if test -n "$lt_prog_compiler_pic_CXX"; then
12396   
12397 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12398 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12399 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12400   echo $ECHO_N "(cached) $ECHO_C" >&6
12401 else
12402   lt_prog_compiler_pic_works_CXX=no
12403   ac_outfile=conftest.$ac_objext
12404    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12405    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12406    # Insert the option either (1) after the last *FLAGS variable, or
12407    # (2) before a word containing "conftest.", or (3) at the end.
12408    # Note that $ac_compile itself does not contain backslashes and begins
12409    # with a dollar sign (not a hyphen), so the echo should work correctly.
12410    # The option is referenced via a variable to avoid confusing sed.
12411    lt_compile=`echo "$ac_compile" | $SED \
12412    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12413    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12414    -e 's:$: $lt_compiler_flag:'`
12415    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12416    (eval "$lt_compile" 2>conftest.err)
12417    ac_status=$?
12418    cat conftest.err >&5
12419    echo "$as_me:__oline__: \$? = $ac_status" >&5
12420    if (exit $ac_status) && test -s "$ac_outfile"; then
12421      # The compiler can only warn and ignore the option if not recognized
12422      # So say no if there are warnings other than the usual output.
12423      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12424      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12425      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12426        lt_prog_compiler_pic_works_CXX=yes
12427      fi
12428    fi
12429    $rm conftest*
12432 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12433 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12435 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12436     case $lt_prog_compiler_pic_CXX in
12437      "" | " "*) ;;
12438      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12439      esac
12440 else
12441     lt_prog_compiler_pic_CXX=
12442      lt_prog_compiler_can_build_shared_CXX=no
12446 case $host_os in
12447   # For platforms which do not support PIC, -DPIC is meaningless:
12448   *djgpp*)
12449     lt_prog_compiler_pic_CXX=
12450     ;;
12451   *)
12452     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12453     ;;
12454 esac
12457 # Check to make sure the static flag actually works.
12459 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12460 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12461 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12462 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12463   echo $ECHO_N "(cached) $ECHO_C" >&6
12464 else
12465   lt_prog_compiler_static_works_CXX=no
12466    save_LDFLAGS="$LDFLAGS"
12467    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12468    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12469    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12470      # The linker can only warn and ignore the option if not recognized
12471      # So say no if there are warnings
12472      if test -s conftest.err; then
12473        # Append any errors to the config.log.
12474        cat conftest.err 1>&5
12475        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12476        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12477        if diff conftest.exp conftest.er2 >/dev/null; then
12478          lt_prog_compiler_static_works_CXX=yes
12479        fi
12480      else
12481        lt_prog_compiler_static_works_CXX=yes
12482      fi
12483    fi
12484    $rm conftest*
12485    LDFLAGS="$save_LDFLAGS"
12488 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12489 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12491 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12492     :
12493 else
12494     lt_prog_compiler_static_CXX=
12498 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12499 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12500 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12501   echo $ECHO_N "(cached) $ECHO_C" >&6
12502 else
12503   lt_cv_prog_compiler_c_o_CXX=no
12504    $rm -r conftest 2>/dev/null
12505    mkdir conftest
12506    cd conftest
12507    mkdir out
12508    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12510    lt_compiler_flag="-o out/conftest2.$ac_objext"
12511    # Insert the option either (1) after the last *FLAGS variable, or
12512    # (2) before a word containing "conftest.", or (3) at the end.
12513    # Note that $ac_compile itself does not contain backslashes and begins
12514    # with a dollar sign (not a hyphen), so the echo should work correctly.
12515    lt_compile=`echo "$ac_compile" | $SED \
12516    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12517    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12518    -e 's:$: $lt_compiler_flag:'`
12519    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12520    (eval "$lt_compile" 2>out/conftest.err)
12521    ac_status=$?
12522    cat out/conftest.err >&5
12523    echo "$as_me:__oline__: \$? = $ac_status" >&5
12524    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12525    then
12526      # The compiler can only warn and ignore the option if not recognized
12527      # So say no if there are warnings
12528      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12529      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12530      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12531        lt_cv_prog_compiler_c_o_CXX=yes
12532      fi
12533    fi
12534    chmod u+w . 2>&5
12535    $rm conftest*
12536    # SGI C++ compiler will create directory out/ii_files/ for
12537    # template instantiation
12538    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12539    $rm out/* && rmdir out
12540    cd ..
12541    rmdir conftest
12542    $rm conftest*
12545 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12546 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12549 hard_links="nottested"
12550 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12551   # do not overwrite the value of need_locks provided by the user
12552   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12553 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12554   hard_links=yes
12555   $rm conftest*
12556   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12557   touch conftest.a
12558   ln conftest.a conftest.b 2>&5 || hard_links=no
12559   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12560   { echo "$as_me:$LINENO: result: $hard_links" >&5
12561 echo "${ECHO_T}$hard_links" >&6; }
12562   if test "$hard_links" = no; then
12563     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12564 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12565     need_locks=warn
12566   fi
12567 else
12568   need_locks=no
12571 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12572 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12574   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12575   case $host_os in
12576   aix4* | aix5*)
12577     # If we're using GNU nm, then we don't want the "-C" option.
12578     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12579     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12580       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'
12581     else
12582       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'
12583     fi
12584     ;;
12585   pw32*)
12586     export_symbols_cmds_CXX="$ltdll_cmds"
12587   ;;
12588   cygwin* | mingw*)
12589     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'
12590   ;;
12591   *)
12592     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12593   ;;
12594   esac
12596 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12597 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12598 test "$ld_shlibs_CXX" = no && can_build_shared=no
12601 # Do we need to explicitly link libc?
12603 case "x$archive_cmds_need_lc_CXX" in
12604 x|xyes)
12605   # Assume -lc should be added
12606   archive_cmds_need_lc_CXX=yes
12608   if test "$enable_shared" = yes && test "$GCC" = yes; then
12609     case $archive_cmds_CXX in
12610     *'~'*)
12611       # FIXME: we may have to deal with multi-command sequences.
12612       ;;
12613     '$CC '*)
12614       # Test whether the compiler implicitly links with -lc since on some
12615       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12616       # to ld, don't add -lc before -lgcc.
12617       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12618 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12619       $rm conftest*
12620       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12622       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12623   (eval $ac_compile) 2>&5
12624   ac_status=$?
12625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626   (exit $ac_status); } 2>conftest.err; then
12627         soname=conftest
12628         lib=conftest
12629         libobjs=conftest.$ac_objext
12630         deplibs=
12631         wl=$lt_prog_compiler_wl_CXX
12632         pic_flag=$lt_prog_compiler_pic_CXX
12633         compiler_flags=-v
12634         linker_flags=-v
12635         verstring=
12636         output_objdir=.
12637         libname=conftest
12638         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12639         allow_undefined_flag_CXX=
12640         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12641   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12642   ac_status=$?
12643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644   (exit $ac_status); }
12645         then
12646           archive_cmds_need_lc_CXX=no
12647         else
12648           archive_cmds_need_lc_CXX=yes
12649         fi
12650         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12651       else
12652         cat conftest.err 1>&5
12653       fi
12654       $rm conftest*
12655       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12656 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12657       ;;
12658     esac
12659   fi
12660   ;;
12661 esac
12663 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12664 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12665 library_names_spec=
12666 libname_spec='lib$name'
12667 soname_spec=
12668 shrext_cmds=".so"
12669 postinstall_cmds=
12670 postuninstall_cmds=
12671 finish_cmds=
12672 finish_eval=
12673 shlibpath_var=
12674 shlibpath_overrides_runpath=unknown
12675 version_type=none
12676 dynamic_linker="$host_os ld.so"
12677 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12679 need_lib_prefix=unknown
12680 hardcode_into_libs=no
12682 # when you set need_version to no, make sure it does not cause -set_version
12683 # flags to be left without arguments
12684 need_version=unknown
12686 case $host_os in
12687 aix3*)
12688   version_type=linux
12689   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12690   shlibpath_var=LIBPATH
12692   # AIX 3 has no versioning support, so we append a major version to the name.
12693   soname_spec='${libname}${release}${shared_ext}$major'
12694   ;;
12696 aix4* | aix5*)
12697   version_type=linux
12698   need_lib_prefix=no
12699   need_version=no
12700   hardcode_into_libs=yes
12701   if test "$host_cpu" = ia64; then
12702     # AIX 5 supports IA64
12703     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12704     shlibpath_var=LD_LIBRARY_PATH
12705   else
12706     # With GCC up to 2.95.x, collect2 would create an import file
12707     # for dependence libraries.  The import file would start with
12708     # the line `#! .'.  This would cause the generated library to
12709     # depend on `.', always an invalid library.  This was fixed in
12710     # development snapshots of GCC prior to 3.0.
12711     case $host_os in
12712       aix4 | aix4.[01] | aix4.[01].*)
12713       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12714            echo ' yes '
12715            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12716         :
12717       else
12718         can_build_shared=no
12719       fi
12720       ;;
12721     esac
12722     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12723     # soname into executable. Probably we can add versioning support to
12724     # collect2, so additional links can be useful in future.
12725     if test "$aix_use_runtimelinking" = yes; then
12726       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12727       # instead of lib<name>.a to let people know that these are not
12728       # typical AIX shared libraries.
12729       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12730     else
12731       # We preserve .a as extension for shared libraries through AIX4.2
12732       # and later when we are not doing run time linking.
12733       library_names_spec='${libname}${release}.a $libname.a'
12734       soname_spec='${libname}${release}${shared_ext}$major'
12735     fi
12736     shlibpath_var=LIBPATH
12737   fi
12738   ;;
12740 amigaos*)
12741   library_names_spec='$libname.ixlibrary $libname.a'
12742   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12743   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'
12744   ;;
12746 beos*)
12747   library_names_spec='${libname}${shared_ext}'
12748   dynamic_linker="$host_os ld.so"
12749   shlibpath_var=LIBRARY_PATH
12750   ;;
12752 bsdi[45]*)
12753   version_type=linux
12754   need_version=no
12755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12756   soname_spec='${libname}${release}${shared_ext}$major'
12757   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12758   shlibpath_var=LD_LIBRARY_PATH
12759   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12760   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12761   # the default ld.so.conf also contains /usr/contrib/lib and
12762   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12763   # libtool to hard-code these into programs
12764   ;;
12766 cygwin* | mingw* | pw32*)
12767   version_type=windows
12768   shrext_cmds=".dll"
12769   need_version=no
12770   need_lib_prefix=no
12772   case $GCC,$host_os in
12773   yes,cygwin* | yes,mingw* | yes,pw32*)
12774     library_names_spec='$libname.dll.a'
12775     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12776     postinstall_cmds='base_file=`basename \${file}`~
12777       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12778       dldir=$destdir/`dirname \$dlpath`~
12779       test -d \$dldir || mkdir -p \$dldir~
12780       $install_prog $dir/$dlname \$dldir/$dlname~
12781       chmod a+x \$dldir/$dlname'
12782     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12783       dlpath=$dir/\$dldll~
12784        $rm \$dlpath'
12785     shlibpath_overrides_runpath=yes
12787     case $host_os in
12788     cygwin*)
12789       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12790       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12791       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12792       ;;
12793     mingw*)
12794       # MinGW DLLs use traditional 'lib' prefix
12795       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12796       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12797       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12798         # It is most probably a Windows format PATH printed by
12799         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12800         # path with ; separators, and with drive letters. We can handle the
12801         # drive letters (cygwin fileutils understands them), so leave them,
12802         # especially as we might pass files found there to a mingw objdump,
12803         # which wouldn't understand a cygwinified path. Ahh.
12804         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12805       else
12806         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12807       fi
12808       ;;
12809     pw32*)
12810       # pw32 DLLs use 'pw' prefix rather than 'lib'
12811       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12812       ;;
12813     esac
12814     ;;
12816   *)
12817     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12818     ;;
12819   esac
12820   dynamic_linker='Win32 ld.exe'
12821   # FIXME: first we should search . and the directory the executable is in
12822   shlibpath_var=PATH
12823   ;;
12825 darwin* | rhapsody*)
12826   dynamic_linker="$host_os dyld"
12827   version_type=darwin
12828   need_lib_prefix=no
12829   need_version=no
12830   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12831   soname_spec='${libname}${release}${major}$shared_ext'
12832   shlibpath_overrides_runpath=yes
12833   shlibpath_var=DYLD_LIBRARY_PATH
12834   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12835    
12836   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12837   ;;
12839 dgux*)
12840   version_type=linux
12841   need_lib_prefix=no
12842   need_version=no
12843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12844   soname_spec='${libname}${release}${shared_ext}$major'
12845   shlibpath_var=LD_LIBRARY_PATH
12846   ;;
12848 freebsd1*)
12849   dynamic_linker=no
12850   ;;
12852 freebsd* | dragonfly*)
12853   # DragonFly does not have aout.  When/if they implement a new
12854   # versioning mechanism, adjust this.
12855   if test -x /usr/bin/objformat; then
12856     objformat=`/usr/bin/objformat`
12857   else
12858     case $host_os in
12859     freebsd[123]*) objformat=aout ;;
12860     *) objformat=elf ;;
12861     esac
12862   fi
12863   version_type=freebsd-$objformat
12864   case $version_type in
12865     freebsd-elf*)
12866       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12867       need_version=no
12868       need_lib_prefix=no
12869       ;;
12870     freebsd-*)
12871       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12872       need_version=yes
12873       ;;
12874   esac
12875   shlibpath_var=LD_LIBRARY_PATH
12876   case $host_os in
12877   freebsd2*)
12878     shlibpath_overrides_runpath=yes
12879     ;;
12880   freebsd3.[01]* | freebsdelf3.[01]*)
12881     shlibpath_overrides_runpath=yes
12882     hardcode_into_libs=yes
12883     ;;
12884   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12885   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12886     shlibpath_overrides_runpath=no
12887     hardcode_into_libs=yes
12888     ;;
12889   *) # from 4.6 on, and DragonFly
12890     shlibpath_overrides_runpath=yes
12891     hardcode_into_libs=yes
12892     ;;
12893   esac
12894   ;;
12896 gnu*)
12897   version_type=linux
12898   need_lib_prefix=no
12899   need_version=no
12900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12901   soname_spec='${libname}${release}${shared_ext}$major'
12902   shlibpath_var=LD_LIBRARY_PATH
12903   hardcode_into_libs=yes
12904   ;;
12906 hpux9* | hpux10* | hpux11*)
12907   # Give a soname corresponding to the major version so that dld.sl refuses to
12908   # link against other versions.
12909   version_type=sunos
12910   need_lib_prefix=no
12911   need_version=no
12912   case $host_cpu in
12913   ia64*)
12914     shrext_cmds='.so'
12915     hardcode_into_libs=yes
12916     dynamic_linker="$host_os dld.so"
12917     shlibpath_var=LD_LIBRARY_PATH
12918     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12919     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12920     soname_spec='${libname}${release}${shared_ext}$major'
12921     if test "X$HPUX_IA64_MODE" = X32; then
12922       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12923     else
12924       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12925     fi
12926     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12927     ;;
12928    hppa*64*)
12929      shrext_cmds='.sl'
12930      hardcode_into_libs=yes
12931      dynamic_linker="$host_os dld.sl"
12932      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12933      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12934      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12935      soname_spec='${libname}${release}${shared_ext}$major'
12936      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12937      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12938      ;;
12939    *)
12940     shrext_cmds='.sl'
12941     dynamic_linker="$host_os dld.sl"
12942     shlibpath_var=SHLIB_PATH
12943     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12944     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12945     soname_spec='${libname}${release}${shared_ext}$major'
12946     ;;
12947   esac
12948   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12949   postinstall_cmds='chmod 555 $lib'
12950   ;;
12952 interix[3-9]*)
12953   version_type=linux
12954   need_lib_prefix=no
12955   need_version=no
12956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12957   soname_spec='${libname}${release}${shared_ext}$major'
12958   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12959   shlibpath_var=LD_LIBRARY_PATH
12960   shlibpath_overrides_runpath=no
12961   hardcode_into_libs=yes
12962   ;;
12964 irix5* | irix6* | nonstopux*)
12965   case $host_os in
12966     nonstopux*) version_type=nonstopux ;;
12967     *)
12968         if test "$lt_cv_prog_gnu_ld" = yes; then
12969                 version_type=linux
12970         else
12971                 version_type=irix
12972         fi ;;
12973   esac
12974   need_lib_prefix=no
12975   need_version=no
12976   soname_spec='${libname}${release}${shared_ext}$major'
12977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12978   case $host_os in
12979   irix5* | nonstopux*)
12980     libsuff= shlibsuff=
12981     ;;
12982   *)
12983     case $LD in # libtool.m4 will add one of these switches to LD
12984     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12985       libsuff= shlibsuff= libmagic=32-bit;;
12986     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12987       libsuff=32 shlibsuff=N32 libmagic=N32;;
12988     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12989       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12990     *) libsuff= shlibsuff= libmagic=never-match;;
12991     esac
12992     ;;
12993   esac
12994   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12995   shlibpath_overrides_runpath=no
12996   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12997   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12998   hardcode_into_libs=yes
12999   ;;
13001 # No shared lib support for Linux oldld, aout, or coff.
13002 linux*oldld* | linux*aout* | linux*coff*)
13003   dynamic_linker=no
13004   ;;
13006 # This must be Linux ELF.
13007 linux* | k*bsd*-gnu)
13008   version_type=linux
13009   need_lib_prefix=no
13010   need_version=no
13011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13012   soname_spec='${libname}${release}${shared_ext}$major'
13013   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13014   shlibpath_var=LD_LIBRARY_PATH
13015   shlibpath_overrides_runpath=no
13016   # This implies no fast_install, which is unacceptable.
13017   # Some rework will be needed to allow for fast_install
13018   # before this can be enabled.
13019   hardcode_into_libs=yes
13020   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13021   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13023   # Append ld.so.conf contents to the search path
13024   if test -f /etc/ld.so.conf; then
13025     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' ' '`
13026     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13027   fi
13029   # We used to test for /lib/ld.so.1 and disable shared libraries on
13030   # powerpc, because MkLinux only supported shared libraries with the
13031   # GNU dynamic linker.  Since this was broken with cross compilers,
13032   # most powerpc-linux boxes support dynamic linking these days and
13033   # people can always --disable-shared, the test was removed, and we
13034   # assume the GNU/Linux dynamic linker is in use.
13035   dynamic_linker='GNU/Linux ld.so'
13036   ;;
13038 netbsd*)
13039   version_type=sunos
13040   need_lib_prefix=no
13041   need_version=no
13042   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13043     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13044     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13045     dynamic_linker='NetBSD (a.out) ld.so'
13046   else
13047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13048     soname_spec='${libname}${release}${shared_ext}$major'
13049     dynamic_linker='NetBSD ld.elf_so'
13050   fi
13051   shlibpath_var=LD_LIBRARY_PATH
13052   shlibpath_overrides_runpath=yes
13053   hardcode_into_libs=yes
13054   ;;
13056 newsos6)
13057   version_type=linux
13058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13059   shlibpath_var=LD_LIBRARY_PATH
13060   shlibpath_overrides_runpath=yes
13061   ;;
13063 nto-qnx*)
13064   version_type=linux
13065   need_lib_prefix=no
13066   need_version=no
13067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13068   soname_spec='${libname}${release}${shared_ext}$major'
13069   shlibpath_var=LD_LIBRARY_PATH
13070   shlibpath_overrides_runpath=yes
13071   ;;
13073 openbsd*)
13074   version_type=sunos
13075   sys_lib_dlsearch_path_spec="/usr/lib"
13076   need_lib_prefix=no
13077   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13078   case $host_os in
13079     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13080     *)                         need_version=no  ;;
13081   esac
13082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13083   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13084   shlibpath_var=LD_LIBRARY_PATH
13085   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13086     case $host_os in
13087       openbsd2.[89] | openbsd2.[89].*)
13088         shlibpath_overrides_runpath=no
13089         ;;
13090       *)
13091         shlibpath_overrides_runpath=yes
13092         ;;
13093       esac
13094   else
13095     shlibpath_overrides_runpath=yes
13096   fi
13097   ;;
13099 os2*)
13100   libname_spec='$name'
13101   shrext_cmds=".dll"
13102   need_lib_prefix=no
13103   library_names_spec='$libname${shared_ext} $libname.a'
13104   dynamic_linker='OS/2 ld.exe'
13105   shlibpath_var=LIBPATH
13106   ;;
13108 osf3* | osf4* | osf5*)
13109   version_type=osf
13110   need_lib_prefix=no
13111   need_version=no
13112   soname_spec='${libname}${release}${shared_ext}$major'
13113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13114   shlibpath_var=LD_LIBRARY_PATH
13115   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13116   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13117   ;;
13119 rdos*)
13120   dynamic_linker=no
13121   ;;
13123 solaris*)
13124   version_type=linux
13125   need_lib_prefix=no
13126   need_version=no
13127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13128   soname_spec='${libname}${release}${shared_ext}$major'
13129   shlibpath_var=LD_LIBRARY_PATH
13130   shlibpath_overrides_runpath=yes
13131   hardcode_into_libs=yes
13132   # ldd complains unless libraries are executable
13133   postinstall_cmds='chmod +x $lib'
13134   ;;
13136 sunos4*)
13137   version_type=sunos
13138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13139   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13140   shlibpath_var=LD_LIBRARY_PATH
13141   shlibpath_overrides_runpath=yes
13142   if test "$with_gnu_ld" = yes; then
13143     need_lib_prefix=no
13144   fi
13145   need_version=yes
13146   ;;
13148 sysv4 | sysv4.3*)
13149   version_type=linux
13150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13151   soname_spec='${libname}${release}${shared_ext}$major'
13152   shlibpath_var=LD_LIBRARY_PATH
13153   case $host_vendor in
13154     sni)
13155       shlibpath_overrides_runpath=no
13156       need_lib_prefix=no
13157       export_dynamic_flag_spec='${wl}-Blargedynsym'
13158       runpath_var=LD_RUN_PATH
13159       ;;
13160     siemens)
13161       need_lib_prefix=no
13162       ;;
13163     motorola)
13164       need_lib_prefix=no
13165       need_version=no
13166       shlibpath_overrides_runpath=no
13167       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13168       ;;
13169   esac
13170   ;;
13172 sysv4*MP*)
13173   if test -d /usr/nec ;then
13174     version_type=linux
13175     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13176     soname_spec='$libname${shared_ext}.$major'
13177     shlibpath_var=LD_LIBRARY_PATH
13178   fi
13179   ;;
13181 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13182   version_type=freebsd-elf
13183   need_lib_prefix=no
13184   need_version=no
13185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13186   soname_spec='${libname}${release}${shared_ext}$major'
13187   shlibpath_var=LD_LIBRARY_PATH
13188   hardcode_into_libs=yes
13189   if test "$with_gnu_ld" = yes; then
13190     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13191     shlibpath_overrides_runpath=no
13192   else
13193     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13194     shlibpath_overrides_runpath=yes
13195     case $host_os in
13196       sco3.2v5*)
13197         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13198         ;;
13199     esac
13200   fi
13201   sys_lib_dlsearch_path_spec='/usr/lib'
13202   ;;
13204 uts4*)
13205   version_type=linux
13206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13207   soname_spec='${libname}${release}${shared_ext}$major'
13208   shlibpath_var=LD_LIBRARY_PATH
13209   ;;
13212   dynamic_linker=no
13213   ;;
13214 esac
13215 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13216 echo "${ECHO_T}$dynamic_linker" >&6; }
13217 test "$dynamic_linker" = no && can_build_shared=no
13219 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13220 if test "$GCC" = yes; then
13221   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13224 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13225 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13226 hardcode_action_CXX=
13227 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13228    test -n "$runpath_var_CXX" || \
13229    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13231   # We can hardcode non-existant directories.
13232   if test "$hardcode_direct_CXX" != no &&
13233      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13234      # have to relink, otherwise we might link with an installed library
13235      # when we should be linking with a yet-to-be-installed one
13236      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13237      test "$hardcode_minus_L_CXX" != no; then
13238     # Linking always hardcodes the temporary library directory.
13239     hardcode_action_CXX=relink
13240   else
13241     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13242     hardcode_action_CXX=immediate
13243   fi
13244 else
13245   # We cannot hardcode anything, or else we can only hardcode existing
13246   # directories.
13247   hardcode_action_CXX=unsupported
13249 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13250 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13252 if test "$hardcode_action_CXX" = relink; then
13253   # Fast installation is not supported
13254   enable_fast_install=no
13255 elif test "$shlibpath_overrides_runpath" = yes ||
13256      test "$enable_shared" = no; then
13257   # Fast installation is not necessary
13258   enable_fast_install=needless
13262 # The else clause should only fire when bootstrapping the
13263 # libtool distribution, otherwise you forgot to ship ltmain.sh
13264 # with your package, and you will get complaints that there are
13265 # no rules to generate ltmain.sh.
13266 if test -f "$ltmain"; then
13267   # See if we are running on zsh, and set the options which allow our commands through
13268   # without removal of \ escapes.
13269   if test -n "${ZSH_VERSION+set}" ; then
13270     setopt NO_GLOB_SUBST
13271   fi
13272   # Now quote all the things that may contain metacharacters while being
13273   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13274   # variables and quote the copies for generation of the libtool script.
13275   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13276     SED SHELL STRIP \
13277     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13278     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13279     deplibs_check_method reload_flag reload_cmds need_locks \
13280     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13281     lt_cv_sys_global_symbol_to_c_name_address \
13282     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13283     old_postinstall_cmds old_postuninstall_cmds \
13284     compiler_CXX \
13285     CC_CXX \
13286     LD_CXX \
13287     lt_prog_compiler_wl_CXX \
13288     lt_prog_compiler_pic_CXX \
13289     lt_prog_compiler_static_CXX \
13290     lt_prog_compiler_no_builtin_flag_CXX \
13291     export_dynamic_flag_spec_CXX \
13292     thread_safe_flag_spec_CXX \
13293     whole_archive_flag_spec_CXX \
13294     enable_shared_with_static_runtimes_CXX \
13295     old_archive_cmds_CXX \
13296     old_archive_from_new_cmds_CXX \
13297     predep_objects_CXX \
13298     postdep_objects_CXX \
13299     predeps_CXX \
13300     postdeps_CXX \
13301     compiler_lib_search_path_CXX \
13302     archive_cmds_CXX \
13303     archive_expsym_cmds_CXX \
13304     postinstall_cmds_CXX \
13305     postuninstall_cmds_CXX \
13306     old_archive_from_expsyms_cmds_CXX \
13307     allow_undefined_flag_CXX \
13308     no_undefined_flag_CXX \
13309     export_symbols_cmds_CXX \
13310     hardcode_libdir_flag_spec_CXX \
13311     hardcode_libdir_flag_spec_ld_CXX \
13312     hardcode_libdir_separator_CXX \
13313     hardcode_automatic_CXX \
13314     module_cmds_CXX \
13315     module_expsym_cmds_CXX \
13316     lt_cv_prog_compiler_c_o_CXX \
13317     fix_srcfile_path_CXX \
13318     exclude_expsyms_CXX \
13319     include_expsyms_CXX; do
13321     case $var in
13322     old_archive_cmds_CXX | \
13323     old_archive_from_new_cmds_CXX | \
13324     archive_cmds_CXX | \
13325     archive_expsym_cmds_CXX | \
13326     module_cmds_CXX | \
13327     module_expsym_cmds_CXX | \
13328     old_archive_from_expsyms_cmds_CXX | \
13329     export_symbols_cmds_CXX | \
13330     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13331     postinstall_cmds | postuninstall_cmds | \
13332     old_postinstall_cmds | old_postuninstall_cmds | \
13333     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13334       # Double-quote double-evaled strings.
13335       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13336       ;;
13337     *)
13338       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13339       ;;
13340     esac
13341   done
13343   case $lt_echo in
13344   *'\$0 --fallback-echo"')
13345     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13346     ;;
13347   esac
13349 cfgfile="$ofile"
13351   cat <<__EOF__ >> "$cfgfile"
13352 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13354 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13356 # Shell to use when invoking shell scripts.
13357 SHELL=$lt_SHELL
13359 # Whether or not to build shared libraries.
13360 build_libtool_libs=$enable_shared
13362 # Whether or not to build static libraries.
13363 build_old_libs=$enable_static
13365 # Whether or not to add -lc for building shared libraries.
13366 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13368 # Whether or not to disallow shared libs when runtime libs are static
13369 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13371 # Whether or not to optimize for fast installation.
13372 fast_install=$enable_fast_install
13374 # The host system.
13375 host_alias=$host_alias
13376 host=$host
13377 host_os=$host_os
13379 # The build system.
13380 build_alias=$build_alias
13381 build=$build
13382 build_os=$build_os
13384 # An echo program that does not interpret backslashes.
13385 echo=$lt_echo
13387 # The archiver.
13388 AR=$lt_AR
13389 AR_FLAGS=$lt_AR_FLAGS
13391 # A C compiler.
13392 LTCC=$lt_LTCC
13394 # LTCC compiler flags.
13395 LTCFLAGS=$lt_LTCFLAGS
13397 # A language-specific compiler.
13398 CC=$lt_compiler_CXX
13400 # Is the compiler the GNU C compiler?
13401 with_gcc=$GCC_CXX
13403 # An ERE matcher.
13404 EGREP=$lt_EGREP
13406 # The linker used to build libraries.
13407 LD=$lt_LD_CXX
13409 # Whether we need hard or soft links.
13410 LN_S=$lt_LN_S
13412 # A BSD-compatible nm program.
13413 NM=$lt_NM
13415 # A symbol stripping program
13416 STRIP=$lt_STRIP
13418 # Used to examine libraries when file_magic_cmd begins "file"
13419 MAGIC_CMD=$MAGIC_CMD
13421 # Used on cygwin: DLL creation program.
13422 DLLTOOL="$DLLTOOL"
13424 # Used on cygwin: object dumper.
13425 OBJDUMP="$OBJDUMP"
13427 # Used on cygwin: assembler.
13428 AS="$AS"
13430 # The name of the directory that contains temporary libtool files.
13431 objdir=$objdir
13433 # How to create reloadable object files.
13434 reload_flag=$lt_reload_flag
13435 reload_cmds=$lt_reload_cmds
13437 # How to pass a linker flag through the compiler.
13438 wl=$lt_lt_prog_compiler_wl_CXX
13440 # Object file suffix (normally "o").
13441 objext="$ac_objext"
13443 # Old archive suffix (normally "a").
13444 libext="$libext"
13446 # Shared library suffix (normally ".so").
13447 shrext_cmds='$shrext_cmds'
13449 # Executable file suffix (normally "").
13450 exeext="$exeext"
13452 # Additional compiler flags for building library objects.
13453 pic_flag=$lt_lt_prog_compiler_pic_CXX
13454 pic_mode=$pic_mode
13456 # What is the maximum length of a command?
13457 max_cmd_len=$lt_cv_sys_max_cmd_len
13459 # Does compiler simultaneously support -c and -o options?
13460 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13462 # Must we lock files when doing compilation?
13463 need_locks=$lt_need_locks
13465 # Do we need the lib prefix for modules?
13466 need_lib_prefix=$need_lib_prefix
13468 # Do we need a version for libraries?
13469 need_version=$need_version
13471 # Whether dlopen is supported.
13472 dlopen_support=$enable_dlopen
13474 # Whether dlopen of programs is supported.
13475 dlopen_self=$enable_dlopen_self
13477 # Whether dlopen of statically linked programs is supported.
13478 dlopen_self_static=$enable_dlopen_self_static
13480 # Compiler flag to prevent dynamic linking.
13481 link_static_flag=$lt_lt_prog_compiler_static_CXX
13483 # Compiler flag to turn off builtin functions.
13484 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13486 # Compiler flag to allow reflexive dlopens.
13487 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13489 # Compiler flag to generate shared objects directly from archives.
13490 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13492 # Compiler flag to generate thread-safe objects.
13493 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13495 # Library versioning type.
13496 version_type=$version_type
13498 # Format of library name prefix.
13499 libname_spec=$lt_libname_spec
13501 # List of archive names.  First name is the real one, the rest are links.
13502 # The last name is the one that the linker finds with -lNAME.
13503 library_names_spec=$lt_library_names_spec
13505 # The coded name of the library, if different from the real name.
13506 soname_spec=$lt_soname_spec
13508 # Commands used to build and install an old-style archive.
13509 RANLIB=$lt_RANLIB
13510 old_archive_cmds=$lt_old_archive_cmds_CXX
13511 old_postinstall_cmds=$lt_old_postinstall_cmds
13512 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13514 # Create an old-style archive from a shared archive.
13515 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13517 # Create a temporary old-style archive to link instead of a shared archive.
13518 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13520 # Commands used to build and install a shared archive.
13521 archive_cmds=$lt_archive_cmds_CXX
13522 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13523 postinstall_cmds=$lt_postinstall_cmds
13524 postuninstall_cmds=$lt_postuninstall_cmds
13526 # Commands used to build a loadable module (assumed same as above if empty)
13527 module_cmds=$lt_module_cmds_CXX
13528 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13530 # Commands to strip libraries.
13531 old_striplib=$lt_old_striplib
13532 striplib=$lt_striplib
13534 # Dependencies to place before the objects being linked to create a
13535 # shared library.
13536 predep_objects=$lt_predep_objects_CXX
13538 # Dependencies to place after the objects being linked to create a
13539 # shared library.
13540 postdep_objects=$lt_postdep_objects_CXX
13542 # Dependencies to place before the objects being linked to create a
13543 # shared library.
13544 predeps=$lt_predeps_CXX
13546 # Dependencies to place after the objects being linked to create a
13547 # shared library.
13548 postdeps=$lt_postdeps_CXX
13550 # The library search path used internally by the compiler when linking
13551 # a shared library.
13552 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13554 # Method to check whether dependent libraries are shared objects.
13555 deplibs_check_method=$lt_deplibs_check_method
13557 # Command to use when deplibs_check_method == file_magic.
13558 file_magic_cmd=$lt_file_magic_cmd
13560 # Flag that allows shared libraries with undefined symbols to be built.
13561 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13563 # Flag that forces no undefined symbols.
13564 no_undefined_flag=$lt_no_undefined_flag_CXX
13566 # Commands used to finish a libtool library installation in a directory.
13567 finish_cmds=$lt_finish_cmds
13569 # Same as above, but a single script fragment to be evaled but not shown.
13570 finish_eval=$lt_finish_eval
13572 # Take the output of nm and produce a listing of raw symbols and C names.
13573 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13575 # Transform the output of nm in a proper C declaration
13576 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13578 # Transform the output of nm in a C name address pair
13579 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13581 # This is the shared library runtime path variable.
13582 runpath_var=$runpath_var
13584 # This is the shared library path variable.
13585 shlibpath_var=$shlibpath_var
13587 # Is shlibpath searched before the hard-coded library search path?
13588 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13590 # How to hardcode a shared library path into an executable.
13591 hardcode_action=$hardcode_action_CXX
13593 # Whether we should hardcode library paths into libraries.
13594 hardcode_into_libs=$hardcode_into_libs
13596 # Flag to hardcode \$libdir into a binary during linking.
13597 # This must work even if \$libdir does not exist.
13598 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13600 # If ld is used when linking, flag to hardcode \$libdir into
13601 # a binary during linking. This must work even if \$libdir does
13602 # not exist.
13603 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13605 # Whether we need a single -rpath flag with a separated argument.
13606 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13608 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13609 # resulting binary.
13610 hardcode_direct=$hardcode_direct_CXX
13612 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13613 # resulting binary.
13614 hardcode_minus_L=$hardcode_minus_L_CXX
13616 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13617 # the resulting binary.
13618 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13620 # Set to yes if building a shared library automatically hardcodes DIR into the library
13621 # and all subsequent libraries and executables linked against it.
13622 hardcode_automatic=$hardcode_automatic_CXX
13624 # Variables whose values should be saved in libtool wrapper scripts and
13625 # restored at relink time.
13626 variables_saved_for_relink="$variables_saved_for_relink"
13628 # Whether libtool must link a program against all its dependency libraries.
13629 link_all_deplibs=$link_all_deplibs_CXX
13631 # Compile-time system search path for libraries
13632 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13634 # Run-time system search path for libraries
13635 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13637 # Fix the shell variable \$srcfile for the compiler.
13638 fix_srcfile_path=$lt_fix_srcfile_path
13640 # Set to yes if exported symbols are required.
13641 always_export_symbols=$always_export_symbols_CXX
13643 # The commands to list exported symbols.
13644 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13646 # The commands to extract the exported symbol list from a shared archive.
13647 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13649 # Symbols that should not be listed in the preloaded symbols.
13650 exclude_expsyms=$lt_exclude_expsyms_CXX
13652 # Symbols that must always be exported.
13653 include_expsyms=$lt_include_expsyms_CXX
13655 # ### END LIBTOOL TAG CONFIG: $tagname
13657 __EOF__
13660 else
13661   # If there is no Makefile yet, we rely on a make rule to execute
13662   # `config.status --recheck' to rerun these tests and create the
13663   # libtool script then.
13664   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13665   if test -f "$ltmain_in"; then
13666     test -f Makefile && make "$ltmain"
13667   fi
13671 ac_ext=c
13672 ac_cpp='$CPP $CPPFLAGS'
13673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13677 CC=$lt_save_CC
13678 LDCXX=$LD
13679 LD=$lt_save_LD
13680 GCC=$lt_save_GCC
13681 with_gnu_ldcxx=$with_gnu_ld
13682 with_gnu_ld=$lt_save_with_gnu_ld
13683 lt_cv_path_LDCXX=$lt_cv_path_LD
13684 lt_cv_path_LD=$lt_save_path_LD
13685 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13686 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13688         else
13689           tagname=""
13690         fi
13691         ;;
13693       F77)
13694         if test -n "$F77" && test "X$F77" != "Xno"; then
13695           
13696 ac_ext=f
13697 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13698 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13699 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13702 archive_cmds_need_lc_F77=no
13703 allow_undefined_flag_F77=
13704 always_export_symbols_F77=no
13705 archive_expsym_cmds_F77=
13706 export_dynamic_flag_spec_F77=
13707 hardcode_direct_F77=no
13708 hardcode_libdir_flag_spec_F77=
13709 hardcode_libdir_flag_spec_ld_F77=
13710 hardcode_libdir_separator_F77=
13711 hardcode_minus_L_F77=no
13712 hardcode_automatic_F77=no
13713 module_cmds_F77=
13714 module_expsym_cmds_F77=
13715 link_all_deplibs_F77=unknown
13716 old_archive_cmds_F77=$old_archive_cmds
13717 no_undefined_flag_F77=
13718 whole_archive_flag_spec_F77=
13719 enable_shared_with_static_runtimes_F77=no
13721 # Source file extension for f77 test sources.
13722 ac_ext=f
13724 # Object file extension for compiled f77 test sources.
13725 objext=o
13726 objext_F77=$objext
13728 # Code to be used in simple compile tests
13729 lt_simple_compile_test_code="\
13730       subroutine t
13731       return
13732       end
13735 # Code to be used in simple link tests
13736 lt_simple_link_test_code="\
13737       program t
13738       end
13741 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13743 # If no C compiler was specified, use CC.
13744 LTCC=${LTCC-"$CC"}
13746 # If no C compiler flags were specified, use CFLAGS.
13747 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13749 # Allow CC to be a program name with arguments.
13750 compiler=$CC
13753 # save warnings/boilerplate of simple test code
13754 ac_outfile=conftest.$ac_objext
13755 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13756 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13757 _lt_compiler_boilerplate=`cat conftest.err`
13758 $rm conftest*
13760 ac_outfile=conftest.$ac_objext
13761 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13762 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13763 _lt_linker_boilerplate=`cat conftest.err`
13764 $rm conftest*
13767 # Allow CC to be a program name with arguments.
13768 lt_save_CC="$CC"
13769 CC=${F77-"f77"}
13770 compiler=$CC
13771 compiler_F77=$CC
13772 for cc_temp in $compiler""; do
13773   case $cc_temp in
13774     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13775     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13776     \-*) ;;
13777     *) break;;
13778   esac
13779 done
13780 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13783 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13784 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13785 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13786 echo "${ECHO_T}$can_build_shared" >&6; }
13788 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13789 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13790 test "$can_build_shared" = "no" && enable_shared=no
13792 # On AIX, shared libraries and static libraries use the same namespace, and
13793 # are all built from PIC.
13794 case $host_os in
13795 aix3*)
13796   test "$enable_shared" = yes && enable_static=no
13797   if test -n "$RANLIB"; then
13798     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13799     postinstall_cmds='$RANLIB $lib'
13800   fi
13801   ;;
13802 aix4* | aix5*)
13803   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13804     test "$enable_shared" = yes && enable_static=no
13805   fi
13806   ;;
13807 esac
13808 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13809 echo "${ECHO_T}$enable_shared" >&6; }
13811 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13812 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13813 # Make sure either enable_shared or enable_static is yes.
13814 test "$enable_shared" = yes || enable_static=yes
13815 { echo "$as_me:$LINENO: result: $enable_static" >&5
13816 echo "${ECHO_T}$enable_static" >&6; }
13818 GCC_F77="$G77"
13819 LD_F77="$LD"
13821 lt_prog_compiler_wl_F77=
13822 lt_prog_compiler_pic_F77=
13823 lt_prog_compiler_static_F77=
13825 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13826 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13828   if test "$GCC" = yes; then
13829     lt_prog_compiler_wl_F77='-Wl,'
13830     lt_prog_compiler_static_F77='-static'
13832     case $host_os in
13833       aix*)
13834       # All AIX code is PIC.
13835       if test "$host_cpu" = ia64; then
13836         # AIX 5 now supports IA64 processor
13837         lt_prog_compiler_static_F77='-Bstatic'
13838       fi
13839       ;;
13841     amigaos*)
13842       # FIXME: we need at least 68020 code to build shared libraries, but
13843       # adding the `-m68020' flag to GCC prevents building anything better,
13844       # like `-m68040'.
13845       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13846       ;;
13848     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13849       # PIC is the default for these OSes.
13850       ;;
13852     mingw* | cygwin* | pw32* | os2*)
13853       # This hack is so that the source file can tell whether it is being
13854       # built for inclusion in a dll (and should export symbols for example).
13855       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13856       # (--disable-auto-import) libraries
13857       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13858       ;;
13860     darwin* | rhapsody*)
13861       # PIC is the default on this platform
13862       # Common symbols not allowed in MH_DYLIB files
13863       lt_prog_compiler_pic_F77='-fno-common'
13864       ;;
13866     interix[3-9]*)
13867       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13868       # Instead, we relocate shared libraries at runtime.
13869       ;;
13871     msdosdjgpp*)
13872       # Just because we use GCC doesn't mean we suddenly get shared libraries
13873       # on systems that don't support them.
13874       lt_prog_compiler_can_build_shared_F77=no
13875       enable_shared=no
13876       ;;
13878     sysv4*MP*)
13879       if test -d /usr/nec; then
13880         lt_prog_compiler_pic_F77=-Kconform_pic
13881       fi
13882       ;;
13884     hpux*)
13885       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13886       # not for PA HP-UX.
13887       case $host_cpu in
13888       hppa*64*|ia64*)
13889         # +Z the default
13890         ;;
13891       *)
13892         lt_prog_compiler_pic_F77='-fPIC'
13893         ;;
13894       esac
13895       ;;
13897     *)
13898       lt_prog_compiler_pic_F77='-fPIC'
13899       ;;
13900     esac
13901   else
13902     # PORTME Check for flag to pass linker flags through the system compiler.
13903     case $host_os in
13904     aix*)
13905       lt_prog_compiler_wl_F77='-Wl,'
13906       if test "$host_cpu" = ia64; then
13907         # AIX 5 now supports IA64 processor
13908         lt_prog_compiler_static_F77='-Bstatic'
13909       else
13910         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13911       fi
13912       ;;
13913       darwin*)
13914         # PIC is the default on this platform
13915         # Common symbols not allowed in MH_DYLIB files
13916        case $cc_basename in
13917          xlc*)
13918          lt_prog_compiler_pic_F77='-qnocommon'
13919          lt_prog_compiler_wl_F77='-Wl,'
13920          ;;
13921        esac
13922        ;;
13924     mingw* | cygwin* | pw32* | os2*)
13925       # This hack is so that the source file can tell whether it is being
13926       # built for inclusion in a dll (and should export symbols for example).
13927       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13928       ;;
13930     hpux9* | hpux10* | hpux11*)
13931       lt_prog_compiler_wl_F77='-Wl,'
13932       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13933       # not for PA HP-UX.
13934       case $host_cpu in
13935       hppa*64*|ia64*)
13936         # +Z the default
13937         ;;
13938       *)
13939         lt_prog_compiler_pic_F77='+Z'
13940         ;;
13941       esac
13942       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13943       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13944       ;;
13946     irix5* | irix6* | nonstopux*)
13947       lt_prog_compiler_wl_F77='-Wl,'
13948       # PIC (with -KPIC) is the default.
13949       lt_prog_compiler_static_F77='-non_shared'
13950       ;;
13952     newsos6)
13953       lt_prog_compiler_pic_F77='-KPIC'
13954       lt_prog_compiler_static_F77='-Bstatic'
13955       ;;
13957     linux* | k*bsd*-gnu)
13958       case $cc_basename in
13959       icc* | ecc*)
13960         lt_prog_compiler_wl_F77='-Wl,'
13961         lt_prog_compiler_pic_F77='-KPIC'
13962         lt_prog_compiler_static_F77='-static'
13963         ;;
13964       pgcc* | pgf77* | pgf90* | pgf95*)
13965         # Portland Group compilers (*not* the Pentium gcc compiler,
13966         # which looks to be a dead project)
13967         lt_prog_compiler_wl_F77='-Wl,'
13968         lt_prog_compiler_pic_F77='-fpic'
13969         lt_prog_compiler_static_F77='-Bstatic'
13970         ;;
13971       ccc*)
13972         lt_prog_compiler_wl_F77='-Wl,'
13973         # All Alpha code is PIC.
13974         lt_prog_compiler_static_F77='-non_shared'
13975         ;;
13976       *)
13977         case `$CC -V 2>&1 | sed 5q` in
13978         *Sun\ C*)
13979           # Sun C 5.9
13980           lt_prog_compiler_pic_F77='-KPIC'
13981           lt_prog_compiler_static_F77='-Bstatic'
13982           lt_prog_compiler_wl_F77='-Wl,'
13983           ;;
13984         *Sun\ F*)
13985           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13986           lt_prog_compiler_pic_F77='-KPIC'
13987           lt_prog_compiler_static_F77='-Bstatic'
13988           lt_prog_compiler_wl_F77=''
13989           ;;
13990         esac
13991         ;;
13992       esac
13993       ;;
13995     osf3* | osf4* | osf5*)
13996       lt_prog_compiler_wl_F77='-Wl,'
13997       # All OSF/1 code is PIC.
13998       lt_prog_compiler_static_F77='-non_shared'
13999       ;;
14001     rdos*)
14002       lt_prog_compiler_static_F77='-non_shared'
14003       ;;
14005     solaris*)
14006       lt_prog_compiler_pic_F77='-KPIC'
14007       lt_prog_compiler_static_F77='-Bstatic'
14008       case $cc_basename in
14009       f77* | f90* | f95*)
14010         lt_prog_compiler_wl_F77='-Qoption ld ';;
14011       *)
14012         lt_prog_compiler_wl_F77='-Wl,';;
14013       esac
14014       ;;
14016     sunos4*)
14017       lt_prog_compiler_wl_F77='-Qoption ld '
14018       lt_prog_compiler_pic_F77='-PIC'
14019       lt_prog_compiler_static_F77='-Bstatic'
14020       ;;
14022     sysv4 | sysv4.2uw2* | sysv4.3*)
14023       lt_prog_compiler_wl_F77='-Wl,'
14024       lt_prog_compiler_pic_F77='-KPIC'
14025       lt_prog_compiler_static_F77='-Bstatic'
14026       ;;
14028     sysv4*MP*)
14029       if test -d /usr/nec ;then
14030         lt_prog_compiler_pic_F77='-Kconform_pic'
14031         lt_prog_compiler_static_F77='-Bstatic'
14032       fi
14033       ;;
14035     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14036       lt_prog_compiler_wl_F77='-Wl,'
14037       lt_prog_compiler_pic_F77='-KPIC'
14038       lt_prog_compiler_static_F77='-Bstatic'
14039       ;;
14041     unicos*)
14042       lt_prog_compiler_wl_F77='-Wl,'
14043       lt_prog_compiler_can_build_shared_F77=no
14044       ;;
14046     uts4*)
14047       lt_prog_compiler_pic_F77='-pic'
14048       lt_prog_compiler_static_F77='-Bstatic'
14049       ;;
14051     *)
14052       lt_prog_compiler_can_build_shared_F77=no
14053       ;;
14054     esac
14055   fi
14057 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14058 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14061 # Check to make sure the PIC flag actually works.
14063 if test -n "$lt_prog_compiler_pic_F77"; then
14064   
14065 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14066 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14067 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14068   echo $ECHO_N "(cached) $ECHO_C" >&6
14069 else
14070   lt_prog_compiler_pic_works_F77=no
14071   ac_outfile=conftest.$ac_objext
14072    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14073    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14074    # Insert the option either (1) after the last *FLAGS variable, or
14075    # (2) before a word containing "conftest.", or (3) at the end.
14076    # Note that $ac_compile itself does not contain backslashes and begins
14077    # with a dollar sign (not a hyphen), so the echo should work correctly.
14078    # The option is referenced via a variable to avoid confusing sed.
14079    lt_compile=`echo "$ac_compile" | $SED \
14080    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14081    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14082    -e 's:$: $lt_compiler_flag:'`
14083    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14084    (eval "$lt_compile" 2>conftest.err)
14085    ac_status=$?
14086    cat conftest.err >&5
14087    echo "$as_me:__oline__: \$? = $ac_status" >&5
14088    if (exit $ac_status) && test -s "$ac_outfile"; then
14089      # The compiler can only warn and ignore the option if not recognized
14090      # So say no if there are warnings other than the usual output.
14091      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14092      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14093      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14094        lt_prog_compiler_pic_works_F77=yes
14095      fi
14096    fi
14097    $rm conftest*
14100 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14101 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14103 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14104     case $lt_prog_compiler_pic_F77 in
14105      "" | " "*) ;;
14106      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14107      esac
14108 else
14109     lt_prog_compiler_pic_F77=
14110      lt_prog_compiler_can_build_shared_F77=no
14114 case $host_os in
14115   # For platforms which do not support PIC, -DPIC is meaningless:
14116   *djgpp*)
14117     lt_prog_compiler_pic_F77=
14118     ;;
14119   *)
14120     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14121     ;;
14122 esac
14125 # Check to make sure the static flag actually works.
14127 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14128 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14129 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14130 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14131   echo $ECHO_N "(cached) $ECHO_C" >&6
14132 else
14133   lt_prog_compiler_static_works_F77=no
14134    save_LDFLAGS="$LDFLAGS"
14135    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14136    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14137    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14138      # The linker can only warn and ignore the option if not recognized
14139      # So say no if there are warnings
14140      if test -s conftest.err; then
14141        # Append any errors to the config.log.
14142        cat conftest.err 1>&5
14143        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14144        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14145        if diff conftest.exp conftest.er2 >/dev/null; then
14146          lt_prog_compiler_static_works_F77=yes
14147        fi
14148      else
14149        lt_prog_compiler_static_works_F77=yes
14150      fi
14151    fi
14152    $rm conftest*
14153    LDFLAGS="$save_LDFLAGS"
14156 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14157 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14159 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14160     :
14161 else
14162     lt_prog_compiler_static_F77=
14166 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14167 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14168 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14169   echo $ECHO_N "(cached) $ECHO_C" >&6
14170 else
14171   lt_cv_prog_compiler_c_o_F77=no
14172    $rm -r conftest 2>/dev/null
14173    mkdir conftest
14174    cd conftest
14175    mkdir out
14176    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14178    lt_compiler_flag="-o out/conftest2.$ac_objext"
14179    # Insert the option either (1) after the last *FLAGS variable, or
14180    # (2) before a word containing "conftest.", or (3) at the end.
14181    # Note that $ac_compile itself does not contain backslashes and begins
14182    # with a dollar sign (not a hyphen), so the echo should work correctly.
14183    lt_compile=`echo "$ac_compile" | $SED \
14184    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14185    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14186    -e 's:$: $lt_compiler_flag:'`
14187    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14188    (eval "$lt_compile" 2>out/conftest.err)
14189    ac_status=$?
14190    cat out/conftest.err >&5
14191    echo "$as_me:__oline__: \$? = $ac_status" >&5
14192    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14193    then
14194      # The compiler can only warn and ignore the option if not recognized
14195      # So say no if there are warnings
14196      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14197      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14198      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14199        lt_cv_prog_compiler_c_o_F77=yes
14200      fi
14201    fi
14202    chmod u+w . 2>&5
14203    $rm conftest*
14204    # SGI C++ compiler will create directory out/ii_files/ for
14205    # template instantiation
14206    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14207    $rm out/* && rmdir out
14208    cd ..
14209    rmdir conftest
14210    $rm conftest*
14213 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14214 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14217 hard_links="nottested"
14218 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14219   # do not overwrite the value of need_locks provided by the user
14220   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14221 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14222   hard_links=yes
14223   $rm conftest*
14224   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14225   touch conftest.a
14226   ln conftest.a conftest.b 2>&5 || hard_links=no
14227   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14228   { echo "$as_me:$LINENO: result: $hard_links" >&5
14229 echo "${ECHO_T}$hard_links" >&6; }
14230   if test "$hard_links" = no; then
14231     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14232 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14233     need_locks=warn
14234   fi
14235 else
14236   need_locks=no
14239 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14240 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14242   runpath_var=
14243   allow_undefined_flag_F77=
14244   enable_shared_with_static_runtimes_F77=no
14245   archive_cmds_F77=
14246   archive_expsym_cmds_F77=
14247   old_archive_From_new_cmds_F77=
14248   old_archive_from_expsyms_cmds_F77=
14249   export_dynamic_flag_spec_F77=
14250   whole_archive_flag_spec_F77=
14251   thread_safe_flag_spec_F77=
14252   hardcode_libdir_flag_spec_F77=
14253   hardcode_libdir_flag_spec_ld_F77=
14254   hardcode_libdir_separator_F77=
14255   hardcode_direct_F77=no
14256   hardcode_minus_L_F77=no
14257   hardcode_shlibpath_var_F77=unsupported
14258   link_all_deplibs_F77=unknown
14259   hardcode_automatic_F77=no
14260   module_cmds_F77=
14261   module_expsym_cmds_F77=
14262   always_export_symbols_F77=no
14263   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14264   # include_expsyms should be a list of space-separated symbols to be *always*
14265   # included in the symbol list
14266   include_expsyms_F77=
14267   # exclude_expsyms can be an extended regexp of symbols to exclude
14268   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14269   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14270   # as well as any symbol that contains `d'.
14271   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14272   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14273   # platforms (ab)use it in PIC code, but their linkers get confused if
14274   # the symbol is explicitly referenced.  Since portable code cannot
14275   # rely on this symbol name, it's probably fine to never include it in
14276   # preloaded symbol tables.
14277   extract_expsyms_cmds=
14278   # Just being paranoid about ensuring that cc_basename is set.
14279   for cc_temp in $compiler""; do
14280   case $cc_temp in
14281     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14282     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14283     \-*) ;;
14284     *) break;;
14285   esac
14286 done
14287 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14289   case $host_os in
14290   cygwin* | mingw* | pw32*)
14291     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14292     # When not using gcc, we currently assume that we are using
14293     # Microsoft Visual C++.
14294     if test "$GCC" != yes; then
14295       with_gnu_ld=no
14296     fi
14297     ;;
14298   interix*)
14299     # we just hope/assume this is gcc and not c89 (= MSVC++)
14300     with_gnu_ld=yes
14301     ;;
14302   openbsd*)
14303     with_gnu_ld=no
14304     ;;
14305   esac
14307   ld_shlibs_F77=yes
14308   if test "$with_gnu_ld" = yes; then
14309     # If archive_cmds runs LD, not CC, wlarc should be empty
14310     wlarc='${wl}'
14312     # Set some defaults for GNU ld with shared library support. These
14313     # are reset later if shared libraries are not supported. Putting them
14314     # here allows them to be overridden if necessary.
14315     runpath_var=LD_RUN_PATH
14316     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14317     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14318     # ancient GNU ld didn't support --whole-archive et. al.
14319     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14320         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14321       else
14322         whole_archive_flag_spec_F77=
14323     fi
14324     supports_anon_versioning=no
14325     case `$LD -v 2>/dev/null` in
14326       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14327       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14328       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14329       *\ 2.11.*) ;; # other 2.11 versions
14330       *) supports_anon_versioning=yes ;;
14331     esac
14333     # See if GNU ld supports shared libraries.
14334     case $host_os in
14335     aix3* | aix4* | aix5*)
14336       # On AIX/PPC, the GNU linker is very broken
14337       if test "$host_cpu" != ia64; then
14338         ld_shlibs_F77=no
14339         cat <<EOF 1>&2
14341 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14342 *** to be unable to reliably create shared libraries on AIX.
14343 *** Therefore, libtool is disabling shared libraries support.  If you
14344 *** really care for shared libraries, you may want to modify your PATH
14345 *** so that a non-GNU linker is found, and then restart.
14348       fi
14349       ;;
14351     amigaos*)
14352       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)'
14353       hardcode_libdir_flag_spec_F77='-L$libdir'
14354       hardcode_minus_L_F77=yes
14356       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14357       # that the semantics of dynamic libraries on AmigaOS, at least up
14358       # to version 4, is to share data among multiple programs linked
14359       # with the same dynamic library.  Since this doesn't match the
14360       # behavior of shared libraries on other platforms, we can't use
14361       # them.
14362       ld_shlibs_F77=no
14363       ;;
14365     beos*)
14366       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14367         allow_undefined_flag_F77=unsupported
14368         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14369         # support --undefined.  This deserves some investigation.  FIXME
14370         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14371       else
14372         ld_shlibs_F77=no
14373       fi
14374       ;;
14376     cygwin* | mingw* | pw32*)
14377       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14378       # as there is no search path for DLLs.
14379       hardcode_libdir_flag_spec_F77='-L$libdir'
14380       allow_undefined_flag_F77=unsupported
14381       always_export_symbols_F77=no
14382       enable_shared_with_static_runtimes_F77=yes
14383       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14385       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14386         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14387         # If the export-symbols file already is a .def file (1st line
14388         # is EXPORTS), use it as is; otherwise, prepend...
14389         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14390           cp $export_symbols $output_objdir/$soname.def;
14391         else
14392           echo EXPORTS > $output_objdir/$soname.def;
14393           cat $export_symbols >> $output_objdir/$soname.def;
14394         fi~
14395         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14396       else
14397         ld_shlibs_F77=no
14398       fi
14399       ;;
14401     interix[3-9]*)
14402       hardcode_direct_F77=no
14403       hardcode_shlibpath_var_F77=no
14404       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14405       export_dynamic_flag_spec_F77='${wl}-E'
14406       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14407       # Instead, shared libraries are loaded at an image base (0x10000000 by
14408       # default) and relocated if they conflict, which is a slow very memory
14409       # consuming and fragmenting process.  To avoid this, we pick a random,
14410       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14411       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14412       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'
14413       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'
14414       ;;
14416     gnu* | linux* | k*bsd*-gnu)
14417       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14418         tmp_addflag=
14419         case $cc_basename,$host_cpu in
14420         pgcc*)                          # Portland Group C compiler
14421           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'
14422           tmp_addflag=' $pic_flag'
14423           ;;
14424         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14425           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'
14426           tmp_addflag=' $pic_flag -Mnomain' ;;
14427         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14428           tmp_addflag=' -i_dynamic' ;;
14429         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14430           tmp_addflag=' -i_dynamic -nofor_main' ;;
14431         ifc* | ifort*)                  # Intel Fortran compiler
14432           tmp_addflag=' -nofor_main' ;;
14433         esac
14434         case `$CC -V 2>&1 | sed 5q` in
14435         *Sun\ C*)                       # Sun C 5.9
14436           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'
14437           tmp_sharedflag='-G' ;;
14438         *Sun\ F*)                       # Sun Fortran 8.3
14439           tmp_sharedflag='-G' ;;
14440         *)
14441           tmp_sharedflag='-shared' ;;
14442         esac
14443         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14445         if test $supports_anon_versioning = yes; then
14446           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14447   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14448   $echo "local: *; };" >> $output_objdir/$libname.ver~
14449           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14450         fi
14451       else
14452         ld_shlibs_F77=no
14453       fi
14454       ;;
14456     netbsd*)
14457       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14458         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14459         wlarc=
14460       else
14461         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14462         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14463       fi
14464       ;;
14466     solaris*)
14467       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14468         ld_shlibs_F77=no
14469         cat <<EOF 1>&2
14471 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14472 *** create shared libraries on Solaris systems.  Therefore, libtool
14473 *** is disabling shared libraries support.  We urge you to upgrade GNU
14474 *** binutils to release 2.9.1 or newer.  Another option is to modify
14475 *** your PATH or compiler configuration so that the native linker is
14476 *** used, and then restart.
14479       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14480         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14481         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14482       else
14483         ld_shlibs_F77=no
14484       fi
14485       ;;
14487     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14488       case `$LD -v 2>&1` in
14489         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14490         ld_shlibs_F77=no
14491         cat <<_LT_EOF 1>&2
14493 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14494 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14495 *** is disabling shared libraries support.  We urge you to upgrade GNU
14496 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14497 *** your PATH or compiler configuration so that the native linker is
14498 *** used, and then restart.
14500 _LT_EOF
14501         ;;
14502         *)
14503           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14504             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14505             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14506             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14507           else
14508             ld_shlibs_F77=no
14509           fi
14510         ;;
14511       esac
14512       ;;
14514     sunos4*)
14515       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14516       wlarc=
14517       hardcode_direct_F77=yes
14518       hardcode_shlibpath_var_F77=no
14519       ;;
14521     *)
14522       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14523         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14524         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14525       else
14526         ld_shlibs_F77=no
14527       fi
14528       ;;
14529     esac
14531     if test "$ld_shlibs_F77" = no; then
14532       runpath_var=
14533       hardcode_libdir_flag_spec_F77=
14534       export_dynamic_flag_spec_F77=
14535       whole_archive_flag_spec_F77=
14536     fi
14537   else
14538     # PORTME fill in a description of your system's linker (not GNU ld)
14539     case $host_os in
14540     aix3*)
14541       allow_undefined_flag_F77=unsupported
14542       always_export_symbols_F77=yes
14543       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'
14544       # Note: this linker hardcodes the directories in LIBPATH if there
14545       # are no directories specified by -L.
14546       hardcode_minus_L_F77=yes
14547       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14548         # Neither direct hardcoding nor static linking is supported with a
14549         # broken collect2.
14550         hardcode_direct_F77=unsupported
14551       fi
14552       ;;
14554     aix4* | aix5*)
14555       if test "$host_cpu" = ia64; then
14556         # On IA64, the linker does run time linking by default, so we don't
14557         # have to do anything special.
14558         aix_use_runtimelinking=no
14559         exp_sym_flag='-Bexport'
14560         no_entry_flag=""
14561       else
14562         # If we're using GNU nm, then we don't want the "-C" option.
14563         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14564         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14565           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'
14566         else
14567           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'
14568         fi
14569         aix_use_runtimelinking=no
14571         # Test if we are trying to use run time linking or normal
14572         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14573         # need to do runtime linking.
14574         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14575           for ld_flag in $LDFLAGS; do
14576           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14577             aix_use_runtimelinking=yes
14578             break
14579           fi
14580           done
14581           ;;
14582         esac
14584         exp_sym_flag='-bexport'
14585         no_entry_flag='-bnoentry'
14586       fi
14588       # When large executables or shared objects are built, AIX ld can
14589       # have problems creating the table of contents.  If linking a library
14590       # or program results in "error TOC overflow" add -mminimal-toc to
14591       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14592       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14594       archive_cmds_F77=''
14595       hardcode_direct_F77=yes
14596       hardcode_libdir_separator_F77=':'
14597       link_all_deplibs_F77=yes
14599       if test "$GCC" = yes; then
14600         case $host_os in aix4.[012]|aix4.[012].*)
14601         # We only want to do this on AIX 4.2 and lower, the check
14602         # below for broken collect2 doesn't work under 4.3+
14603           collect2name=`${CC} -print-prog-name=collect2`
14604           if test -f "$collect2name" && \
14605            strings "$collect2name" | grep resolve_lib_name >/dev/null
14606           then
14607           # We have reworked collect2
14608           :
14609           else
14610           # We have old collect2
14611           hardcode_direct_F77=unsupported
14612           # It fails to find uninstalled libraries when the uninstalled
14613           # path is not listed in the libpath.  Setting hardcode_minus_L
14614           # to unsupported forces relinking
14615           hardcode_minus_L_F77=yes
14616           hardcode_libdir_flag_spec_F77='-L$libdir'
14617           hardcode_libdir_separator_F77=
14618           fi
14619           ;;
14620         esac
14621         shared_flag='-shared'
14622         if test "$aix_use_runtimelinking" = yes; then
14623           shared_flag="$shared_flag "'${wl}-G'
14624         fi
14625       else
14626         # not using gcc
14627         if test "$host_cpu" = ia64; then
14628         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14629         # chokes on -Wl,-G. The following line is correct:
14630           shared_flag='-G'
14631         else
14632           if test "$aix_use_runtimelinking" = yes; then
14633             shared_flag='${wl}-G'
14634           else
14635             shared_flag='${wl}-bM:SRE'
14636           fi
14637         fi
14638       fi
14640       # It seems that -bexpall does not export symbols beginning with
14641       # underscore (_), so it is better to generate a list of symbols to export.
14642       always_export_symbols_F77=yes
14643       if test "$aix_use_runtimelinking" = yes; then
14644         # Warning - without using the other runtime loading flags (-brtl),
14645         # -berok will link without error, but may produce a broken library.
14646         allow_undefined_flag_F77='-berok'
14647        # Determine the default libpath from the value encoded in an empty executable.
14648        cat >conftest.$ac_ext <<_ACEOF
14649       program main
14651       end
14652 _ACEOF
14653 rm -f conftest.$ac_objext conftest$ac_exeext
14654 if { (ac_try="$ac_link"
14655 case "(($ac_try" in
14656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14657   *) ac_try_echo=$ac_try;;
14658 esac
14659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14660   (eval "$ac_link") 2>conftest.er1
14661   ac_status=$?
14662   grep -v '^ *+' conftest.er1 >conftest.err
14663   rm -f conftest.er1
14664   cat conftest.err >&5
14665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666   (exit $ac_status); } && {
14667          test -z "$ac_f77_werror_flag" ||
14668          test ! -s conftest.err
14669        } && test -s conftest$ac_exeext &&
14670        $as_test_x conftest$ac_exeext; then
14671   
14672 lt_aix_libpath_sed='
14673     /Import File Strings/,/^$/ {
14674         /^0/ {
14675             s/^0  *\(.*\)$/\1/
14676             p
14677         }
14678     }'
14679 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14680 # Check for a 64-bit object if we didn't find anything.
14681 if test -z "$aix_libpath"; then
14682   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14684 else
14685   echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14688         
14691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14692       conftest$ac_exeext conftest.$ac_ext
14693 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14695        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14696         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"
14697        else
14698         if test "$host_cpu" = ia64; then
14699           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14700           allow_undefined_flag_F77="-z nodefs"
14701           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"
14702         else
14703          # Determine the default libpath from the value encoded in an empty executable.
14704          cat >conftest.$ac_ext <<_ACEOF
14705       program main
14707       end
14708 _ACEOF
14709 rm -f conftest.$ac_objext conftest$ac_exeext
14710 if { (ac_try="$ac_link"
14711 case "(($ac_try" in
14712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713   *) ac_try_echo=$ac_try;;
14714 esac
14715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14716   (eval "$ac_link") 2>conftest.er1
14717   ac_status=$?
14718   grep -v '^ *+' conftest.er1 >conftest.err
14719   rm -f conftest.er1
14720   cat conftest.err >&5
14721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722   (exit $ac_status); } && {
14723          test -z "$ac_f77_werror_flag" ||
14724          test ! -s conftest.err
14725        } && test -s conftest$ac_exeext &&
14726        $as_test_x conftest$ac_exeext; then
14727   
14728 lt_aix_libpath_sed='
14729     /Import File Strings/,/^$/ {
14730         /^0/ {
14731             s/^0  *\(.*\)$/\1/
14732             p
14733         }
14734     }'
14735 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14736 # Check for a 64-bit object if we didn't find anything.
14737 if test -z "$aix_libpath"; then
14738   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14740 else
14741   echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14744         
14747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14748       conftest$ac_exeext conftest.$ac_ext
14749 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14751          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14752           # Warning - without using the other run time loading flags,
14753           # -berok will link without error, but may produce a broken library.
14754           no_undefined_flag_F77=' ${wl}-bernotok'
14755           allow_undefined_flag_F77=' ${wl}-berok'
14756           # Exported symbols can be pulled into shared objects from archives
14757           whole_archive_flag_spec_F77='$convenience'
14758           archive_cmds_need_lc_F77=yes
14759           # This is similar to how AIX traditionally builds its shared libraries.
14760           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'
14761         fi
14762       fi
14763       ;;
14765     amigaos*)
14766       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)'
14767       hardcode_libdir_flag_spec_F77='-L$libdir'
14768       hardcode_minus_L_F77=yes
14769       # see comment about different semantics on the GNU ld section
14770       ld_shlibs_F77=no
14771       ;;
14773     bsdi[45]*)
14774       export_dynamic_flag_spec_F77=-rdynamic
14775       ;;
14777     cygwin* | mingw* | pw32*)
14778       # When not using gcc, we currently assume that we are using
14779       # Microsoft Visual C++.
14780       # hardcode_libdir_flag_spec is actually meaningless, as there is
14781       # no search path for DLLs.
14782       hardcode_libdir_flag_spec_F77=' '
14783       allow_undefined_flag_F77=unsupported
14784       # Tell ltmain to make .lib files, not .a files.
14785       libext=lib
14786       # Tell ltmain to make .dll files, not .so files.
14787       shrext_cmds=".dll"
14788       # FIXME: Setting linknames here is a bad hack.
14789       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14790       # The linker will automatically build a .lib file if we build a DLL.
14791       old_archive_From_new_cmds_F77='true'
14792       # FIXME: Should let the user specify the lib program.
14793       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14794       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14795       enable_shared_with_static_runtimes_F77=yes
14796       ;;
14798     darwin* | rhapsody*)
14799       case $host_os in
14800         rhapsody* | darwin1.[012])
14801          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14802          ;;
14803        *) # Darwin 1.3 on
14804          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14805            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14806          else
14807            case ${MACOSX_DEPLOYMENT_TARGET} in
14808              10.[012])
14809                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14810                ;;
14811              10.*)
14812                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14813                ;;
14814            esac
14815          fi
14816          ;;
14817       esac
14818       archive_cmds_need_lc_F77=no
14819       hardcode_direct_F77=no
14820       hardcode_automatic_F77=yes
14821       hardcode_shlibpath_var_F77=unsupported
14822       whole_archive_flag_spec_F77=''
14823       link_all_deplibs_F77=yes
14824     if test "$GCC" = yes ; then
14825         output_verbose_link_cmd='echo'
14826         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14827       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14828       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14829       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14830       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}'
14831     else
14832       case $cc_basename in
14833         xlc*)
14834          output_verbose_link_cmd='echo'
14835          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14836          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14837           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14838          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}'
14839           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}'
14840           ;;
14841        *)
14842          ld_shlibs_F77=no
14843           ;;
14844       esac
14845     fi
14846       ;;
14848     dgux*)
14849       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14850       hardcode_libdir_flag_spec_F77='-L$libdir'
14851       hardcode_shlibpath_var_F77=no
14852       ;;
14854     freebsd1*)
14855       ld_shlibs_F77=no
14856       ;;
14858     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14859     # support.  Future versions do this automatically, but an explicit c++rt0.o
14860     # does not break anything, and helps significantly (at the cost of a little
14861     # extra space).
14862     freebsd2.2*)
14863       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14864       hardcode_libdir_flag_spec_F77='-R$libdir'
14865       hardcode_direct_F77=yes
14866       hardcode_shlibpath_var_F77=no
14867       ;;
14869     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14870     freebsd2*)
14871       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14872       hardcode_direct_F77=yes
14873       hardcode_minus_L_F77=yes
14874       hardcode_shlibpath_var_F77=no
14875       ;;
14877     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14878     freebsd* | dragonfly*)
14879       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14880       hardcode_libdir_flag_spec_F77='-R$libdir'
14881       hardcode_direct_F77=yes
14882       hardcode_shlibpath_var_F77=no
14883       ;;
14885     hpux9*)
14886       if test "$GCC" = yes; then
14887         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'
14888       else
14889         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'
14890       fi
14891       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14892       hardcode_libdir_separator_F77=:
14893       hardcode_direct_F77=yes
14895       # hardcode_minus_L: Not really in the search PATH,
14896       # but as the default location of the library.
14897       hardcode_minus_L_F77=yes
14898       export_dynamic_flag_spec_F77='${wl}-E'
14899       ;;
14901     hpux10*)
14902       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14903         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14904       else
14905         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14906       fi
14907       if test "$with_gnu_ld" = no; then
14908         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14909         hardcode_libdir_separator_F77=:
14911         hardcode_direct_F77=yes
14912         export_dynamic_flag_spec_F77='${wl}-E'
14914         # hardcode_minus_L: Not really in the search PATH,
14915         # but as the default location of the library.
14916         hardcode_minus_L_F77=yes
14917       fi
14918       ;;
14920     hpux11*)
14921       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14922         case $host_cpu in
14923         hppa*64*)
14924           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14925           ;;
14926         ia64*)
14927           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14928           ;;
14929         *)
14930           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14931           ;;
14932         esac
14933       else
14934         case $host_cpu in
14935         hppa*64*)
14936           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14937           ;;
14938         ia64*)
14939           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14940           ;;
14941         *)
14942           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14943           ;;
14944         esac
14945       fi
14946       if test "$with_gnu_ld" = no; then
14947         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14948         hardcode_libdir_separator_F77=:
14950         case $host_cpu in
14951         hppa*64*|ia64*)
14952           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14953           hardcode_direct_F77=no
14954           hardcode_shlibpath_var_F77=no
14955           ;;
14956         *)
14957           hardcode_direct_F77=yes
14958           export_dynamic_flag_spec_F77='${wl}-E'
14960           # hardcode_minus_L: Not really in the search PATH,
14961           # but as the default location of the library.
14962           hardcode_minus_L_F77=yes
14963           ;;
14964         esac
14965       fi
14966       ;;
14968     irix5* | irix6* | nonstopux*)
14969       if test "$GCC" = yes; then
14970         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'
14971       else
14972         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'
14973         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14974       fi
14975       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14976       hardcode_libdir_separator_F77=:
14977       link_all_deplibs_F77=yes
14978       ;;
14980     netbsd*)
14981       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14982         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14983       else
14984         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14985       fi
14986       hardcode_libdir_flag_spec_F77='-R$libdir'
14987       hardcode_direct_F77=yes
14988       hardcode_shlibpath_var_F77=no
14989       ;;
14991     newsos6)
14992       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14993       hardcode_direct_F77=yes
14994       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14995       hardcode_libdir_separator_F77=:
14996       hardcode_shlibpath_var_F77=no
14997       ;;
14999     openbsd*)
15000       if test -f /usr/libexec/ld.so; then
15001         hardcode_direct_F77=yes
15002         hardcode_shlibpath_var_F77=no
15003         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15004           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15005           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15006           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15007           export_dynamic_flag_spec_F77='${wl}-E'
15008         else
15009           case $host_os in
15010            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15011              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15012              hardcode_libdir_flag_spec_F77='-R$libdir'
15013              ;;
15014            *)
15015              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15016              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15017              ;;
15018           esac
15019         fi
15020       else
15021         ld_shlibs_F77=no
15022       fi
15023       ;;
15025     os2*)
15026       hardcode_libdir_flag_spec_F77='-L$libdir'
15027       hardcode_minus_L_F77=yes
15028       allow_undefined_flag_F77=unsupported
15029       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'
15030       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15031       ;;
15033     osf3*)
15034       if test "$GCC" = yes; then
15035         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15036         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'
15037       else
15038         allow_undefined_flag_F77=' -expect_unresolved \*'
15039         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'
15040       fi
15041       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15042       hardcode_libdir_separator_F77=:
15043       ;;
15045     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15046       if test "$GCC" = yes; then
15047         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15048         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'
15049         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15050       else
15051         allow_undefined_flag_F77=' -expect_unresolved \*'
15052         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'
15053         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~
15054         $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'
15056         # Both c and cxx compiler support -rpath directly
15057         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15058       fi
15059       hardcode_libdir_separator_F77=:
15060       ;;
15062     solaris*)
15063       no_undefined_flag_F77=' -z text'
15064       if test "$GCC" = yes; then
15065         wlarc='${wl}'
15066         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15067         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15068           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15069       else
15070         wlarc=''
15071         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15072         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15073         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15074       fi
15075       hardcode_libdir_flag_spec_F77='-R$libdir'
15076       hardcode_shlibpath_var_F77=no
15077       case $host_os in
15078       solaris2.[0-5] | solaris2.[0-5].*) ;;
15079       *)
15080         # The compiler driver will combine and reorder linker options,
15081         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15082         # but is careful enough not to reorder.
15083         # Supported since Solaris 2.6 (maybe 2.5.1?)
15084         if test "$GCC" = yes; then
15085           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15086         else
15087           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15088         fi
15089         ;;
15090       esac
15091       link_all_deplibs_F77=yes
15092       ;;
15094     sunos4*)
15095       if test "x$host_vendor" = xsequent; then
15096         # Use $CC to link under sequent, because it throws in some extra .o
15097         # files that make .init and .fini sections work.
15098         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15099       else
15100         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15101       fi
15102       hardcode_libdir_flag_spec_F77='-L$libdir'
15103       hardcode_direct_F77=yes
15104       hardcode_minus_L_F77=yes
15105       hardcode_shlibpath_var_F77=no
15106       ;;
15108     sysv4)
15109       case $host_vendor in
15110         sni)
15111           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15112           hardcode_direct_F77=yes # is this really true???
15113         ;;
15114         siemens)
15115           ## LD is ld it makes a PLAMLIB
15116           ## CC just makes a GrossModule.
15117           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15118           reload_cmds_F77='$CC -r -o $output$reload_objs'
15119           hardcode_direct_F77=no
15120         ;;
15121         motorola)
15122           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15123           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15124         ;;
15125       esac
15126       runpath_var='LD_RUN_PATH'
15127       hardcode_shlibpath_var_F77=no
15128       ;;
15130     sysv4.3*)
15131       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15132       hardcode_shlibpath_var_F77=no
15133       export_dynamic_flag_spec_F77='-Bexport'
15134       ;;
15136     sysv4*MP*)
15137       if test -d /usr/nec; then
15138         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15139         hardcode_shlibpath_var_F77=no
15140         runpath_var=LD_RUN_PATH
15141         hardcode_runpath_var=yes
15142         ld_shlibs_F77=yes
15143       fi
15144       ;;
15146     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15147       no_undefined_flag_F77='${wl}-z,text'
15148       archive_cmds_need_lc_F77=no
15149       hardcode_shlibpath_var_F77=no
15150       runpath_var='LD_RUN_PATH'
15152       if test "$GCC" = yes; then
15153         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15154         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15155       else
15156         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15157         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15158       fi
15159       ;;
15161     sysv5* | sco3.2v5* | sco5v6*)
15162       # Note: We can NOT use -z defs as we might desire, because we do not
15163       # link with -lc, and that would cause any symbols used from libc to
15164       # always be unresolved, which means just about no library would
15165       # ever link correctly.  If we're not using GNU ld we use -z text
15166       # though, which does catch some bad symbols but isn't as heavy-handed
15167       # as -z defs.
15168       no_undefined_flag_F77='${wl}-z,text'
15169       allow_undefined_flag_F77='${wl}-z,nodefs'
15170       archive_cmds_need_lc_F77=no
15171       hardcode_shlibpath_var_F77=no
15172       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15173       hardcode_libdir_separator_F77=':'
15174       link_all_deplibs_F77=yes
15175       export_dynamic_flag_spec_F77='${wl}-Bexport'
15176       runpath_var='LD_RUN_PATH'
15178       if test "$GCC" = yes; then
15179         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15180         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15181       else
15182         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15183         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15184       fi
15185       ;;
15187     uts4*)
15188       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15189       hardcode_libdir_flag_spec_F77='-L$libdir'
15190       hardcode_shlibpath_var_F77=no
15191       ;;
15193     *)
15194       ld_shlibs_F77=no
15195       ;;
15196     esac
15197   fi
15199 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15200 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15201 test "$ld_shlibs_F77" = no && can_build_shared=no
15204 # Do we need to explicitly link libc?
15206 case "x$archive_cmds_need_lc_F77" in
15207 x|xyes)
15208   # Assume -lc should be added
15209   archive_cmds_need_lc_F77=yes
15211   if test "$enable_shared" = yes && test "$GCC" = yes; then
15212     case $archive_cmds_F77 in
15213     *'~'*)
15214       # FIXME: we may have to deal with multi-command sequences.
15215       ;;
15216     '$CC '*)
15217       # Test whether the compiler implicitly links with -lc since on some
15218       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15219       # to ld, don't add -lc before -lgcc.
15220       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15221 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15222       $rm conftest*
15223       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15225       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15226   (eval $ac_compile) 2>&5
15227   ac_status=$?
15228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229   (exit $ac_status); } 2>conftest.err; then
15230         soname=conftest
15231         lib=conftest
15232         libobjs=conftest.$ac_objext
15233         deplibs=
15234         wl=$lt_prog_compiler_wl_F77
15235         pic_flag=$lt_prog_compiler_pic_F77
15236         compiler_flags=-v
15237         linker_flags=-v
15238         verstring=
15239         output_objdir=.
15240         libname=conftest
15241         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15242         allow_undefined_flag_F77=
15243         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15244   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15245   ac_status=$?
15246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247   (exit $ac_status); }
15248         then
15249           archive_cmds_need_lc_F77=no
15250         else
15251           archive_cmds_need_lc_F77=yes
15252         fi
15253         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15254       else
15255         cat conftest.err 1>&5
15256       fi
15257       $rm conftest*
15258       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15259 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15260       ;;
15261     esac
15262   fi
15263   ;;
15264 esac
15266 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15267 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15268 library_names_spec=
15269 libname_spec='lib$name'
15270 soname_spec=
15271 shrext_cmds=".so"
15272 postinstall_cmds=
15273 postuninstall_cmds=
15274 finish_cmds=
15275 finish_eval=
15276 shlibpath_var=
15277 shlibpath_overrides_runpath=unknown
15278 version_type=none
15279 dynamic_linker="$host_os ld.so"
15280 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15282 need_lib_prefix=unknown
15283 hardcode_into_libs=no
15285 # when you set need_version to no, make sure it does not cause -set_version
15286 # flags to be left without arguments
15287 need_version=unknown
15289 case $host_os in
15290 aix3*)
15291   version_type=linux
15292   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15293   shlibpath_var=LIBPATH
15295   # AIX 3 has no versioning support, so we append a major version to the name.
15296   soname_spec='${libname}${release}${shared_ext}$major'
15297   ;;
15299 aix4* | aix5*)
15300   version_type=linux
15301   need_lib_prefix=no
15302   need_version=no
15303   hardcode_into_libs=yes
15304   if test "$host_cpu" = ia64; then
15305     # AIX 5 supports IA64
15306     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15307     shlibpath_var=LD_LIBRARY_PATH
15308   else
15309     # With GCC up to 2.95.x, collect2 would create an import file
15310     # for dependence libraries.  The import file would start with
15311     # the line `#! .'.  This would cause the generated library to
15312     # depend on `.', always an invalid library.  This was fixed in
15313     # development snapshots of GCC prior to 3.0.
15314     case $host_os in
15315       aix4 | aix4.[01] | aix4.[01].*)
15316       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15317            echo ' yes '
15318            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15319         :
15320       else
15321         can_build_shared=no
15322       fi
15323       ;;
15324     esac
15325     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15326     # soname into executable. Probably we can add versioning support to
15327     # collect2, so additional links can be useful in future.
15328     if test "$aix_use_runtimelinking" = yes; then
15329       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15330       # instead of lib<name>.a to let people know that these are not
15331       # typical AIX shared libraries.
15332       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15333     else
15334       # We preserve .a as extension for shared libraries through AIX4.2
15335       # and later when we are not doing run time linking.
15336       library_names_spec='${libname}${release}.a $libname.a'
15337       soname_spec='${libname}${release}${shared_ext}$major'
15338     fi
15339     shlibpath_var=LIBPATH
15340   fi
15341   ;;
15343 amigaos*)
15344   library_names_spec='$libname.ixlibrary $libname.a'
15345   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15346   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'
15347   ;;
15349 beos*)
15350   library_names_spec='${libname}${shared_ext}'
15351   dynamic_linker="$host_os ld.so"
15352   shlibpath_var=LIBRARY_PATH
15353   ;;
15355 bsdi[45]*)
15356   version_type=linux
15357   need_version=no
15358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15359   soname_spec='${libname}${release}${shared_ext}$major'
15360   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15361   shlibpath_var=LD_LIBRARY_PATH
15362   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15363   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15364   # the default ld.so.conf also contains /usr/contrib/lib and
15365   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15366   # libtool to hard-code these into programs
15367   ;;
15369 cygwin* | mingw* | pw32*)
15370   version_type=windows
15371   shrext_cmds=".dll"
15372   need_version=no
15373   need_lib_prefix=no
15375   case $GCC,$host_os in
15376   yes,cygwin* | yes,mingw* | yes,pw32*)
15377     library_names_spec='$libname.dll.a'
15378     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15379     postinstall_cmds='base_file=`basename \${file}`~
15380       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15381       dldir=$destdir/`dirname \$dlpath`~
15382       test -d \$dldir || mkdir -p \$dldir~
15383       $install_prog $dir/$dlname \$dldir/$dlname~
15384       chmod a+x \$dldir/$dlname'
15385     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15386       dlpath=$dir/\$dldll~
15387        $rm \$dlpath'
15388     shlibpath_overrides_runpath=yes
15390     case $host_os in
15391     cygwin*)
15392       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15393       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15394       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15395       ;;
15396     mingw*)
15397       # MinGW DLLs use traditional 'lib' prefix
15398       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15399       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15400       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15401         # It is most probably a Windows format PATH printed by
15402         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15403         # path with ; separators, and with drive letters. We can handle the
15404         # drive letters (cygwin fileutils understands them), so leave them,
15405         # especially as we might pass files found there to a mingw objdump,
15406         # which wouldn't understand a cygwinified path. Ahh.
15407         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15408       else
15409         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15410       fi
15411       ;;
15412     pw32*)
15413       # pw32 DLLs use 'pw' prefix rather than 'lib'
15414       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15415       ;;
15416     esac
15417     ;;
15419   *)
15420     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15421     ;;
15422   esac
15423   dynamic_linker='Win32 ld.exe'
15424   # FIXME: first we should search . and the directory the executable is in
15425   shlibpath_var=PATH
15426   ;;
15428 darwin* | rhapsody*)
15429   dynamic_linker="$host_os dyld"
15430   version_type=darwin
15431   need_lib_prefix=no
15432   need_version=no
15433   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15434   soname_spec='${libname}${release}${major}$shared_ext'
15435   shlibpath_overrides_runpath=yes
15436   shlibpath_var=DYLD_LIBRARY_PATH
15437   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15438    
15439   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15440   ;;
15442 dgux*)
15443   version_type=linux
15444   need_lib_prefix=no
15445   need_version=no
15446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15447   soname_spec='${libname}${release}${shared_ext}$major'
15448   shlibpath_var=LD_LIBRARY_PATH
15449   ;;
15451 freebsd1*)
15452   dynamic_linker=no
15453   ;;
15455 freebsd* | dragonfly*)
15456   # DragonFly does not have aout.  When/if they implement a new
15457   # versioning mechanism, adjust this.
15458   if test -x /usr/bin/objformat; then
15459     objformat=`/usr/bin/objformat`
15460   else
15461     case $host_os in
15462     freebsd[123]*) objformat=aout ;;
15463     *) objformat=elf ;;
15464     esac
15465   fi
15466   version_type=freebsd-$objformat
15467   case $version_type in
15468     freebsd-elf*)
15469       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15470       need_version=no
15471       need_lib_prefix=no
15472       ;;
15473     freebsd-*)
15474       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15475       need_version=yes
15476       ;;
15477   esac
15478   shlibpath_var=LD_LIBRARY_PATH
15479   case $host_os in
15480   freebsd2*)
15481     shlibpath_overrides_runpath=yes
15482     ;;
15483   freebsd3.[01]* | freebsdelf3.[01]*)
15484     shlibpath_overrides_runpath=yes
15485     hardcode_into_libs=yes
15486     ;;
15487   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15488   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15489     shlibpath_overrides_runpath=no
15490     hardcode_into_libs=yes
15491     ;;
15492   *) # from 4.6 on, and DragonFly
15493     shlibpath_overrides_runpath=yes
15494     hardcode_into_libs=yes
15495     ;;
15496   esac
15497   ;;
15499 gnu*)
15500   version_type=linux
15501   need_lib_prefix=no
15502   need_version=no
15503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15504   soname_spec='${libname}${release}${shared_ext}$major'
15505   shlibpath_var=LD_LIBRARY_PATH
15506   hardcode_into_libs=yes
15507   ;;
15509 hpux9* | hpux10* | hpux11*)
15510   # Give a soname corresponding to the major version so that dld.sl refuses to
15511   # link against other versions.
15512   version_type=sunos
15513   need_lib_prefix=no
15514   need_version=no
15515   case $host_cpu in
15516   ia64*)
15517     shrext_cmds='.so'
15518     hardcode_into_libs=yes
15519     dynamic_linker="$host_os dld.so"
15520     shlibpath_var=LD_LIBRARY_PATH
15521     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15522     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15523     soname_spec='${libname}${release}${shared_ext}$major'
15524     if test "X$HPUX_IA64_MODE" = X32; then
15525       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15526     else
15527       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15528     fi
15529     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15530     ;;
15531    hppa*64*)
15532      shrext_cmds='.sl'
15533      hardcode_into_libs=yes
15534      dynamic_linker="$host_os dld.sl"
15535      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15536      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15537      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15538      soname_spec='${libname}${release}${shared_ext}$major'
15539      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15540      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15541      ;;
15542    *)
15543     shrext_cmds='.sl'
15544     dynamic_linker="$host_os dld.sl"
15545     shlibpath_var=SHLIB_PATH
15546     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15547     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15548     soname_spec='${libname}${release}${shared_ext}$major'
15549     ;;
15550   esac
15551   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15552   postinstall_cmds='chmod 555 $lib'
15553   ;;
15555 interix[3-9]*)
15556   version_type=linux
15557   need_lib_prefix=no
15558   need_version=no
15559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15560   soname_spec='${libname}${release}${shared_ext}$major'
15561   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15562   shlibpath_var=LD_LIBRARY_PATH
15563   shlibpath_overrides_runpath=no
15564   hardcode_into_libs=yes
15565   ;;
15567 irix5* | irix6* | nonstopux*)
15568   case $host_os in
15569     nonstopux*) version_type=nonstopux ;;
15570     *)
15571         if test "$lt_cv_prog_gnu_ld" = yes; then
15572                 version_type=linux
15573         else
15574                 version_type=irix
15575         fi ;;
15576   esac
15577   need_lib_prefix=no
15578   need_version=no
15579   soname_spec='${libname}${release}${shared_ext}$major'
15580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15581   case $host_os in
15582   irix5* | nonstopux*)
15583     libsuff= shlibsuff=
15584     ;;
15585   *)
15586     case $LD in # libtool.m4 will add one of these switches to LD
15587     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15588       libsuff= shlibsuff= libmagic=32-bit;;
15589     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15590       libsuff=32 shlibsuff=N32 libmagic=N32;;
15591     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15592       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15593     *) libsuff= shlibsuff= libmagic=never-match;;
15594     esac
15595     ;;
15596   esac
15597   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15598   shlibpath_overrides_runpath=no
15599   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15600   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15601   hardcode_into_libs=yes
15602   ;;
15604 # No shared lib support for Linux oldld, aout, or coff.
15605 linux*oldld* | linux*aout* | linux*coff*)
15606   dynamic_linker=no
15607   ;;
15609 # This must be Linux ELF.
15610 linux* | k*bsd*-gnu)
15611   version_type=linux
15612   need_lib_prefix=no
15613   need_version=no
15614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15615   soname_spec='${libname}${release}${shared_ext}$major'
15616   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15617   shlibpath_var=LD_LIBRARY_PATH
15618   shlibpath_overrides_runpath=no
15619   # This implies no fast_install, which is unacceptable.
15620   # Some rework will be needed to allow for fast_install
15621   # before this can be enabled.
15622   hardcode_into_libs=yes
15623   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15624   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15626   # Append ld.so.conf contents to the search path
15627   if test -f /etc/ld.so.conf; then
15628     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' ' '`
15629     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15630   fi
15632   # We used to test for /lib/ld.so.1 and disable shared libraries on
15633   # powerpc, because MkLinux only supported shared libraries with the
15634   # GNU dynamic linker.  Since this was broken with cross compilers,
15635   # most powerpc-linux boxes support dynamic linking these days and
15636   # people can always --disable-shared, the test was removed, and we
15637   # assume the GNU/Linux dynamic linker is in use.
15638   dynamic_linker='GNU/Linux ld.so'
15639   ;;
15641 netbsd*)
15642   version_type=sunos
15643   need_lib_prefix=no
15644   need_version=no
15645   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15646     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15647     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15648     dynamic_linker='NetBSD (a.out) ld.so'
15649   else
15650     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15651     soname_spec='${libname}${release}${shared_ext}$major'
15652     dynamic_linker='NetBSD ld.elf_so'
15653   fi
15654   shlibpath_var=LD_LIBRARY_PATH
15655   shlibpath_overrides_runpath=yes
15656   hardcode_into_libs=yes
15657   ;;
15659 newsos6)
15660   version_type=linux
15661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15662   shlibpath_var=LD_LIBRARY_PATH
15663   shlibpath_overrides_runpath=yes
15664   ;;
15666 nto-qnx*)
15667   version_type=linux
15668   need_lib_prefix=no
15669   need_version=no
15670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15671   soname_spec='${libname}${release}${shared_ext}$major'
15672   shlibpath_var=LD_LIBRARY_PATH
15673   shlibpath_overrides_runpath=yes
15674   ;;
15676 openbsd*)
15677   version_type=sunos
15678   sys_lib_dlsearch_path_spec="/usr/lib"
15679   need_lib_prefix=no
15680   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15681   case $host_os in
15682     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15683     *)                         need_version=no  ;;
15684   esac
15685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15686   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15687   shlibpath_var=LD_LIBRARY_PATH
15688   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15689     case $host_os in
15690       openbsd2.[89] | openbsd2.[89].*)
15691         shlibpath_overrides_runpath=no
15692         ;;
15693       *)
15694         shlibpath_overrides_runpath=yes
15695         ;;
15696       esac
15697   else
15698     shlibpath_overrides_runpath=yes
15699   fi
15700   ;;
15702 os2*)
15703   libname_spec='$name'
15704   shrext_cmds=".dll"
15705   need_lib_prefix=no
15706   library_names_spec='$libname${shared_ext} $libname.a'
15707   dynamic_linker='OS/2 ld.exe'
15708   shlibpath_var=LIBPATH
15709   ;;
15711 osf3* | osf4* | osf5*)
15712   version_type=osf
15713   need_lib_prefix=no
15714   need_version=no
15715   soname_spec='${libname}${release}${shared_ext}$major'
15716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15717   shlibpath_var=LD_LIBRARY_PATH
15718   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15719   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15720   ;;
15722 rdos*)
15723   dynamic_linker=no
15724   ;;
15726 solaris*)
15727   version_type=linux
15728   need_lib_prefix=no
15729   need_version=no
15730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15731   soname_spec='${libname}${release}${shared_ext}$major'
15732   shlibpath_var=LD_LIBRARY_PATH
15733   shlibpath_overrides_runpath=yes
15734   hardcode_into_libs=yes
15735   # ldd complains unless libraries are executable
15736   postinstall_cmds='chmod +x $lib'
15737   ;;
15739 sunos4*)
15740   version_type=sunos
15741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15742   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15743   shlibpath_var=LD_LIBRARY_PATH
15744   shlibpath_overrides_runpath=yes
15745   if test "$with_gnu_ld" = yes; then
15746     need_lib_prefix=no
15747   fi
15748   need_version=yes
15749   ;;
15751 sysv4 | sysv4.3*)
15752   version_type=linux
15753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15754   soname_spec='${libname}${release}${shared_ext}$major'
15755   shlibpath_var=LD_LIBRARY_PATH
15756   case $host_vendor in
15757     sni)
15758       shlibpath_overrides_runpath=no
15759       need_lib_prefix=no
15760       export_dynamic_flag_spec='${wl}-Blargedynsym'
15761       runpath_var=LD_RUN_PATH
15762       ;;
15763     siemens)
15764       need_lib_prefix=no
15765       ;;
15766     motorola)
15767       need_lib_prefix=no
15768       need_version=no
15769       shlibpath_overrides_runpath=no
15770       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15771       ;;
15772   esac
15773   ;;
15775 sysv4*MP*)
15776   if test -d /usr/nec ;then
15777     version_type=linux
15778     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15779     soname_spec='$libname${shared_ext}.$major'
15780     shlibpath_var=LD_LIBRARY_PATH
15781   fi
15782   ;;
15784 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15785   version_type=freebsd-elf
15786   need_lib_prefix=no
15787   need_version=no
15788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15789   soname_spec='${libname}${release}${shared_ext}$major'
15790   shlibpath_var=LD_LIBRARY_PATH
15791   hardcode_into_libs=yes
15792   if test "$with_gnu_ld" = yes; then
15793     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15794     shlibpath_overrides_runpath=no
15795   else
15796     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15797     shlibpath_overrides_runpath=yes
15798     case $host_os in
15799       sco3.2v5*)
15800         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15801         ;;
15802     esac
15803   fi
15804   sys_lib_dlsearch_path_spec='/usr/lib'
15805   ;;
15807 uts4*)
15808   version_type=linux
15809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15810   soname_spec='${libname}${release}${shared_ext}$major'
15811   shlibpath_var=LD_LIBRARY_PATH
15812   ;;
15815   dynamic_linker=no
15816   ;;
15817 esac
15818 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15819 echo "${ECHO_T}$dynamic_linker" >&6; }
15820 test "$dynamic_linker" = no && can_build_shared=no
15822 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15823 if test "$GCC" = yes; then
15824   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15827 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15828 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15829 hardcode_action_F77=
15830 if test -n "$hardcode_libdir_flag_spec_F77" || \
15831    test -n "$runpath_var_F77" || \
15832    test "X$hardcode_automatic_F77" = "Xyes" ; then
15834   # We can hardcode non-existant directories.
15835   if test "$hardcode_direct_F77" != no &&
15836      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15837      # have to relink, otherwise we might link with an installed library
15838      # when we should be linking with a yet-to-be-installed one
15839      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15840      test "$hardcode_minus_L_F77" != no; then
15841     # Linking always hardcodes the temporary library directory.
15842     hardcode_action_F77=relink
15843   else
15844     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15845     hardcode_action_F77=immediate
15846   fi
15847 else
15848   # We cannot hardcode anything, or else we can only hardcode existing
15849   # directories.
15850   hardcode_action_F77=unsupported
15852 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15853 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15855 if test "$hardcode_action_F77" = relink; then
15856   # Fast installation is not supported
15857   enable_fast_install=no
15858 elif test "$shlibpath_overrides_runpath" = yes ||
15859      test "$enable_shared" = no; then
15860   # Fast installation is not necessary
15861   enable_fast_install=needless
15865 # The else clause should only fire when bootstrapping the
15866 # libtool distribution, otherwise you forgot to ship ltmain.sh
15867 # with your package, and you will get complaints that there are
15868 # no rules to generate ltmain.sh.
15869 if test -f "$ltmain"; then
15870   # See if we are running on zsh, and set the options which allow our commands through
15871   # without removal of \ escapes.
15872   if test -n "${ZSH_VERSION+set}" ; then
15873     setopt NO_GLOB_SUBST
15874   fi
15875   # Now quote all the things that may contain metacharacters while being
15876   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15877   # variables and quote the copies for generation of the libtool script.
15878   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15879     SED SHELL STRIP \
15880     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15881     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15882     deplibs_check_method reload_flag reload_cmds need_locks \
15883     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15884     lt_cv_sys_global_symbol_to_c_name_address \
15885     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15886     old_postinstall_cmds old_postuninstall_cmds \
15887     compiler_F77 \
15888     CC_F77 \
15889     LD_F77 \
15890     lt_prog_compiler_wl_F77 \
15891     lt_prog_compiler_pic_F77 \
15892     lt_prog_compiler_static_F77 \
15893     lt_prog_compiler_no_builtin_flag_F77 \
15894     export_dynamic_flag_spec_F77 \
15895     thread_safe_flag_spec_F77 \
15896     whole_archive_flag_spec_F77 \
15897     enable_shared_with_static_runtimes_F77 \
15898     old_archive_cmds_F77 \
15899     old_archive_from_new_cmds_F77 \
15900     predep_objects_F77 \
15901     postdep_objects_F77 \
15902     predeps_F77 \
15903     postdeps_F77 \
15904     compiler_lib_search_path_F77 \
15905     archive_cmds_F77 \
15906     archive_expsym_cmds_F77 \
15907     postinstall_cmds_F77 \
15908     postuninstall_cmds_F77 \
15909     old_archive_from_expsyms_cmds_F77 \
15910     allow_undefined_flag_F77 \
15911     no_undefined_flag_F77 \
15912     export_symbols_cmds_F77 \
15913     hardcode_libdir_flag_spec_F77 \
15914     hardcode_libdir_flag_spec_ld_F77 \
15915     hardcode_libdir_separator_F77 \
15916     hardcode_automatic_F77 \
15917     module_cmds_F77 \
15918     module_expsym_cmds_F77 \
15919     lt_cv_prog_compiler_c_o_F77 \
15920     fix_srcfile_path_F77 \
15921     exclude_expsyms_F77 \
15922     include_expsyms_F77; do
15924     case $var in
15925     old_archive_cmds_F77 | \
15926     old_archive_from_new_cmds_F77 | \
15927     archive_cmds_F77 | \
15928     archive_expsym_cmds_F77 | \
15929     module_cmds_F77 | \
15930     module_expsym_cmds_F77 | \
15931     old_archive_from_expsyms_cmds_F77 | \
15932     export_symbols_cmds_F77 | \
15933     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15934     postinstall_cmds | postuninstall_cmds | \
15935     old_postinstall_cmds | old_postuninstall_cmds | \
15936     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15937       # Double-quote double-evaled strings.
15938       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15939       ;;
15940     *)
15941       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15942       ;;
15943     esac
15944   done
15946   case $lt_echo in
15947   *'\$0 --fallback-echo"')
15948     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15949     ;;
15950   esac
15952 cfgfile="$ofile"
15954   cat <<__EOF__ >> "$cfgfile"
15955 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15957 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15959 # Shell to use when invoking shell scripts.
15960 SHELL=$lt_SHELL
15962 # Whether or not to build shared libraries.
15963 build_libtool_libs=$enable_shared
15965 # Whether or not to build static libraries.
15966 build_old_libs=$enable_static
15968 # Whether or not to add -lc for building shared libraries.
15969 build_libtool_need_lc=$archive_cmds_need_lc_F77
15971 # Whether or not to disallow shared libs when runtime libs are static
15972 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15974 # Whether or not to optimize for fast installation.
15975 fast_install=$enable_fast_install
15977 # The host system.
15978 host_alias=$host_alias
15979 host=$host
15980 host_os=$host_os
15982 # The build system.
15983 build_alias=$build_alias
15984 build=$build
15985 build_os=$build_os
15987 # An echo program that does not interpret backslashes.
15988 echo=$lt_echo
15990 # The archiver.
15991 AR=$lt_AR
15992 AR_FLAGS=$lt_AR_FLAGS
15994 # A C compiler.
15995 LTCC=$lt_LTCC
15997 # LTCC compiler flags.
15998 LTCFLAGS=$lt_LTCFLAGS
16000 # A language-specific compiler.
16001 CC=$lt_compiler_F77
16003 # Is the compiler the GNU C compiler?
16004 with_gcc=$GCC_F77
16006 # An ERE matcher.
16007 EGREP=$lt_EGREP
16009 # The linker used to build libraries.
16010 LD=$lt_LD_F77
16012 # Whether we need hard or soft links.
16013 LN_S=$lt_LN_S
16015 # A BSD-compatible nm program.
16016 NM=$lt_NM
16018 # A symbol stripping program
16019 STRIP=$lt_STRIP
16021 # Used to examine libraries when file_magic_cmd begins "file"
16022 MAGIC_CMD=$MAGIC_CMD
16024 # Used on cygwin: DLL creation program.
16025 DLLTOOL="$DLLTOOL"
16027 # Used on cygwin: object dumper.
16028 OBJDUMP="$OBJDUMP"
16030 # Used on cygwin: assembler.
16031 AS="$AS"
16033 # The name of the directory that contains temporary libtool files.
16034 objdir=$objdir
16036 # How to create reloadable object files.
16037 reload_flag=$lt_reload_flag
16038 reload_cmds=$lt_reload_cmds
16040 # How to pass a linker flag through the compiler.
16041 wl=$lt_lt_prog_compiler_wl_F77
16043 # Object file suffix (normally "o").
16044 objext="$ac_objext"
16046 # Old archive suffix (normally "a").
16047 libext="$libext"
16049 # Shared library suffix (normally ".so").
16050 shrext_cmds='$shrext_cmds'
16052 # Executable file suffix (normally "").
16053 exeext="$exeext"
16055 # Additional compiler flags for building library objects.
16056 pic_flag=$lt_lt_prog_compiler_pic_F77
16057 pic_mode=$pic_mode
16059 # What is the maximum length of a command?
16060 max_cmd_len=$lt_cv_sys_max_cmd_len
16062 # Does compiler simultaneously support -c and -o options?
16063 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16065 # Must we lock files when doing compilation?
16066 need_locks=$lt_need_locks
16068 # Do we need the lib prefix for modules?
16069 need_lib_prefix=$need_lib_prefix
16071 # Do we need a version for libraries?
16072 need_version=$need_version
16074 # Whether dlopen is supported.
16075 dlopen_support=$enable_dlopen
16077 # Whether dlopen of programs is supported.
16078 dlopen_self=$enable_dlopen_self
16080 # Whether dlopen of statically linked programs is supported.
16081 dlopen_self_static=$enable_dlopen_self_static
16083 # Compiler flag to prevent dynamic linking.
16084 link_static_flag=$lt_lt_prog_compiler_static_F77
16086 # Compiler flag to turn off builtin functions.
16087 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16089 # Compiler flag to allow reflexive dlopens.
16090 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16092 # Compiler flag to generate shared objects directly from archives.
16093 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16095 # Compiler flag to generate thread-safe objects.
16096 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16098 # Library versioning type.
16099 version_type=$version_type
16101 # Format of library name prefix.
16102 libname_spec=$lt_libname_spec
16104 # List of archive names.  First name is the real one, the rest are links.
16105 # The last name is the one that the linker finds with -lNAME.
16106 library_names_spec=$lt_library_names_spec
16108 # The coded name of the library, if different from the real name.
16109 soname_spec=$lt_soname_spec
16111 # Commands used to build and install an old-style archive.
16112 RANLIB=$lt_RANLIB
16113 old_archive_cmds=$lt_old_archive_cmds_F77
16114 old_postinstall_cmds=$lt_old_postinstall_cmds
16115 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16117 # Create an old-style archive from a shared archive.
16118 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16120 # Create a temporary old-style archive to link instead of a shared archive.
16121 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16123 # Commands used to build and install a shared archive.
16124 archive_cmds=$lt_archive_cmds_F77
16125 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16126 postinstall_cmds=$lt_postinstall_cmds
16127 postuninstall_cmds=$lt_postuninstall_cmds
16129 # Commands used to build a loadable module (assumed same as above if empty)
16130 module_cmds=$lt_module_cmds_F77
16131 module_expsym_cmds=$lt_module_expsym_cmds_F77
16133 # Commands to strip libraries.
16134 old_striplib=$lt_old_striplib
16135 striplib=$lt_striplib
16137 # Dependencies to place before the objects being linked to create a
16138 # shared library.
16139 predep_objects=$lt_predep_objects_F77
16141 # Dependencies to place after the objects being linked to create a
16142 # shared library.
16143 postdep_objects=$lt_postdep_objects_F77
16145 # Dependencies to place before the objects being linked to create a
16146 # shared library.
16147 predeps=$lt_predeps_F77
16149 # Dependencies to place after the objects being linked to create a
16150 # shared library.
16151 postdeps=$lt_postdeps_F77
16153 # The library search path used internally by the compiler when linking
16154 # a shared library.
16155 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16157 # Method to check whether dependent libraries are shared objects.
16158 deplibs_check_method=$lt_deplibs_check_method
16160 # Command to use when deplibs_check_method == file_magic.
16161 file_magic_cmd=$lt_file_magic_cmd
16163 # Flag that allows shared libraries with undefined symbols to be built.
16164 allow_undefined_flag=$lt_allow_undefined_flag_F77
16166 # Flag that forces no undefined symbols.
16167 no_undefined_flag=$lt_no_undefined_flag_F77
16169 # Commands used to finish a libtool library installation in a directory.
16170 finish_cmds=$lt_finish_cmds
16172 # Same as above, but a single script fragment to be evaled but not shown.
16173 finish_eval=$lt_finish_eval
16175 # Take the output of nm and produce a listing of raw symbols and C names.
16176 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16178 # Transform the output of nm in a proper C declaration
16179 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16181 # Transform the output of nm in a C name address pair
16182 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16184 # This is the shared library runtime path variable.
16185 runpath_var=$runpath_var
16187 # This is the shared library path variable.
16188 shlibpath_var=$shlibpath_var
16190 # Is shlibpath searched before the hard-coded library search path?
16191 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16193 # How to hardcode a shared library path into an executable.
16194 hardcode_action=$hardcode_action_F77
16196 # Whether we should hardcode library paths into libraries.
16197 hardcode_into_libs=$hardcode_into_libs
16199 # Flag to hardcode \$libdir into a binary during linking.
16200 # This must work even if \$libdir does not exist.
16201 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16203 # If ld is used when linking, flag to hardcode \$libdir into
16204 # a binary during linking. This must work even if \$libdir does
16205 # not exist.
16206 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16208 # Whether we need a single -rpath flag with a separated argument.
16209 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16211 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16212 # resulting binary.
16213 hardcode_direct=$hardcode_direct_F77
16215 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16216 # resulting binary.
16217 hardcode_minus_L=$hardcode_minus_L_F77
16219 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16220 # the resulting binary.
16221 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16223 # Set to yes if building a shared library automatically hardcodes DIR into the library
16224 # and all subsequent libraries and executables linked against it.
16225 hardcode_automatic=$hardcode_automatic_F77
16227 # Variables whose values should be saved in libtool wrapper scripts and
16228 # restored at relink time.
16229 variables_saved_for_relink="$variables_saved_for_relink"
16231 # Whether libtool must link a program against all its dependency libraries.
16232 link_all_deplibs=$link_all_deplibs_F77
16234 # Compile-time system search path for libraries
16235 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16237 # Run-time system search path for libraries
16238 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16240 # Fix the shell variable \$srcfile for the compiler.
16241 fix_srcfile_path=$lt_fix_srcfile_path
16243 # Set to yes if exported symbols are required.
16244 always_export_symbols=$always_export_symbols_F77
16246 # The commands to list exported symbols.
16247 export_symbols_cmds=$lt_export_symbols_cmds_F77
16249 # The commands to extract the exported symbol list from a shared archive.
16250 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16252 # Symbols that should not be listed in the preloaded symbols.
16253 exclude_expsyms=$lt_exclude_expsyms_F77
16255 # Symbols that must always be exported.
16256 include_expsyms=$lt_include_expsyms_F77
16258 # ### END LIBTOOL TAG CONFIG: $tagname
16260 __EOF__
16263 else
16264   # If there is no Makefile yet, we rely on a make rule to execute
16265   # `config.status --recheck' to rerun these tests and create the
16266   # libtool script then.
16267   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16268   if test -f "$ltmain_in"; then
16269     test -f Makefile && make "$ltmain"
16270   fi
16274 ac_ext=c
16275 ac_cpp='$CPP $CPPFLAGS'
16276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16280 CC="$lt_save_CC"
16282         else
16283           tagname=""
16284         fi
16285         ;;
16287       GCJ)
16288         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16289           
16291 # Source file extension for Java test sources.
16292 ac_ext=java
16294 # Object file extension for compiled Java test sources.
16295 objext=o
16296 objext_GCJ=$objext
16298 # Code to be used in simple compile tests
16299 lt_simple_compile_test_code="class foo {}"
16301 # Code to be used in simple link tests
16302 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16304 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16306 # If no C compiler was specified, use CC.
16307 LTCC=${LTCC-"$CC"}
16309 # If no C compiler flags were specified, use CFLAGS.
16310 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16312 # Allow CC to be a program name with arguments.
16313 compiler=$CC
16316 # save warnings/boilerplate of simple test code
16317 ac_outfile=conftest.$ac_objext
16318 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16319 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16320 _lt_compiler_boilerplate=`cat conftest.err`
16321 $rm conftest*
16323 ac_outfile=conftest.$ac_objext
16324 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16325 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16326 _lt_linker_boilerplate=`cat conftest.err`
16327 $rm conftest*
16330 # Allow CC to be a program name with arguments.
16331 lt_save_CC="$CC"
16332 CC=${GCJ-"gcj"}
16333 compiler=$CC
16334 compiler_GCJ=$CC
16335 for cc_temp in $compiler""; do
16336   case $cc_temp in
16337     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16338     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16339     \-*) ;;
16340     *) break;;
16341   esac
16342 done
16343 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16346 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16347 archive_cmds_need_lc_GCJ=no
16349 old_archive_cmds_GCJ=$old_archive_cmds
16351 ## CAVEAT EMPTOR:
16352 ## There is no encapsulation within the following macros, do not change
16353 ## the running order or otherwise move them around unless you know exactly
16354 ## what you are doing...
16356 lt_prog_compiler_no_builtin_flag_GCJ=
16358 if test "$GCC" = yes; then
16359   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16361   
16362 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16363 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16364 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16365   echo $ECHO_N "(cached) $ECHO_C" >&6
16366 else
16367   lt_cv_prog_compiler_rtti_exceptions=no
16368   ac_outfile=conftest.$ac_objext
16369    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16370    lt_compiler_flag="-fno-rtti -fno-exceptions"
16371    # Insert the option either (1) after the last *FLAGS variable, or
16372    # (2) before a word containing "conftest.", or (3) at the end.
16373    # Note that $ac_compile itself does not contain backslashes and begins
16374    # with a dollar sign (not a hyphen), so the echo should work correctly.
16375    # The option is referenced via a variable to avoid confusing sed.
16376    lt_compile=`echo "$ac_compile" | $SED \
16377    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16378    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16379    -e 's:$: $lt_compiler_flag:'`
16380    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16381    (eval "$lt_compile" 2>conftest.err)
16382    ac_status=$?
16383    cat conftest.err >&5
16384    echo "$as_me:__oline__: \$? = $ac_status" >&5
16385    if (exit $ac_status) && test -s "$ac_outfile"; then
16386      # The compiler can only warn and ignore the option if not recognized
16387      # So say no if there are warnings other than the usual output.
16388      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16389      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16390      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16391        lt_cv_prog_compiler_rtti_exceptions=yes
16392      fi
16393    fi
16394    $rm conftest*
16397 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16398 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16400 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16401     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16402 else
16403     :
16408 lt_prog_compiler_wl_GCJ=
16409 lt_prog_compiler_pic_GCJ=
16410 lt_prog_compiler_static_GCJ=
16412 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16413 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16415   if test "$GCC" = yes; then
16416     lt_prog_compiler_wl_GCJ='-Wl,'
16417     lt_prog_compiler_static_GCJ='-static'
16419     case $host_os in
16420       aix*)
16421       # All AIX code is PIC.
16422       if test "$host_cpu" = ia64; then
16423         # AIX 5 now supports IA64 processor
16424         lt_prog_compiler_static_GCJ='-Bstatic'
16425       fi
16426       ;;
16428     amigaos*)
16429       # FIXME: we need at least 68020 code to build shared libraries, but
16430       # adding the `-m68020' flag to GCC prevents building anything better,
16431       # like `-m68040'.
16432       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16433       ;;
16435     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16436       # PIC is the default for these OSes.
16437       ;;
16439     mingw* | cygwin* | pw32* | os2*)
16440       # This hack is so that the source file can tell whether it is being
16441       # built for inclusion in a dll (and should export symbols for example).
16442       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16443       # (--disable-auto-import) libraries
16444       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16445       ;;
16447     darwin* | rhapsody*)
16448       # PIC is the default on this platform
16449       # Common symbols not allowed in MH_DYLIB files
16450       lt_prog_compiler_pic_GCJ='-fno-common'
16451       ;;
16453     interix[3-9]*)
16454       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16455       # Instead, we relocate shared libraries at runtime.
16456       ;;
16458     msdosdjgpp*)
16459       # Just because we use GCC doesn't mean we suddenly get shared libraries
16460       # on systems that don't support them.
16461       lt_prog_compiler_can_build_shared_GCJ=no
16462       enable_shared=no
16463       ;;
16465     sysv4*MP*)
16466       if test -d /usr/nec; then
16467         lt_prog_compiler_pic_GCJ=-Kconform_pic
16468       fi
16469       ;;
16471     hpux*)
16472       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16473       # not for PA HP-UX.
16474       case $host_cpu in
16475       hppa*64*|ia64*)
16476         # +Z the default
16477         ;;
16478       *)
16479         lt_prog_compiler_pic_GCJ='-fPIC'
16480         ;;
16481       esac
16482       ;;
16484     *)
16485       lt_prog_compiler_pic_GCJ='-fPIC'
16486       ;;
16487     esac
16488   else
16489     # PORTME Check for flag to pass linker flags through the system compiler.
16490     case $host_os in
16491     aix*)
16492       lt_prog_compiler_wl_GCJ='-Wl,'
16493       if test "$host_cpu" = ia64; then
16494         # AIX 5 now supports IA64 processor
16495         lt_prog_compiler_static_GCJ='-Bstatic'
16496       else
16497         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16498       fi
16499       ;;
16500       darwin*)
16501         # PIC is the default on this platform
16502         # Common symbols not allowed in MH_DYLIB files
16503        case $cc_basename in
16504          xlc*)
16505          lt_prog_compiler_pic_GCJ='-qnocommon'
16506          lt_prog_compiler_wl_GCJ='-Wl,'
16507          ;;
16508        esac
16509        ;;
16511     mingw* | cygwin* | pw32* | os2*)
16512       # This hack is so that the source file can tell whether it is being
16513       # built for inclusion in a dll (and should export symbols for example).
16514       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16515       ;;
16517     hpux9* | hpux10* | hpux11*)
16518       lt_prog_compiler_wl_GCJ='-Wl,'
16519       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16520       # not for PA HP-UX.
16521       case $host_cpu in
16522       hppa*64*|ia64*)
16523         # +Z the default
16524         ;;
16525       *)
16526         lt_prog_compiler_pic_GCJ='+Z'
16527         ;;
16528       esac
16529       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16530       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16531       ;;
16533     irix5* | irix6* | nonstopux*)
16534       lt_prog_compiler_wl_GCJ='-Wl,'
16535       # PIC (with -KPIC) is the default.
16536       lt_prog_compiler_static_GCJ='-non_shared'
16537       ;;
16539     newsos6)
16540       lt_prog_compiler_pic_GCJ='-KPIC'
16541       lt_prog_compiler_static_GCJ='-Bstatic'
16542       ;;
16544     linux* | k*bsd*-gnu)
16545       case $cc_basename in
16546       icc* | ecc*)
16547         lt_prog_compiler_wl_GCJ='-Wl,'
16548         lt_prog_compiler_pic_GCJ='-KPIC'
16549         lt_prog_compiler_static_GCJ='-static'
16550         ;;
16551       pgcc* | pgf77* | pgf90* | pgf95*)
16552         # Portland Group compilers (*not* the Pentium gcc compiler,
16553         # which looks to be a dead project)
16554         lt_prog_compiler_wl_GCJ='-Wl,'
16555         lt_prog_compiler_pic_GCJ='-fpic'
16556         lt_prog_compiler_static_GCJ='-Bstatic'
16557         ;;
16558       ccc*)
16559         lt_prog_compiler_wl_GCJ='-Wl,'
16560         # All Alpha code is PIC.
16561         lt_prog_compiler_static_GCJ='-non_shared'
16562         ;;
16563       *)
16564         case `$CC -V 2>&1 | sed 5q` in
16565         *Sun\ C*)
16566           # Sun C 5.9
16567           lt_prog_compiler_pic_GCJ='-KPIC'
16568           lt_prog_compiler_static_GCJ='-Bstatic'
16569           lt_prog_compiler_wl_GCJ='-Wl,'
16570           ;;
16571         *Sun\ F*)
16572           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16573           lt_prog_compiler_pic_GCJ='-KPIC'
16574           lt_prog_compiler_static_GCJ='-Bstatic'
16575           lt_prog_compiler_wl_GCJ=''
16576           ;;
16577         esac
16578         ;;
16579       esac
16580       ;;
16582     osf3* | osf4* | osf5*)
16583       lt_prog_compiler_wl_GCJ='-Wl,'
16584       # All OSF/1 code is PIC.
16585       lt_prog_compiler_static_GCJ='-non_shared'
16586       ;;
16588     rdos*)
16589       lt_prog_compiler_static_GCJ='-non_shared'
16590       ;;
16592     solaris*)
16593       lt_prog_compiler_pic_GCJ='-KPIC'
16594       lt_prog_compiler_static_GCJ='-Bstatic'
16595       case $cc_basename in
16596       f77* | f90* | f95*)
16597         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16598       *)
16599         lt_prog_compiler_wl_GCJ='-Wl,';;
16600       esac
16601       ;;
16603     sunos4*)
16604       lt_prog_compiler_wl_GCJ='-Qoption ld '
16605       lt_prog_compiler_pic_GCJ='-PIC'
16606       lt_prog_compiler_static_GCJ='-Bstatic'
16607       ;;
16609     sysv4 | sysv4.2uw2* | sysv4.3*)
16610       lt_prog_compiler_wl_GCJ='-Wl,'
16611       lt_prog_compiler_pic_GCJ='-KPIC'
16612       lt_prog_compiler_static_GCJ='-Bstatic'
16613       ;;
16615     sysv4*MP*)
16616       if test -d /usr/nec ;then
16617         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16618         lt_prog_compiler_static_GCJ='-Bstatic'
16619       fi
16620       ;;
16622     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16623       lt_prog_compiler_wl_GCJ='-Wl,'
16624       lt_prog_compiler_pic_GCJ='-KPIC'
16625       lt_prog_compiler_static_GCJ='-Bstatic'
16626       ;;
16628     unicos*)
16629       lt_prog_compiler_wl_GCJ='-Wl,'
16630       lt_prog_compiler_can_build_shared_GCJ=no
16631       ;;
16633     uts4*)
16634       lt_prog_compiler_pic_GCJ='-pic'
16635       lt_prog_compiler_static_GCJ='-Bstatic'
16636       ;;
16638     *)
16639       lt_prog_compiler_can_build_shared_GCJ=no
16640       ;;
16641     esac
16642   fi
16644 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16645 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16648 # Check to make sure the PIC flag actually works.
16650 if test -n "$lt_prog_compiler_pic_GCJ"; then
16651   
16652 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16653 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16654 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16655   echo $ECHO_N "(cached) $ECHO_C" >&6
16656 else
16657   lt_prog_compiler_pic_works_GCJ=no
16658   ac_outfile=conftest.$ac_objext
16659    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16660    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16661    # Insert the option either (1) after the last *FLAGS variable, or
16662    # (2) before a word containing "conftest.", or (3) at the end.
16663    # Note that $ac_compile itself does not contain backslashes and begins
16664    # with a dollar sign (not a hyphen), so the echo should work correctly.
16665    # The option is referenced via a variable to avoid confusing sed.
16666    lt_compile=`echo "$ac_compile" | $SED \
16667    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16668    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16669    -e 's:$: $lt_compiler_flag:'`
16670    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16671    (eval "$lt_compile" 2>conftest.err)
16672    ac_status=$?
16673    cat conftest.err >&5
16674    echo "$as_me:__oline__: \$? = $ac_status" >&5
16675    if (exit $ac_status) && test -s "$ac_outfile"; then
16676      # The compiler can only warn and ignore the option if not recognized
16677      # So say no if there are warnings other than the usual output.
16678      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16679      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16680      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16681        lt_prog_compiler_pic_works_GCJ=yes
16682      fi
16683    fi
16684    $rm conftest*
16687 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16688 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16690 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16691     case $lt_prog_compiler_pic_GCJ in
16692      "" | " "*) ;;
16693      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16694      esac
16695 else
16696     lt_prog_compiler_pic_GCJ=
16697      lt_prog_compiler_can_build_shared_GCJ=no
16701 case $host_os in
16702   # For platforms which do not support PIC, -DPIC is meaningless:
16703   *djgpp*)
16704     lt_prog_compiler_pic_GCJ=
16705     ;;
16706   *)
16707     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16708     ;;
16709 esac
16712 # Check to make sure the static flag actually works.
16714 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16715 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16716 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16717 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16718   echo $ECHO_N "(cached) $ECHO_C" >&6
16719 else
16720   lt_prog_compiler_static_works_GCJ=no
16721    save_LDFLAGS="$LDFLAGS"
16722    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16723    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16724    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16725      # The linker can only warn and ignore the option if not recognized
16726      # So say no if there are warnings
16727      if test -s conftest.err; then
16728        # Append any errors to the config.log.
16729        cat conftest.err 1>&5
16730        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16731        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16732        if diff conftest.exp conftest.er2 >/dev/null; then
16733          lt_prog_compiler_static_works_GCJ=yes
16734        fi
16735      else
16736        lt_prog_compiler_static_works_GCJ=yes
16737      fi
16738    fi
16739    $rm conftest*
16740    LDFLAGS="$save_LDFLAGS"
16743 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16744 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16746 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16747     :
16748 else
16749     lt_prog_compiler_static_GCJ=
16753 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16754 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16755 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16756   echo $ECHO_N "(cached) $ECHO_C" >&6
16757 else
16758   lt_cv_prog_compiler_c_o_GCJ=no
16759    $rm -r conftest 2>/dev/null
16760    mkdir conftest
16761    cd conftest
16762    mkdir out
16763    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16765    lt_compiler_flag="-o out/conftest2.$ac_objext"
16766    # Insert the option either (1) after the last *FLAGS variable, or
16767    # (2) before a word containing "conftest.", or (3) at the end.
16768    # Note that $ac_compile itself does not contain backslashes and begins
16769    # with a dollar sign (not a hyphen), so the echo should work correctly.
16770    lt_compile=`echo "$ac_compile" | $SED \
16771    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16772    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16773    -e 's:$: $lt_compiler_flag:'`
16774    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16775    (eval "$lt_compile" 2>out/conftest.err)
16776    ac_status=$?
16777    cat out/conftest.err >&5
16778    echo "$as_me:__oline__: \$? = $ac_status" >&5
16779    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16780    then
16781      # The compiler can only warn and ignore the option if not recognized
16782      # So say no if there are warnings
16783      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16784      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16785      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16786        lt_cv_prog_compiler_c_o_GCJ=yes
16787      fi
16788    fi
16789    chmod u+w . 2>&5
16790    $rm conftest*
16791    # SGI C++ compiler will create directory out/ii_files/ for
16792    # template instantiation
16793    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16794    $rm out/* && rmdir out
16795    cd ..
16796    rmdir conftest
16797    $rm conftest*
16800 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16801 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16804 hard_links="nottested"
16805 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16806   # do not overwrite the value of need_locks provided by the user
16807   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16808 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16809   hard_links=yes
16810   $rm conftest*
16811   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16812   touch conftest.a
16813   ln conftest.a conftest.b 2>&5 || hard_links=no
16814   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16815   { echo "$as_me:$LINENO: result: $hard_links" >&5
16816 echo "${ECHO_T}$hard_links" >&6; }
16817   if test "$hard_links" = no; then
16818     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16819 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16820     need_locks=warn
16821   fi
16822 else
16823   need_locks=no
16826 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16827 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16829   runpath_var=
16830   allow_undefined_flag_GCJ=
16831   enable_shared_with_static_runtimes_GCJ=no
16832   archive_cmds_GCJ=
16833   archive_expsym_cmds_GCJ=
16834   old_archive_From_new_cmds_GCJ=
16835   old_archive_from_expsyms_cmds_GCJ=
16836   export_dynamic_flag_spec_GCJ=
16837   whole_archive_flag_spec_GCJ=
16838   thread_safe_flag_spec_GCJ=
16839   hardcode_libdir_flag_spec_GCJ=
16840   hardcode_libdir_flag_spec_ld_GCJ=
16841   hardcode_libdir_separator_GCJ=
16842   hardcode_direct_GCJ=no
16843   hardcode_minus_L_GCJ=no
16844   hardcode_shlibpath_var_GCJ=unsupported
16845   link_all_deplibs_GCJ=unknown
16846   hardcode_automatic_GCJ=no
16847   module_cmds_GCJ=
16848   module_expsym_cmds_GCJ=
16849   always_export_symbols_GCJ=no
16850   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16851   # include_expsyms should be a list of space-separated symbols to be *always*
16852   # included in the symbol list
16853   include_expsyms_GCJ=
16854   # exclude_expsyms can be an extended regexp of symbols to exclude
16855   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16856   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16857   # as well as any symbol that contains `d'.
16858   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16859   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16860   # platforms (ab)use it in PIC code, but their linkers get confused if
16861   # the symbol is explicitly referenced.  Since portable code cannot
16862   # rely on this symbol name, it's probably fine to never include it in
16863   # preloaded symbol tables.
16864   extract_expsyms_cmds=
16865   # Just being paranoid about ensuring that cc_basename is set.
16866   for cc_temp in $compiler""; do
16867   case $cc_temp in
16868     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16869     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16870     \-*) ;;
16871     *) break;;
16872   esac
16873 done
16874 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16876   case $host_os in
16877   cygwin* | mingw* | pw32*)
16878     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16879     # When not using gcc, we currently assume that we are using
16880     # Microsoft Visual C++.
16881     if test "$GCC" != yes; then
16882       with_gnu_ld=no
16883     fi
16884     ;;
16885   interix*)
16886     # we just hope/assume this is gcc and not c89 (= MSVC++)
16887     with_gnu_ld=yes
16888     ;;
16889   openbsd*)
16890     with_gnu_ld=no
16891     ;;
16892   esac
16894   ld_shlibs_GCJ=yes
16895   if test "$with_gnu_ld" = yes; then
16896     # If archive_cmds runs LD, not CC, wlarc should be empty
16897     wlarc='${wl}'
16899     # Set some defaults for GNU ld with shared library support. These
16900     # are reset later if shared libraries are not supported. Putting them
16901     # here allows them to be overridden if necessary.
16902     runpath_var=LD_RUN_PATH
16903     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16904     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16905     # ancient GNU ld didn't support --whole-archive et. al.
16906     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16907         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16908       else
16909         whole_archive_flag_spec_GCJ=
16910     fi
16911     supports_anon_versioning=no
16912     case `$LD -v 2>/dev/null` in
16913       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16914       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16915       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16916       *\ 2.11.*) ;; # other 2.11 versions
16917       *) supports_anon_versioning=yes ;;
16918     esac
16920     # See if GNU ld supports shared libraries.
16921     case $host_os in
16922     aix3* | aix4* | aix5*)
16923       # On AIX/PPC, the GNU linker is very broken
16924       if test "$host_cpu" != ia64; then
16925         ld_shlibs_GCJ=no
16926         cat <<EOF 1>&2
16928 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16929 *** to be unable to reliably create shared libraries on AIX.
16930 *** Therefore, libtool is disabling shared libraries support.  If you
16931 *** really care for shared libraries, you may want to modify your PATH
16932 *** so that a non-GNU linker is found, and then restart.
16935       fi
16936       ;;
16938     amigaos*)
16939       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)'
16940       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16941       hardcode_minus_L_GCJ=yes
16943       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16944       # that the semantics of dynamic libraries on AmigaOS, at least up
16945       # to version 4, is to share data among multiple programs linked
16946       # with the same dynamic library.  Since this doesn't match the
16947       # behavior of shared libraries on other platforms, we can't use
16948       # them.
16949       ld_shlibs_GCJ=no
16950       ;;
16952     beos*)
16953       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16954         allow_undefined_flag_GCJ=unsupported
16955         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16956         # support --undefined.  This deserves some investigation.  FIXME
16957         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16958       else
16959         ld_shlibs_GCJ=no
16960       fi
16961       ;;
16963     cygwin* | mingw* | pw32*)
16964       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16965       # as there is no search path for DLLs.
16966       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16967       allow_undefined_flag_GCJ=unsupported
16968       always_export_symbols_GCJ=no
16969       enable_shared_with_static_runtimes_GCJ=yes
16970       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16972       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16973         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16974         # If the export-symbols file already is a .def file (1st line
16975         # is EXPORTS), use it as is; otherwise, prepend...
16976         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16977           cp $export_symbols $output_objdir/$soname.def;
16978         else
16979           echo EXPORTS > $output_objdir/$soname.def;
16980           cat $export_symbols >> $output_objdir/$soname.def;
16981         fi~
16982         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16983       else
16984         ld_shlibs_GCJ=no
16985       fi
16986       ;;
16988     interix[3-9]*)
16989       hardcode_direct_GCJ=no
16990       hardcode_shlibpath_var_GCJ=no
16991       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16992       export_dynamic_flag_spec_GCJ='${wl}-E'
16993       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16994       # Instead, shared libraries are loaded at an image base (0x10000000 by
16995       # default) and relocated if they conflict, which is a slow very memory
16996       # consuming and fragmenting process.  To avoid this, we pick a random,
16997       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16998       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16999       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'
17000       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'
17001       ;;
17003     gnu* | linux* | k*bsd*-gnu)
17004       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17005         tmp_addflag=
17006         case $cc_basename,$host_cpu in
17007         pgcc*)                          # Portland Group C compiler
17008           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'
17009           tmp_addflag=' $pic_flag'
17010           ;;
17011         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17012           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'
17013           tmp_addflag=' $pic_flag -Mnomain' ;;
17014         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17015           tmp_addflag=' -i_dynamic' ;;
17016         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17017           tmp_addflag=' -i_dynamic -nofor_main' ;;
17018         ifc* | ifort*)                  # Intel Fortran compiler
17019           tmp_addflag=' -nofor_main' ;;
17020         esac
17021         case `$CC -V 2>&1 | sed 5q` in
17022         *Sun\ C*)                       # Sun C 5.9
17023           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'
17024           tmp_sharedflag='-G' ;;
17025         *Sun\ F*)                       # Sun Fortran 8.3
17026           tmp_sharedflag='-G' ;;
17027         *)
17028           tmp_sharedflag='-shared' ;;
17029         esac
17030         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17032         if test $supports_anon_versioning = yes; then
17033           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17034   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17035   $echo "local: *; };" >> $output_objdir/$libname.ver~
17036           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17037         fi
17038       else
17039         ld_shlibs_GCJ=no
17040       fi
17041       ;;
17043     netbsd*)
17044       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17045         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17046         wlarc=
17047       else
17048         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17049         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17050       fi
17051       ;;
17053     solaris*)
17054       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17055         ld_shlibs_GCJ=no
17056         cat <<EOF 1>&2
17058 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17059 *** create shared libraries on Solaris systems.  Therefore, libtool
17060 *** is disabling shared libraries support.  We urge you to upgrade GNU
17061 *** binutils to release 2.9.1 or newer.  Another option is to modify
17062 *** your PATH or compiler configuration so that the native linker is
17063 *** used, and then restart.
17066       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17067         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17068         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17069       else
17070         ld_shlibs_GCJ=no
17071       fi
17072       ;;
17074     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17075       case `$LD -v 2>&1` in
17076         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17077         ld_shlibs_GCJ=no
17078         cat <<_LT_EOF 1>&2
17080 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17081 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17082 *** is disabling shared libraries support.  We urge you to upgrade GNU
17083 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17084 *** your PATH or compiler configuration so that the native linker is
17085 *** used, and then restart.
17087 _LT_EOF
17088         ;;
17089         *)
17090           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17091             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17092             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17093             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17094           else
17095             ld_shlibs_GCJ=no
17096           fi
17097         ;;
17098       esac
17099       ;;
17101     sunos4*)
17102       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17103       wlarc=
17104       hardcode_direct_GCJ=yes
17105       hardcode_shlibpath_var_GCJ=no
17106       ;;
17108     *)
17109       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17110         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17111         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17112       else
17113         ld_shlibs_GCJ=no
17114       fi
17115       ;;
17116     esac
17118     if test "$ld_shlibs_GCJ" = no; then
17119       runpath_var=
17120       hardcode_libdir_flag_spec_GCJ=
17121       export_dynamic_flag_spec_GCJ=
17122       whole_archive_flag_spec_GCJ=
17123     fi
17124   else
17125     # PORTME fill in a description of your system's linker (not GNU ld)
17126     case $host_os in
17127     aix3*)
17128       allow_undefined_flag_GCJ=unsupported
17129       always_export_symbols_GCJ=yes
17130       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'
17131       # Note: this linker hardcodes the directories in LIBPATH if there
17132       # are no directories specified by -L.
17133       hardcode_minus_L_GCJ=yes
17134       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17135         # Neither direct hardcoding nor static linking is supported with a
17136         # broken collect2.
17137         hardcode_direct_GCJ=unsupported
17138       fi
17139       ;;
17141     aix4* | aix5*)
17142       if test "$host_cpu" = ia64; then
17143         # On IA64, the linker does run time linking by default, so we don't
17144         # have to do anything special.
17145         aix_use_runtimelinking=no
17146         exp_sym_flag='-Bexport'
17147         no_entry_flag=""
17148       else
17149         # If we're using GNU nm, then we don't want the "-C" option.
17150         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17151         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17152           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'
17153         else
17154           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'
17155         fi
17156         aix_use_runtimelinking=no
17158         # Test if we are trying to use run time linking or normal
17159         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17160         # need to do runtime linking.
17161         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17162           for ld_flag in $LDFLAGS; do
17163           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17164             aix_use_runtimelinking=yes
17165             break
17166           fi
17167           done
17168           ;;
17169         esac
17171         exp_sym_flag='-bexport'
17172         no_entry_flag='-bnoentry'
17173       fi
17175       # When large executables or shared objects are built, AIX ld can
17176       # have problems creating the table of contents.  If linking a library
17177       # or program results in "error TOC overflow" add -mminimal-toc to
17178       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17179       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17181       archive_cmds_GCJ=''
17182       hardcode_direct_GCJ=yes
17183       hardcode_libdir_separator_GCJ=':'
17184       link_all_deplibs_GCJ=yes
17186       if test "$GCC" = yes; then
17187         case $host_os in aix4.[012]|aix4.[012].*)
17188         # We only want to do this on AIX 4.2 and lower, the check
17189         # below for broken collect2 doesn't work under 4.3+
17190           collect2name=`${CC} -print-prog-name=collect2`
17191           if test -f "$collect2name" && \
17192            strings "$collect2name" | grep resolve_lib_name >/dev/null
17193           then
17194           # We have reworked collect2
17195           :
17196           else
17197           # We have old collect2
17198           hardcode_direct_GCJ=unsupported
17199           # It fails to find uninstalled libraries when the uninstalled
17200           # path is not listed in the libpath.  Setting hardcode_minus_L
17201           # to unsupported forces relinking
17202           hardcode_minus_L_GCJ=yes
17203           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17204           hardcode_libdir_separator_GCJ=
17205           fi
17206           ;;
17207         esac
17208         shared_flag='-shared'
17209         if test "$aix_use_runtimelinking" = yes; then
17210           shared_flag="$shared_flag "'${wl}-G'
17211         fi
17212       else
17213         # not using gcc
17214         if test "$host_cpu" = ia64; then
17215         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17216         # chokes on -Wl,-G. The following line is correct:
17217           shared_flag='-G'
17218         else
17219           if test "$aix_use_runtimelinking" = yes; then
17220             shared_flag='${wl}-G'
17221           else
17222             shared_flag='${wl}-bM:SRE'
17223           fi
17224         fi
17225       fi
17227       # It seems that -bexpall does not export symbols beginning with
17228       # underscore (_), so it is better to generate a list of symbols to export.
17229       always_export_symbols_GCJ=yes
17230       if test "$aix_use_runtimelinking" = yes; then
17231         # Warning - without using the other runtime loading flags (-brtl),
17232         # -berok will link without error, but may produce a broken library.
17233         allow_undefined_flag_GCJ='-berok'
17234        # Determine the default libpath from the value encoded in an empty executable.
17235        cat >conftest.$ac_ext <<_ACEOF
17236 /* confdefs.h.  */
17237 _ACEOF
17238 cat confdefs.h >>conftest.$ac_ext
17239 cat >>conftest.$ac_ext <<_ACEOF
17240 /* end confdefs.h.  */
17243 main ()
17246   ;
17247   return 0;
17249 _ACEOF
17250 rm -f conftest.$ac_objext conftest$ac_exeext
17251 if { (ac_try="$ac_link"
17252 case "(($ac_try" in
17253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254   *) ac_try_echo=$ac_try;;
17255 esac
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257   (eval "$ac_link") 2>conftest.er1
17258   ac_status=$?
17259   grep -v '^ *+' conftest.er1 >conftest.err
17260   rm -f conftest.er1
17261   cat conftest.err >&5
17262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263   (exit $ac_status); } && {
17264          test -z "$ac_c_werror_flag" ||
17265          test ! -s conftest.err
17266        } && test -s conftest$ac_exeext &&
17267        $as_test_x conftest$ac_exeext; then
17268   
17269 lt_aix_libpath_sed='
17270     /Import File Strings/,/^$/ {
17271         /^0/ {
17272             s/^0  *\(.*\)$/\1/
17273             p
17274         }
17275     }'
17276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17277 # Check for a 64-bit object if we didn't find anything.
17278 if test -z "$aix_libpath"; then
17279   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17281 else
17282   echo "$as_me: failed program was:" >&5
17283 sed 's/^/| /' conftest.$ac_ext >&5
17285         
17288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17289       conftest$ac_exeext conftest.$ac_ext
17290 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17292        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17293         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"
17294        else
17295         if test "$host_cpu" = ia64; then
17296           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17297           allow_undefined_flag_GCJ="-z nodefs"
17298           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"
17299         else
17300          # Determine the default libpath from the value encoded in an empty executable.
17301          cat >conftest.$ac_ext <<_ACEOF
17302 /* confdefs.h.  */
17303 _ACEOF
17304 cat confdefs.h >>conftest.$ac_ext
17305 cat >>conftest.$ac_ext <<_ACEOF
17306 /* end confdefs.h.  */
17309 main ()
17312   ;
17313   return 0;
17315 _ACEOF
17316 rm -f conftest.$ac_objext conftest$ac_exeext
17317 if { (ac_try="$ac_link"
17318 case "(($ac_try" in
17319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320   *) ac_try_echo=$ac_try;;
17321 esac
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323   (eval "$ac_link") 2>conftest.er1
17324   ac_status=$?
17325   grep -v '^ *+' conftest.er1 >conftest.err
17326   rm -f conftest.er1
17327   cat conftest.err >&5
17328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329   (exit $ac_status); } && {
17330          test -z "$ac_c_werror_flag" ||
17331          test ! -s conftest.err
17332        } && test -s conftest$ac_exeext &&
17333        $as_test_x conftest$ac_exeext; then
17334   
17335 lt_aix_libpath_sed='
17336     /Import File Strings/,/^$/ {
17337         /^0/ {
17338             s/^0  *\(.*\)$/\1/
17339             p
17340         }
17341     }'
17342 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17343 # Check for a 64-bit object if we didn't find anything.
17344 if test -z "$aix_libpath"; then
17345   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17347 else
17348   echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17351         
17354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17355       conftest$ac_exeext conftest.$ac_ext
17356 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17358          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17359           # Warning - without using the other run time loading flags,
17360           # -berok will link without error, but may produce a broken library.
17361           no_undefined_flag_GCJ=' ${wl}-bernotok'
17362           allow_undefined_flag_GCJ=' ${wl}-berok'
17363           # Exported symbols can be pulled into shared objects from archives
17364           whole_archive_flag_spec_GCJ='$convenience'
17365           archive_cmds_need_lc_GCJ=yes
17366           # This is similar to how AIX traditionally builds its shared libraries.
17367           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'
17368         fi
17369       fi
17370       ;;
17372     amigaos*)
17373       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)'
17374       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17375       hardcode_minus_L_GCJ=yes
17376       # see comment about different semantics on the GNU ld section
17377       ld_shlibs_GCJ=no
17378       ;;
17380     bsdi[45]*)
17381       export_dynamic_flag_spec_GCJ=-rdynamic
17382       ;;
17384     cygwin* | mingw* | pw32*)
17385       # When not using gcc, we currently assume that we are using
17386       # Microsoft Visual C++.
17387       # hardcode_libdir_flag_spec is actually meaningless, as there is
17388       # no search path for DLLs.
17389       hardcode_libdir_flag_spec_GCJ=' '
17390       allow_undefined_flag_GCJ=unsupported
17391       # Tell ltmain to make .lib files, not .a files.
17392       libext=lib
17393       # Tell ltmain to make .dll files, not .so files.
17394       shrext_cmds=".dll"
17395       # FIXME: Setting linknames here is a bad hack.
17396       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17397       # The linker will automatically build a .lib file if we build a DLL.
17398       old_archive_From_new_cmds_GCJ='true'
17399       # FIXME: Should let the user specify the lib program.
17400       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17401       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17402       enable_shared_with_static_runtimes_GCJ=yes
17403       ;;
17405     darwin* | rhapsody*)
17406       case $host_os in
17407         rhapsody* | darwin1.[012])
17408          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17409          ;;
17410        *) # Darwin 1.3 on
17411          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17412            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17413          else
17414            case ${MACOSX_DEPLOYMENT_TARGET} in
17415              10.[012])
17416                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17417                ;;
17418              10.*)
17419                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17420                ;;
17421            esac
17422          fi
17423          ;;
17424       esac
17425       archive_cmds_need_lc_GCJ=no
17426       hardcode_direct_GCJ=no
17427       hardcode_automatic_GCJ=yes
17428       hardcode_shlibpath_var_GCJ=unsupported
17429       whole_archive_flag_spec_GCJ=''
17430       link_all_deplibs_GCJ=yes
17431     if test "$GCC" = yes ; then
17432         output_verbose_link_cmd='echo'
17433         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17434       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17435       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17436       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17437       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}'
17438     else
17439       case $cc_basename in
17440         xlc*)
17441          output_verbose_link_cmd='echo'
17442          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17443          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17444           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17445          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}'
17446           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}'
17447           ;;
17448        *)
17449          ld_shlibs_GCJ=no
17450           ;;
17451       esac
17452     fi
17453       ;;
17455     dgux*)
17456       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17457       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17458       hardcode_shlibpath_var_GCJ=no
17459       ;;
17461     freebsd1*)
17462       ld_shlibs_GCJ=no
17463       ;;
17465     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17466     # support.  Future versions do this automatically, but an explicit c++rt0.o
17467     # does not break anything, and helps significantly (at the cost of a little
17468     # extra space).
17469     freebsd2.2*)
17470       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17471       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17472       hardcode_direct_GCJ=yes
17473       hardcode_shlibpath_var_GCJ=no
17474       ;;
17476     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17477     freebsd2*)
17478       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17479       hardcode_direct_GCJ=yes
17480       hardcode_minus_L_GCJ=yes
17481       hardcode_shlibpath_var_GCJ=no
17482       ;;
17484     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17485     freebsd* | dragonfly*)
17486       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17487       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17488       hardcode_direct_GCJ=yes
17489       hardcode_shlibpath_var_GCJ=no
17490       ;;
17492     hpux9*)
17493       if test "$GCC" = yes; then
17494         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'
17495       else
17496         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'
17497       fi
17498       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17499       hardcode_libdir_separator_GCJ=:
17500       hardcode_direct_GCJ=yes
17502       # hardcode_minus_L: Not really in the search PATH,
17503       # but as the default location of the library.
17504       hardcode_minus_L_GCJ=yes
17505       export_dynamic_flag_spec_GCJ='${wl}-E'
17506       ;;
17508     hpux10*)
17509       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17510         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17511       else
17512         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17513       fi
17514       if test "$with_gnu_ld" = no; then
17515         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17516         hardcode_libdir_separator_GCJ=:
17518         hardcode_direct_GCJ=yes
17519         export_dynamic_flag_spec_GCJ='${wl}-E'
17521         # hardcode_minus_L: Not really in the search PATH,
17522         # but as the default location of the library.
17523         hardcode_minus_L_GCJ=yes
17524       fi
17525       ;;
17527     hpux11*)
17528       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17529         case $host_cpu in
17530         hppa*64*)
17531           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17532           ;;
17533         ia64*)
17534           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17535           ;;
17536         *)
17537           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17538           ;;
17539         esac
17540       else
17541         case $host_cpu in
17542         hppa*64*)
17543           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17544           ;;
17545         ia64*)
17546           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17547           ;;
17548         *)
17549           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17550           ;;
17551         esac
17552       fi
17553       if test "$with_gnu_ld" = no; then
17554         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17555         hardcode_libdir_separator_GCJ=:
17557         case $host_cpu in
17558         hppa*64*|ia64*)
17559           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17560           hardcode_direct_GCJ=no
17561           hardcode_shlibpath_var_GCJ=no
17562           ;;
17563         *)
17564           hardcode_direct_GCJ=yes
17565           export_dynamic_flag_spec_GCJ='${wl}-E'
17567           # hardcode_minus_L: Not really in the search PATH,
17568           # but as the default location of the library.
17569           hardcode_minus_L_GCJ=yes
17570           ;;
17571         esac
17572       fi
17573       ;;
17575     irix5* | irix6* | nonstopux*)
17576       if test "$GCC" = yes; then
17577         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'
17578       else
17579         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'
17580         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17581       fi
17582       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17583       hardcode_libdir_separator_GCJ=:
17584       link_all_deplibs_GCJ=yes
17585       ;;
17587     netbsd*)
17588       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17589         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17590       else
17591         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17592       fi
17593       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17594       hardcode_direct_GCJ=yes
17595       hardcode_shlibpath_var_GCJ=no
17596       ;;
17598     newsos6)
17599       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17600       hardcode_direct_GCJ=yes
17601       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17602       hardcode_libdir_separator_GCJ=:
17603       hardcode_shlibpath_var_GCJ=no
17604       ;;
17606     openbsd*)
17607       if test -f /usr/libexec/ld.so; then
17608         hardcode_direct_GCJ=yes
17609         hardcode_shlibpath_var_GCJ=no
17610         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17611           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17612           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17613           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17614           export_dynamic_flag_spec_GCJ='${wl}-E'
17615         else
17616           case $host_os in
17617            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17618              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17619              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17620              ;;
17621            *)
17622              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17623              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17624              ;;
17625           esac
17626         fi
17627       else
17628         ld_shlibs_GCJ=no
17629       fi
17630       ;;
17632     os2*)
17633       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17634       hardcode_minus_L_GCJ=yes
17635       allow_undefined_flag_GCJ=unsupported
17636       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'
17637       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17638       ;;
17640     osf3*)
17641       if test "$GCC" = yes; then
17642         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17643         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'
17644       else
17645         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17646         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'
17647       fi
17648       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17649       hardcode_libdir_separator_GCJ=:
17650       ;;
17652     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17653       if test "$GCC" = yes; then
17654         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17655         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'
17656         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17657       else
17658         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17659         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'
17660         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~
17661         $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'
17663         # Both c and cxx compiler support -rpath directly
17664         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17665       fi
17666       hardcode_libdir_separator_GCJ=:
17667       ;;
17669     solaris*)
17670       no_undefined_flag_GCJ=' -z text'
17671       if test "$GCC" = yes; then
17672         wlarc='${wl}'
17673         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17674         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17675           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17676       else
17677         wlarc=''
17678         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17679         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17680         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17681       fi
17682       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17683       hardcode_shlibpath_var_GCJ=no
17684       case $host_os in
17685       solaris2.[0-5] | solaris2.[0-5].*) ;;
17686       *)
17687         # The compiler driver will combine and reorder linker options,
17688         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17689         # but is careful enough not to reorder.
17690         # Supported since Solaris 2.6 (maybe 2.5.1?)
17691         if test "$GCC" = yes; then
17692           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17693         else
17694           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17695         fi
17696         ;;
17697       esac
17698       link_all_deplibs_GCJ=yes
17699       ;;
17701     sunos4*)
17702       if test "x$host_vendor" = xsequent; then
17703         # Use $CC to link under sequent, because it throws in some extra .o
17704         # files that make .init and .fini sections work.
17705         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17706       else
17707         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17708       fi
17709       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17710       hardcode_direct_GCJ=yes
17711       hardcode_minus_L_GCJ=yes
17712       hardcode_shlibpath_var_GCJ=no
17713       ;;
17715     sysv4)
17716       case $host_vendor in
17717         sni)
17718           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17719           hardcode_direct_GCJ=yes # is this really true???
17720         ;;
17721         siemens)
17722           ## LD is ld it makes a PLAMLIB
17723           ## CC just makes a GrossModule.
17724           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17725           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17726           hardcode_direct_GCJ=no
17727         ;;
17728         motorola)
17729           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17730           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17731         ;;
17732       esac
17733       runpath_var='LD_RUN_PATH'
17734       hardcode_shlibpath_var_GCJ=no
17735       ;;
17737     sysv4.3*)
17738       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17739       hardcode_shlibpath_var_GCJ=no
17740       export_dynamic_flag_spec_GCJ='-Bexport'
17741       ;;
17743     sysv4*MP*)
17744       if test -d /usr/nec; then
17745         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17746         hardcode_shlibpath_var_GCJ=no
17747         runpath_var=LD_RUN_PATH
17748         hardcode_runpath_var=yes
17749         ld_shlibs_GCJ=yes
17750       fi
17751       ;;
17753     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17754       no_undefined_flag_GCJ='${wl}-z,text'
17755       archive_cmds_need_lc_GCJ=no
17756       hardcode_shlibpath_var_GCJ=no
17757       runpath_var='LD_RUN_PATH'
17759       if test "$GCC" = yes; then
17760         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17761         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17762       else
17763         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17764         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17765       fi
17766       ;;
17768     sysv5* | sco3.2v5* | sco5v6*)
17769       # Note: We can NOT use -z defs as we might desire, because we do not
17770       # link with -lc, and that would cause any symbols used from libc to
17771       # always be unresolved, which means just about no library would
17772       # ever link correctly.  If we're not using GNU ld we use -z text
17773       # though, which does catch some bad symbols but isn't as heavy-handed
17774       # as -z defs.
17775       no_undefined_flag_GCJ='${wl}-z,text'
17776       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17777       archive_cmds_need_lc_GCJ=no
17778       hardcode_shlibpath_var_GCJ=no
17779       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17780       hardcode_libdir_separator_GCJ=':'
17781       link_all_deplibs_GCJ=yes
17782       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17783       runpath_var='LD_RUN_PATH'
17785       if test "$GCC" = yes; then
17786         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17787         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17788       else
17789         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17790         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17791       fi
17792       ;;
17794     uts4*)
17795       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17796       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17797       hardcode_shlibpath_var_GCJ=no
17798       ;;
17800     *)
17801       ld_shlibs_GCJ=no
17802       ;;
17803     esac
17804   fi
17806 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17807 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17808 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17811 # Do we need to explicitly link libc?
17813 case "x$archive_cmds_need_lc_GCJ" in
17814 x|xyes)
17815   # Assume -lc should be added
17816   archive_cmds_need_lc_GCJ=yes
17818   if test "$enable_shared" = yes && test "$GCC" = yes; then
17819     case $archive_cmds_GCJ in
17820     *'~'*)
17821       # FIXME: we may have to deal with multi-command sequences.
17822       ;;
17823     '$CC '*)
17824       # Test whether the compiler implicitly links with -lc since on some
17825       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17826       # to ld, don't add -lc before -lgcc.
17827       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17828 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17829       $rm conftest*
17830       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17832       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17833   (eval $ac_compile) 2>&5
17834   ac_status=$?
17835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836   (exit $ac_status); } 2>conftest.err; then
17837         soname=conftest
17838         lib=conftest
17839         libobjs=conftest.$ac_objext
17840         deplibs=
17841         wl=$lt_prog_compiler_wl_GCJ
17842         pic_flag=$lt_prog_compiler_pic_GCJ
17843         compiler_flags=-v
17844         linker_flags=-v
17845         verstring=
17846         output_objdir=.
17847         libname=conftest
17848         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17849         allow_undefined_flag_GCJ=
17850         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17851   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17852   ac_status=$?
17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); }
17855         then
17856           archive_cmds_need_lc_GCJ=no
17857         else
17858           archive_cmds_need_lc_GCJ=yes
17859         fi
17860         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17861       else
17862         cat conftest.err 1>&5
17863       fi
17864       $rm conftest*
17865       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17866 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17867       ;;
17868     esac
17869   fi
17870   ;;
17871 esac
17873 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17874 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17875 library_names_spec=
17876 libname_spec='lib$name'
17877 soname_spec=
17878 shrext_cmds=".so"
17879 postinstall_cmds=
17880 postuninstall_cmds=
17881 finish_cmds=
17882 finish_eval=
17883 shlibpath_var=
17884 shlibpath_overrides_runpath=unknown
17885 version_type=none
17886 dynamic_linker="$host_os ld.so"
17887 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17889 need_lib_prefix=unknown
17890 hardcode_into_libs=no
17892 # when you set need_version to no, make sure it does not cause -set_version
17893 # flags to be left without arguments
17894 need_version=unknown
17896 case $host_os in
17897 aix3*)
17898   version_type=linux
17899   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17900   shlibpath_var=LIBPATH
17902   # AIX 3 has no versioning support, so we append a major version to the name.
17903   soname_spec='${libname}${release}${shared_ext}$major'
17904   ;;
17906 aix4* | aix5*)
17907   version_type=linux
17908   need_lib_prefix=no
17909   need_version=no
17910   hardcode_into_libs=yes
17911   if test "$host_cpu" = ia64; then
17912     # AIX 5 supports IA64
17913     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17914     shlibpath_var=LD_LIBRARY_PATH
17915   else
17916     # With GCC up to 2.95.x, collect2 would create an import file
17917     # for dependence libraries.  The import file would start with
17918     # the line `#! .'.  This would cause the generated library to
17919     # depend on `.', always an invalid library.  This was fixed in
17920     # development snapshots of GCC prior to 3.0.
17921     case $host_os in
17922       aix4 | aix4.[01] | aix4.[01].*)
17923       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17924            echo ' yes '
17925            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17926         :
17927       else
17928         can_build_shared=no
17929       fi
17930       ;;
17931     esac
17932     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17933     # soname into executable. Probably we can add versioning support to
17934     # collect2, so additional links can be useful in future.
17935     if test "$aix_use_runtimelinking" = yes; then
17936       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17937       # instead of lib<name>.a to let people know that these are not
17938       # typical AIX shared libraries.
17939       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17940     else
17941       # We preserve .a as extension for shared libraries through AIX4.2
17942       # and later when we are not doing run time linking.
17943       library_names_spec='${libname}${release}.a $libname.a'
17944       soname_spec='${libname}${release}${shared_ext}$major'
17945     fi
17946     shlibpath_var=LIBPATH
17947   fi
17948   ;;
17950 amigaos*)
17951   library_names_spec='$libname.ixlibrary $libname.a'
17952   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17953   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'
17954   ;;
17956 beos*)
17957   library_names_spec='${libname}${shared_ext}'
17958   dynamic_linker="$host_os ld.so"
17959   shlibpath_var=LIBRARY_PATH
17960   ;;
17962 bsdi[45]*)
17963   version_type=linux
17964   need_version=no
17965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17966   soname_spec='${libname}${release}${shared_ext}$major'
17967   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17968   shlibpath_var=LD_LIBRARY_PATH
17969   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17970   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17971   # the default ld.so.conf also contains /usr/contrib/lib and
17972   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17973   # libtool to hard-code these into programs
17974   ;;
17976 cygwin* | mingw* | pw32*)
17977   version_type=windows
17978   shrext_cmds=".dll"
17979   need_version=no
17980   need_lib_prefix=no
17982   case $GCC,$host_os in
17983   yes,cygwin* | yes,mingw* | yes,pw32*)
17984     library_names_spec='$libname.dll.a'
17985     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17986     postinstall_cmds='base_file=`basename \${file}`~
17987       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17988       dldir=$destdir/`dirname \$dlpath`~
17989       test -d \$dldir || mkdir -p \$dldir~
17990       $install_prog $dir/$dlname \$dldir/$dlname~
17991       chmod a+x \$dldir/$dlname'
17992     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17993       dlpath=$dir/\$dldll~
17994        $rm \$dlpath'
17995     shlibpath_overrides_runpath=yes
17997     case $host_os in
17998     cygwin*)
17999       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18000       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18001       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18002       ;;
18003     mingw*)
18004       # MinGW DLLs use traditional 'lib' prefix
18005       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18006       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18007       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18008         # It is most probably a Windows format PATH printed by
18009         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18010         # path with ; separators, and with drive letters. We can handle the
18011         # drive letters (cygwin fileutils understands them), so leave them,
18012         # especially as we might pass files found there to a mingw objdump,
18013         # which wouldn't understand a cygwinified path. Ahh.
18014         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18015       else
18016         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18017       fi
18018       ;;
18019     pw32*)
18020       # pw32 DLLs use 'pw' prefix rather than 'lib'
18021       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18022       ;;
18023     esac
18024     ;;
18026   *)
18027     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18028     ;;
18029   esac
18030   dynamic_linker='Win32 ld.exe'
18031   # FIXME: first we should search . and the directory the executable is in
18032   shlibpath_var=PATH
18033   ;;
18035 darwin* | rhapsody*)
18036   dynamic_linker="$host_os dyld"
18037   version_type=darwin
18038   need_lib_prefix=no
18039   need_version=no
18040   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18041   soname_spec='${libname}${release}${major}$shared_ext'
18042   shlibpath_overrides_runpath=yes
18043   shlibpath_var=DYLD_LIBRARY_PATH
18044   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18045    
18046   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18047   ;;
18049 dgux*)
18050   version_type=linux
18051   need_lib_prefix=no
18052   need_version=no
18053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18054   soname_spec='${libname}${release}${shared_ext}$major'
18055   shlibpath_var=LD_LIBRARY_PATH
18056   ;;
18058 freebsd1*)
18059   dynamic_linker=no
18060   ;;
18062 freebsd* | dragonfly*)
18063   # DragonFly does not have aout.  When/if they implement a new
18064   # versioning mechanism, adjust this.
18065   if test -x /usr/bin/objformat; then
18066     objformat=`/usr/bin/objformat`
18067   else
18068     case $host_os in
18069     freebsd[123]*) objformat=aout ;;
18070     *) objformat=elf ;;
18071     esac
18072   fi
18073   version_type=freebsd-$objformat
18074   case $version_type in
18075     freebsd-elf*)
18076       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18077       need_version=no
18078       need_lib_prefix=no
18079       ;;
18080     freebsd-*)
18081       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18082       need_version=yes
18083       ;;
18084   esac
18085   shlibpath_var=LD_LIBRARY_PATH
18086   case $host_os in
18087   freebsd2*)
18088     shlibpath_overrides_runpath=yes
18089     ;;
18090   freebsd3.[01]* | freebsdelf3.[01]*)
18091     shlibpath_overrides_runpath=yes
18092     hardcode_into_libs=yes
18093     ;;
18094   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18095   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18096     shlibpath_overrides_runpath=no
18097     hardcode_into_libs=yes
18098     ;;
18099   *) # from 4.6 on, and DragonFly
18100     shlibpath_overrides_runpath=yes
18101     hardcode_into_libs=yes
18102     ;;
18103   esac
18104   ;;
18106 gnu*)
18107   version_type=linux
18108   need_lib_prefix=no
18109   need_version=no
18110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18111   soname_spec='${libname}${release}${shared_ext}$major'
18112   shlibpath_var=LD_LIBRARY_PATH
18113   hardcode_into_libs=yes
18114   ;;
18116 hpux9* | hpux10* | hpux11*)
18117   # Give a soname corresponding to the major version so that dld.sl refuses to
18118   # link against other versions.
18119   version_type=sunos
18120   need_lib_prefix=no
18121   need_version=no
18122   case $host_cpu in
18123   ia64*)
18124     shrext_cmds='.so'
18125     hardcode_into_libs=yes
18126     dynamic_linker="$host_os dld.so"
18127     shlibpath_var=LD_LIBRARY_PATH
18128     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18129     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18130     soname_spec='${libname}${release}${shared_ext}$major'
18131     if test "X$HPUX_IA64_MODE" = X32; then
18132       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18133     else
18134       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18135     fi
18136     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18137     ;;
18138    hppa*64*)
18139      shrext_cmds='.sl'
18140      hardcode_into_libs=yes
18141      dynamic_linker="$host_os dld.sl"
18142      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18143      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18144      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18145      soname_spec='${libname}${release}${shared_ext}$major'
18146      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18147      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18148      ;;
18149    *)
18150     shrext_cmds='.sl'
18151     dynamic_linker="$host_os dld.sl"
18152     shlibpath_var=SHLIB_PATH
18153     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18154     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18155     soname_spec='${libname}${release}${shared_ext}$major'
18156     ;;
18157   esac
18158   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18159   postinstall_cmds='chmod 555 $lib'
18160   ;;
18162 interix[3-9]*)
18163   version_type=linux
18164   need_lib_prefix=no
18165   need_version=no
18166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18167   soname_spec='${libname}${release}${shared_ext}$major'
18168   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18169   shlibpath_var=LD_LIBRARY_PATH
18170   shlibpath_overrides_runpath=no
18171   hardcode_into_libs=yes
18172   ;;
18174 irix5* | irix6* | nonstopux*)
18175   case $host_os in
18176     nonstopux*) version_type=nonstopux ;;
18177     *)
18178         if test "$lt_cv_prog_gnu_ld" = yes; then
18179                 version_type=linux
18180         else
18181                 version_type=irix
18182         fi ;;
18183   esac
18184   need_lib_prefix=no
18185   need_version=no
18186   soname_spec='${libname}${release}${shared_ext}$major'
18187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18188   case $host_os in
18189   irix5* | nonstopux*)
18190     libsuff= shlibsuff=
18191     ;;
18192   *)
18193     case $LD in # libtool.m4 will add one of these switches to LD
18194     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18195       libsuff= shlibsuff= libmagic=32-bit;;
18196     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18197       libsuff=32 shlibsuff=N32 libmagic=N32;;
18198     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18199       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18200     *) libsuff= shlibsuff= libmagic=never-match;;
18201     esac
18202     ;;
18203   esac
18204   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18205   shlibpath_overrides_runpath=no
18206   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18207   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18208   hardcode_into_libs=yes
18209   ;;
18211 # No shared lib support for Linux oldld, aout, or coff.
18212 linux*oldld* | linux*aout* | linux*coff*)
18213   dynamic_linker=no
18214   ;;
18216 # This must be Linux ELF.
18217 linux* | k*bsd*-gnu)
18218   version_type=linux
18219   need_lib_prefix=no
18220   need_version=no
18221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18222   soname_spec='${libname}${release}${shared_ext}$major'
18223   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18224   shlibpath_var=LD_LIBRARY_PATH
18225   shlibpath_overrides_runpath=no
18226   # This implies no fast_install, which is unacceptable.
18227   # Some rework will be needed to allow for fast_install
18228   # before this can be enabled.
18229   hardcode_into_libs=yes
18230   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18231   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18233   # Append ld.so.conf contents to the search path
18234   if test -f /etc/ld.so.conf; then
18235     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' ' '`
18236     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18237   fi
18239   # We used to test for /lib/ld.so.1 and disable shared libraries on
18240   # powerpc, because MkLinux only supported shared libraries with the
18241   # GNU dynamic linker.  Since this was broken with cross compilers,
18242   # most powerpc-linux boxes support dynamic linking these days and
18243   # people can always --disable-shared, the test was removed, and we
18244   # assume the GNU/Linux dynamic linker is in use.
18245   dynamic_linker='GNU/Linux ld.so'
18246   ;;
18248 netbsd*)
18249   version_type=sunos
18250   need_lib_prefix=no
18251   need_version=no
18252   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18253     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18254     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18255     dynamic_linker='NetBSD (a.out) ld.so'
18256   else
18257     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18258     soname_spec='${libname}${release}${shared_ext}$major'
18259     dynamic_linker='NetBSD ld.elf_so'
18260   fi
18261   shlibpath_var=LD_LIBRARY_PATH
18262   shlibpath_overrides_runpath=yes
18263   hardcode_into_libs=yes
18264   ;;
18266 newsos6)
18267   version_type=linux
18268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18269   shlibpath_var=LD_LIBRARY_PATH
18270   shlibpath_overrides_runpath=yes
18271   ;;
18273 nto-qnx*)
18274   version_type=linux
18275   need_lib_prefix=no
18276   need_version=no
18277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18278   soname_spec='${libname}${release}${shared_ext}$major'
18279   shlibpath_var=LD_LIBRARY_PATH
18280   shlibpath_overrides_runpath=yes
18281   ;;
18283 openbsd*)
18284   version_type=sunos
18285   sys_lib_dlsearch_path_spec="/usr/lib"
18286   need_lib_prefix=no
18287   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18288   case $host_os in
18289     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18290     *)                         need_version=no  ;;
18291   esac
18292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18293   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18294   shlibpath_var=LD_LIBRARY_PATH
18295   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18296     case $host_os in
18297       openbsd2.[89] | openbsd2.[89].*)
18298         shlibpath_overrides_runpath=no
18299         ;;
18300       *)
18301         shlibpath_overrides_runpath=yes
18302         ;;
18303       esac
18304   else
18305     shlibpath_overrides_runpath=yes
18306   fi
18307   ;;
18309 os2*)
18310   libname_spec='$name'
18311   shrext_cmds=".dll"
18312   need_lib_prefix=no
18313   library_names_spec='$libname${shared_ext} $libname.a'
18314   dynamic_linker='OS/2 ld.exe'
18315   shlibpath_var=LIBPATH
18316   ;;
18318 osf3* | osf4* | osf5*)
18319   version_type=osf
18320   need_lib_prefix=no
18321   need_version=no
18322   soname_spec='${libname}${release}${shared_ext}$major'
18323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18324   shlibpath_var=LD_LIBRARY_PATH
18325   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18326   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18327   ;;
18329 rdos*)
18330   dynamic_linker=no
18331   ;;
18333 solaris*)
18334   version_type=linux
18335   need_lib_prefix=no
18336   need_version=no
18337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18338   soname_spec='${libname}${release}${shared_ext}$major'
18339   shlibpath_var=LD_LIBRARY_PATH
18340   shlibpath_overrides_runpath=yes
18341   hardcode_into_libs=yes
18342   # ldd complains unless libraries are executable
18343   postinstall_cmds='chmod +x $lib'
18344   ;;
18346 sunos4*)
18347   version_type=sunos
18348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18349   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18350   shlibpath_var=LD_LIBRARY_PATH
18351   shlibpath_overrides_runpath=yes
18352   if test "$with_gnu_ld" = yes; then
18353     need_lib_prefix=no
18354   fi
18355   need_version=yes
18356   ;;
18358 sysv4 | sysv4.3*)
18359   version_type=linux
18360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18361   soname_spec='${libname}${release}${shared_ext}$major'
18362   shlibpath_var=LD_LIBRARY_PATH
18363   case $host_vendor in
18364     sni)
18365       shlibpath_overrides_runpath=no
18366       need_lib_prefix=no
18367       export_dynamic_flag_spec='${wl}-Blargedynsym'
18368       runpath_var=LD_RUN_PATH
18369       ;;
18370     siemens)
18371       need_lib_prefix=no
18372       ;;
18373     motorola)
18374       need_lib_prefix=no
18375       need_version=no
18376       shlibpath_overrides_runpath=no
18377       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18378       ;;
18379   esac
18380   ;;
18382 sysv4*MP*)
18383   if test -d /usr/nec ;then
18384     version_type=linux
18385     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18386     soname_spec='$libname${shared_ext}.$major'
18387     shlibpath_var=LD_LIBRARY_PATH
18388   fi
18389   ;;
18391 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18392   version_type=freebsd-elf
18393   need_lib_prefix=no
18394   need_version=no
18395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18396   soname_spec='${libname}${release}${shared_ext}$major'
18397   shlibpath_var=LD_LIBRARY_PATH
18398   hardcode_into_libs=yes
18399   if test "$with_gnu_ld" = yes; then
18400     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18401     shlibpath_overrides_runpath=no
18402   else
18403     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18404     shlibpath_overrides_runpath=yes
18405     case $host_os in
18406       sco3.2v5*)
18407         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18408         ;;
18409     esac
18410   fi
18411   sys_lib_dlsearch_path_spec='/usr/lib'
18412   ;;
18414 uts4*)
18415   version_type=linux
18416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18417   soname_spec='${libname}${release}${shared_ext}$major'
18418   shlibpath_var=LD_LIBRARY_PATH
18419   ;;
18422   dynamic_linker=no
18423   ;;
18424 esac
18425 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18426 echo "${ECHO_T}$dynamic_linker" >&6; }
18427 test "$dynamic_linker" = no && can_build_shared=no
18429 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18430 if test "$GCC" = yes; then
18431   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18434 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18435 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18436 hardcode_action_GCJ=
18437 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18438    test -n "$runpath_var_GCJ" || \
18439    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18441   # We can hardcode non-existant directories.
18442   if test "$hardcode_direct_GCJ" != no &&
18443      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18444      # have to relink, otherwise we might link with an installed library
18445      # when we should be linking with a yet-to-be-installed one
18446      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18447      test "$hardcode_minus_L_GCJ" != no; then
18448     # Linking always hardcodes the temporary library directory.
18449     hardcode_action_GCJ=relink
18450   else
18451     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18452     hardcode_action_GCJ=immediate
18453   fi
18454 else
18455   # We cannot hardcode anything, or else we can only hardcode existing
18456   # directories.
18457   hardcode_action_GCJ=unsupported
18459 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18460 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18462 if test "$hardcode_action_GCJ" = relink; then
18463   # Fast installation is not supported
18464   enable_fast_install=no
18465 elif test "$shlibpath_overrides_runpath" = yes ||
18466      test "$enable_shared" = no; then
18467   # Fast installation is not necessary
18468   enable_fast_install=needless
18472 # The else clause should only fire when bootstrapping the
18473 # libtool distribution, otherwise you forgot to ship ltmain.sh
18474 # with your package, and you will get complaints that there are
18475 # no rules to generate ltmain.sh.
18476 if test -f "$ltmain"; then
18477   # See if we are running on zsh, and set the options which allow our commands through
18478   # without removal of \ escapes.
18479   if test -n "${ZSH_VERSION+set}" ; then
18480     setopt NO_GLOB_SUBST
18481   fi
18482   # Now quote all the things that may contain metacharacters while being
18483   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18484   # variables and quote the copies for generation of the libtool script.
18485   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18486     SED SHELL STRIP \
18487     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18488     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18489     deplibs_check_method reload_flag reload_cmds need_locks \
18490     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18491     lt_cv_sys_global_symbol_to_c_name_address \
18492     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18493     old_postinstall_cmds old_postuninstall_cmds \
18494     compiler_GCJ \
18495     CC_GCJ \
18496     LD_GCJ \
18497     lt_prog_compiler_wl_GCJ \
18498     lt_prog_compiler_pic_GCJ \
18499     lt_prog_compiler_static_GCJ \
18500     lt_prog_compiler_no_builtin_flag_GCJ \
18501     export_dynamic_flag_spec_GCJ \
18502     thread_safe_flag_spec_GCJ \
18503     whole_archive_flag_spec_GCJ \
18504     enable_shared_with_static_runtimes_GCJ \
18505     old_archive_cmds_GCJ \
18506     old_archive_from_new_cmds_GCJ \
18507     predep_objects_GCJ \
18508     postdep_objects_GCJ \
18509     predeps_GCJ \
18510     postdeps_GCJ \
18511     compiler_lib_search_path_GCJ \
18512     archive_cmds_GCJ \
18513     archive_expsym_cmds_GCJ \
18514     postinstall_cmds_GCJ \
18515     postuninstall_cmds_GCJ \
18516     old_archive_from_expsyms_cmds_GCJ \
18517     allow_undefined_flag_GCJ \
18518     no_undefined_flag_GCJ \
18519     export_symbols_cmds_GCJ \
18520     hardcode_libdir_flag_spec_GCJ \
18521     hardcode_libdir_flag_spec_ld_GCJ \
18522     hardcode_libdir_separator_GCJ \
18523     hardcode_automatic_GCJ \
18524     module_cmds_GCJ \
18525     module_expsym_cmds_GCJ \
18526     lt_cv_prog_compiler_c_o_GCJ \
18527     fix_srcfile_path_GCJ \
18528     exclude_expsyms_GCJ \
18529     include_expsyms_GCJ; do
18531     case $var in
18532     old_archive_cmds_GCJ | \
18533     old_archive_from_new_cmds_GCJ | \
18534     archive_cmds_GCJ | \
18535     archive_expsym_cmds_GCJ | \
18536     module_cmds_GCJ | \
18537     module_expsym_cmds_GCJ | \
18538     old_archive_from_expsyms_cmds_GCJ | \
18539     export_symbols_cmds_GCJ | \
18540     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18541     postinstall_cmds | postuninstall_cmds | \
18542     old_postinstall_cmds | old_postuninstall_cmds | \
18543     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18544       # Double-quote double-evaled strings.
18545       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18546       ;;
18547     *)
18548       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18549       ;;
18550     esac
18551   done
18553   case $lt_echo in
18554   *'\$0 --fallback-echo"')
18555     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18556     ;;
18557   esac
18559 cfgfile="$ofile"
18561   cat <<__EOF__ >> "$cfgfile"
18562 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18564 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18566 # Shell to use when invoking shell scripts.
18567 SHELL=$lt_SHELL
18569 # Whether or not to build shared libraries.
18570 build_libtool_libs=$enable_shared
18572 # Whether or not to build static libraries.
18573 build_old_libs=$enable_static
18575 # Whether or not to add -lc for building shared libraries.
18576 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18578 # Whether or not to disallow shared libs when runtime libs are static
18579 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18581 # Whether or not to optimize for fast installation.
18582 fast_install=$enable_fast_install
18584 # The host system.
18585 host_alias=$host_alias
18586 host=$host
18587 host_os=$host_os
18589 # The build system.
18590 build_alias=$build_alias
18591 build=$build
18592 build_os=$build_os
18594 # An echo program that does not interpret backslashes.
18595 echo=$lt_echo
18597 # The archiver.
18598 AR=$lt_AR
18599 AR_FLAGS=$lt_AR_FLAGS
18601 # A C compiler.
18602 LTCC=$lt_LTCC
18604 # LTCC compiler flags.
18605 LTCFLAGS=$lt_LTCFLAGS
18607 # A language-specific compiler.
18608 CC=$lt_compiler_GCJ
18610 # Is the compiler the GNU C compiler?
18611 with_gcc=$GCC_GCJ
18613 # An ERE matcher.
18614 EGREP=$lt_EGREP
18616 # The linker used to build libraries.
18617 LD=$lt_LD_GCJ
18619 # Whether we need hard or soft links.
18620 LN_S=$lt_LN_S
18622 # A BSD-compatible nm program.
18623 NM=$lt_NM
18625 # A symbol stripping program
18626 STRIP=$lt_STRIP
18628 # Used to examine libraries when file_magic_cmd begins "file"
18629 MAGIC_CMD=$MAGIC_CMD
18631 # Used on cygwin: DLL creation program.
18632 DLLTOOL="$DLLTOOL"
18634 # Used on cygwin: object dumper.
18635 OBJDUMP="$OBJDUMP"
18637 # Used on cygwin: assembler.
18638 AS="$AS"
18640 # The name of the directory that contains temporary libtool files.
18641 objdir=$objdir
18643 # How to create reloadable object files.
18644 reload_flag=$lt_reload_flag
18645 reload_cmds=$lt_reload_cmds
18647 # How to pass a linker flag through the compiler.
18648 wl=$lt_lt_prog_compiler_wl_GCJ
18650 # Object file suffix (normally "o").
18651 objext="$ac_objext"
18653 # Old archive suffix (normally "a").
18654 libext="$libext"
18656 # Shared library suffix (normally ".so").
18657 shrext_cmds='$shrext_cmds'
18659 # Executable file suffix (normally "").
18660 exeext="$exeext"
18662 # Additional compiler flags for building library objects.
18663 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18664 pic_mode=$pic_mode
18666 # What is the maximum length of a command?
18667 max_cmd_len=$lt_cv_sys_max_cmd_len
18669 # Does compiler simultaneously support -c and -o options?
18670 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18672 # Must we lock files when doing compilation?
18673 need_locks=$lt_need_locks
18675 # Do we need the lib prefix for modules?
18676 need_lib_prefix=$need_lib_prefix
18678 # Do we need a version for libraries?
18679 need_version=$need_version
18681 # Whether dlopen is supported.
18682 dlopen_support=$enable_dlopen
18684 # Whether dlopen of programs is supported.
18685 dlopen_self=$enable_dlopen_self
18687 # Whether dlopen of statically linked programs is supported.
18688 dlopen_self_static=$enable_dlopen_self_static
18690 # Compiler flag to prevent dynamic linking.
18691 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18693 # Compiler flag to turn off builtin functions.
18694 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18696 # Compiler flag to allow reflexive dlopens.
18697 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18699 # Compiler flag to generate shared objects directly from archives.
18700 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18702 # Compiler flag to generate thread-safe objects.
18703 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18705 # Library versioning type.
18706 version_type=$version_type
18708 # Format of library name prefix.
18709 libname_spec=$lt_libname_spec
18711 # List of archive names.  First name is the real one, the rest are links.
18712 # The last name is the one that the linker finds with -lNAME.
18713 library_names_spec=$lt_library_names_spec
18715 # The coded name of the library, if different from the real name.
18716 soname_spec=$lt_soname_spec
18718 # Commands used to build and install an old-style archive.
18719 RANLIB=$lt_RANLIB
18720 old_archive_cmds=$lt_old_archive_cmds_GCJ
18721 old_postinstall_cmds=$lt_old_postinstall_cmds
18722 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18724 # Create an old-style archive from a shared archive.
18725 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18727 # Create a temporary old-style archive to link instead of a shared archive.
18728 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18730 # Commands used to build and install a shared archive.
18731 archive_cmds=$lt_archive_cmds_GCJ
18732 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18733 postinstall_cmds=$lt_postinstall_cmds
18734 postuninstall_cmds=$lt_postuninstall_cmds
18736 # Commands used to build a loadable module (assumed same as above if empty)
18737 module_cmds=$lt_module_cmds_GCJ
18738 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18740 # Commands to strip libraries.
18741 old_striplib=$lt_old_striplib
18742 striplib=$lt_striplib
18744 # Dependencies to place before the objects being linked to create a
18745 # shared library.
18746 predep_objects=$lt_predep_objects_GCJ
18748 # Dependencies to place after the objects being linked to create a
18749 # shared library.
18750 postdep_objects=$lt_postdep_objects_GCJ
18752 # Dependencies to place before the objects being linked to create a
18753 # shared library.
18754 predeps=$lt_predeps_GCJ
18756 # Dependencies to place after the objects being linked to create a
18757 # shared library.
18758 postdeps=$lt_postdeps_GCJ
18760 # The library search path used internally by the compiler when linking
18761 # a shared library.
18762 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18764 # Method to check whether dependent libraries are shared objects.
18765 deplibs_check_method=$lt_deplibs_check_method
18767 # Command to use when deplibs_check_method == file_magic.
18768 file_magic_cmd=$lt_file_magic_cmd
18770 # Flag that allows shared libraries with undefined symbols to be built.
18771 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18773 # Flag that forces no undefined symbols.
18774 no_undefined_flag=$lt_no_undefined_flag_GCJ
18776 # Commands used to finish a libtool library installation in a directory.
18777 finish_cmds=$lt_finish_cmds
18779 # Same as above, but a single script fragment to be evaled but not shown.
18780 finish_eval=$lt_finish_eval
18782 # Take the output of nm and produce a listing of raw symbols and C names.
18783 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18785 # Transform the output of nm in a proper C declaration
18786 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18788 # Transform the output of nm in a C name address pair
18789 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18791 # This is the shared library runtime path variable.
18792 runpath_var=$runpath_var
18794 # This is the shared library path variable.
18795 shlibpath_var=$shlibpath_var
18797 # Is shlibpath searched before the hard-coded library search path?
18798 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18800 # How to hardcode a shared library path into an executable.
18801 hardcode_action=$hardcode_action_GCJ
18803 # Whether we should hardcode library paths into libraries.
18804 hardcode_into_libs=$hardcode_into_libs
18806 # Flag to hardcode \$libdir into a binary during linking.
18807 # This must work even if \$libdir does not exist.
18808 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18810 # If ld is used when linking, flag to hardcode \$libdir into
18811 # a binary during linking. This must work even if \$libdir does
18812 # not exist.
18813 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18815 # Whether we need a single -rpath flag with a separated argument.
18816 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18818 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18819 # resulting binary.
18820 hardcode_direct=$hardcode_direct_GCJ
18822 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18823 # resulting binary.
18824 hardcode_minus_L=$hardcode_minus_L_GCJ
18826 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18827 # the resulting binary.
18828 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18830 # Set to yes if building a shared library automatically hardcodes DIR into the library
18831 # and all subsequent libraries and executables linked against it.
18832 hardcode_automatic=$hardcode_automatic_GCJ
18834 # Variables whose values should be saved in libtool wrapper scripts and
18835 # restored at relink time.
18836 variables_saved_for_relink="$variables_saved_for_relink"
18838 # Whether libtool must link a program against all its dependency libraries.
18839 link_all_deplibs=$link_all_deplibs_GCJ
18841 # Compile-time system search path for libraries
18842 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18844 # Run-time system search path for libraries
18845 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18847 # Fix the shell variable \$srcfile for the compiler.
18848 fix_srcfile_path=$lt_fix_srcfile_path
18850 # Set to yes if exported symbols are required.
18851 always_export_symbols=$always_export_symbols_GCJ
18853 # The commands to list exported symbols.
18854 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18856 # The commands to extract the exported symbol list from a shared archive.
18857 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18859 # Symbols that should not be listed in the preloaded symbols.
18860 exclude_expsyms=$lt_exclude_expsyms_GCJ
18862 # Symbols that must always be exported.
18863 include_expsyms=$lt_include_expsyms_GCJ
18865 # ### END LIBTOOL TAG CONFIG: $tagname
18867 __EOF__
18870 else
18871   # If there is no Makefile yet, we rely on a make rule to execute
18872   # `config.status --recheck' to rerun these tests and create the
18873   # libtool script then.
18874   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18875   if test -f "$ltmain_in"; then
18876     test -f Makefile && make "$ltmain"
18877   fi
18881 ac_ext=c
18882 ac_cpp='$CPP $CPPFLAGS'
18883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18887 CC="$lt_save_CC"
18889         else
18890           tagname=""
18891         fi
18892         ;;
18894       RC)
18895         
18897 # Source file extension for RC test sources.
18898 ac_ext=rc
18900 # Object file extension for compiled RC test sources.
18901 objext=o
18902 objext_RC=$objext
18904 # Code to be used in simple compile tests
18905 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18907 # Code to be used in simple link tests
18908 lt_simple_link_test_code="$lt_simple_compile_test_code"
18910 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18912 # If no C compiler was specified, use CC.
18913 LTCC=${LTCC-"$CC"}
18915 # If no C compiler flags were specified, use CFLAGS.
18916 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18918 # Allow CC to be a program name with arguments.
18919 compiler=$CC
18922 # save warnings/boilerplate of simple test code
18923 ac_outfile=conftest.$ac_objext
18924 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18925 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18926 _lt_compiler_boilerplate=`cat conftest.err`
18927 $rm conftest*
18929 ac_outfile=conftest.$ac_objext
18930 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18931 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18932 _lt_linker_boilerplate=`cat conftest.err`
18933 $rm conftest*
18936 # Allow CC to be a program name with arguments.
18937 lt_save_CC="$CC"
18938 CC=${RC-"windres"}
18939 compiler=$CC
18940 compiler_RC=$CC
18941 for cc_temp in $compiler""; do
18942   case $cc_temp in
18943     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18944     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18945     \-*) ;;
18946     *) break;;
18947   esac
18948 done
18949 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18951 lt_cv_prog_compiler_c_o_RC=yes
18953 # The else clause should only fire when bootstrapping the
18954 # libtool distribution, otherwise you forgot to ship ltmain.sh
18955 # with your package, and you will get complaints that there are
18956 # no rules to generate ltmain.sh.
18957 if test -f "$ltmain"; then
18958   # See if we are running on zsh, and set the options which allow our commands through
18959   # without removal of \ escapes.
18960   if test -n "${ZSH_VERSION+set}" ; then
18961     setopt NO_GLOB_SUBST
18962   fi
18963   # Now quote all the things that may contain metacharacters while being
18964   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18965   # variables and quote the copies for generation of the libtool script.
18966   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18967     SED SHELL STRIP \
18968     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18969     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18970     deplibs_check_method reload_flag reload_cmds need_locks \
18971     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18972     lt_cv_sys_global_symbol_to_c_name_address \
18973     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18974     old_postinstall_cmds old_postuninstall_cmds \
18975     compiler_RC \
18976     CC_RC \
18977     LD_RC \
18978     lt_prog_compiler_wl_RC \
18979     lt_prog_compiler_pic_RC \
18980     lt_prog_compiler_static_RC \
18981     lt_prog_compiler_no_builtin_flag_RC \
18982     export_dynamic_flag_spec_RC \
18983     thread_safe_flag_spec_RC \
18984     whole_archive_flag_spec_RC \
18985     enable_shared_with_static_runtimes_RC \
18986     old_archive_cmds_RC \
18987     old_archive_from_new_cmds_RC \
18988     predep_objects_RC \
18989     postdep_objects_RC \
18990     predeps_RC \
18991     postdeps_RC \
18992     compiler_lib_search_path_RC \
18993     archive_cmds_RC \
18994     archive_expsym_cmds_RC \
18995     postinstall_cmds_RC \
18996     postuninstall_cmds_RC \
18997     old_archive_from_expsyms_cmds_RC \
18998     allow_undefined_flag_RC \
18999     no_undefined_flag_RC \
19000     export_symbols_cmds_RC \
19001     hardcode_libdir_flag_spec_RC \
19002     hardcode_libdir_flag_spec_ld_RC \
19003     hardcode_libdir_separator_RC \
19004     hardcode_automatic_RC \
19005     module_cmds_RC \
19006     module_expsym_cmds_RC \
19007     lt_cv_prog_compiler_c_o_RC \
19008     fix_srcfile_path_RC \
19009     exclude_expsyms_RC \
19010     include_expsyms_RC; do
19012     case $var in
19013     old_archive_cmds_RC | \
19014     old_archive_from_new_cmds_RC | \
19015     archive_cmds_RC | \
19016     archive_expsym_cmds_RC | \
19017     module_cmds_RC | \
19018     module_expsym_cmds_RC | \
19019     old_archive_from_expsyms_cmds_RC | \
19020     export_symbols_cmds_RC | \
19021     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19022     postinstall_cmds | postuninstall_cmds | \
19023     old_postinstall_cmds | old_postuninstall_cmds | \
19024     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19025       # Double-quote double-evaled strings.
19026       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19027       ;;
19028     *)
19029       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19030       ;;
19031     esac
19032   done
19034   case $lt_echo in
19035   *'\$0 --fallback-echo"')
19036     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19037     ;;
19038   esac
19040 cfgfile="$ofile"
19042   cat <<__EOF__ >> "$cfgfile"
19043 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19045 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19047 # Shell to use when invoking shell scripts.
19048 SHELL=$lt_SHELL
19050 # Whether or not to build shared libraries.
19051 build_libtool_libs=$enable_shared
19053 # Whether or not to build static libraries.
19054 build_old_libs=$enable_static
19056 # Whether or not to add -lc for building shared libraries.
19057 build_libtool_need_lc=$archive_cmds_need_lc_RC
19059 # Whether or not to disallow shared libs when runtime libs are static
19060 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19062 # Whether or not to optimize for fast installation.
19063 fast_install=$enable_fast_install
19065 # The host system.
19066 host_alias=$host_alias
19067 host=$host
19068 host_os=$host_os
19070 # The build system.
19071 build_alias=$build_alias
19072 build=$build
19073 build_os=$build_os
19075 # An echo program that does not interpret backslashes.
19076 echo=$lt_echo
19078 # The archiver.
19079 AR=$lt_AR
19080 AR_FLAGS=$lt_AR_FLAGS
19082 # A C compiler.
19083 LTCC=$lt_LTCC
19085 # LTCC compiler flags.
19086 LTCFLAGS=$lt_LTCFLAGS
19088 # A language-specific compiler.
19089 CC=$lt_compiler_RC
19091 # Is the compiler the GNU C compiler?
19092 with_gcc=$GCC_RC
19094 # An ERE matcher.
19095 EGREP=$lt_EGREP
19097 # The linker used to build libraries.
19098 LD=$lt_LD_RC
19100 # Whether we need hard or soft links.
19101 LN_S=$lt_LN_S
19103 # A BSD-compatible nm program.
19104 NM=$lt_NM
19106 # A symbol stripping program
19107 STRIP=$lt_STRIP
19109 # Used to examine libraries when file_magic_cmd begins "file"
19110 MAGIC_CMD=$MAGIC_CMD
19112 # Used on cygwin: DLL creation program.
19113 DLLTOOL="$DLLTOOL"
19115 # Used on cygwin: object dumper.
19116 OBJDUMP="$OBJDUMP"
19118 # Used on cygwin: assembler.
19119 AS="$AS"
19121 # The name of the directory that contains temporary libtool files.
19122 objdir=$objdir
19124 # How to create reloadable object files.
19125 reload_flag=$lt_reload_flag
19126 reload_cmds=$lt_reload_cmds
19128 # How to pass a linker flag through the compiler.
19129 wl=$lt_lt_prog_compiler_wl_RC
19131 # Object file suffix (normally "o").
19132 objext="$ac_objext"
19134 # Old archive suffix (normally "a").
19135 libext="$libext"
19137 # Shared library suffix (normally ".so").
19138 shrext_cmds='$shrext_cmds'
19140 # Executable file suffix (normally "").
19141 exeext="$exeext"
19143 # Additional compiler flags for building library objects.
19144 pic_flag=$lt_lt_prog_compiler_pic_RC
19145 pic_mode=$pic_mode
19147 # What is the maximum length of a command?
19148 max_cmd_len=$lt_cv_sys_max_cmd_len
19150 # Does compiler simultaneously support -c and -o options?
19151 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19153 # Must we lock files when doing compilation?
19154 need_locks=$lt_need_locks
19156 # Do we need the lib prefix for modules?
19157 need_lib_prefix=$need_lib_prefix
19159 # Do we need a version for libraries?
19160 need_version=$need_version
19162 # Whether dlopen is supported.
19163 dlopen_support=$enable_dlopen
19165 # Whether dlopen of programs is supported.
19166 dlopen_self=$enable_dlopen_self
19168 # Whether dlopen of statically linked programs is supported.
19169 dlopen_self_static=$enable_dlopen_self_static
19171 # Compiler flag to prevent dynamic linking.
19172 link_static_flag=$lt_lt_prog_compiler_static_RC
19174 # Compiler flag to turn off builtin functions.
19175 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19177 # Compiler flag to allow reflexive dlopens.
19178 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19180 # Compiler flag to generate shared objects directly from archives.
19181 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19183 # Compiler flag to generate thread-safe objects.
19184 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19186 # Library versioning type.
19187 version_type=$version_type
19189 # Format of library name prefix.
19190 libname_spec=$lt_libname_spec
19192 # List of archive names.  First name is the real one, the rest are links.
19193 # The last name is the one that the linker finds with -lNAME.
19194 library_names_spec=$lt_library_names_spec
19196 # The coded name of the library, if different from the real name.
19197 soname_spec=$lt_soname_spec
19199 # Commands used to build and install an old-style archive.
19200 RANLIB=$lt_RANLIB
19201 old_archive_cmds=$lt_old_archive_cmds_RC
19202 old_postinstall_cmds=$lt_old_postinstall_cmds
19203 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19205 # Create an old-style archive from a shared archive.
19206 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19208 # Create a temporary old-style archive to link instead of a shared archive.
19209 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19211 # Commands used to build and install a shared archive.
19212 archive_cmds=$lt_archive_cmds_RC
19213 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19214 postinstall_cmds=$lt_postinstall_cmds
19215 postuninstall_cmds=$lt_postuninstall_cmds
19217 # Commands used to build a loadable module (assumed same as above if empty)
19218 module_cmds=$lt_module_cmds_RC
19219 module_expsym_cmds=$lt_module_expsym_cmds_RC
19221 # Commands to strip libraries.
19222 old_striplib=$lt_old_striplib
19223 striplib=$lt_striplib
19225 # Dependencies to place before the objects being linked to create a
19226 # shared library.
19227 predep_objects=$lt_predep_objects_RC
19229 # Dependencies to place after the objects being linked to create a
19230 # shared library.
19231 postdep_objects=$lt_postdep_objects_RC
19233 # Dependencies to place before the objects being linked to create a
19234 # shared library.
19235 predeps=$lt_predeps_RC
19237 # Dependencies to place after the objects being linked to create a
19238 # shared library.
19239 postdeps=$lt_postdeps_RC
19241 # The library search path used internally by the compiler when linking
19242 # a shared library.
19243 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19245 # Method to check whether dependent libraries are shared objects.
19246 deplibs_check_method=$lt_deplibs_check_method
19248 # Command to use when deplibs_check_method == file_magic.
19249 file_magic_cmd=$lt_file_magic_cmd
19251 # Flag that allows shared libraries with undefined symbols to be built.
19252 allow_undefined_flag=$lt_allow_undefined_flag_RC
19254 # Flag that forces no undefined symbols.
19255 no_undefined_flag=$lt_no_undefined_flag_RC
19257 # Commands used to finish a libtool library installation in a directory.
19258 finish_cmds=$lt_finish_cmds
19260 # Same as above, but a single script fragment to be evaled but not shown.
19261 finish_eval=$lt_finish_eval
19263 # Take the output of nm and produce a listing of raw symbols and C names.
19264 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19266 # Transform the output of nm in a proper C declaration
19267 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19269 # Transform the output of nm in a C name address pair
19270 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19272 # This is the shared library runtime path variable.
19273 runpath_var=$runpath_var
19275 # This is the shared library path variable.
19276 shlibpath_var=$shlibpath_var
19278 # Is shlibpath searched before the hard-coded library search path?
19279 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19281 # How to hardcode a shared library path into an executable.
19282 hardcode_action=$hardcode_action_RC
19284 # Whether we should hardcode library paths into libraries.
19285 hardcode_into_libs=$hardcode_into_libs
19287 # Flag to hardcode \$libdir into a binary during linking.
19288 # This must work even if \$libdir does not exist.
19289 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19291 # If ld is used when linking, flag to hardcode \$libdir into
19292 # a binary during linking. This must work even if \$libdir does
19293 # not exist.
19294 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19296 # Whether we need a single -rpath flag with a separated argument.
19297 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19299 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19300 # resulting binary.
19301 hardcode_direct=$hardcode_direct_RC
19303 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19304 # resulting binary.
19305 hardcode_minus_L=$hardcode_minus_L_RC
19307 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19308 # the resulting binary.
19309 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19311 # Set to yes if building a shared library automatically hardcodes DIR into the library
19312 # and all subsequent libraries and executables linked against it.
19313 hardcode_automatic=$hardcode_automatic_RC
19315 # Variables whose values should be saved in libtool wrapper scripts and
19316 # restored at relink time.
19317 variables_saved_for_relink="$variables_saved_for_relink"
19319 # Whether libtool must link a program against all its dependency libraries.
19320 link_all_deplibs=$link_all_deplibs_RC
19322 # Compile-time system search path for libraries
19323 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19325 # Run-time system search path for libraries
19326 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19328 # Fix the shell variable \$srcfile for the compiler.
19329 fix_srcfile_path=$lt_fix_srcfile_path
19331 # Set to yes if exported symbols are required.
19332 always_export_symbols=$always_export_symbols_RC
19334 # The commands to list exported symbols.
19335 export_symbols_cmds=$lt_export_symbols_cmds_RC
19337 # The commands to extract the exported symbol list from a shared archive.
19338 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19340 # Symbols that should not be listed in the preloaded symbols.
19341 exclude_expsyms=$lt_exclude_expsyms_RC
19343 # Symbols that must always be exported.
19344 include_expsyms=$lt_include_expsyms_RC
19346 # ### END LIBTOOL TAG CONFIG: $tagname
19348 __EOF__
19351 else
19352   # If there is no Makefile yet, we rely on a make rule to execute
19353   # `config.status --recheck' to rerun these tests and create the
19354   # libtool script then.
19355   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19356   if test -f "$ltmain_in"; then
19357     test -f Makefile && make "$ltmain"
19358   fi
19362 ac_ext=c
19363 ac_cpp='$CPP $CPPFLAGS'
19364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19368 CC="$lt_save_CC"
19370         ;;
19372       *)
19373         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19374 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19375    { (exit 1); exit 1; }; }
19376         ;;
19377       esac
19379       # Append the new tag name to the list of available tags.
19380       if test -n "$tagname" ; then
19381       available_tags="$available_tags $tagname"
19382     fi
19383     fi
19384   done
19385   IFS="$lt_save_ifs"
19387   # Now substitute the updated list of available tags.
19388   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19389     mv "${ofile}T" "$ofile"
19390     chmod +x "$ofile"
19391   else
19392     rm -f "${ofile}T"
19393     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19394 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19395    { (exit 1); exit 1; }; }
19396   fi
19401 # This can be used to rebuild libtool when needed
19402 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19404 # Always use our own libtool.
19405 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19407 # Prevent multiple expansion
19419   
19421   
19424   
19425        
19426        
19428 LIBTOOL="$LIBTOOL --silent"
19430 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19431 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19432 if test "${ac_cv_header_stdc+set}" = set; then
19433   echo $ECHO_N "(cached) $ECHO_C" >&6
19434 else
19435   cat >conftest.$ac_ext <<_ACEOF
19436 /* confdefs.h.  */
19437 _ACEOF
19438 cat confdefs.h >>conftest.$ac_ext
19439 cat >>conftest.$ac_ext <<_ACEOF
19440 /* end confdefs.h.  */
19441 #include <stdlib.h>
19442 #include <stdarg.h>
19443 #include <string.h>
19444 #include <float.h>
19447 main ()
19450   ;
19451   return 0;
19453 _ACEOF
19454 rm -f conftest.$ac_objext
19455 if { (ac_try="$ac_compile"
19456 case "(($ac_try" in
19457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19458   *) ac_try_echo=$ac_try;;
19459 esac
19460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19461   (eval "$ac_compile") 2>conftest.er1
19462   ac_status=$?
19463   grep -v '^ *+' conftest.er1 >conftest.err
19464   rm -f conftest.er1
19465   cat conftest.err >&5
19466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467   (exit $ac_status); } && {
19468          test -z "$ac_c_werror_flag" ||
19469          test ! -s conftest.err
19470        } && test -s conftest.$ac_objext; then
19471   ac_cv_header_stdc=yes
19472 else
19473   echo "$as_me: failed program was:" >&5
19474 sed 's/^/| /' conftest.$ac_ext >&5
19476         ac_cv_header_stdc=no
19479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19481 if test $ac_cv_header_stdc = yes; then
19482   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19483   cat >conftest.$ac_ext <<_ACEOF
19484 /* confdefs.h.  */
19485 _ACEOF
19486 cat confdefs.h >>conftest.$ac_ext
19487 cat >>conftest.$ac_ext <<_ACEOF
19488 /* end confdefs.h.  */
19489 #include <string.h>
19491 _ACEOF
19492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19493   $EGREP "memchr" >/dev/null 2>&1; then
19494   :
19495 else
19496   ac_cv_header_stdc=no
19498 rm -f conftest*
19502 if test $ac_cv_header_stdc = yes; then
19503   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19504   cat >conftest.$ac_ext <<_ACEOF
19505 /* confdefs.h.  */
19506 _ACEOF
19507 cat confdefs.h >>conftest.$ac_ext
19508 cat >>conftest.$ac_ext <<_ACEOF
19509 /* end confdefs.h.  */
19510 #include <stdlib.h>
19512 _ACEOF
19513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19514   $EGREP "free" >/dev/null 2>&1; then
19515   :
19516 else
19517   ac_cv_header_stdc=no
19519 rm -f conftest*
19523 if test $ac_cv_header_stdc = yes; then
19524   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19525   if test "$cross_compiling" = yes; then
19526   :
19527 else
19528   cat >conftest.$ac_ext <<_ACEOF
19529 /* confdefs.h.  */
19530 _ACEOF
19531 cat confdefs.h >>conftest.$ac_ext
19532 cat >>conftest.$ac_ext <<_ACEOF
19533 /* end confdefs.h.  */
19534 #include <ctype.h>
19535 #include <stdlib.h>
19536 #if ((' ' & 0x0FF) == 0x020)
19537 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19538 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19539 #else
19540 # define ISLOWER(c) \
19541                    (('a' <= (c) && (c) <= 'i') \
19542                      || ('j' <= (c) && (c) <= 'r') \
19543                      || ('s' <= (c) && (c) <= 'z'))
19544 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19545 #endif
19547 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19549 main ()
19551   int i;
19552   for (i = 0; i < 256; i++)
19553     if (XOR (islower (i), ISLOWER (i))
19554         || toupper (i) != TOUPPER (i))
19555       return 2;
19556   return 0;
19558 _ACEOF
19559 rm -f conftest$ac_exeext
19560 if { (ac_try="$ac_link"
19561 case "(($ac_try" in
19562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19563   *) ac_try_echo=$ac_try;;
19564 esac
19565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19566   (eval "$ac_link") 2>&5
19567   ac_status=$?
19568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19570   { (case "(($ac_try" in
19571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572   *) ac_try_echo=$ac_try;;
19573 esac
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575   (eval "$ac_try") 2>&5
19576   ac_status=$?
19577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578   (exit $ac_status); }; }; then
19579   :
19580 else
19581   echo "$as_me: program exited with status $ac_status" >&5
19582 echo "$as_me: failed program was:" >&5
19583 sed 's/^/| /' conftest.$ac_ext >&5
19585 ( exit $ac_status )
19586 ac_cv_header_stdc=no
19588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19594 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19595 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19596 if test $ac_cv_header_stdc = yes; then
19597   
19598 cat >>confdefs.h <<\_ACEOF
19599 @%:@define STDC_HEADERS 1
19600 _ACEOF
19605 GAIM_MIN=pidgin_version_min
19606 GAIM_MAX=2.0.0
19610 # tell pkgconfig to look in the same prefix we're installing this to,
19611 # as that's likely where gaim will be found if it's not in the default
19612 # pkgconfig path
19613 PREFIX=$ac_default_prefix
19614 if test "$prefix" != "NONE"; then
19615    PREFIX=$prefix
19618 PKG_CONFIG_PATH="$PKG_CONFIG_PATH":"$PREFIX/lib/pkgconfig"
19619 export PKG_CONFIG_PATH
19621 # debug mode
19622 # Check whether --enable-debug was given.
19623 if test "${enable_debug+set}" = set; then
19624   enableval=$enable_debug; 
19625 else
19626   enable_debug=no
19630 if test "$enable_debug" = yes; then
19631    
19632 cat >>confdefs.h <<\_ACEOF
19633 @%:@define DEBUG 1
19634 _ACEOF
19638 # Check for Pidgin
19641 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19642         if test -n "$ac_tool_prefix"; then
19643   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19644 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19647 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19648   echo $ECHO_N "(cached) $ECHO_C" >&6
19649 else
19650   case $PKG_CONFIG in
19651   [\\/]* | ?:[\\/]*)
19652   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19653   ;;
19654   *)
19655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19656 for as_dir in $PATH
19658   IFS=$as_save_IFS
19659   test -z "$as_dir" && as_dir=.
19660   for ac_exec_ext in '' $ac_executable_extensions; do
19661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19662     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19664     break 2
19665   fi
19666 done
19667 done
19668 IFS=$as_save_IFS
19670   ;;
19671 esac
19673 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19674 if test -n "$PKG_CONFIG"; then
19675   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19676 echo "${ECHO_T}$PKG_CONFIG" >&6; }
19677 else
19678   { echo "$as_me:$LINENO: result: no" >&5
19679 echo "${ECHO_T}no" >&6; }
19684 if test -z "$ac_cv_path_PKG_CONFIG"; then
19685   ac_pt_PKG_CONFIG=$PKG_CONFIG
19686   # Extract the first word of "pkg-config", so it can be a program name with args.
19687 set dummy pkg-config; ac_word=$2
19688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19690 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19691   echo $ECHO_N "(cached) $ECHO_C" >&6
19692 else
19693   case $ac_pt_PKG_CONFIG in
19694   [\\/]* | ?:[\\/]*)
19695   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19696   ;;
19697   *)
19698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19699 for as_dir in $PATH
19701   IFS=$as_save_IFS
19702   test -z "$as_dir" && as_dir=.
19703   for ac_exec_ext in '' $ac_executable_extensions; do
19704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19705     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19707     break 2
19708   fi
19709 done
19710 done
19711 IFS=$as_save_IFS
19713   ;;
19714 esac
19716 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19717 if test -n "$ac_pt_PKG_CONFIG"; then
19718   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19719 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
19720 else
19721   { echo "$as_me:$LINENO: result: no" >&5
19722 echo "${ECHO_T}no" >&6; }
19725   if test "x$ac_pt_PKG_CONFIG" = x; then
19726     PKG_CONFIG=""
19727   else
19728     case $cross_compiling:$ac_tool_warned in
19729 yes:)
19730 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19731 whose name does not start with the host triplet.  If you think this
19732 configuration is useful to you, please write to autoconf@gnu.org." >&5
19733 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19734 whose name does not start with the host triplet.  If you think this
19735 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19736 ac_tool_warned=yes ;;
19737 esac
19738     PKG_CONFIG=$ac_pt_PKG_CONFIG
19739   fi
19740 else
19741   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19745 if test -n "$PKG_CONFIG"; then
19746         _pkg_min_version=0.9.0
19747         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19748 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
19749         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19750                 { echo "$as_me:$LINENO: result: yes" >&5
19751 echo "${ECHO_T}yes" >&6; }
19752         else
19753                 { echo "$as_me:$LINENO: result: no" >&5
19754 echo "${ECHO_T}no" >&6; }
19755                 PKG_CONFIG=""
19756         fi
19757                 
19760 pkg_failed=no
19761 { echo "$as_me:$LINENO: checking for libpurple" >&5
19762 echo $ECHO_N "checking for libpurple... $ECHO_C" >&6; }
19764 if test -n "$libpurple_CFLAGS"; then
19765     pkg_cv_libpurple_CFLAGS="$libpurple_CFLAGS"
19766  elif test -n "$PKG_CONFIG"; then
19767     if test -n "$PKG_CONFIG" && \
19768     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pidgin >= 2.0.0\"") >&5
19769   ($PKG_CONFIG --exists --print-errors "pidgin >= 2.0.0") 2>&5
19770   ac_status=$?
19771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772   (exit $ac_status); }; then
19773   pkg_cv_libpurple_CFLAGS=`$PKG_CONFIG --cflags "pidgin >= 2.0.0" 2>/dev/null`
19774 else
19775   pkg_failed=yes
19777  else
19778     pkg_failed=untried
19780 if test -n "$libpurple_LIBS"; then
19781     pkg_cv_libpurple_LIBS="$libpurple_LIBS"
19782  elif test -n "$PKG_CONFIG"; then
19783     if test -n "$PKG_CONFIG" && \
19784     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pidgin >= 2.0.0\"") >&5
19785   ($PKG_CONFIG --exists --print-errors "pidgin >= 2.0.0") 2>&5
19786   ac_status=$?
19787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788   (exit $ac_status); }; then
19789   pkg_cv_libpurple_LIBS=`$PKG_CONFIG --libs "pidgin >= 2.0.0" 2>/dev/null`
19790 else
19791   pkg_failed=yes
19793  else
19794     pkg_failed=untried
19799 if test $pkg_failed = yes; then
19800         
19801 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19802         _pkg_short_errors_supported=yes
19803 else
19804         _pkg_short_errors_supported=no
19806         if test $_pkg_short_errors_supported = yes; then
19807                 libpurple_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pidgin >= 2.0.0" 2>&1`
19808         else 
19809                 libpurple_PKG_ERRORS=`$PKG_CONFIG --print-errors "pidgin >= 2.0.0" 2>&1`
19810         fi
19811         # Put the nasty error message in config.log where it belongs
19812         echo "$libpurple_PKG_ERRORS" >&5
19814         { { echo "$as_me:$LINENO: error: Package requirements (pidgin >= 2.0.0) were not met:
19816 $libpurple_PKG_ERRORS
19818 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19819 installed software in a non-standard prefix.
19821 Alternatively, you may set the environment variables libpurple_CFLAGS
19822 and libpurple_LIBS to avoid the need to call pkg-config.
19823 See the pkg-config man page for more details.
19824 " >&5
19825 echo "$as_me: error: Package requirements (pidgin >= 2.0.0) were not met:
19827 $libpurple_PKG_ERRORS
19829 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19830 installed software in a non-standard prefix.
19832 Alternatively, you may set the environment variables libpurple_CFLAGS
19833 and libpurple_LIBS to avoid the need to call pkg-config.
19834 See the pkg-config man page for more details.
19835 " >&2;}
19836    { (exit 1); exit 1; }; }
19837 elif test $pkg_failed = untried; then
19838         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
19839 is in your PATH or set the PKG_CONFIG environment variable to the full
19840 path to pkg-config.
19842 Alternatively, you may set the environment variables libpurple_CFLAGS
19843 and libpurple_LIBS to avoid the need to call pkg-config.
19844 See the pkg-config man page for more details.
19846 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19847 See \`config.log' for more details." >&5
19848 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
19849 is in your PATH or set the PKG_CONFIG environment variable to the full
19850 path to pkg-config.
19852 Alternatively, you may set the environment variables libpurple_CFLAGS
19853 and libpurple_LIBS to avoid the need to call pkg-config.
19854 See the pkg-config man page for more details.
19856 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19857 See \`config.log' for more details." >&2;}
19858    { (exit 1); exit 1; }; }
19859 else
19860         libpurple_CFLAGS=$pkg_cv_libpurple_CFLAGS
19861         libpurple_LIBS=$pkg_cv_libpurple_LIBS
19862         { echo "$as_me:$LINENO: result: yes" >&5
19863 echo "${ECHO_T}yes" >&6; }
19864         
19865         
19866 cat >>confdefs.h <<\_ACEOF
19867 @%:@define HAVE_PIDGIN 1
19868 _ACEOF
19873 PIDGIN_CFLAGS=`$PKG_CONFIG --cflags purple`
19874 PIDGIN_LIBS=`$PKG_CONFIG --libs purple`
19879 { echo "$as_me:$LINENO: checking for inet_aton" >&5
19880 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
19881 if test "${ac_cv_func_inet_aton+set}" = set; then
19882   echo $ECHO_N "(cached) $ECHO_C" >&6
19883 else
19884   cat >conftest.$ac_ext <<_ACEOF
19885 /* confdefs.h.  */
19886 _ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h.  */
19890 /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
19891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19892 #define inet_aton innocuous_inet_aton
19894 /* System header to define __stub macros and hopefully few prototypes,
19895     which can conflict with char inet_aton (); below.
19896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19897     <limits.h> exists even on freestanding compilers.  */
19899 #ifdef __STDC__
19900 # include <limits.h>
19901 #else
19902 # include <assert.h>
19903 #endif
19905 #undef inet_aton
19907 /* Override any GCC internal prototype to avoid an error.
19908    Use char because int might match the return type of a GCC
19909    builtin and then its argument prototype would still apply.  */
19910 #ifdef __cplusplus
19911 extern "C"
19912 #endif
19913 char inet_aton ();
19914 /* The GNU C library defines this for functions which it implements
19915     to always fail with ENOSYS.  Some functions are actually named
19916     something starting with __ and the normal name is an alias.  */
19917 #if defined __stub_inet_aton || defined __stub___inet_aton
19918 choke me
19919 #endif
19922 main ()
19924 return inet_aton ();
19925   ;
19926   return 0;
19928 _ACEOF
19929 rm -f conftest.$ac_objext conftest$ac_exeext
19930 if { (ac_try="$ac_link"
19931 case "(($ac_try" in
19932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19933   *) ac_try_echo=$ac_try;;
19934 esac
19935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19936   (eval "$ac_link") 2>conftest.er1
19937   ac_status=$?
19938   grep -v '^ *+' conftest.er1 >conftest.err
19939   rm -f conftest.er1
19940   cat conftest.err >&5
19941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942   (exit $ac_status); } && {
19943          test -z "$ac_c_werror_flag" ||
19944          test ! -s conftest.err
19945        } && test -s conftest$ac_exeext &&
19946        $as_test_x conftest$ac_exeext; then
19947   ac_cv_func_inet_aton=yes
19948 else
19949   echo "$as_me: failed program was:" >&5
19950 sed 's/^/| /' conftest.$ac_ext >&5
19952         ac_cv_func_inet_aton=no
19955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19956       conftest$ac_exeext conftest.$ac_ext
19958 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
19959 echo "${ECHO_T}$ac_cv_func_inet_aton" >&6; }
19960 if test $ac_cv_func_inet_aton = yes; then
19961   :
19962 else
19963   
19964 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
19965 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
19966 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
19967   echo $ECHO_N "(cached) $ECHO_C" >&6
19968 else
19969   ac_check_lib_save_LIBS=$LIBS
19970 LIBS="-lresolv  $LIBS"
19971 cat >conftest.$ac_ext <<_ACEOF
19972 /* confdefs.h.  */
19973 _ACEOF
19974 cat confdefs.h >>conftest.$ac_ext
19975 cat >>conftest.$ac_ext <<_ACEOF
19976 /* end confdefs.h.  */
19978 /* Override any GCC internal prototype to avoid an error.
19979    Use char because int might match the return type of a GCC
19980    builtin and then its argument prototype would still apply.  */
19981 #ifdef __cplusplus
19982 extern "C"
19983 #endif
19984 char inet_aton ();
19986 main ()
19988 return inet_aton ();
19989   ;
19990   return 0;
19992 _ACEOF
19993 rm -f conftest.$ac_objext conftest$ac_exeext
19994 if { (ac_try="$ac_link"
19995 case "(($ac_try" in
19996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997   *) ac_try_echo=$ac_try;;
19998 esac
19999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000   (eval "$ac_link") 2>conftest.er1
20001   ac_status=$?
20002   grep -v '^ *+' conftest.er1 >conftest.err
20003   rm -f conftest.er1
20004   cat conftest.err >&5
20005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006   (exit $ac_status); } && {
20007          test -z "$ac_c_werror_flag" ||
20008          test ! -s conftest.err
20009        } && test -s conftest$ac_exeext &&
20010        $as_test_x conftest$ac_exeext; then
20011   ac_cv_lib_resolv_inet_aton=yes
20012 else
20013   echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20016         ac_cv_lib_resolv_inet_aton=no
20019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20020       conftest$ac_exeext conftest.$ac_ext
20021 LIBS=$ac_check_lib_save_LIBS
20023 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20024 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20025 if test $ac_cv_lib_resolv_inet_aton = yes; then
20026   cat >>confdefs.h <<_ACEOF
20027 @%:@define HAVE_LIBRESOLV 1
20028 _ACEOF
20030   LIBS="-lresolv $LIBS"
20032 else
20033   { { echo "$as_me:$LINENO: error: inet_aton not found" >&5
20034 echo "$as_me: error: inet_aton not found" >&2;}
20035    { (exit 1); exit 1; }; }
20041 SIPE_LIBA=`$PKG_CONFIG sipe --variable=libarchive`
20044 # Check whether --enable-static-sipe was given.
20045 if test "${enable_static_sipe+set}" = set; then
20046   enableval=$enable_static_sipe; sipe_static="yes"
20047 else
20048   sipe_static="no"
20052  if test $sipe_static = yes; then
20053   SIPE_STATIC_TRUE=
20054   SIPE_STATIC_FALSE='#'
20055 else
20056   SIPE_STATIC_TRUE='#'
20057   SIPE_STATIC_FALSE=
20061 # substitutions and generated files
20062 ac_config_files="$ac_config_files src/config.h Makefile pixmaps/Makefile pixmaps/16/Makefile pixmaps/22/Makefile pixmaps/48/Makefile src/Makefile"
20065 cat >confcache <<\_ACEOF
20066 # This file is a shell script that caches the results of configure
20067 # tests run on this system so they can be shared between configure
20068 # scripts and configure runs, see configure's option --config-cache.
20069 # It is not useful on other systems.  If it contains results you don't
20070 # want to keep, you may remove or edit it.
20072 # config.status only pays attention to the cache file if you give it
20073 # the --recheck option to rerun configure.
20075 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20076 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20077 # following values.
20079 _ACEOF
20081 # The following way of writing the cache mishandles newlines in values,
20082 # but we know of no workaround that is simple, portable, and efficient.
20083 # So, we kill variables containing newlines.
20084 # Ultrix sh set writes to stderr and can't be redirected directly,
20085 # and sets the high bit in the cache file unless we assign to the vars.
20087   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20088     eval ac_val=\$$ac_var
20089     case $ac_val in #(
20090     *${as_nl}*)
20091       case $ac_var in #(
20092       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20093 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20094       esac
20095       case $ac_var in #(
20096       _ | IFS | as_nl) ;; #(
20097       *) $as_unset $ac_var ;;
20098       esac ;;
20099     esac
20100   done
20102   (set) 2>&1 |
20103     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20104     *${as_nl}ac_space=\ *)
20105       # `set' does not quote correctly, so add quotes (double-quote
20106       # substitution turns \\\\ into \\, and sed turns \\ into \).
20107       sed -n \
20108         "s/'/'\\\\''/g;
20109           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20110       ;; #(
20111     *)
20112       # `set' quotes correctly as required by POSIX, so do not add quotes.
20113       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20114       ;;
20115     esac |
20116     sort
20117 ) |
20118   sed '
20119      /^ac_cv_env_/b end
20120      t clear
20121      :clear
20122      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20123      t end
20124      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20125      :end' >>confcache
20126 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20127   if test -w "$cache_file"; then
20128     test "x$cache_file" != "x/dev/null" &&
20129       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20130 echo "$as_me: updating cache $cache_file" >&6;}
20131     cat confcache >$cache_file
20132   else
20133     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20134 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20135   fi
20137 rm -f confcache
20139 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20140 # Let make expand exec_prefix.
20141 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20143 # Transform confdefs.h into DEFS.
20144 # Protect against shell expansion while executing Makefile rules.
20145 # Protect against Makefile macro expansion.
20147 # If the first sed substitution is executed (which looks for macros that
20148 # take arguments), then branch to the quote section.  Otherwise,
20149 # look for a macro that doesn't take arguments.
20150 ac_script='
20151 t clear
20152 :clear
20153 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
20154 t quote
20155 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
20156 t quote
20157 b any
20158 :quote
20159 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20160 s/\[/\\&/g
20161 s/\]/\\&/g
20162 s/\$/$$/g
20164 :any
20166         g
20167         s/^\n//
20168         s/\n/ /g
20169         p
20172 DEFS=`sed -n "$ac_script" confdefs.h`
20175 ac_libobjs=
20176 ac_ltlibobjs=
20177 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
20178   # 1. Remove the extension, and $U if already installed.
20179   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20180   ac_i=`echo "$ac_i" | sed "$ac_script"`
20181   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20182   #    will be set to the directory where LIBOBJS objects are built.
20183   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20184   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20185 done
20186 LIB@&t@OBJS=$ac_libobjs
20188 LTLIBOBJS=$ac_ltlibobjs
20191 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20192   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20193 Usually this means the macro was only invoked conditionally." >&5
20194 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20195 Usually this means the macro was only invoked conditionally." >&2;}
20196    { (exit 1); exit 1; }; }
20198 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20199   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20200 Usually this means the macro was only invoked conditionally." >&5
20201 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20202 Usually this means the macro was only invoked conditionally." >&2;}
20203    { (exit 1); exit 1; }; }
20205 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20206   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20207 Usually this means the macro was only invoked conditionally." >&5
20208 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20209 Usually this means the macro was only invoked conditionally." >&2;}
20210    { (exit 1); exit 1; }; }
20212 if test -z "${SIPE_STATIC_TRUE}" && test -z "${SIPE_STATIC_FALSE}"; then
20213   { { echo "$as_me:$LINENO: error: conditional \"SIPE_STATIC\" was never defined.
20214 Usually this means the macro was only invoked conditionally." >&5
20215 echo "$as_me: error: conditional \"SIPE_STATIC\" was never defined.
20216 Usually this means the macro was only invoked conditionally." >&2;}
20217    { (exit 1); exit 1; }; }
20220 : ${CONFIG_STATUS=./config.status}
20221 ac_clean_files_save=$ac_clean_files
20222 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20223 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20224 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20225 cat >$CONFIG_STATUS <<_ACEOF
20226 #! $SHELL
20227 # Generated by $as_me.
20228 # Run this file to recreate the current configuration.
20229 # Compiler output produced by configure, useful for debugging
20230 # configure, is in config.log if it exists.
20232 debug=false
20233 ac_cs_recheck=false
20234 ac_cs_silent=false
20235 SHELL=\${CONFIG_SHELL-$SHELL}
20236 _ACEOF
20238 cat >>$CONFIG_STATUS <<\_ACEOF
20239 ## --------------------- ##
20240 ## M4sh Initialization.  ##
20241 ## --------------------- ##
20243 # Be more Bourne compatible
20244 DUALCASE=1; export DUALCASE # for MKS sh
20245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20246   emulate sh
20247   NULLCMD=:
20248   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20249   # is contrary to our usage.  Disable this feature.
20250   alias -g '${1+"$@"}'='"$@"'
20251   setopt NO_GLOB_SUBST
20252 else
20253   case `(set -o) 2>/dev/null` in
20254   *posix*) set -o posix ;;
20255 esac
20262 # PATH needs CR
20263 # Avoid depending upon Character Ranges.
20264 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20265 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20266 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20267 as_cr_digits='0123456789'
20268 as_cr_alnum=$as_cr_Letters$as_cr_digits
20270 # The user is always right.
20271 if test "${PATH_SEPARATOR+set}" != set; then
20272   echo "#! /bin/sh" >conf$$.sh
20273   echo  "exit 0"   >>conf$$.sh
20274   chmod +x conf$$.sh
20275   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20276     PATH_SEPARATOR=';'
20277   else
20278     PATH_SEPARATOR=:
20279   fi
20280   rm -f conf$$.sh
20283 # Support unset when possible.
20284 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20285   as_unset=unset
20286 else
20287   as_unset=false
20291 # IFS
20292 # We need space, tab and new line, in precisely that order.  Quoting is
20293 # there to prevent editors from complaining about space-tab.
20294 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20295 # splitting by setting IFS to empty value.)
20296 as_nl='
20298 IFS=" ""        $as_nl"
20300 # Find who we are.  Look in the path if we contain no directory separator.
20301 case $0 in
20302   *[\\/]* ) as_myself=$0 ;;
20303   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20304 for as_dir in $PATH
20306   IFS=$as_save_IFS
20307   test -z "$as_dir" && as_dir=.
20308   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20309 done
20310 IFS=$as_save_IFS
20312      ;;
20313 esac
20314 # We did not find ourselves, most probably we were run as `sh COMMAND'
20315 # in which case we are not to be found in the path.
20316 if test "x$as_myself" = x; then
20317   as_myself=$0
20319 if test ! -f "$as_myself"; then
20320   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20321   { (exit 1); exit 1; }
20324 # Work around bugs in pre-3.0 UWIN ksh.
20325 for as_var in ENV MAIL MAILPATH
20326 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20327 done
20328 PS1='$ '
20329 PS2='> '
20330 PS4='+ '
20332 # NLS nuisances.
20333 for as_var in \
20334   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20335   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20336   LC_TELEPHONE LC_TIME
20338   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20339     eval $as_var=C; export $as_var
20340   else
20341     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20342   fi
20343 done
20345 # Required to use basename.
20346 if expr a : '\(a\)' >/dev/null 2>&1 &&
20347    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20348   as_expr=expr
20349 else
20350   as_expr=false
20353 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20354   as_basename=basename
20355 else
20356   as_basename=false
20360 # Name of the executable.
20361 as_me=`$as_basename -- "$0" ||
20362 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20363          X"$0" : 'X\(//\)$' \| \
20364          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20365 echo X/"$0" |
20366     sed '/^.*\/\([^/][^/]*\)\/*$/{
20367             s//\1/
20368             q
20369           }
20370           /^X\/\(\/\/\)$/{
20371             s//\1/
20372             q
20373           }
20374           /^X\/\(\/\).*/{
20375             s//\1/
20376             q
20377           }
20378           s/.*/./; q'`
20380 # CDPATH.
20381 $as_unset CDPATH
20385   as_lineno_1=$LINENO
20386   as_lineno_2=$LINENO
20387   test "x$as_lineno_1" != "x$as_lineno_2" &&
20388   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20390   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20391   # uniformly replaced by the line number.  The first 'sed' inserts a
20392   # line-number line after each line using $LINENO; the second 'sed'
20393   # does the real work.  The second script uses 'N' to pair each
20394   # line-number line with the line containing $LINENO, and appends
20395   # trailing '-' during substitution so that $LINENO is not a special
20396   # case at line end.
20397   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20398   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20399   # E. McMahon (1931-1989) for sed's syntax.  :-)
20400   sed -n '
20401     p
20402     /[$]LINENO/=
20403   ' <$as_myself |
20404     sed '
20405       s/[$]LINENO.*/&-/
20406       t lineno
20407       b
20408       :lineno
20409       N
20410       :loop
20411       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20412       t loop
20413       s/-\n.*//
20414     ' >$as_me.lineno &&
20415   chmod +x "$as_me.lineno" ||
20416     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20417    { (exit 1); exit 1; }; }
20419   # Don't try to exec as it changes $[0], causing all sort of problems
20420   # (the dirname of $[0] is not the place where we might find the
20421   # original and so on.  Autoconf is especially sensitive to this).
20422   . "./$as_me.lineno"
20423   # Exit status is that of the last command.
20424   exit
20428 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20429   as_dirname=dirname
20430 else
20431   as_dirname=false
20434 ECHO_C= ECHO_N= ECHO_T=
20435 case `echo -n x` in
20436 -n*)
20437   case `echo 'x\c'` in
20438   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20439   *)   ECHO_C='\c';;
20440   esac;;
20442   ECHO_N='-n';;
20443 esac
20445 if expr a : '\(a\)' >/dev/null 2>&1 &&
20446    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20447   as_expr=expr
20448 else
20449   as_expr=false
20452 rm -f conf$$ conf$$.exe conf$$.file
20453 if test -d conf$$.dir; then
20454   rm -f conf$$.dir/conf$$.file
20455 else
20456   rm -f conf$$.dir
20457   mkdir conf$$.dir
20459 echo >conf$$.file
20460 if ln -s conf$$.file conf$$ 2>/dev/null; then
20461   as_ln_s='ln -s'
20462   # ... but there are two gotchas:
20463   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20464   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20465   # In both cases, we have to default to `cp -p'.
20466   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20467     as_ln_s='cp -p'
20468 elif ln conf$$.file conf$$ 2>/dev/null; then
20469   as_ln_s=ln
20470 else
20471   as_ln_s='cp -p'
20473 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20474 rmdir conf$$.dir 2>/dev/null
20476 if mkdir -p . 2>/dev/null; then
20477   as_mkdir_p=:
20478 else
20479   test -d ./-p && rmdir ./-p
20480   as_mkdir_p=false
20483 if test -x / >/dev/null 2>&1; then
20484   as_test_x='test -x'
20485 else
20486   if ls -dL / >/dev/null 2>&1; then
20487     as_ls_L_option=L
20488   else
20489     as_ls_L_option=
20490   fi
20491   as_test_x='
20492     eval sh -c '\''
20493       if test -d "$1"; then
20494         test -d "$1/.";
20495       else
20496         case $1 in
20497         -*)set "./$1";;
20498         esac;
20499         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20500         ???[sx]*):;;*)false;;esac;fi
20501     '\'' sh
20502   '
20504 as_executable_p=$as_test_x
20506 # Sed expression to map a string onto a valid CPP name.
20507 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20509 # Sed expression to map a string onto a valid variable name.
20510 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20513 exec 6>&1
20515 # Save the log message, to keep $[0] and so on meaningful, and to
20516 # report actual input values of CONFIG_FILES etc. instead of their
20517 # values after options handling.
20518 ac_log="
20519 This file was extended by $as_me, which was
20520 generated by GNU Autoconf 2.61.  Invocation command line was
20522   CONFIG_FILES    = $CONFIG_FILES
20523   CONFIG_HEADERS  = $CONFIG_HEADERS
20524   CONFIG_LINKS    = $CONFIG_LINKS
20525   CONFIG_COMMANDS = $CONFIG_COMMANDS
20526   $ $0 $@
20528 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20531 _ACEOF
20533 cat >>$CONFIG_STATUS <<_ACEOF
20534 # Files that config.status was made for.
20535 config_files="$ac_config_files"
20536 config_commands="$ac_config_commands"
20538 _ACEOF
20540 cat >>$CONFIG_STATUS <<\_ACEOF
20541 ac_cs_usage="\
20542 \`$as_me' instantiates files from templates according to the
20543 current configuration.
20545 Usage: $0 [OPTIONS] [FILE]...
20547   -h, --help       print this help, then exit
20548   -V, --version    print version number and configuration settings, then exit
20549   -q, --quiet      do not print progress messages
20550   -d, --debug      don't remove temporary files
20551       --recheck    update $as_me by reconfiguring in the same conditions
20552   --file=FILE[:TEMPLATE]
20553                    instantiate the configuration file FILE
20555 Configuration files:
20556 $config_files
20558 Configuration commands:
20559 $config_commands
20561 Report bugs to <bug-autoconf@gnu.org>."
20563 _ACEOF
20564 cat >>$CONFIG_STATUS <<_ACEOF
20565 ac_cs_version="\\
20566 config.status
20567 configured by $0, generated by GNU Autoconf 2.61,
20568   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20570 Copyright (C) 2006 Free Software Foundation, Inc.
20571 This config.status script is free software; the Free Software Foundation
20572 gives unlimited permission to copy, distribute and modify it."
20574 ac_pwd='$ac_pwd'
20575 srcdir='$srcdir'
20576 INSTALL='$INSTALL'
20577 MKDIR_P='$MKDIR_P'
20578 _ACEOF
20580 cat >>$CONFIG_STATUS <<\_ACEOF
20581 # If no file are specified by the user, then we need to provide default
20582 # value.  By we need to know if files were specified by the user.
20583 ac_need_defaults=:
20584 while test $# != 0
20586   case $1 in
20587   --*=*)
20588     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20589     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20590     ac_shift=:
20591     ;;
20592   *)
20593     ac_option=$1
20594     ac_optarg=$2
20595     ac_shift=shift
20596     ;;
20597   esac
20599   case $ac_option in
20600   # Handling of the options.
20601   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20602     ac_cs_recheck=: ;;
20603   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20604     echo "$ac_cs_version"; exit ;;
20605   --debug | --debu | --deb | --de | --d | -d )
20606     debug=: ;;
20607   --file | --fil | --fi | --f )
20608     $ac_shift
20609     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20610     ac_need_defaults=false;;
20611   --he | --h |  --help | --hel | -h )
20612     echo "$ac_cs_usage"; exit ;;
20613   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20614   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20615     ac_cs_silent=: ;;
20617   # This is an error.
20618   -*) { echo "$as_me: error: unrecognized option: $1
20619 Try \`$0 --help' for more information." >&2
20620    { (exit 1); exit 1; }; } ;;
20622   *) ac_config_targets="$ac_config_targets $1"
20623      ac_need_defaults=false ;;
20625   esac
20626   shift
20627 done
20629 ac_configure_extra_args=
20631 if $ac_cs_silent; then
20632   exec 6>/dev/null
20633   ac_configure_extra_args="$ac_configure_extra_args --silent"
20636 _ACEOF
20637 cat >>$CONFIG_STATUS <<_ACEOF
20638 if \$ac_cs_recheck; then
20639   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20640   CONFIG_SHELL=$SHELL
20641   export CONFIG_SHELL
20642   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20645 _ACEOF
20646 cat >>$CONFIG_STATUS <<\_ACEOF
20647 exec 5>>config.log
20649   echo
20650   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
20651 @%:@@%:@ Running $as_me. @%:@@%:@
20652 _ASBOX
20653   echo "$ac_log"
20654 } >&5
20656 _ACEOF
20657 cat >>$CONFIG_STATUS <<_ACEOF
20659 # INIT-COMMANDS
20661 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20663 _ACEOF
20665 cat >>$CONFIG_STATUS <<\_ACEOF
20667 # Handling of arguments.
20668 for ac_config_target in $ac_config_targets
20670   case $ac_config_target in
20671     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20672     "src/config.h") CONFIG_FILES="$CONFIG_FILES src/config.h" ;;
20673     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20674     "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
20675     "pixmaps/16/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/16/Makefile" ;;
20676     "pixmaps/22/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/22/Makefile" ;;
20677     "pixmaps/48/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/48/Makefile" ;;
20678     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20680   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20681 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20682    { (exit 1); exit 1; }; };;
20683   esac
20684 done
20687 # If the user did not use the arguments to specify the items to instantiate,
20688 # then the envvar interface is used.  Set only those that are not.
20689 # We use the long form for the default assignment because of an extremely
20690 # bizarre bug on SunOS 4.1.3.
20691 if $ac_need_defaults; then
20692   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20693   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20696 # Have a temporary directory for convenience.  Make it in the build tree
20697 # simply because there is no reason against having it here, and in addition,
20698 # creating and moving files from /tmp can sometimes cause problems.
20699 # Hook for its removal unless debugging.
20700 # Note that there is a small window in which the directory will not be cleaned:
20701 # after its creation but before its name has been assigned to `$tmp'.
20702 $debug ||
20704   tmp=
20705   trap 'exit_status=$?
20706   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20707 ' 0
20708   trap '{ (exit 1); exit 1; }' 1 2 13 15
20710 # Create a (secure) tmp directory for tmp files.
20713   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20714   test -n "$tmp" && test -d "$tmp"
20715 }  ||
20717   tmp=./conf$$-$RANDOM
20718   (umask 077 && mkdir "$tmp")
20719 } ||
20721    echo "$me: cannot create a temporary directory in ." >&2
20722    { (exit 1); exit 1; }
20726 # Set up the sed scripts for CONFIG_FILES section.
20729 # No need to generate the scripts if there are no CONFIG_FILES.
20730 # This happens for instance when ./config.status config.h
20731 if test -n "$CONFIG_FILES"; then
20733 _ACEOF
20737 ac_delim='%!_!# '
20738 for ac_last_try in false false false false false :; do
20739   cat >conf$$subs.sed <<_ACEOF
20740 SHELL!$SHELL$ac_delim
20741 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20742 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20743 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20744 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20745 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20746 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20747 exec_prefix!$exec_prefix$ac_delim
20748 prefix!$prefix$ac_delim
20749 program_transform_name!$program_transform_name$ac_delim
20750 bindir!$bindir$ac_delim
20751 sbindir!$sbindir$ac_delim
20752 libexecdir!$libexecdir$ac_delim
20753 datarootdir!$datarootdir$ac_delim
20754 datadir!$datadir$ac_delim
20755 sysconfdir!$sysconfdir$ac_delim
20756 sharedstatedir!$sharedstatedir$ac_delim
20757 localstatedir!$localstatedir$ac_delim
20758 includedir!$includedir$ac_delim
20759 oldincludedir!$oldincludedir$ac_delim
20760 docdir!$docdir$ac_delim
20761 infodir!$infodir$ac_delim
20762 htmldir!$htmldir$ac_delim
20763 dvidir!$dvidir$ac_delim
20764 pdfdir!$pdfdir$ac_delim
20765 psdir!$psdir$ac_delim
20766 libdir!$libdir$ac_delim
20767 localedir!$localedir$ac_delim
20768 mandir!$mandir$ac_delim
20769 DEFS!$DEFS$ac_delim
20770 ECHO_C!$ECHO_C$ac_delim
20771 ECHO_N!$ECHO_N$ac_delim
20772 ECHO_T!$ECHO_T$ac_delim
20773 LIBS!$LIBS$ac_delim
20774 build_alias!$build_alias$ac_delim
20775 host_alias!$host_alias$ac_delim
20776 target_alias!$target_alias$ac_delim
20777 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20778 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20779 INSTALL_DATA!$INSTALL_DATA$ac_delim
20780 am__isrc!$am__isrc$ac_delim
20781 CYGPATH_W!$CYGPATH_W$ac_delim
20782 PACKAGE!$PACKAGE$ac_delim
20783 VERSION!$VERSION$ac_delim
20784 ACLOCAL!$ACLOCAL$ac_delim
20785 AUTOCONF!$AUTOCONF$ac_delim
20786 AUTOMAKE!$AUTOMAKE$ac_delim
20787 AUTOHEADER!$AUTOHEADER$ac_delim
20788 MAKEINFO!$MAKEINFO$ac_delim
20789 install_sh!$install_sh$ac_delim
20790 STRIP!$STRIP$ac_delim
20791 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20792 mkdir_p!$mkdir_p$ac_delim
20793 AWK!$AWK$ac_delim
20794 SET_MAKE!$SET_MAKE$ac_delim
20795 am__leading_dot!$am__leading_dot$ac_delim
20796 AMTAR!$AMTAR$ac_delim
20797 am__tar!$am__tar$ac_delim
20798 am__untar!$am__untar$ac_delim
20799 CC!$CC$ac_delim
20800 CFLAGS!$CFLAGS$ac_delim
20801 LDFLAGS!$LDFLAGS$ac_delim
20802 CPPFLAGS!$CPPFLAGS$ac_delim
20803 ac_ct_CC!$ac_ct_CC$ac_delim
20804 EXEEXT!$EXEEXT$ac_delim
20805 OBJEXT!$OBJEXT$ac_delim
20806 DEPDIR!$DEPDIR$ac_delim
20807 am__include!$am__include$ac_delim
20808 am__quote!$am__quote$ac_delim
20809 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20810 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20811 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20812 CCDEPMODE!$CCDEPMODE$ac_delim
20813 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20814 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20815 build!$build$ac_delim
20816 build_cpu!$build_cpu$ac_delim
20817 build_vendor!$build_vendor$ac_delim
20818 build_os!$build_os$ac_delim
20819 host!$host$ac_delim
20820 host_cpu!$host_cpu$ac_delim
20821 host_vendor!$host_vendor$ac_delim
20822 host_os!$host_os$ac_delim
20823 SED!$SED$ac_delim
20824 GREP!$GREP$ac_delim
20825 EGREP!$EGREP$ac_delim
20826 LN_S!$LN_S$ac_delim
20827 ECHO!$ECHO$ac_delim
20828 AR!$AR$ac_delim
20829 RANLIB!$RANLIB$ac_delim
20830 CPP!$CPP$ac_delim
20831 CXX!$CXX$ac_delim
20832 CXXFLAGS!$CXXFLAGS$ac_delim
20833 ac_ct_CXX!$ac_ct_CXX$ac_delim
20834 CXXDEPMODE!$CXXDEPMODE$ac_delim
20835 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20836 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20837 _ACEOF
20839   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20840     break
20841   elif $ac_last_try; then
20842     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20843 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20844    { (exit 1); exit 1; }; }
20845   else
20846     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20847   fi
20848 done
20850 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20851 if test -n "$ac_eof"; then
20852   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20853   ac_eof=`expr $ac_eof + 1`
20856 cat >>$CONFIG_STATUS <<_ACEOF
20857 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20858 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20859 _ACEOF
20860 sed '
20861 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20862 s/^/s,@/; s/!/@,|#_!!_#|/
20864 t n
20865 s/'"$ac_delim"'$/,g/; t
20866 s/$/\\/; p
20867 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20868 ' >>$CONFIG_STATUS <conf$$subs.sed
20869 rm -f conf$$subs.sed
20870 cat >>$CONFIG_STATUS <<_ACEOF
20871 CEOF$ac_eof
20872 _ACEOF
20875 ac_delim='%!_!# '
20876 for ac_last_try in false false false false false :; do
20877   cat >conf$$subs.sed <<_ACEOF
20878 CXXCPP!$CXXCPP$ac_delim
20879 F77!$F77$ac_delim
20880 FFLAGS!$FFLAGS$ac_delim
20881 ac_ct_F77!$ac_ct_F77$ac_delim
20882 LIBTOOL!$LIBTOOL$ac_delim
20883 PIDGIN_MIN!$PIDGIN_MIN$ac_delim
20884 PIDGIN_MAX!$PIDGIN_MAX$ac_delim
20885 PKG_CONFIG!$PKG_CONFIG$ac_delim
20886 libpurple_CFLAGS!$libpurple_CFLAGS$ac_delim
20887 libpurple_LIBS!$libpurple_LIBS$ac_delim
20888 PIDGIN_CFLAGS!$PIDGIN_CFLAGS$ac_delim
20889 PIDGIN_LIBS!$PIDGIN_LIBS$ac_delim
20890 SIPE_LIBA!$SIPE_LIBA$ac_delim
20891 SIPE_STATIC_TRUE!$SIPE_STATIC_TRUE$ac_delim
20892 SIPE_STATIC_FALSE!$SIPE_STATIC_FALSE$ac_delim
20893 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
20894 LTLIBOBJS!$LTLIBOBJS$ac_delim
20895 _ACEOF
20897   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
20898     break
20899   elif $ac_last_try; then
20900     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20901 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20902    { (exit 1); exit 1; }; }
20903   else
20904     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20905   fi
20906 done
20908 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20909 if test -n "$ac_eof"; then
20910   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20911   ac_eof=`expr $ac_eof + 1`
20914 cat >>$CONFIG_STATUS <<_ACEOF
20915 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20916 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20917 _ACEOF
20918 sed '
20919 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20920 s/^/s,@/; s/!/@,|#_!!_#|/
20922 t n
20923 s/'"$ac_delim"'$/,g/; t
20924 s/$/\\/; p
20925 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20926 ' >>$CONFIG_STATUS <conf$$subs.sed
20927 rm -f conf$$subs.sed
20928 cat >>$CONFIG_STATUS <<_ACEOF
20929 :end
20930 s/|#_!!_#|//g
20931 CEOF$ac_eof
20932 _ACEOF
20935 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20936 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20937 # trailing colons and then remove the whole line if VPATH becomes empty
20938 # (actually we leave an empty line to preserve line numbers).
20939 if test "x$srcdir" = x.; then
20940   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20941 s/:*\$(srcdir):*/:/
20942 s/:*\${srcdir}:*/:/
20943 s/:*@srcdir@:*/:/
20944 s/^\([^=]*=[     ]*\):*/\1/
20945 s/:*$//
20946 s/^[^=]*=[       ]*$//
20950 cat >>$CONFIG_STATUS <<\_ACEOF
20951 fi # test -n "$CONFIG_FILES"
20954 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
20956   case $ac_tag in
20957   :[FHLC]) ac_mode=$ac_tag; continue;;
20958   esac
20959   case $ac_mode$ac_tag in
20960   :[FHL]*:*);;
20961   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20962 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20963    { (exit 1); exit 1; }; };;
20964   :[FH]-) ac_tag=-:-;;
20965   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20966   esac
20967   ac_save_IFS=$IFS
20968   IFS=:
20969   set x $ac_tag
20970   IFS=$ac_save_IFS
20971   shift
20972   ac_file=$1
20973   shift
20975   case $ac_mode in
20976   :L) ac_source=$1;;
20977   :[FH])
20978     ac_file_inputs=
20979     for ac_f
20980     do
20981       case $ac_f in
20982       -) ac_f="$tmp/stdin";;
20983       *) # Look for the file first in the build tree, then in the source tree
20984          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20985          # because $ac_f cannot contain `:'.
20986          test -f "$ac_f" ||
20987            case $ac_f in
20988            [\\/$]*) false;;
20989            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20990            esac ||
20991            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20992 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20993    { (exit 1); exit 1; }; };;
20994       esac
20995       ac_file_inputs="$ac_file_inputs $ac_f"
20996     done
20998     # Let's still pretend it is `configure' which instantiates (i.e., don't
20999     # use $as_me), people would be surprised to read:
21000     #    /* config.h.  Generated by config.status.  */
21001     configure_input="Generated from "`IFS=:
21002           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21003     if test x"$ac_file" != x-; then
21004       configure_input="$ac_file.  $configure_input"
21005       { echo "$as_me:$LINENO: creating $ac_file" >&5
21006 echo "$as_me: creating $ac_file" >&6;}
21007     fi
21009     case $ac_tag in
21010     *:-:* | *:-) cat >"$tmp/stdin";;
21011     esac
21012     ;;
21013   esac
21015   ac_dir=`$as_dirname -- "$ac_file" ||
21016 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21017          X"$ac_file" : 'X\(//\)[^/]' \| \
21018          X"$ac_file" : 'X\(//\)$' \| \
21019          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21020 echo X"$ac_file" |
21021     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21022             s//\1/
21023             q
21024           }
21025           /^X\(\/\/\)[^/].*/{
21026             s//\1/
21027             q
21028           }
21029           /^X\(\/\/\)$/{
21030             s//\1/
21031             q
21032           }
21033           /^X\(\/\).*/{
21034             s//\1/
21035             q
21036           }
21037           s/.*/./; q'`
21038   { as_dir="$ac_dir"
21039   case $as_dir in #(
21040   -*) as_dir=./$as_dir;;
21041   esac
21042   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21043     as_dirs=
21044     while :; do
21045       case $as_dir in #(
21046       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21047       *) as_qdir=$as_dir;;
21048       esac
21049       as_dirs="'$as_qdir' $as_dirs"
21050       as_dir=`$as_dirname -- "$as_dir" ||
21051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21052          X"$as_dir" : 'X\(//\)[^/]' \| \
21053          X"$as_dir" : 'X\(//\)$' \| \
21054          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21055 echo X"$as_dir" |
21056     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21057             s//\1/
21058             q
21059           }
21060           /^X\(\/\/\)[^/].*/{
21061             s//\1/
21062             q
21063           }
21064           /^X\(\/\/\)$/{
21065             s//\1/
21066             q
21067           }
21068           /^X\(\/\).*/{
21069             s//\1/
21070             q
21071           }
21072           s/.*/./; q'`
21073       test -d "$as_dir" && break
21074     done
21075     test -z "$as_dirs" || eval "mkdir $as_dirs"
21076   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21077 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21078    { (exit 1); exit 1; }; }; }
21079   ac_builddir=.
21081 case "$ac_dir" in
21082 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21084   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21085   # A ".." for each directory in $ac_dir_suffix.
21086   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21087   case $ac_top_builddir_sub in
21088   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21089   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21090   esac ;;
21091 esac
21092 ac_abs_top_builddir=$ac_pwd
21093 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21094 # for backward compatibility:
21095 ac_top_builddir=$ac_top_build_prefix
21097 case $srcdir in
21098   .)  # We are building in place.
21099     ac_srcdir=.
21100     ac_top_srcdir=$ac_top_builddir_sub
21101     ac_abs_top_srcdir=$ac_pwd ;;
21102   [\\/]* | ?:[\\/]* )  # Absolute name.
21103     ac_srcdir=$srcdir$ac_dir_suffix;
21104     ac_top_srcdir=$srcdir
21105     ac_abs_top_srcdir=$srcdir ;;
21106   *) # Relative name.
21107     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21108     ac_top_srcdir=$ac_top_build_prefix$srcdir
21109     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21110 esac
21111 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21114   case $ac_mode in
21115   :F)
21116   #
21117   # CONFIG_FILE
21118   #
21120   case $INSTALL in
21121   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21122   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21123   esac
21124   ac_MKDIR_P=$MKDIR_P
21125   case $MKDIR_P in
21126   [\\/$]* | ?:[\\/]* ) ;;
21127   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21128   esac
21129 _ACEOF
21131 cat >>$CONFIG_STATUS <<\_ACEOF
21132 # If the template does not know about datarootdir, expand it.
21133 # FIXME: This hack should be removed a few years after 2.60.
21134 ac_datarootdir_hack=; ac_datarootdir_seen=
21136 case `sed -n '/datarootdir/ {
21137   p
21138   q
21140 /@datadir@/p
21141 /@docdir@/p
21142 /@infodir@/p
21143 /@localedir@/p
21144 /@mandir@/p
21145 ' $ac_file_inputs` in
21146 *datarootdir*) ac_datarootdir_seen=yes;;
21147 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21148   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21149 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21150 _ACEOF
21151 cat >>$CONFIG_STATUS <<_ACEOF
21152   ac_datarootdir_hack='
21153   s&@datadir@&$datadir&g
21154   s&@docdir@&$docdir&g
21155   s&@infodir@&$infodir&g
21156   s&@localedir@&$localedir&g
21157   s&@mandir@&$mandir&g
21158     s&\\\${datarootdir}&$datarootdir&g' ;;
21159 esac
21160 _ACEOF
21162 # Neutralize VPATH when `$srcdir' = `.'.
21163 # Shell code in configure.ac might set extrasub.
21164 # FIXME: do we really want to maintain this feature?
21165 cat >>$CONFIG_STATUS <<_ACEOF
21166   sed "$ac_vpsub
21167 $extrasub
21168 _ACEOF
21169 cat >>$CONFIG_STATUS <<\_ACEOF
21171 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21172 s&@configure_input@&$configure_input&;t t
21173 s&@top_builddir@&$ac_top_builddir_sub&;t t
21174 s&@srcdir@&$ac_srcdir&;t t
21175 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21176 s&@top_srcdir@&$ac_top_srcdir&;t t
21177 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21178 s&@builddir@&$ac_builddir&;t t
21179 s&@abs_builddir@&$ac_abs_builddir&;t t
21180 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21181 s&@INSTALL@&$ac_INSTALL&;t t
21182 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21183 $ac_datarootdir_hack
21184 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21186 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21187   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21188   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21189   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21190 which seems to be undefined.  Please make sure it is defined." >&5
21191 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21192 which seems to be undefined.  Please make sure it is defined." >&2;}
21194   rm -f "$tmp/stdin"
21195   case $ac_file in
21196   -) cat "$tmp/out"; rm -f "$tmp/out";;
21197   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21198   esac
21199  ;;
21200   
21201   
21202   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21203 echo "$as_me: executing $ac_file commands" >&6;}
21204  ;;
21205   esac
21208   case $ac_file$ac_mode in
21209     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21210   # Strip MF so we end up with the name of the file.
21211   mf=`echo "$mf" | sed -e 's/:.*$//'`
21212   # Check whether this is an Automake generated Makefile or not.
21213   # We used to match only the files named `Makefile.in', but
21214   # some people rename them; so instead we look at the file content.
21215   # Grep'ing the first line is not enough: some people post-process
21216   # each Makefile.in and add a new line on top of each file to say so.
21217   # Grep'ing the whole file is not good either: AIX grep has a line
21218   # limit of 2048, but all sed's we know have understand at least 4000.
21219   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21220     dirpart=`$as_dirname -- "$mf" ||
21221 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21222          X"$mf" : 'X\(//\)[^/]' \| \
21223          X"$mf" : 'X\(//\)$' \| \
21224          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21225 echo X"$mf" |
21226     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21227             s//\1/
21228             q
21229           }
21230           /^X\(\/\/\)[^/].*/{
21231             s//\1/
21232             q
21233           }
21234           /^X\(\/\/\)$/{
21235             s//\1/
21236             q
21237           }
21238           /^X\(\/\).*/{
21239             s//\1/
21240             q
21241           }
21242           s/.*/./; q'`
21243   else
21244     continue
21245   fi
21246   # Extract the definition of DEPDIR, am__include, and am__quote
21247   # from the Makefile without running `make'.
21248   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21249   test -z "$DEPDIR" && continue
21250   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21251   test -z "am__include" && continue
21252   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21253   # When using ansi2knr, U may be empty or an underscore; expand it
21254   U=`sed -n 's/^U = //p' < "$mf"`
21255   # Find all dependency output files, they are included files with
21256   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21257   # simplest approach to changing $(DEPDIR) to its actual value in the
21258   # expansion.
21259   for file in `sed -n "
21260     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21261        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21262     # Make sure the directory exists.
21263     test -f "$dirpart/$file" && continue
21264     fdir=`$as_dirname -- "$file" ||
21265 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21266          X"$file" : 'X\(//\)[^/]' \| \
21267          X"$file" : 'X\(//\)$' \| \
21268          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21269 echo X"$file" |
21270     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21271             s//\1/
21272             q
21273           }
21274           /^X\(\/\/\)[^/].*/{
21275             s//\1/
21276             q
21277           }
21278           /^X\(\/\/\)$/{
21279             s//\1/
21280             q
21281           }
21282           /^X\(\/\).*/{
21283             s//\1/
21284             q
21285           }
21286           s/.*/./; q'`
21287     { as_dir=$dirpart/$fdir
21288   case $as_dir in #(
21289   -*) as_dir=./$as_dir;;
21290   esac
21291   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21292     as_dirs=
21293     while :; do
21294       case $as_dir in #(
21295       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21296       *) as_qdir=$as_dir;;
21297       esac
21298       as_dirs="'$as_qdir' $as_dirs"
21299       as_dir=`$as_dirname -- "$as_dir" ||
21300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21301          X"$as_dir" : 'X\(//\)[^/]' \| \
21302          X"$as_dir" : 'X\(//\)$' \| \
21303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21304 echo X"$as_dir" |
21305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21306             s//\1/
21307             q
21308           }
21309           /^X\(\/\/\)[^/].*/{
21310             s//\1/
21311             q
21312           }
21313           /^X\(\/\/\)$/{
21314             s//\1/
21315             q
21316           }
21317           /^X\(\/\).*/{
21318             s//\1/
21319             q
21320           }
21321           s/.*/./; q'`
21322       test -d "$as_dir" && break
21323     done
21324     test -z "$as_dirs" || eval "mkdir $as_dirs"
21325   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21326 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21327    { (exit 1); exit 1; }; }; }
21328     # echo "creating $dirpart/$file"
21329     echo '# dummy' > "$dirpart/$file"
21330   done
21331 done
21332  ;;
21334   esac
21335 done # for ac_tag
21338 { (exit 0); exit 0; }
21339 _ACEOF
21340 chmod +x $CONFIG_STATUS
21341 ac_clean_files=$ac_clean_files_save
21344 # configure is writing to config.log, and then calls config.status.
21345 # config.status does its own redirection, appending to config.log.
21346 # Unfortunately, on DOS this fails, as config.log is still kept open
21347 # by configure, so config.status won't be able to write to it; its
21348 # output is simply discarded.  So we exec the FD to /dev/null,
21349 # effectively closing config.log, so it can be properly (re)opened and
21350 # appended to by config.status.  When coming back to configure, we
21351 # need to make the FD available again.
21352 if test "$no_create" != yes; then
21353   ac_cs_success=:
21354   ac_config_status_args=
21355   test "$silent" = yes &&
21356     ac_config_status_args="$ac_config_status_args --quiet"
21357   exec 5>/dev/null
21358   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21359   exec 5>>config.log
21360   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21361   # would make configure fail if this is the last instruction.
21362   $ac_cs_success || { (exit 1); exit 1; }
21367 echo
21368 echo -n "Simple Exchange linking mode... : "
21369 if test "$sipe_static" = "yes" ; then
21370    echo "static"
21371    echo "Simple Exchange library...      : $SIPE_LIBA"
21372 else
21373    echo "dynamic"
21376 echo
21377 echo configure complete, now run \`make\`
21378 echo
21380 # The End.