Initial commit cleaned
[siplcs.git] / autom4te.cache / output.1
blob3fcd8c37cf7cbd08bdbe2184ebcdbd551ee795fd
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 CYGPATH_W
810 PACKAGE
811 VERSION
812 ACLOCAL
813 AUTOCONF
814 AUTOMAKE
815 AUTOHEADER
816 MAKEINFO
817 install_sh
818 STRIP
819 INSTALL_STRIP_PROGRAM
820 mkdir_p
822 SET_MAKE
823 am__leading_dot
824 AMTAR
825 am__tar
826 am__untar
828 CFLAGS
829 LDFLAGS
830 CPPFLAGS
831 ac_ct_CC
832 EXEEXT
833 OBJEXT
834 DEPDIR
835 am__include
836 am__quote
837 AMDEP_TRUE
838 AMDEP_FALSE
839 AMDEPBACKSLASH
840 CCDEPMODE
841 am__fastdepCC_TRUE
842 am__fastdepCC_FALSE
843 build
844 build_cpu
845 build_vendor
846 build_os
847 host
848 host_cpu
849 host_vendor
850 host_os
851 GREP
852 EGREP
853 LN_S
854 ECHO
856 RANLIB
859 CXXFLAGS
860 ac_ct_CXX
861 CXXDEPMODE
862 am__fastdepCXX_TRUE
863 am__fastdepCXX_FALSE
864 CXXCPP
866 FFLAGS
867 ac_ct_F77
868 LIBTOOL
869 PIDGIN_MIN
870 PIDGIN_MAX
871 PKG_CONFIG
872 libpurple_CFLAGS
873 libpurple_LIBS
874 PIDGIN_CFLAGS
875 PIDGIN_LIBS
876 SIPE_LIBA
877 SIPE_STATIC_TRUE
878 SIPE_STATIC_FALSE
879 LIB@&t@OBJS
880 LTLIBOBJS'
881 ac_subst_files=''
882       ac_precious_vars='build_alias
883 host_alias
884 target_alias
886 CFLAGS
887 LDFLAGS
888 LIBS
889 CPPFLAGS
892 CXXFLAGS
894 CXXCPP
896 FFLAGS
897 PKG_CONFIG
898 libpurple_CFLAGS
899 libpurple_LIBS'
902 # Initialize some variables set by options.
903 ac_init_help=
904 ac_init_version=false
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
907 cache_file=/dev/null
908 exec_prefix=NONE
909 no_create=
910 no_recursion=
911 prefix=NONE
912 program_prefix=NONE
913 program_suffix=NONE
914 program_transform_name=s,x,x,
915 silent=
916 site=
917 srcdir=
918 verbose=
919 x_includes=NONE
920 x_libraries=NONE
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir='${exec_prefix}/bin'
929 sbindir='${exec_prefix}/sbin'
930 libexecdir='${exec_prefix}/libexec'
931 datarootdir='${prefix}/share'
932 datadir='${datarootdir}'
933 sysconfdir='${prefix}/etc'
934 sharedstatedir='${prefix}/com'
935 localstatedir='${prefix}/var'
936 includedir='${prefix}/include'
937 oldincludedir='/usr/include'
938 docdir='${datarootdir}/doc/${PACKAGE}'
939 infodir='${datarootdir}/info'
940 htmldir='${docdir}'
941 dvidir='${docdir}'
942 pdfdir='${docdir}'
943 psdir='${docdir}'
944 libdir='${exec_prefix}/lib'
945 localedir='${datarootdir}/locale'
946 mandir='${datarootdir}/man'
948 ac_prev=
949 ac_dashdash=
950 for ac_option
952   # If the previous option needs an argument, assign it.
953   if test -n "$ac_prev"; then
954     eval $ac_prev=\$ac_option
955     ac_prev=
956     continue
957   fi
959   case $ac_option in
960   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961   *)    ac_optarg=yes ;;
962   esac
964   # Accept the important Cygnus configure options, so we can diagnose typos.
966   case $ac_dashdash$ac_option in
967   --)
968     ac_dashdash=yes ;;
970   -bindir | --bindir | --bindi | --bind | --bin | --bi)
971     ac_prev=bindir ;;
972   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973     bindir=$ac_optarg ;;
975   -build | --build | --buil | --bui | --bu)
976     ac_prev=build_alias ;;
977   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978     build_alias=$ac_optarg ;;
980   -cache-file | --cache-file | --cache-fil | --cache-fi \
981   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982     ac_prev=cache_file ;;
983   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985     cache_file=$ac_optarg ;;
987   --config-cache | -C)
988     cache_file=config.cache ;;
990   -datadir | --datadir | --datadi | --datad)
991     ac_prev=datadir ;;
992   -datadir=* | --datadir=* | --datadi=* | --datad=*)
993     datadir=$ac_optarg ;;
995   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996   | --dataroo | --dataro | --datar)
997     ac_prev=datarootdir ;;
998   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000     datarootdir=$ac_optarg ;;
1002   -disable-* | --disable-*)
1003     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004     # Reject names that are not valid shell variable names.
1005     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007    { (exit 1); exit 1; }; }
1008     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009     eval enable_$ac_feature=no ;;
1011   -docdir | --docdir | --docdi | --doc | --do)
1012     ac_prev=docdir ;;
1013   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014     docdir=$ac_optarg ;;
1016   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017     ac_prev=dvidir ;;
1018   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019     dvidir=$ac_optarg ;;
1021   -enable-* | --enable-*)
1022     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023     # Reject names that are not valid shell variable names.
1024     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026    { (exit 1); exit 1; }; }
1027     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028     eval enable_$ac_feature=\$ac_optarg ;;
1030   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032   | --exec | --exe | --ex)
1033     ac_prev=exec_prefix ;;
1034   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036   | --exec=* | --exe=* | --ex=*)
1037     exec_prefix=$ac_optarg ;;
1039   -gas | --gas | --ga | --g)
1040     # Obsolete; use --with-gas.
1041     with_gas=yes ;;
1043   -help | --help | --hel | --he | -h)
1044     ac_init_help=long ;;
1045   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046     ac_init_help=recursive ;;
1047   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048     ac_init_help=short ;;
1050   -host | --host | --hos | --ho)
1051     ac_prev=host_alias ;;
1052   -host=* | --host=* | --hos=* | --ho=*)
1053     host_alias=$ac_optarg ;;
1055   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056     ac_prev=htmldir ;;
1057   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058   | --ht=*)
1059     htmldir=$ac_optarg ;;
1061   -includedir | --includedir | --includedi | --included | --include \
1062   | --includ | --inclu | --incl | --inc)
1063     ac_prev=includedir ;;
1064   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065   | --includ=* | --inclu=* | --incl=* | --inc=*)
1066     includedir=$ac_optarg ;;
1068   -infodir | --infodir | --infodi | --infod | --info | --inf)
1069     ac_prev=infodir ;;
1070   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071     infodir=$ac_optarg ;;
1073   -libdir | --libdir | --libdi | --libd)
1074     ac_prev=libdir ;;
1075   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076     libdir=$ac_optarg ;;
1078   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079   | --libexe | --libex | --libe)
1080     ac_prev=libexecdir ;;
1081   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082   | --libexe=* | --libex=* | --libe=*)
1083     libexecdir=$ac_optarg ;;
1085   -localedir | --localedir | --localedi | --localed | --locale)
1086     ac_prev=localedir ;;
1087   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088     localedir=$ac_optarg ;;
1090   -localstatedir | --localstatedir | --localstatedi | --localstated \
1091   | --localstate | --localstat | --localsta | --localst | --locals)
1092     ac_prev=localstatedir ;;
1093   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095     localstatedir=$ac_optarg ;;
1097   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098     ac_prev=mandir ;;
1099   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100     mandir=$ac_optarg ;;
1102   -nfp | --nfp | --nf)
1103     # Obsolete; use --without-fp.
1104     with_fp=no ;;
1106   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107   | --no-cr | --no-c | -n)
1108     no_create=yes ;;
1110   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112     no_recursion=yes ;;
1114   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116   | --oldin | --oldi | --old | --ol | --o)
1117     ac_prev=oldincludedir ;;
1118   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121     oldincludedir=$ac_optarg ;;
1123   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124     ac_prev=prefix ;;
1125   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126     prefix=$ac_optarg ;;
1128   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129   | --program-pre | --program-pr | --program-p)
1130     ac_prev=program_prefix ;;
1131   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133     program_prefix=$ac_optarg ;;
1135   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136   | --program-suf | --program-su | --program-s)
1137     ac_prev=program_suffix ;;
1138   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140     program_suffix=$ac_optarg ;;
1142   -program-transform-name | --program-transform-name \
1143   | --program-transform-nam | --program-transform-na \
1144   | --program-transform-n | --program-transform- \
1145   | --program-transform | --program-transfor \
1146   | --program-transfo | --program-transf \
1147   | --program-trans | --program-tran \
1148   | --progr-tra | --program-tr | --program-t)
1149     ac_prev=program_transform_name ;;
1150   -program-transform-name=* | --program-transform-name=* \
1151   | --program-transform-nam=* | --program-transform-na=* \
1152   | --program-transform-n=* | --program-transform-=* \
1153   | --program-transform=* | --program-transfor=* \
1154   | --program-transfo=* | --program-transf=* \
1155   | --program-trans=* | --program-tran=* \
1156   | --progr-tra=* | --program-tr=* | --program-t=*)
1157     program_transform_name=$ac_optarg ;;
1159   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160     ac_prev=pdfdir ;;
1161   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162     pdfdir=$ac_optarg ;;
1164   -psdir | --psdir | --psdi | --psd | --ps)
1165     ac_prev=psdir ;;
1166   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167     psdir=$ac_optarg ;;
1169   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170   | -silent | --silent | --silen | --sile | --sil)
1171     silent=yes ;;
1173   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174     ac_prev=sbindir ;;
1175   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176   | --sbi=* | --sb=*)
1177     sbindir=$ac_optarg ;;
1179   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181   | --sharedst | --shareds | --shared | --share | --shar \
1182   | --sha | --sh)
1183     ac_prev=sharedstatedir ;;
1184   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187   | --sha=* | --sh=*)
1188     sharedstatedir=$ac_optarg ;;
1190   -site | --site | --sit)
1191     ac_prev=site ;;
1192   -site=* | --site=* | --sit=*)
1193     site=$ac_optarg ;;
1195   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196     ac_prev=srcdir ;;
1197   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198     srcdir=$ac_optarg ;;
1200   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201   | --syscon | --sysco | --sysc | --sys | --sy)
1202     ac_prev=sysconfdir ;;
1203   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205     sysconfdir=$ac_optarg ;;
1207   -target | --target | --targe | --targ | --tar | --ta | --t)
1208     ac_prev=target_alias ;;
1209   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210     target_alias=$ac_optarg ;;
1212   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213     verbose=yes ;;
1215   -version | --version | --versio | --versi | --vers | -V)
1216     ac_init_version=: ;;
1218   -with-* | --with-*)
1219     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220     # Reject names that are not valid shell variable names.
1221     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222       { echo "$as_me: error: invalid package name: $ac_package" >&2
1223    { (exit 1); exit 1; }; }
1224     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225     eval with_$ac_package=\$ac_optarg ;;
1227   -without-* | --without-*)
1228     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229     # Reject names that are not valid shell variable names.
1230     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231       { echo "$as_me: error: invalid package name: $ac_package" >&2
1232    { (exit 1); exit 1; }; }
1233     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234     eval with_$ac_package=no ;;
1236   --x)
1237     # Obsolete; use --with-x.
1238     with_x=yes ;;
1240   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241   | --x-incl | --x-inc | --x-in | --x-i)
1242     ac_prev=x_includes ;;
1243   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245     x_includes=$ac_optarg ;;
1247   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249     ac_prev=x_libraries ;;
1250   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252     x_libraries=$ac_optarg ;;
1254   -*) { echo "$as_me: error: unrecognized option: $ac_option
1255 Try \`$0 --help' for more information." >&2
1256    { (exit 1); exit 1; }; }
1257     ;;
1259   *=*)
1260     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261     # Reject names that are not valid shell variable names.
1262     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264    { (exit 1); exit 1; }; }
1265     eval $ac_envvar=\$ac_optarg
1266     export $ac_envvar ;;
1268   *)
1269     # FIXME: should be removed in autoconf 3.0.
1270     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274     ;;
1276   esac
1277 done
1279 if test -n "$ac_prev"; then
1280   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281   { echo "$as_me: error: missing argument to $ac_option" >&2
1282    { (exit 1); exit 1; }; }
1285 # Be sure to have absolute directory names.
1286 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287                 datadir sysconfdir sharedstatedir localstatedir includedir \
1288                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289                 libdir localedir mandir
1291   eval ac_val=\$$ac_var
1292   case $ac_val in
1293     [\\/$]* | ?:[\\/]* )  continue;;
1294     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295   esac
1296   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1297    { (exit 1); exit 1; }; }
1298 done
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1303 build=$build_alias
1304 host=$host_alias
1305 target=$target_alias
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x; then
1309   if test "x$build_alias" = x; then
1310     cross_compiling=maybe
1311     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1312     If a cross compiler is detected then cross compile mode will be used." >&2
1313   elif test "x$build_alias" != "x$host_alias"; then
1314     cross_compiling=yes
1315   fi
1318 ac_tool_prefix=
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321 test "$silent" = yes && exec 6>/dev/null
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327   { echo "$as_me: error: Working directory cannot be determined" >&2
1328    { (exit 1); exit 1; }; }
1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330   { echo "$as_me: error: pwd does not report name of working directory" >&2
1331    { (exit 1); exit 1; }; }
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336   ac_srcdir_defaulted=yes
1337   # Try the directory containing this script, then the parent directory.
1338   ac_confdir=`$as_dirname -- "$0" ||
1339 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340          X"$0" : 'X\(//\)[^/]' \| \
1341          X"$0" : 'X\(//\)$' \| \
1342          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1343 echo X"$0" |
1344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345             s//\1/
1346             q
1347           }
1348           /^X\(\/\/\)[^/].*/{
1349             s//\1/
1350             q
1351           }
1352           /^X\(\/\/\)$/{
1353             s//\1/
1354             q
1355           }
1356           /^X\(\/\).*/{
1357             s//\1/
1358             q
1359           }
1360           s/.*/./; q'`
1361   srcdir=$ac_confdir
1362   if test ! -r "$srcdir/$ac_unique_file"; then
1363     srcdir=..
1364   fi
1365 else
1366   ac_srcdir_defaulted=no
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1371    { (exit 1); exit 1; }; }
1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374 ac_abs_confdir=`(
1375         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1376    { (exit 1); exit 1; }; }
1377         pwd)`
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1380   srcdir=.
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1385 case $srcdir in
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387 esac
1388 for ac_var in $ac_precious_vars; do
1389   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390   eval ac_env_${ac_var}_value=\$${ac_var}
1391   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393 done
1396 # Report the --help message.
1398 if test "$ac_init_help" = "long"; then
1399   # Omit some internal or obsolete options to make the list less imposing.
1400   # This message is too long to be a string in the A/UX 3.1 sh.
1401   cat <<_ACEOF
1402 \`configure' configures this package to adapt to many kinds of systems.
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE.  See below for descriptions of some of the useful variables.
1409 Defaults for the options are specified in brackets.
1411 Configuration:
1412   -h, --help              display this help and exit
1413       --help=short        display options specific to this package
1414       --help=recursive    display the short help of all the included packages
1415   -V, --version           display version information and exit
1416   -q, --quiet, --silent   do not print \`checking...' messages
1417       --cache-file=FILE   cache test results in FILE [disabled]
1418   -C, --config-cache      alias for \`--cache-file=config.cache'
1419   -n, --no-create         do not create output files
1420       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1422 Installation directories:
1423   --prefix=PREFIX         install architecture-independent files in PREFIX
1424                           [$ac_default_prefix]
1425   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1426                           [PREFIX]
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1433 For better control, use the options below.
1435 Fine tuning of the installation directories:
1436   --bindir=DIR           user executables [EPREFIX/bin]
1437   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1438   --libexecdir=DIR       program executables [EPREFIX/libexec]
1439   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1440   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1441   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1442   --libdir=DIR           object code libraries [EPREFIX/lib]
1443   --includedir=DIR       C header files [PREFIX/include]
1444   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1445   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1446   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1447   --infodir=DIR          info documentation [DATAROOTDIR/info]
1448   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1449   --mandir=DIR           man documentation [DATAROOTDIR/man]
1450   --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1451   --htmldir=DIR          html documentation [DOCDIR]
1452   --dvidir=DIR           dvi documentation [DOCDIR]
1453   --pdfdir=DIR           pdf documentation [DOCDIR]
1454   --psdir=DIR            ps documentation [DOCDIR]
1455 _ACEOF
1457   cat <<\_ACEOF
1459 Program names:
1460   --program-prefix=PREFIX            prepend PREFIX to installed program names
1461   --program-suffix=SUFFIX            append SUFFIX to installed program names
1462   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1464 System types:
1465   --build=BUILD     configure for building on BUILD [guessed]
1466   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1467 _ACEOF
1470 if test -n "$ac_init_help"; then
1472   cat <<\_ACEOF
1474 Optional Features:
1475   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1476   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1477   --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=no@:>@
1478   --disable-dependency-tracking  speeds up one-time build
1479   --enable-dependency-tracking   do not reject slow dependency extractors
1480   --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1481   --enable-fast-install@<:@=PKGS@:>@ 
1482                           optimize for fast installation @<:@default=yes@:>@
1483   --disable-libtool-lock  avoid locking (might break parallel builds)
1484   --enable-debug          compile with debugging support
1485   --enable-static-sipe  statically link in Simple Exchange
1487 Optional Packages:
1488   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1489   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1490   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1491   --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1492                           both@:>@
1493   --with-tags@<:@=TAGS@:>@      include additional configurations @<:@automatic@:>@
1495 Some influential environment variables:
1496   CC          C compiler command
1497   CFLAGS      C compiler flags
1498   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1499               nonstandard directory <lib dir>
1500   LIBS        libraries to pass to the linker, e.g. -l<library>
1501   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1502               you have headers in a nonstandard directory <include dir>
1503   CPP         C preprocessor
1504   CXX         C++ compiler command
1505   CXXFLAGS    C++ compiler flags
1506   CXXCPP      C++ preprocessor
1507   F77         Fortran 77 compiler command
1508   FFLAGS      Fortran 77 compiler flags
1509   PKG_CONFIG  path to pkg-config utility
1510   libpurple_CFLAGS 
1511               C compiler flags for libpurple, overriding pkg-config
1512   libpurple_LIBS 
1513               linker flags for libpurple, overriding pkg-config
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1518 _ACEOF
1519 ac_status=$?
1522 if test "$ac_init_help" = "recursive"; then
1523   # If there are subdirs, report their specific --help.
1524   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525     test -d "$ac_dir" || continue
1526     ac_builddir=.
1528 case "$ac_dir" in
1529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1532   # A ".." for each directory in $ac_dir_suffix.
1533   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1534   case $ac_top_builddir_sub in
1535   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537   esac ;;
1538 esac
1539 ac_abs_top_builddir=$ac_pwd
1540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541 # for backward compatibility:
1542 ac_top_builddir=$ac_top_build_prefix
1544 case $srcdir in
1545   .)  # We are building in place.
1546     ac_srcdir=.
1547     ac_top_srcdir=$ac_top_builddir_sub
1548     ac_abs_top_srcdir=$ac_pwd ;;
1549   [\\/]* | ?:[\\/]* )  # Absolute name.
1550     ac_srcdir=$srcdir$ac_dir_suffix;
1551     ac_top_srcdir=$srcdir
1552     ac_abs_top_srcdir=$srcdir ;;
1553   *) # Relative name.
1554     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555     ac_top_srcdir=$ac_top_build_prefix$srcdir
1556     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557 esac
1558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560     cd "$ac_dir" || { ac_status=$?; continue; }
1561     # Check for guested configure.
1562     if test -f "$ac_srcdir/configure.gnu"; then
1563       echo &&
1564       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565     elif test -f "$ac_srcdir/configure"; then
1566       echo &&
1567       $SHELL "$ac_srcdir/configure" --help=recursive
1568     else
1569       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570     fi || ac_status=$?
1571     cd "$ac_pwd" || { ac_status=$?; break; }
1572   done
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1577   cat <<\_ACEOF
1578 configure
1579 generated by GNU Autoconf 2.61
1581 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1582 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1583 This configure script is free software; the Free Software Foundation
1584 gives unlimited permission to copy, distribute and modify it.
1585 _ACEOF
1586   exit
1588 cat >config.log <<_ACEOF
1589 This file contains any messages produced by compilers while
1590 running configure, to aid debugging if configure makes a mistake.
1592 It was created by $as_me, which was
1593 generated by GNU Autoconf 2.61.  Invocation command line was
1595   $ $0 $@
1597 _ACEOF
1598 exec 5>>config.log
1600 cat <<_ASUNAME
1601 @%:@@%:@ --------- @%:@@%:@
1602 @%:@@%:@ Platform. @%:@@%:@
1603 @%:@@%:@ --------- @%:@@%:@
1605 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1606 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1607 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1608 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1609 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1611 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1612 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1614 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1615 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1616 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1617 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1618 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1619 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1620 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1622 _ASUNAME
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 for as_dir in $PATH
1627   IFS=$as_save_IFS
1628   test -z "$as_dir" && as_dir=.
1629   echo "PATH: $as_dir"
1630 done
1631 IFS=$as_save_IFS
1633 } >&5
1635 cat >&5 <<_ACEOF
1638 @%:@@%:@ ----------- @%:@@%:@
1639 @%:@@%:@ Core tests. @%:@@%:@
1640 @%:@@%:@ ----------- @%:@@%:@
1642 _ACEOF
1645 # Keep a trace of the command line.
1646 # Strip out --no-create and --no-recursion so they do not pile up.
1647 # Strip out --silent because we don't want to record it for future runs.
1648 # Also quote any args containing shell meta-characters.
1649 # Make two passes to allow for proper duplicate-argument suppression.
1650 ac_configure_args=
1651 ac_configure_args0=
1652 ac_configure_args1=
1653 ac_must_keep_next=false
1654 for ac_pass in 1 2
1656   for ac_arg
1657   do
1658     case $ac_arg in
1659     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1660     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1661     | -silent | --silent | --silen | --sile | --sil)
1662       continue ;;
1663     *\'*)
1664       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1665     esac
1666     case $ac_pass in
1667     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1668     2)
1669       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1670       if test $ac_must_keep_next = true; then
1671         ac_must_keep_next=false # Got value, back to normal.
1672       else
1673         case $ac_arg in
1674           *=* | --config-cache | -C | -disable-* | --disable-* \
1675           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1676           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1677           | -with-* | --with-* | -without-* | --without-* | --x)
1678             case "$ac_configure_args0 " in
1679               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1680             esac
1681             ;;
1682           -* ) ac_must_keep_next=true ;;
1683         esac
1684       fi
1685       ac_configure_args="$ac_configure_args '$ac_arg'"
1686       ;;
1687     esac
1688   done
1689 done
1690 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1691 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1693 # When interrupted or exit'd, cleanup temporary files, and complete
1694 # config.log.  We remove comments because anyway the quotes in there
1695 # would cause problems or look ugly.
1696 # WARNING: Use '\'' to represent an apostrophe within the trap.
1697 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1698 trap 'exit_status=$?
1699   # Save into config.log some information that might help in debugging.
1700   {
1701     echo
1703     cat <<\_ASBOX
1704 @%:@@%:@ ---------------- @%:@@%:@
1705 @%:@@%:@ Cache variables. @%:@@%:@
1706 @%:@@%:@ ---------------- @%:@@%:@
1707 _ASBOX
1708     echo
1709     # The following way of writing the cache mishandles newlines in values,
1711   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1712     eval ac_val=\$$ac_var
1713     case $ac_val in #(
1714     *${as_nl}*)
1715       case $ac_var in #(
1716       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1717 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1718       esac
1719       case $ac_var in #(
1720       _ | IFS | as_nl) ;; #(
1721       *) $as_unset $ac_var ;;
1722       esac ;;
1723     esac
1724   done
1725   (set) 2>&1 |
1726     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1727     *${as_nl}ac_space=\ *)
1728       sed -n \
1729         "s/'\''/'\''\\\\'\'''\''/g;
1730           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1731       ;; #(
1732     *)
1733       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1734       ;;
1735     esac |
1736     sort
1738     echo
1740     cat <<\_ASBOX
1741 @%:@@%:@ ----------------- @%:@@%:@
1742 @%:@@%:@ Output variables. @%:@@%:@
1743 @%:@@%:@ ----------------- @%:@@%:@
1744 _ASBOX
1745     echo
1746     for ac_var in $ac_subst_vars
1747     do
1748       eval ac_val=\$$ac_var
1749       case $ac_val in
1750       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1751       esac
1752       echo "$ac_var='\''$ac_val'\''"
1753     done | sort
1754     echo
1756     if test -n "$ac_subst_files"; then
1757       cat <<\_ASBOX
1758 @%:@@%:@ ------------------- @%:@@%:@
1759 @%:@@%:@ File substitutions. @%:@@%:@
1760 @%:@@%:@ ------------------- @%:@@%:@
1761 _ASBOX
1762       echo
1763       for ac_var in $ac_subst_files
1764       do
1765         eval ac_val=\$$ac_var
1766         case $ac_val in
1767         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1768         esac
1769         echo "$ac_var='\''$ac_val'\''"
1770       done | sort
1771       echo
1772     fi
1774     if test -s confdefs.h; then
1775       cat <<\_ASBOX
1776 @%:@@%:@ ----------- @%:@@%:@
1777 @%:@@%:@ confdefs.h. @%:@@%:@
1778 @%:@@%:@ ----------- @%:@@%:@
1779 _ASBOX
1780       echo
1781       cat confdefs.h
1782       echo
1783     fi
1784     test "$ac_signal" != 0 &&
1785       echo "$as_me: caught signal $ac_signal"
1786     echo "$as_me: exit $exit_status"
1787   } >&5
1788   rm -f core *.core core.conftest.* &&
1789     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1790     exit $exit_status
1791 ' 0
1792 for ac_signal in 1 2 13 15; do
1793   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1794 done
1795 ac_signal=0
1797 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1798 rm -f -r conftest* confdefs.h
1800 # Predefined preprocessor variables.
1802 cat >>confdefs.h <<_ACEOF
1803 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1804 _ACEOF
1807 cat >>confdefs.h <<_ACEOF
1808 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1809 _ACEOF
1812 cat >>confdefs.h <<_ACEOF
1813 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1814 _ACEOF
1817 cat >>confdefs.h <<_ACEOF
1818 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1819 _ACEOF
1822 cat >>confdefs.h <<_ACEOF
1823 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1824 _ACEOF
1827 # Let the site file select an alternate cache file if it wants to.
1828 # Prefer explicitly selected file to automatically selected ones.
1829 if test -n "$CONFIG_SITE"; then
1830   set x "$CONFIG_SITE"
1831 elif test "x$prefix" != xNONE; then
1832   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1833 else
1834   set x "$ac_default_prefix/share/config.site" \
1835         "$ac_default_prefix/etc/config.site"
1837 shift
1838 for ac_site_file
1840   if test -r "$ac_site_file"; then
1841     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1842 echo "$as_me: loading site script $ac_site_file" >&6;}
1843     sed 's/^/| /' "$ac_site_file" >&5
1844     . "$ac_site_file"
1845   fi
1846 done
1848 if test -r "$cache_file"; then
1849   # Some versions of bash will fail to source /dev/null (special
1850   # files actually), so we avoid doing that.
1851   if test -f "$cache_file"; then
1852     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1853 echo "$as_me: loading cache $cache_file" >&6;}
1854     case $cache_file in
1855       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1856       *)                      . "./$cache_file";;
1857     esac
1858   fi
1859 else
1860   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1861 echo "$as_me: creating cache $cache_file" >&6;}
1862   >$cache_file
1865 # Check that the precious variables saved in the cache have kept the same
1866 # value.
1867 ac_cache_corrupted=false
1868 for ac_var in $ac_precious_vars; do
1869   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1870   eval ac_new_set=\$ac_env_${ac_var}_set
1871   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1872   eval ac_new_val=\$ac_env_${ac_var}_value
1873   case $ac_old_set,$ac_new_set in
1874     set,)
1875       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1876 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1877       ac_cache_corrupted=: ;;
1878     ,set)
1879       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1880 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1881       ac_cache_corrupted=: ;;
1882     ,);;
1883     *)
1884       if test "x$ac_old_val" != "x$ac_new_val"; then
1885         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1886 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1887         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1888 echo "$as_me:   former value:  $ac_old_val" >&2;}
1889         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1890 echo "$as_me:   current value: $ac_new_val" >&2;}
1891         ac_cache_corrupted=:
1892       fi;;
1893   esac
1894   # Pass precious variables to config.status.
1895   if test "$ac_new_set" = set; then
1896     case $ac_new_val in
1897     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1898     *) ac_arg=$ac_var=$ac_new_val ;;
1899     esac
1900     case " $ac_configure_args " in
1901       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1902       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1903     esac
1904   fi
1905 done
1906 if $ac_cache_corrupted; then
1907   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1908 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1909   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1910 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1911    { (exit 1); exit 1; }; }
1930 ac_ext=c
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1937 am__api_version="1.9"
1938 ac_aux_dir=
1939 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1940   if test -f "$ac_dir/install-sh"; then
1941     ac_aux_dir=$ac_dir
1942     ac_install_sh="$ac_aux_dir/install-sh -c"
1943     break
1944   elif test -f "$ac_dir/install.sh"; then
1945     ac_aux_dir=$ac_dir
1946     ac_install_sh="$ac_aux_dir/install.sh -c"
1947     break
1948   elif test -f "$ac_dir/shtool"; then
1949     ac_aux_dir=$ac_dir
1950     ac_install_sh="$ac_aux_dir/shtool install -c"
1951     break
1952   fi
1953 done
1954 if test -z "$ac_aux_dir"; then
1955   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1956 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1957    { (exit 1); exit 1; }; }
1960 # These three variables are undocumented and unsupported,
1961 # and are intended to be withdrawn in a future Autoconf release.
1962 # They can cause serious problems if a builder's source tree is in a directory
1963 # whose full name contains unusual characters.
1964 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1965 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1966 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1969 # Find a good install program.  We prefer a C program (faster),
1970 # so one script is as good as another.  But avoid the broken or
1971 # incompatible versions:
1972 # SysV /etc/install, /usr/sbin/install
1973 # SunOS /usr/etc/install
1974 # IRIX /sbin/install
1975 # AIX /bin/install
1976 # AmigaOS /C/install, which installs bootblocks on floppy discs
1977 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1978 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1979 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1980 # OS/2's system install, which has a completely different semantic
1981 # ./install, which can be erroneously created by make from ./install.sh.
1982 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1983 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1984 if test -z "$INSTALL"; then
1985 if test "${ac_cv_path_install+set}" = set; then
1986   echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1991   IFS=$as_save_IFS
1992   test -z "$as_dir" && as_dir=.
1993   # Account for people who put trailing slashes in PATH elements.
1994 case $as_dir/ in
1995   ./ | .// | /cC/* | \
1996   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1997   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1998   /usr/ucb/* ) ;;
1999   *)
2000     # OSF1 and SCO ODT 3.0 have their own names for install.
2001     # Don't use installbsd from OSF since it installs stuff as root
2002     # by default.
2003     for ac_prog in ginstall scoinst install; do
2004       for ac_exec_ext in '' $ac_executable_extensions; do
2005         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2006           if test $ac_prog = install &&
2007             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2008             # AIX install.  It has an incompatible calling convention.
2009             :
2010           elif test $ac_prog = install &&
2011             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2012             # program-specific install script used by HP pwplus--don't use.
2013             :
2014           else
2015             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2016             break 3
2017           fi
2018         fi
2019       done
2020     done
2021     ;;
2022 esac
2023 done
2024 IFS=$as_save_IFS
2028   if test "${ac_cv_path_install+set}" = set; then
2029     INSTALL=$ac_cv_path_install
2030   else
2031     # As a last resort, use the slow shell script.  Don't cache a
2032     # value for INSTALL within a source directory, because that will
2033     # break other packages using the cache if that directory is
2034     # removed, or if the value is a relative name.
2035     INSTALL=$ac_install_sh
2036   fi
2038 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2039 echo "${ECHO_T}$INSTALL" >&6; }
2041 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2042 # It thinks the first close brace ends the variable substitution.
2043 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2045 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2047 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2049 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2050 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2051 # Just in case
2052 sleep 1
2053 echo timestamp > conftest.file
2054 # Do `set' in a subshell so we don't clobber the current shell's
2055 # arguments.  Must try -L first in case configure is actually a
2056 # symlink; some systems play weird games with the mod time of symlinks
2057 # (eg FreeBSD returns the mod time of the symlink's containing
2058 # directory).
2059 if (
2060    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2061    if test "$*" = "X"; then
2062       # -L didn't work.
2063       set X `ls -t $srcdir/configure conftest.file`
2064    fi
2065    rm -f conftest.file
2066    if test "$*" != "X $srcdir/configure conftest.file" \
2067       && test "$*" != "X conftest.file $srcdir/configure"; then
2069       # If neither matched, then we have a broken ls.  This can happen
2070       # if, for instance, CONFIG_SHELL is bash and it inherits a
2071       # broken ls alias from the environment.  This has actually
2072       # happened.  Such a system could not be considered "sane".
2073       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2074 alias in your environment" >&5
2075 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2076 alias in your environment" >&2;}
2077    { (exit 1); exit 1; }; }
2078    fi
2080    test "$2" = conftest.file
2081    )
2082 then
2083    # Ok.
2084    :
2085 else
2086    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2087 Check your system clock" >&5
2088 echo "$as_me: error: newly created file is older than distributed files!
2089 Check your system clock" >&2;}
2090    { (exit 1); exit 1; }; }
2092 { echo "$as_me:$LINENO: result: yes" >&5
2093 echo "${ECHO_T}yes" >&6; }
2094 test "$program_prefix" != NONE &&
2095   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2096 # Use a double $ so make ignores it.
2097 test "$program_suffix" != NONE &&
2098   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2099 # Double any \ or $.  echo might interpret backslashes.
2100 # By default was `s,x,x', remove it if useless.
2101 cat <<\_ACEOF >conftest.sed
2102 s/[\\$]/&&/g;s/;s,x,x,$//
2103 _ACEOF
2104 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2105 rm -f conftest.sed
2107 # expand $ac_aux_dir to an absolute path
2108 am_aux_dir=`cd $ac_aux_dir && pwd`
2110 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2111 # Use eval to expand $SHELL
2112 if eval "$MISSING --run true"; then
2113   am_missing_run="$MISSING --run "
2114 else
2115   am_missing_run=
2116   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2117 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2120 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2121   # We used to keeping the `.' as first argument, in order to
2122   # allow $(mkdir_p) to be used without argument.  As in
2123   #   $(mkdir_p) $(somedir)
2124   # where $(somedir) is conditionally defined.  However this is wrong
2125   # for two reasons:
2126   #  1. if the package is installed by a user who cannot write `.'
2127   #     make install will fail,
2128   #  2. the above comment should most certainly read
2129   #     $(mkdir_p) $(DESTDIR)$(somedir)
2130   #     so it does not work when $(somedir) is undefined and
2131   #     $(DESTDIR) is not.
2132   #  To support the latter case, we have to write
2133   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2134   #  so the `.' trick is pointless.
2135   mkdir_p='mkdir -p --'
2136 else
2137   # On NextStep and OpenStep, the `mkdir' command does not
2138   # recognize any option.  It will interpret all options as
2139   # directories to create, and then abort because `.' already
2140   # exists.
2141   for d in ./-p ./--version;
2142   do
2143     test -d $d && rmdir $d
2144   done
2145   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2146   if test -f "$ac_aux_dir/mkinstalldirs"; then
2147     mkdir_p='$(mkinstalldirs)'
2148   else
2149     mkdir_p='$(install_sh) -d'
2150   fi
2153 for ac_prog in gawk mawk nawk awk
2155   # Extract the first word of "$ac_prog", so it can be a program name with args.
2156 set dummy $ac_prog; ac_word=$2
2157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2159 if test "${ac_cv_prog_AWK+set}" = set; then
2160   echo $ECHO_N "(cached) $ECHO_C" >&6
2161 else
2162   if test -n "$AWK"; then
2163   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2164 else
2165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 for as_dir in $PATH
2168   IFS=$as_save_IFS
2169   test -z "$as_dir" && as_dir=.
2170   for ac_exec_ext in '' $ac_executable_extensions; do
2171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2172     ac_cv_prog_AWK="$ac_prog"
2173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174     break 2
2175   fi
2176 done
2177 done
2178 IFS=$as_save_IFS
2182 AWK=$ac_cv_prog_AWK
2183 if test -n "$AWK"; then
2184   { echo "$as_me:$LINENO: result: $AWK" >&5
2185 echo "${ECHO_T}$AWK" >&6; }
2186 else
2187   { echo "$as_me:$LINENO: result: no" >&5
2188 echo "${ECHO_T}no" >&6; }
2192   test -n "$AWK" && break
2193 done
2195 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2196 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2197 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2198 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2199   echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201   cat >conftest.make <<\_ACEOF
2202 SHELL = /bin/sh
2203 all:
2204         @echo '@@@%%%=$(MAKE)=@@@%%%'
2205 _ACEOF
2206 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2207 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2208   *@@@%%%=?*=@@@%%%*)
2209     eval ac_cv_prog_make_${ac_make}_set=yes;;
2210   *)
2211     eval ac_cv_prog_make_${ac_make}_set=no;;
2212 esac
2213 rm -f conftest.make
2215 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2216   { echo "$as_me:$LINENO: result: yes" >&5
2217 echo "${ECHO_T}yes" >&6; }
2218   SET_MAKE=
2219 else
2220   { echo "$as_me:$LINENO: result: no" >&5
2221 echo "${ECHO_T}no" >&6; }
2222   SET_MAKE="MAKE=${MAKE-make}"
2225 rm -rf .tst 2>/dev/null
2226 mkdir .tst 2>/dev/null
2227 if test -d .tst; then
2228   am__leading_dot=.
2229 else
2230   am__leading_dot=_
2232 rmdir .tst 2>/dev/null
2234 # test to see if srcdir already configured
2235 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2236    test -f $srcdir/config.status; then
2237   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2238 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2239    { (exit 1); exit 1; }; }
2242 # test whether we have cygpath
2243 if test -z "$CYGPATH_W"; then
2244   if (cygpath --version) >/dev/null 2>/dev/null; then
2245     CYGPATH_W='cygpath -w'
2246   else
2247     CYGPATH_W=echo
2248   fi
2252 # Define the identity of the package.
2253  PACKAGE=pidgin_sipe
2254  VERSION=1.2.0
2257 cat >>confdefs.h <<_ACEOF
2258 @%:@define PACKAGE "$PACKAGE"
2259 _ACEOF
2262 cat >>confdefs.h <<_ACEOF
2263 @%:@define VERSION "$VERSION"
2264 _ACEOF
2266 # Some tools Automake needs.
2268 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2271 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2274 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2277 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2280 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2282 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2284 # Installed binaries are usually stripped using `strip' when the user
2285 # run `make install-strip'.  However `strip' might not be the right
2286 # tool to use in cross-compilation environments, therefore Automake
2287 # will honor the `STRIP' environment variable to overrule this program.
2288 if test "$cross_compiling" != no; then
2289   if test -n "$ac_tool_prefix"; then
2290   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2291 set dummy ${ac_tool_prefix}strip; ac_word=$2
2292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2294 if test "${ac_cv_prog_STRIP+set}" = set; then
2295   echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297   if test -n "$STRIP"; then
2298   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2299 else
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 for as_dir in $PATH
2303   IFS=$as_save_IFS
2304   test -z "$as_dir" && as_dir=.
2305   for ac_exec_ext in '' $ac_executable_extensions; do
2306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309     break 2
2310   fi
2311 done
2312 done
2313 IFS=$as_save_IFS
2317 STRIP=$ac_cv_prog_STRIP
2318 if test -n "$STRIP"; then
2319   { echo "$as_me:$LINENO: result: $STRIP" >&5
2320 echo "${ECHO_T}$STRIP" >&6; }
2321 else
2322   { echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6; }
2328 if test -z "$ac_cv_prog_STRIP"; then
2329   ac_ct_STRIP=$STRIP
2330   # Extract the first word of "strip", so it can be a program name with args.
2331 set dummy strip; ac_word=$2
2332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2334 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2335   echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337   if test -n "$ac_ct_STRIP"; then
2338   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2339 else
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 for as_dir in $PATH
2343   IFS=$as_save_IFS
2344   test -z "$as_dir" && as_dir=.
2345   for ac_exec_ext in '' $ac_executable_extensions; do
2346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2347     ac_cv_prog_ac_ct_STRIP="strip"
2348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349     break 2
2350   fi
2351 done
2352 done
2353 IFS=$as_save_IFS
2357 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2358 if test -n "$ac_ct_STRIP"; then
2359   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2360 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2361 else
2362   { echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6; }
2366   if test "x$ac_ct_STRIP" = x; then
2367     STRIP=":"
2368   else
2369     case $cross_compiling:$ac_tool_warned in
2370 yes:)
2371 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2372 whose name does not start with the host triplet.  If you think this
2373 configuration is useful to you, please write to autoconf@gnu.org." >&5
2374 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2375 whose name does not start with the host triplet.  If you think this
2376 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2377 ac_tool_warned=yes ;;
2378 esac
2379     STRIP=$ac_ct_STRIP
2380   fi
2381 else
2382   STRIP="$ac_cv_prog_STRIP"
2386 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2388 # We need awk for the "check" target.  The system "awk" is bad on
2389 # some platforms.
2390 # Always define AMTAR for backward compatibility.
2392 AMTAR=${AMTAR-"${am_missing_run}tar"}
2394 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2403 # Check whether --enable-static was given.
2404 if test "${enable_static+set}" = set; then
2405   enableval=$enable_static; p=${PACKAGE-default}
2406     case $enableval in
2407     yes) enable_static=yes ;;
2408     no) enable_static=no ;;
2409     *)
2410      enable_static=no
2411       # Look at the argument we got.  We use all the common list separators.
2412       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2413       for pkg in $enableval; do
2414         IFS="$lt_save_ifs"
2415         if test "X$pkg" = "X$p"; then
2416           enable_static=yes
2417         fi
2418       done
2419       IFS="$lt_save_ifs"
2420       ;;
2421     esac
2422 else
2423   enable_static=no
2429 ac_ext=c
2430 ac_cpp='$CPP $CPPFLAGS'
2431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434 if test -n "$ac_tool_prefix"; then
2435   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_CC+set}" = set; then
2440   echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442   if test -n "$CC"; then
2443   ac_cv_prog_CC="$CC" # Let the user override the test.
2444 else
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2448   IFS=$as_save_IFS
2449   test -z "$as_dir" && as_dir=.
2450   for ac_exec_ext in '' $ac_executable_extensions; do
2451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454     break 2
2455   fi
2456 done
2457 done
2458 IFS=$as_save_IFS
2462 CC=$ac_cv_prog_CC
2463 if test -n "$CC"; then
2464   { echo "$as_me:$LINENO: result: $CC" >&5
2465 echo "${ECHO_T}$CC" >&6; }
2466 else
2467   { echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6; }
2473 if test -z "$ac_cv_prog_CC"; then
2474   ac_ct_CC=$CC
2475   # Extract the first word of "gcc", so it can be a program name with args.
2476 set dummy gcc; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2480   echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482   if test -n "$ac_ct_CC"; then
2483   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2488   IFS=$as_save_IFS
2489   test -z "$as_dir" && as_dir=.
2490   for ac_exec_ext in '' $ac_executable_extensions; do
2491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492     ac_cv_prog_ac_ct_CC="gcc"
2493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494     break 2
2495   fi
2496 done
2497 done
2498 IFS=$as_save_IFS
2502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2503 if test -n "$ac_ct_CC"; then
2504   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2505 echo "${ECHO_T}$ac_ct_CC" >&6; }
2506 else
2507   { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2511   if test "x$ac_ct_CC" = x; then
2512     CC=""
2513   else
2514     case $cross_compiling:$ac_tool_warned in
2515 yes:)
2516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2517 whose name does not start with the host triplet.  If you think this
2518 configuration is useful to you, please write to autoconf@gnu.org." >&5
2519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet.  If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2522 ac_tool_warned=yes ;;
2523 esac
2524     CC=$ac_ct_CC
2525   fi
2526 else
2527   CC="$ac_cv_prog_CC"
2530 if test -z "$CC"; then
2531           if test -n "$ac_tool_prefix"; then
2532     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2533 set dummy ${ac_tool_prefix}cc; ac_word=$2
2534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2536 if test "${ac_cv_prog_CC+set}" = set; then
2537   echo $ECHO_N "(cached) $ECHO_C" >&6
2538 else
2539   if test -n "$CC"; then
2540   ac_cv_prog_CC="$CC" # Let the user override the test.
2541 else
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 for as_dir in $PATH
2545   IFS=$as_save_IFS
2546   test -z "$as_dir" && as_dir=.
2547   for ac_exec_ext in '' $ac_executable_extensions; do
2548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2549     ac_cv_prog_CC="${ac_tool_prefix}cc"
2550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551     break 2
2552   fi
2553 done
2554 done
2555 IFS=$as_save_IFS
2559 CC=$ac_cv_prog_CC
2560 if test -n "$CC"; then
2561   { echo "$as_me:$LINENO: result: $CC" >&5
2562 echo "${ECHO_T}$CC" >&6; }
2563 else
2564   { echo "$as_me:$LINENO: result: no" >&5
2565 echo "${ECHO_T}no" >&6; }
2569   fi
2571 if test -z "$CC"; then
2572   # Extract the first word of "cc", so it can be a program name with args.
2573 set dummy cc; ac_word=$2
2574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2576 if test "${ac_cv_prog_CC+set}" = set; then
2577   echo $ECHO_N "(cached) $ECHO_C" >&6
2578 else
2579   if test -n "$CC"; then
2580   ac_cv_prog_CC="$CC" # Let the user override the test.
2581 else
2582   ac_prog_rejected=no
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2586   IFS=$as_save_IFS
2587   test -z "$as_dir" && as_dir=.
2588   for ac_exec_ext in '' $ac_executable_extensions; do
2589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2591        ac_prog_rejected=yes
2592        continue
2593      fi
2594     ac_cv_prog_CC="cc"
2595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596     break 2
2597   fi
2598 done
2599 done
2600 IFS=$as_save_IFS
2602 if test $ac_prog_rejected = yes; then
2603   # We found a bogon in the path, so make sure we never use it.
2604   set dummy $ac_cv_prog_CC
2605   shift
2606   if test $@%:@ != 0; then
2607     # We chose a different compiler from the bogus one.
2608     # However, it has the same basename, so the bogon will be chosen
2609     # first if we set CC to just the basename; use the full file name.
2610     shift
2611     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2612   fi
2616 CC=$ac_cv_prog_CC
2617 if test -n "$CC"; then
2618   { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2620 else
2621   { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2627 if test -z "$CC"; then
2628   if test -n "$ac_tool_prefix"; then
2629   for ac_prog in cl.exe
2630   do
2631     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_CC+set}" = set; then
2636   echo $ECHO_N "(cached) $ECHO_C" >&6
2637 else
2638   if test -n "$CC"; then
2639   ac_cv_prog_CC="$CC" # Let the user override the test.
2640 else
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2644   IFS=$as_save_IFS
2645   test -z "$as_dir" && as_dir=.
2646   for ac_exec_ext in '' $ac_executable_extensions; do
2647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650     break 2
2651   fi
2652 done
2653 done
2654 IFS=$as_save_IFS
2658 CC=$ac_cv_prog_CC
2659 if test -n "$CC"; then
2660   { echo "$as_me:$LINENO: result: $CC" >&5
2661 echo "${ECHO_T}$CC" >&6; }
2662 else
2663   { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2668     test -n "$CC" && break
2669   done
2671 if test -z "$CC"; then
2672   ac_ct_CC=$CC
2673   for ac_prog in cl.exe
2675   # Extract the first word of "$ac_prog", so it can be a program name with args.
2676 set dummy $ac_prog; ac_word=$2
2677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2680   echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682   if test -n "$ac_ct_CC"; then
2683   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2688   IFS=$as_save_IFS
2689   test -z "$as_dir" && as_dir=.
2690   for ac_exec_ext in '' $ac_executable_extensions; do
2691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692     ac_cv_prog_ac_ct_CC="$ac_prog"
2693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694     break 2
2695   fi
2696 done
2697 done
2698 IFS=$as_save_IFS
2702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703 if test -n "$ac_ct_CC"; then
2704   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2705 echo "${ECHO_T}$ac_ct_CC" >&6; }
2706 else
2707   { echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6; }
2712   test -n "$ac_ct_CC" && break
2713 done
2715   if test "x$ac_ct_CC" = x; then
2716     CC=""
2717   else
2718     case $cross_compiling:$ac_tool_warned in
2719 yes:)
2720 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2721 whose name does not start with the host triplet.  If you think this
2722 configuration is useful to you, please write to autoconf@gnu.org." >&5
2723 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2724 whose name does not start with the host triplet.  If you think this
2725 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2726 ac_tool_warned=yes ;;
2727 esac
2728     CC=$ac_ct_CC
2729   fi
2735 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2736 See \`config.log' for more details." >&5
2737 echo "$as_me: error: no acceptable C compiler found in \$PATH
2738 See \`config.log' for more details." >&2;}
2739    { (exit 1); exit 1; }; }
2741 # Provide some information about the compiler.
2742 echo "$as_me:$LINENO: checking for C compiler version" >&5
2743 ac_compiler=`set X $ac_compile; echo $2`
2744 { (ac_try="$ac_compiler --version >&5"
2745 case "(($ac_try" in
2746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747   *) ac_try_echo=$ac_try;;
2748 esac
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750   (eval "$ac_compiler --version >&5") 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); }
2754 { (ac_try="$ac_compiler -v >&5"
2755 case "(($ac_try" in
2756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757   *) ac_try_echo=$ac_try;;
2758 esac
2759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760   (eval "$ac_compiler -v >&5") 2>&5
2761   ac_status=$?
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); }
2764 { (ac_try="$ac_compiler -V >&5"
2765 case "(($ac_try" in
2766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767   *) ac_try_echo=$ac_try;;
2768 esac
2769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2770   (eval "$ac_compiler -V >&5") 2>&5
2771   ac_status=$?
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); }
2775 cat >conftest.$ac_ext <<_ACEOF
2776 /* confdefs.h.  */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h.  */
2783 main ()
2786   ;
2787   return 0;
2789 _ACEOF
2790 ac_clean_files_save=$ac_clean_files
2791 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2792 # Try to create an executable without -o first, disregard a.out.
2793 # It will help us diagnose broken compilers, and finding out an intuition
2794 # of exeext.
2795 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2796 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2797 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2799 # List of possible output files, starting from the most likely.
2800 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2801 # only as a last resort.  b.out is created by i960 compilers.
2802 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2804 # The IRIX 6 linker writes into existing files which may not be
2805 # executable, retaining their permissions.  Remove them first so a
2806 # subsequent execution test works.
2807 ac_rmfiles=
2808 for ac_file in $ac_files
2810   case $ac_file in
2811     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2812     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2813   esac
2814 done
2815 rm -f $ac_rmfiles
2817 if { (ac_try="$ac_link_default"
2818 case "(($ac_try" in
2819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820   *) ac_try_echo=$ac_try;;
2821 esac
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823   (eval "$ac_link_default") 2>&5
2824   ac_status=$?
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); }; then
2827   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2828 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2829 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2830 # so that the user can short-circuit this test for compilers unknown to
2831 # Autoconf.
2832 for ac_file in $ac_files ''
2834   test -f "$ac_file" || continue
2835   case $ac_file in
2836     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2837         ;;
2838     [ab].out )
2839         # We found the default executable, but exeext='' is most
2840         # certainly right.
2841         break;;
2842     *.* )
2843         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2844         then :; else
2845            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2846         fi
2847         # We set ac_cv_exeext here because the later test for it is not
2848         # safe: cross compilers may not add the suffix if given an `-o'
2849         # argument, so we may need to know it at that point already.
2850         # Even if this section looks crufty: it has the advantage of
2851         # actually working.
2852         break;;
2853     * )
2854         break;;
2855   esac
2856 done
2857 test "$ac_cv_exeext" = no && ac_cv_exeext=
2859 else
2860   ac_file=''
2863 { echo "$as_me:$LINENO: result: $ac_file" >&5
2864 echo "${ECHO_T}$ac_file" >&6; }
2865 if test -z "$ac_file"; then
2866   echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2869 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2870 See \`config.log' for more details." >&5
2871 echo "$as_me: error: C compiler cannot create executables
2872 See \`config.log' for more details." >&2;}
2873    { (exit 77); exit 77; }; }
2876 ac_exeext=$ac_cv_exeext
2878 # Check that the compiler produces executables we can run.  If not, either
2879 # the compiler is broken, or we cross compile.
2880 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2881 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2882 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2883 # If not cross compiling, check that we can run a simple program.
2884 if test "$cross_compiling" != yes; then
2885   if { ac_try='./$ac_file'
2886   { (case "(($ac_try" in
2887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888   *) ac_try_echo=$ac_try;;
2889 esac
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891   (eval "$ac_try") 2>&5
2892   ac_status=$?
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); }; }; then
2895     cross_compiling=no
2896   else
2897     if test "$cross_compiling" = maybe; then
2898         cross_compiling=yes
2899     else
2900         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2901 If you meant to cross compile, use \`--host'.
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: cannot run C compiled programs.
2904 If you meant to cross compile, use \`--host'.
2905 See \`config.log' for more details." >&2;}
2906    { (exit 1); exit 1; }; }
2907     fi
2908   fi
2910 { echo "$as_me:$LINENO: result: yes" >&5
2911 echo "${ECHO_T}yes" >&6; }
2913 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2914 ac_clean_files=$ac_clean_files_save
2915 # Check that the compiler produces executables we can run.  If not, either
2916 # the compiler is broken, or we cross compile.
2917 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2918 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2919 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2920 echo "${ECHO_T}$cross_compiling" >&6; }
2922 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2923 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2924 if { (ac_try="$ac_link"
2925 case "(($ac_try" in
2926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927   *) ac_try_echo=$ac_try;;
2928 esac
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930   (eval "$ac_link") 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; then
2934   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2935 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2936 # work properly (i.e., refer to `conftest.exe'), while it won't with
2937 # `rm'.
2938 for ac_file in conftest.exe conftest conftest.*; do
2939   test -f "$ac_file" || continue
2940   case $ac_file in
2941     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2942     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2943           break;;
2944     * ) break;;
2945   esac
2946 done
2947 else
2948   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2949 See \`config.log' for more details." >&5
2950 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2951 See \`config.log' for more details." >&2;}
2952    { (exit 1); exit 1; }; }
2955 rm -f conftest$ac_cv_exeext
2956 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2957 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2959 rm -f conftest.$ac_ext
2960 EXEEXT=$ac_cv_exeext
2961 ac_exeext=$EXEEXT
2962 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2963 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2964 if test "${ac_cv_objext+set}" = set; then
2965   echo $ECHO_N "(cached) $ECHO_C" >&6
2966 else
2967   cat >conftest.$ac_ext <<_ACEOF
2968 /* confdefs.h.  */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h.  */
2975 main ()
2978   ;
2979   return 0;
2981 _ACEOF
2982 rm -f conftest.o conftest.obj
2983 if { (ac_try="$ac_compile"
2984 case "(($ac_try" in
2985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986   *) ac_try_echo=$ac_try;;
2987 esac
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989   (eval "$ac_compile") 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; then
2993   for ac_file in conftest.o conftest.obj conftest.*; do
2994   test -f "$ac_file" || continue;
2995   case $ac_file in
2996     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2997     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2998        break;;
2999   esac
3000 done
3001 else
3002   echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3005 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3006 See \`config.log' for more details." >&5
3007 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3008 See \`config.log' for more details." >&2;}
3009    { (exit 1); exit 1; }; }
3012 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3014 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3015 echo "${ECHO_T}$ac_cv_objext" >&6; }
3016 OBJEXT=$ac_cv_objext
3017 ac_objext=$OBJEXT
3018 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3019 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3020 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3021   echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023   cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h.  */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h.  */
3031 main ()
3033 #ifndef __GNUC__
3034        choke me
3035 #endif
3037   ;
3038   return 0;
3040 _ACEOF
3041 rm -f conftest.$ac_objext
3042 if { (ac_try="$ac_compile"
3043 case "(($ac_try" in
3044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045   *) ac_try_echo=$ac_try;;
3046 esac
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048   (eval "$ac_compile") 2>conftest.er1
3049   ac_status=$?
3050   grep -v '^ *+' conftest.er1 >conftest.err
3051   rm -f conftest.er1
3052   cat conftest.err >&5
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); } && {
3055          test -z "$ac_c_werror_flag" ||
3056          test ! -s conftest.err
3057        } && test -s conftest.$ac_objext; then
3058   ac_compiler_gnu=yes
3059 else
3060   echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3063         ac_compiler_gnu=no
3066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3070 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3071 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3072 GCC=`test $ac_compiler_gnu = yes && echo yes`
3073 ac_test_CFLAGS=${CFLAGS+set}
3074 ac_save_CFLAGS=$CFLAGS
3075 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3076 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3077 if test "${ac_cv_prog_cc_g+set}" = set; then
3078   echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080   ac_save_c_werror_flag=$ac_c_werror_flag
3081    ac_c_werror_flag=yes
3082    ac_cv_prog_cc_g=no
3083    CFLAGS="-g"
3084    cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3092 main ()
3095   ;
3096   return 0;
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3101 case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_compile") 2>conftest.er1
3107   ac_status=$?
3108   grep -v '^ *+' conftest.er1 >conftest.err
3109   rm -f conftest.er1
3110   cat conftest.err >&5
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); } && {
3113          test -z "$ac_c_werror_flag" ||
3114          test ! -s conftest.err
3115        } && test -s conftest.$ac_objext; then
3116   ac_cv_prog_cc_g=yes
3117 else
3118   echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3121         CFLAGS=""
3122       cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h.  */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h.  */
3130 main ()
3133   ;
3134   return 0;
3136 _ACEOF
3137 rm -f conftest.$ac_objext
3138 if { (ac_try="$ac_compile"
3139 case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144   (eval "$ac_compile") 2>conftest.er1
3145   ac_status=$?
3146   grep -v '^ *+' conftest.er1 >conftest.err
3147   rm -f conftest.er1
3148   cat conftest.err >&5
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); } && {
3151          test -z "$ac_c_werror_flag" ||
3152          test ! -s conftest.err
3153        } && test -s conftest.$ac_objext; then
3154   :
3155 else
3156   echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3159         ac_c_werror_flag=$ac_save_c_werror_flag
3160          CFLAGS="-g"
3161          cat >conftest.$ac_ext <<_ACEOF
3162 /* confdefs.h.  */
3163 _ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h.  */
3169 main ()
3172   ;
3173   return 0;
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3178 case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$ac_compile") 2>conftest.er1
3184   ac_status=$?
3185   grep -v '^ *+' conftest.er1 >conftest.err
3186   rm -f conftest.er1
3187   cat conftest.err >&5
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); } && {
3190          test -z "$ac_c_werror_flag" ||
3191          test ! -s conftest.err
3192        } && test -s conftest.$ac_objext; then
3193   ac_cv_prog_cc_g=yes
3194 else
3195   echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3198         
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208    ac_c_werror_flag=$ac_save_c_werror_flag
3210 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3211 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3212 if test "$ac_test_CFLAGS" = set; then
3213   CFLAGS=$ac_save_CFLAGS
3214 elif test $ac_cv_prog_cc_g = yes; then
3215   if test "$GCC" = yes; then
3216     CFLAGS="-g -O2"
3217   else
3218     CFLAGS="-g"
3219   fi
3220 else
3221   if test "$GCC" = yes; then
3222     CFLAGS="-O2"
3223   else
3224     CFLAGS=
3225   fi
3227 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3228 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3229 if test "${ac_cv_prog_cc_c89+set}" = set; then
3230   echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232   ac_cv_prog_cc_c89=no
3233 ac_save_CC=$CC
3234 cat >conftest.$ac_ext <<_ACEOF
3235 /* confdefs.h.  */
3236 _ACEOF
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h.  */
3240 #include <stdarg.h>
3241 #include <stdio.h>
3242 #include <sys/types.h>
3243 #include <sys/stat.h>
3244 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3245 struct buf { int x; };
3246 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3247 static char *e (p, i)
3248      char **p;
3249      int i;
3251   return p[i];
3253 static char *f (char * (*g) (char **, int), char **p, ...)
3255   char *s;
3256   va_list v;
3257   va_start (v,p);
3258   s = g (p, va_arg (v,int));
3259   va_end (v);
3260   return s;
3263 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3264    function prototypes and stuff, but not '\xHH' hex character constants.
3265    These don't provoke an error unfortunately, instead are silently treated
3266    as 'x'.  The following induces an error, until -std is added to get
3267    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3268    array size at least.  It's necessary to write '\x00'==0 to get something
3269    that's true only with -std.  */
3270 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3272 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3273    inside strings and character constants.  */
3274 #define FOO(x) 'x'
3275 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3277 int test (int i, double x);
3278 struct s1 {int (*f) (int a);};
3279 struct s2 {int (*f) (double a);};
3280 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3281 int argc;
3282 char **argv;
3284 main ()
3286 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3287   ;
3288   return 0;
3290 _ACEOF
3291 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3292         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3294   CC="$ac_save_CC $ac_arg"
3295   rm -f conftest.$ac_objext
3296 if { (ac_try="$ac_compile"
3297 case "(($ac_try" in
3298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299   *) ac_try_echo=$ac_try;;
3300 esac
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302   (eval "$ac_compile") 2>conftest.er1
3303   ac_status=$?
3304   grep -v '^ *+' conftest.er1 >conftest.err
3305   rm -f conftest.er1
3306   cat conftest.err >&5
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); } && {
3309          test -z "$ac_c_werror_flag" ||
3310          test ! -s conftest.err
3311        } && test -s conftest.$ac_objext; then
3312   ac_cv_prog_cc_c89=$ac_arg
3313 else
3314   echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3317         
3320 rm -f core conftest.err conftest.$ac_objext 
3321   test "x$ac_cv_prog_cc_c89" != "xno" && break
3322 done
3323 rm -f conftest.$ac_ext
3324 CC=$ac_save_CC
3327 # AC_CACHE_VAL
3328 case "x$ac_cv_prog_cc_c89" in
3329   x)
3330     { echo "$as_me:$LINENO: result: none needed" >&5
3331 echo "${ECHO_T}none needed" >&6; } ;;
3332   xno)
3333     { echo "$as_me:$LINENO: result: unsupported" >&5
3334 echo "${ECHO_T}unsupported" >&6; } ;;
3335   *)
3336     CC="$CC $ac_cv_prog_cc_c89"
3337     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3338 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3339 esac
3342 ac_ext=c
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347 DEPDIR="${am__leading_dot}deps"
3349 ac_config_commands="$ac_config_commands depfiles"
3352 am_make=${MAKE-make}
3353 cat > confinc << 'END'
3354 am__doit:
3355         @echo done
3356 .PHONY: am__doit
3358 # If we don't find an include directive, just comment out the code.
3359 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3360 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3361 am__include="#"
3362 am__quote=
3363 _am_result=none
3364 # First try GNU make style include.
3365 echo "include confinc" > confmf
3366 # We grep out `Entering directory' and `Leaving directory'
3367 # messages which can occur if `w' ends up in MAKEFLAGS.
3368 # In particular we don't look at `^make:' because GNU make might
3369 # be invoked under some other name (usually "gmake"), in which
3370 # case it prints its new name instead of `make'.
3371 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3372    am__include=include
3373    am__quote=
3374    _am_result=GNU
3376 # Now try BSD make style include.
3377 if test "$am__include" = "#"; then
3378    echo '.include "confinc"' > confmf
3379    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3380       am__include=.include
3381       am__quote="\""
3382       _am_result=BSD
3383    fi
3387 { echo "$as_me:$LINENO: result: $_am_result" >&5
3388 echo "${ECHO_T}$_am_result" >&6; }
3389 rm -f confinc confmf
3391 # Check whether --enable-dependency-tracking was given.
3392 if test "${enable_dependency_tracking+set}" = set; then
3393   enableval=$enable_dependency_tracking; 
3396 if test "x$enable_dependency_tracking" != xno; then
3397   am_depcomp="$ac_aux_dir/depcomp"
3398   AMDEPBACKSLASH='\'
3402 if test "x$enable_dependency_tracking" != xno; then
3403   AMDEP_TRUE=
3404   AMDEP_FALSE='#'
3405 else
3406   AMDEP_TRUE='#'
3407   AMDEP_FALSE=
3413 depcc="$CC"   am_compiler_list=
3415 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3416 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3417 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3418   echo $ECHO_N "(cached) $ECHO_C" >&6
3419 else
3420   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3421   # We make a subdir and do the tests there.  Otherwise we can end up
3422   # making bogus files that we don't know about and never remove.  For
3423   # instance it was reported that on HP-UX the gcc test will end up
3424   # making a dummy file named `D' -- because `-MD' means `put the output
3425   # in D'.
3426   mkdir conftest.dir
3427   # Copy depcomp to subdir because otherwise we won't find it if we're
3428   # using a relative directory.
3429   cp "$am_depcomp" conftest.dir
3430   cd conftest.dir
3431   # We will build objects and dependencies in a subdirectory because
3432   # it helps to detect inapplicable dependency modes.  For instance
3433   # both Tru64's cc and ICC support -MD to output dependencies as a
3434   # side effect of compilation, but ICC will put the dependencies in
3435   # the current directory while Tru64 will put them in the object
3436   # directory.
3437   mkdir sub
3439   am_cv_CC_dependencies_compiler_type=none
3440   if test "$am_compiler_list" = ""; then
3441      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3442   fi
3443   for depmode in $am_compiler_list; do
3444     # Setup a source with many dependencies, because some compilers
3445     # like to wrap large dependency lists on column 80 (with \), and
3446     # we should not choose a depcomp mode which is confused by this.
3447     #
3448     # We need to recreate these files for each test, as the compiler may
3449     # overwrite some of them when testing with obscure command lines.
3450     # This happens at least with the AIX C compiler.
3451     : > sub/conftest.c
3452     for i in 1 2 3 4 5 6; do
3453       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3454       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3455       # Solaris 8's {/usr,}/bin/sh.
3456       touch sub/conftst$i.h
3457     done
3458     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3460     case $depmode in
3461     nosideeffect)
3462       # after this tag, mechanisms are not by side-effect, so they'll
3463       # only be used when explicitly requested
3464       if test "x$enable_dependency_tracking" = xyes; then
3465         continue
3466       else
3467         break
3468       fi
3469       ;;
3470     none) break ;;
3471     esac
3472     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3473     # mode.  It turns out that the SunPro C++ compiler does not properly
3474     # handle `-M -o', and we need to detect this.
3475     if depmode=$depmode \
3476        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3477        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3478        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3479          >/dev/null 2>conftest.err &&
3480        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3481        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3482        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3483       # icc doesn't choke on unknown options, it will just issue warnings
3484       # or remarks (even with -Werror).  So we grep stderr for any message
3485       # that says an option was ignored or not supported.
3486       # When given -MP, icc 7.0 and 7.1 complain thusly:
3487       #   icc: Command line warning: ignoring option '-M'; no argument required
3488       # The diagnosis changed in icc 8.0:
3489       #   icc: Command line remark: option '-MP' not supported
3490       if (grep 'ignoring option' conftest.err ||
3491           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3492         am_cv_CC_dependencies_compiler_type=$depmode
3493         break
3494       fi
3495     fi
3496   done
3498   cd ..
3499   rm -rf conftest.dir
3500 else
3501   am_cv_CC_dependencies_compiler_type=none
3505 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3506 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3507 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3511 if 
3512   test "x$enable_dependency_tracking" != xno \
3513   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3514   am__fastdepCC_TRUE=
3515   am__fastdepCC_FALSE='#'
3516 else
3517   am__fastdepCC_TRUE='#'
3518   am__fastdepCC_FALSE=
3522 # Find a good install program.  We prefer a C program (faster),
3523 # so one script is as good as another.  But avoid the broken or
3524 # incompatible versions:
3525 # SysV /etc/install, /usr/sbin/install
3526 # SunOS /usr/etc/install
3527 # IRIX /sbin/install
3528 # AIX /bin/install
3529 # AmigaOS /C/install, which installs bootblocks on floppy discs
3530 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3531 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3532 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3533 # OS/2's system install, which has a completely different semantic
3534 # ./install, which can be erroneously created by make from ./install.sh.
3535 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3536 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3537 if test -z "$INSTALL"; then
3538 if test "${ac_cv_path_install+set}" = set; then
3539   echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3544   IFS=$as_save_IFS
3545   test -z "$as_dir" && as_dir=.
3546   # Account for people who put trailing slashes in PATH elements.
3547 case $as_dir/ in
3548   ./ | .// | /cC/* | \
3549   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3550   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3551   /usr/ucb/* ) ;;
3552   *)
3553     # OSF1 and SCO ODT 3.0 have their own names for install.
3554     # Don't use installbsd from OSF since it installs stuff as root
3555     # by default.
3556     for ac_prog in ginstall scoinst install; do
3557       for ac_exec_ext in '' $ac_executable_extensions; do
3558         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3559           if test $ac_prog = install &&
3560             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3561             # AIX install.  It has an incompatible calling convention.
3562             :
3563           elif test $ac_prog = install &&
3564             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3565             # program-specific install script used by HP pwplus--don't use.
3566             :
3567           else
3568             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3569             break 3
3570           fi
3571         fi
3572       done
3573     done
3574     ;;
3575 esac
3576 done
3577 IFS=$as_save_IFS
3581   if test "${ac_cv_path_install+set}" = set; then
3582     INSTALL=$ac_cv_path_install
3583   else
3584     # As a last resort, use the slow shell script.  Don't cache a
3585     # value for INSTALL within a source directory, because that will
3586     # break other packages using the cache if that directory is
3587     # removed, or if the value is a relative name.
3588     INSTALL=$ac_install_sh
3589   fi
3591 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3592 echo "${ECHO_T}$INSTALL" >&6; }
3594 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3595 # It thinks the first close brace ends the variable substitution.
3596 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3598 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3600 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3602 # Check whether --enable-shared was given.
3603 if test "${enable_shared+set}" = set; then
3604   enableval=$enable_shared; p=${PACKAGE-default}
3605     case $enableval in
3606     yes) enable_shared=yes ;;
3607     no) enable_shared=no ;;
3608     *)
3609       enable_shared=no
3610       # Look at the argument we got.  We use all the common list separators.
3611       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3612       for pkg in $enableval; do
3613         IFS="$lt_save_ifs"
3614         if test "X$pkg" = "X$p"; then
3615           enable_shared=yes
3616         fi
3617       done
3618       IFS="$lt_save_ifs"
3619       ;;
3620     esac
3621 else
3622   enable_shared=yes
3626 # Check whether --enable-fast-install was given.
3627 if test "${enable_fast_install+set}" = set; then
3628   enableval=$enable_fast_install; p=${PACKAGE-default}
3629     case $enableval in
3630     yes) enable_fast_install=yes ;;
3631     no) enable_fast_install=no ;;
3632     *)
3633       enable_fast_install=no
3634       # Look at the argument we got.  We use all the common list separators.
3635       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3636       for pkg in $enableval; do
3637         IFS="$lt_save_ifs"
3638         if test "X$pkg" = "X$p"; then
3639           enable_fast_install=yes
3640         fi
3641       done
3642       IFS="$lt_save_ifs"
3643       ;;
3644     esac
3645 else
3646   enable_fast_install=yes
3650 # Make sure we can run config.sub.
3651 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3652   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3653 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3654    { (exit 1); exit 1; }; }
3656 { echo "$as_me:$LINENO: checking build system type" >&5
3657 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3658 if test "${ac_cv_build+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661   ac_build_alias=$build_alias
3662 test "x$ac_build_alias" = x &&
3663   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3664 test "x$ac_build_alias" = x &&
3665   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3666 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3667    { (exit 1); exit 1; }; }
3668 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3669   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3670 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3671    { (exit 1); exit 1; }; }
3674 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3675 echo "${ECHO_T}$ac_cv_build" >&6; }
3676 case $ac_cv_build in
3677 *-*-*) ;;
3678 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3679 echo "$as_me: error: invalid value of canonical build" >&2;}
3680    { (exit 1); exit 1; }; };;
3681 esac
3682 build=$ac_cv_build
3683 ac_save_IFS=$IFS; IFS='-'
3684 set x $ac_cv_build
3685 shift
3686 build_cpu=$1
3687 build_vendor=$2
3688 shift; shift
3689 # Remember, the first character of IFS is used to create $*,
3690 # except with old shells:
3691 build_os=$*
3692 IFS=$ac_save_IFS
3693 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3696 { echo "$as_me:$LINENO: checking host system type" >&5
3697 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3698 if test "${ac_cv_host+set}" = set; then
3699   echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701   if test "x$host_alias" = x; then
3702   ac_cv_host=$ac_cv_build
3703 else
3704   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3705     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3706 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3707    { (exit 1); exit 1; }; }
3711 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3712 echo "${ECHO_T}$ac_cv_host" >&6; }
3713 case $ac_cv_host in
3714 *-*-*) ;;
3715 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3716 echo "$as_me: error: invalid value of canonical host" >&2;}
3717    { (exit 1); exit 1; }; };;
3718 esac
3719 host=$ac_cv_host
3720 ac_save_IFS=$IFS; IFS='-'
3721 set x $ac_cv_host
3722 shift
3723 host_cpu=$1
3724 host_vendor=$2
3725 shift; shift
3726 # Remember, the first character of IFS is used to create $*,
3727 # except with old shells:
3728 host_os=$*
3729 IFS=$ac_save_IFS
3730 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3733 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3734 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3735 if test "${lt_cv_path_SED+set}" = set; then
3736   echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738   # Loop through the user's path and test for sed and gsed.
3739 # Then use that list of sed's as ones to test for truncation.
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3743   IFS=$as_save_IFS
3744   test -z "$as_dir" && as_dir=.
3745   for lt_ac_prog in sed gsed; do
3746     for ac_exec_ext in '' $ac_executable_extensions; do
3747       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3748         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3749       fi
3750     done
3751   done
3752 done
3753 lt_ac_max=0
3754 lt_ac_count=0
3755 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3756 # along with /bin/sed that truncates output.
3757 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3758   test ! -f $lt_ac_sed && continue
3759   cat /dev/null > conftest.in
3760   lt_ac_count=0
3761   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3762   # Check for GNU sed and select it if it is found.
3763   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3764     lt_cv_path_SED=$lt_ac_sed
3765     break
3766   fi
3767   while true; do
3768     cat conftest.in conftest.in >conftest.tmp
3769     mv conftest.tmp conftest.in
3770     cp conftest.in conftest.nl
3771     echo >>conftest.nl
3772     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3773     cmp -s conftest.out conftest.nl || break
3774     # 10000 chars as input seems more than enough
3775     test $lt_ac_count -gt 10 && break
3776     lt_ac_count=`expr $lt_ac_count + 1`
3777     if test $lt_ac_count -gt $lt_ac_max; then
3778       lt_ac_max=$lt_ac_count
3779       lt_cv_path_SED=$lt_ac_sed
3780     fi
3781   done
3782 done
3786 SED=$lt_cv_path_SED
3787 { echo "$as_me:$LINENO: result: $SED" >&5
3788 echo "${ECHO_T}$SED" >&6; }
3790 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3791 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3792 if test "${ac_cv_path_GREP+set}" = set; then
3793   echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795   # Extract the first word of "grep ggrep" to use in msg output
3796 if test -z "$GREP"; then
3797 set dummy grep ggrep; ac_prog_name=$2
3798 if test "${ac_cv_path_GREP+set}" = set; then
3799   echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801   ac_path_GREP_found=false
3802 # Loop through the user's path and test for each of PROGNAME-LIST
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3806   IFS=$as_save_IFS
3807   test -z "$as_dir" && as_dir=.
3808   for ac_prog in grep ggrep; do
3809   for ac_exec_ext in '' $ac_executable_extensions; do
3810     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3811     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3812     # Check for GNU ac_path_GREP and select it if it is found.
3813   # Check for GNU $ac_path_GREP
3814 case `"$ac_path_GREP" --version 2>&1` in
3815 *GNU*)
3816   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3818   ac_count=0
3819   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3820   while :
3821   do
3822     cat "conftest.in" "conftest.in" >"conftest.tmp"
3823     mv "conftest.tmp" "conftest.in"
3824     cp "conftest.in" "conftest.nl"
3825     echo 'GREP' >> "conftest.nl"
3826     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3827     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3828     ac_count=`expr $ac_count + 1`
3829     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3830       # Best one so far, save it but keep looking for a better one
3831       ac_cv_path_GREP="$ac_path_GREP"
3832       ac_path_GREP_max=$ac_count
3833     fi
3834     # 10*(2^10) chars as input seems more than enough
3835     test $ac_count -gt 10 && break
3836   done
3837   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3838 esac
3841     $ac_path_GREP_found && break 3
3842   done
3843 done
3845 done
3846 IFS=$as_save_IFS
3851 GREP="$ac_cv_path_GREP"
3852 if test -z "$GREP"; then
3853   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3854 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3855    { (exit 1); exit 1; }; }
3858 else
3859   ac_cv_path_GREP=$GREP
3864 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3865 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3866  GREP="$ac_cv_path_GREP"
3869 { echo "$as_me:$LINENO: checking for egrep" >&5
3870 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3871 if test "${ac_cv_path_EGREP+set}" = set; then
3872   echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3875    then ac_cv_path_EGREP="$GREP -E"
3876    else
3877      # Extract the first word of "egrep" to use in msg output
3878 if test -z "$EGREP"; then
3879 set dummy egrep; ac_prog_name=$2
3880 if test "${ac_cv_path_EGREP+set}" = set; then
3881   echo $ECHO_N "(cached) $ECHO_C" >&6
3882 else
3883   ac_path_EGREP_found=false
3884 # Loop through the user's path and test for each of PROGNAME-LIST
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3888   IFS=$as_save_IFS
3889   test -z "$as_dir" && as_dir=.
3890   for ac_prog in egrep; do
3891   for ac_exec_ext in '' $ac_executable_extensions; do
3892     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3893     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3894     # Check for GNU ac_path_EGREP and select it if it is found.
3895   # Check for GNU $ac_path_EGREP
3896 case `"$ac_path_EGREP" --version 2>&1` in
3897 *GNU*)
3898   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3900   ac_count=0
3901   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3902   while :
3903   do
3904     cat "conftest.in" "conftest.in" >"conftest.tmp"
3905     mv "conftest.tmp" "conftest.in"
3906     cp "conftest.in" "conftest.nl"
3907     echo 'EGREP' >> "conftest.nl"
3908     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3909     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3910     ac_count=`expr $ac_count + 1`
3911     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3912       # Best one so far, save it but keep looking for a better one
3913       ac_cv_path_EGREP="$ac_path_EGREP"
3914       ac_path_EGREP_max=$ac_count
3915     fi
3916     # 10*(2^10) chars as input seems more than enough
3917     test $ac_count -gt 10 && break
3918   done
3919   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3920 esac
3923     $ac_path_EGREP_found && break 3
3924   done
3925 done
3927 done
3928 IFS=$as_save_IFS
3933 EGREP="$ac_cv_path_EGREP"
3934 if test -z "$EGREP"; then
3935   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3936 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3937    { (exit 1); exit 1; }; }
3940 else
3941   ac_cv_path_EGREP=$EGREP
3945    fi
3947 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3948 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3949  EGREP="$ac_cv_path_EGREP"
3953 # Check whether --with-gnu-ld was given.
3954 if test "${with_gnu_ld+set}" = set; then
3955   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3956 else
3957   with_gnu_ld=no
3960 ac_prog=ld
3961 if test "$GCC" = yes; then
3962   # Check if gcc -print-prog-name=ld gives a path.
3963   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3964 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3965   case $host in
3966   *-*-mingw*)
3967     # gcc leaves a trailing carriage return which upsets mingw
3968     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3969   *)
3970     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3971   esac
3972   case $ac_prog in
3973     # Accept absolute paths.
3974     [\\/]* | ?:[\\/]*)
3975       re_direlt='/[^/][^/]*/\.\./'
3976       # Canonicalize the pathname of ld
3977       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3978       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3979         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3980       done
3981       test -z "$LD" && LD="$ac_prog"
3982       ;;
3983   "")
3984     # If it fails, then pretend we aren't using GCC.
3985     ac_prog=ld
3986     ;;
3987   *)
3988     # If it is relative, then search for the first ld in PATH.
3989     with_gnu_ld=unknown
3990     ;;
3991   esac
3992 elif test "$with_gnu_ld" = yes; then
3993   { echo "$as_me:$LINENO: checking for GNU ld" >&5
3994 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3995 else
3996   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3997 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3999 if test "${lt_cv_path_LD+set}" = set; then
4000   echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002   if test -z "$LD"; then
4003   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4004   for ac_dir in $PATH; do
4005     IFS="$lt_save_ifs"
4006     test -z "$ac_dir" && ac_dir=.
4007     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4008       lt_cv_path_LD="$ac_dir/$ac_prog"
4009       # Check to see if the program is GNU ld.  I'd rather use --version,
4010       # but apparently some variants of GNU ld only accept -v.
4011       # Break only if it was the GNU/non-GNU ld that we prefer.
4012       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4013       *GNU* | *'with BFD'*)
4014         test "$with_gnu_ld" != no && break
4015         ;;
4016       *)
4017         test "$with_gnu_ld" != yes && break
4018         ;;
4019       esac
4020     fi
4021   done
4022   IFS="$lt_save_ifs"
4023 else
4024   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4028 LD="$lt_cv_path_LD"
4029 if test -n "$LD"; then
4030   { echo "$as_me:$LINENO: result: $LD" >&5
4031 echo "${ECHO_T}$LD" >&6; }
4032 else
4033   { echo "$as_me:$LINENO: result: no" >&5
4034 echo "${ECHO_T}no" >&6; }
4036 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4037 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4038    { (exit 1); exit 1; }; }
4039 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4040 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4041 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4042   echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4045 case `$LD -v 2>&1 </dev/null` in
4046 *GNU* | *'with BFD'*)
4047   lt_cv_prog_gnu_ld=yes
4048   ;;
4050   lt_cv_prog_gnu_ld=no
4051   ;;
4052 esac
4054 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4055 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4056 with_gnu_ld=$lt_cv_prog_gnu_ld
4059 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4060 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4061 if test "${lt_cv_ld_reload_flag+set}" = set; then
4062   echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064   lt_cv_ld_reload_flag='-r'
4066 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4067 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4068 reload_flag=$lt_cv_ld_reload_flag
4069 case $reload_flag in
4070 "" | " "*) ;;
4071 *) reload_flag=" $reload_flag" ;;
4072 esac
4073 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4074 case $host_os in
4075   darwin*)
4076     if test "$GCC" = yes; then
4077       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4078     else
4079       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4080     fi
4081     ;;
4082 esac
4084 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4085 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4086 if test "${lt_cv_path_NM+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   if test -n "$NM"; then
4090   # Let the user override the test.
4091   lt_cv_path_NM="$NM"
4092 else
4093   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4094   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4095     IFS="$lt_save_ifs"
4096     test -z "$ac_dir" && ac_dir=.
4097     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4098     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4099       # Check to see if the nm accepts a BSD-compat flag.
4100       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4101       #   nm: unknown option "B" ignored
4102       # Tru64's nm complains that /dev/null is an invalid object file
4103       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4104       */dev/null* | *'Invalid file or object type'*)
4105         lt_cv_path_NM="$tmp_nm -B"
4106         break
4107         ;;
4108       *)
4109         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4110         */dev/null*)
4111           lt_cv_path_NM="$tmp_nm -p"
4112           break
4113           ;;
4114         *)
4115           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4116           continue # so that we can try to find one that supports BSD flags
4117           ;;
4118         esac
4119       esac
4120     fi
4121   done
4122   IFS="$lt_save_ifs"
4123   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4126 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4127 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4128 NM="$lt_cv_path_NM"
4130 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4131 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4132 LN_S=$as_ln_s
4133 if test "$LN_S" = "ln -s"; then
4134   { echo "$as_me:$LINENO: result: yes" >&5
4135 echo "${ECHO_T}yes" >&6; }
4136 else
4137   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4138 echo "${ECHO_T}no, using $LN_S" >&6; }
4141 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4142 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4143 if test "${lt_cv_deplibs_check_method+set}" = set; then
4144   echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4146   lt_cv_file_magic_cmd='$MAGIC_CMD'
4147 lt_cv_file_magic_test_file=
4148 lt_cv_deplibs_check_method='unknown'
4149 # Need to set the preceding variable on all platforms that support
4150 # interlibrary dependencies.
4151 # 'none' -- dependencies not supported.
4152 # `unknown' -- same as none, but documents that we really don't know.
4153 # 'pass_all' -- all dependencies passed with no checks.
4154 # 'test_compile' -- check by making test program.
4155 # 'file_magic [[regex]]' -- check by looking for files in library path
4156 # which responds to the $file_magic_cmd with a given extended regex.
4157 # If you have `file' or equivalent on your system and you're not sure
4158 # whether `pass_all' will *always* work, you probably want this one.
4160 case $host_os in
4161 aix4* | aix5*)
4162   lt_cv_deplibs_check_method=pass_all
4163   ;;
4165 beos*)
4166   lt_cv_deplibs_check_method=pass_all
4167   ;;
4169 bsdi[45]*)
4170   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4171   lt_cv_file_magic_cmd='/usr/bin/file -L'
4172   lt_cv_file_magic_test_file=/shlib/libc.so
4173   ;;
4175 cygwin*)
4176   # func_win32_libid is a shell function defined in ltmain.sh
4177   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4178   lt_cv_file_magic_cmd='func_win32_libid'
4179   ;;
4181 mingw* | pw32*)
4182   # Base MSYS/MinGW do not provide the 'file' command needed by
4183   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4184   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4185   lt_cv_file_magic_cmd='$OBJDUMP -f'
4186   ;;
4188 darwin* | rhapsody*)
4189   lt_cv_deplibs_check_method=pass_all
4190   ;;
4192 freebsd* | kfreebsd*-gnu | dragonfly*)
4193   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4194     case $host_cpu in
4195     i*86 )
4196       # Not sure whether the presence of OpenBSD here was a mistake.
4197       # Let's accept both of them until this is cleared up.
4198       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4199       lt_cv_file_magic_cmd=/usr/bin/file
4200       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4201       ;;
4202     esac
4203   else
4204     lt_cv_deplibs_check_method=pass_all
4205   fi
4206   ;;
4208 gnu*)
4209   lt_cv_deplibs_check_method=pass_all
4210   ;;
4212 hpux10.20* | hpux11*)
4213   lt_cv_file_magic_cmd=/usr/bin/file
4214   case $host_cpu in
4215   ia64*)
4216     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4217     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4218     ;;
4219   hppa*64*)
4220     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]'
4221     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4222     ;;
4223   *)
4224     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4225     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4226     ;;
4227   esac
4228   ;;
4230 irix5* | irix6* | nonstopux*)
4231   case $LD in
4232   *-32|*"-32 ") libmagic=32-bit;;
4233   *-n32|*"-n32 ") libmagic=N32;;
4234   *-64|*"-64 ") libmagic=64-bit;;
4235   *) libmagic=never-match;;
4236   esac
4237   lt_cv_deplibs_check_method=pass_all
4238   ;;
4240 # This must be Linux ELF.
4241 linux*)
4242   lt_cv_deplibs_check_method=pass_all
4243   ;;
4245 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4246   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4247     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4248   else
4249     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4250   fi
4251   ;;
4253 newos6*)
4254   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4255   lt_cv_file_magic_cmd=/usr/bin/file
4256   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4257   ;;
4259 nto-qnx*)
4260   lt_cv_deplibs_check_method=unknown
4261   ;;
4263 openbsd*)
4264   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4265     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4266   else
4267     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4268   fi
4269   ;;
4271 osf3* | osf4* | osf5*)
4272   lt_cv_deplibs_check_method=pass_all
4273   ;;
4275 sco3.2v5*)
4276   lt_cv_deplibs_check_method=pass_all
4277   ;;
4279 solaris*)
4280   lt_cv_deplibs_check_method=pass_all
4281   ;;
4283 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4284   case $host_vendor in
4285   motorola)
4286     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]'
4287     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4288     ;;
4289   ncr)
4290     lt_cv_deplibs_check_method=pass_all
4291     ;;
4292   sequent)
4293     lt_cv_file_magic_cmd='/bin/file'
4294     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4295     ;;
4296   sni)
4297     lt_cv_file_magic_cmd='/bin/file'
4298     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4299     lt_cv_file_magic_test_file=/lib/libc.so
4300     ;;
4301   siemens)
4302     lt_cv_deplibs_check_method=pass_all
4303     ;;
4304   esac
4305   ;;
4307 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4308   lt_cv_deplibs_check_method=pass_all
4309   ;;
4310 esac
4313 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4314 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4315 file_magic_cmd=$lt_cv_file_magic_cmd
4316 deplibs_check_method=$lt_cv_deplibs_check_method
4317 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4322 # If no C compiler was specified, use CC.
4323 LTCC=${LTCC-"$CC"}
4325 # Allow CC to be a program name with arguments.
4326 compiler=$CC
4329 # Check whether --enable-libtool-lock was given.
4330 if test "${enable_libtool_lock+set}" = set; then
4331   enableval=$enable_libtool_lock; 
4334 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4336 # Some flags need to be propagated to the compiler or linker for good
4337 # libtool support.
4338 case $host in
4339 ia64-*-hpux*)
4340   # Find out which ABI we are using.
4341   echo 'int i;' > conftest.$ac_ext
4342   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4343   (eval $ac_compile) 2>&5
4344   ac_status=$?
4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); }; then
4347     case `/usr/bin/file conftest.$ac_objext` in
4348     *ELF-32*)
4349       HPUX_IA64_MODE="32"
4350       ;;
4351     *ELF-64*)
4352       HPUX_IA64_MODE="64"
4353       ;;
4354     esac
4355   fi
4356   rm -rf conftest*
4357   ;;
4358 *-*-irix6*)
4359   # Find out which ABI we are using.
4360   echo '#line __oline__ "configure"' > conftest.$ac_ext
4361   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4362   (eval $ac_compile) 2>&5
4363   ac_status=$?
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); }; then
4366    if test "$lt_cv_prog_gnu_ld" = yes; then
4367     case `/usr/bin/file conftest.$ac_objext` in
4368     *32-bit*)
4369       LD="${LD-ld} -melf32bsmip"
4370       ;;
4371     *N32*)
4372       LD="${LD-ld} -melf32bmipn32"
4373       ;;
4374     *64-bit*)
4375       LD="${LD-ld} -melf64bmip"
4376       ;;
4377     esac
4378    else
4379     case `/usr/bin/file conftest.$ac_objext` in
4380     *32-bit*)
4381       LD="${LD-ld} -32"
4382       ;;
4383     *N32*)
4384       LD="${LD-ld} -n32"
4385       ;;
4386     *64-bit*)
4387       LD="${LD-ld} -64"
4388       ;;
4389     esac
4390    fi
4391   fi
4392   rm -rf conftest*
4393   ;;
4395 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4396   # Find out which ABI we are using.
4397   echo 'int i;' > conftest.$ac_ext
4398   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4399   (eval $ac_compile) 2>&5
4400   ac_status=$?
4401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402   (exit $ac_status); }; then
4403     case `/usr/bin/file conftest.o` in
4404     *32-bit*)
4405       case $host in
4406         x86_64-*linux*)
4407           LD="${LD-ld} -m elf_i386"
4408           ;;
4409         ppc64-*linux*|powerpc64-*linux*)
4410           LD="${LD-ld} -m elf32ppclinux"
4411           ;;
4412         s390x-*linux*)
4413           LD="${LD-ld} -m elf_s390"
4414           ;;
4415         sparc64-*linux*)
4416           LD="${LD-ld} -m elf32_sparc"
4417           ;;
4418       esac
4419       ;;
4420     *64-bit*)
4421       case $host in
4422         x86_64-*linux*)
4423           LD="${LD-ld} -m elf_x86_64"
4424           ;;
4425         ppc*-*linux*|powerpc*-*linux*)
4426           LD="${LD-ld} -m elf64ppc"
4427           ;;
4428         s390*-*linux*)
4429           LD="${LD-ld} -m elf64_s390"
4430           ;;
4431         sparc*-*linux*)
4432           LD="${LD-ld} -m elf64_sparc"
4433           ;;
4434       esac
4435       ;;
4436     esac
4437   fi
4438   rm -rf conftest*
4439   ;;
4441 *-*-sco3.2v5*)
4442   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4443   SAVE_CFLAGS="$CFLAGS"
4444   CFLAGS="$CFLAGS -belf"
4445   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4446 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4447 if test "${lt_cv_cc_needs_belf+set}" = set; then
4448   echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450   ac_ext=c
4451 ac_cpp='$CPP $CPPFLAGS'
4452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456      cat >conftest.$ac_ext <<_ACEOF
4457 /* confdefs.h.  */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h.  */
4464 main ()
4467   ;
4468   return 0;
4470 _ACEOF
4471 rm -f conftest.$ac_objext conftest$ac_exeext
4472 if { (ac_try="$ac_link"
4473 case "(($ac_try" in
4474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475   *) ac_try_echo=$ac_try;;
4476 esac
4477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478   (eval "$ac_link") 2>conftest.er1
4479   ac_status=$?
4480   grep -v '^ *+' conftest.er1 >conftest.err
4481   rm -f conftest.er1
4482   cat conftest.err >&5
4483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484   (exit $ac_status); } && {
4485          test -z "$ac_c_werror_flag" ||
4486          test ! -s conftest.err
4487        } && test -s conftest$ac_exeext &&
4488        $as_test_x conftest$ac_exeext; then
4489   lt_cv_cc_needs_belf=yes
4490 else
4491   echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4494         lt_cv_cc_needs_belf=no
4497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4498       conftest$ac_exeext conftest.$ac_ext
4499      ac_ext=c
4500 ac_cpp='$CPP $CPPFLAGS'
4501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4507 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4508   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4509     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4510     CFLAGS="$SAVE_CFLAGS"
4511   fi
4512   ;;
4514 esac
4516 need_locks="$enable_libtool_lock"
4519 ac_ext=c
4520 ac_cpp='$CPP $CPPFLAGS'
4521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4524 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4525 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4526 # On Suns, sometimes $CPP names a directory.
4527 if test -n "$CPP" && test -d "$CPP"; then
4528   CPP=
4530 if test -z "$CPP"; then
4531   if test "${ac_cv_prog_CPP+set}" = set; then
4532   echo $ECHO_N "(cached) $ECHO_C" >&6
4533 else
4534       # Double quotes because CPP needs to be expanded
4535     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4536     do
4537       ac_preproc_ok=false
4538 for ac_c_preproc_warn_flag in '' yes
4540   # Use a header file that comes with gcc, so configuring glibc
4541   # with a fresh cross-compiler works.
4542   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4543   # <limits.h> exists even on freestanding compilers.
4544   # On the NeXT, cc -E runs the code through the compiler's parser,
4545   # not just through cpp. "Syntax error" is here to catch this case.
4546   cat >conftest.$ac_ext <<_ACEOF
4547 /* confdefs.h.  */
4548 _ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h.  */
4552 @%:@ifdef __STDC__
4553 @%:@ include <limits.h>
4554 @%:@else
4555 @%:@ include <assert.h>
4556 @%:@endif
4557                      Syntax error
4558 _ACEOF
4559 if { (ac_try="$ac_cpp conftest.$ac_ext"
4560 case "(($ac_try" in
4561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562   *) ac_try_echo=$ac_try;;
4563 esac
4564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4565   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4566   ac_status=$?
4567   grep -v '^ *+' conftest.er1 >conftest.err
4568   rm -f conftest.er1
4569   cat conftest.err >&5
4570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571   (exit $ac_status); } >/dev/null && {
4572          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4573          test ! -s conftest.err
4574        }; then
4575   :
4576 else
4577   echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4580   # Broken: fails on valid input.
4581 continue
4584 rm -f conftest.err conftest.$ac_ext
4586   # OK, works on sane cases.  Now check whether nonexistent headers
4587   # can be detected and how.
4588   cat >conftest.$ac_ext <<_ACEOF
4589 /* confdefs.h.  */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h.  */
4594 @%:@include <ac_nonexistent.h>
4595 _ACEOF
4596 if { (ac_try="$ac_cpp conftest.$ac_ext"
4597 case "(($ac_try" in
4598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599   *) ac_try_echo=$ac_try;;
4600 esac
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4603   ac_status=$?
4604   grep -v '^ *+' conftest.er1 >conftest.err
4605   rm -f conftest.er1
4606   cat conftest.err >&5
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); } >/dev/null && {
4609          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4610          test ! -s conftest.err
4611        }; then
4612   # Broken: success on invalid input.
4613 continue
4614 else
4615   echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4618   # Passes both tests.
4619 ac_preproc_ok=:
4620 break
4623 rm -f conftest.err conftest.$ac_ext
4625 done
4626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4627 rm -f conftest.err conftest.$ac_ext
4628 if $ac_preproc_ok; then
4629   break
4632     done
4633     ac_cv_prog_CPP=$CPP
4634   
4636   CPP=$ac_cv_prog_CPP
4637 else
4638   ac_cv_prog_CPP=$CPP
4640 { echo "$as_me:$LINENO: result: $CPP" >&5
4641 echo "${ECHO_T}$CPP" >&6; }
4642 ac_preproc_ok=false
4643 for ac_c_preproc_warn_flag in '' yes
4645   # Use a header file that comes with gcc, so configuring glibc
4646   # with a fresh cross-compiler works.
4647   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4648   # <limits.h> exists even on freestanding compilers.
4649   # On the NeXT, cc -E runs the code through the compiler's parser,
4650   # not just through cpp. "Syntax error" is here to catch this case.
4651   cat >conftest.$ac_ext <<_ACEOF
4652 /* confdefs.h.  */
4653 _ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h.  */
4657 @%:@ifdef __STDC__
4658 @%:@ include <limits.h>
4659 @%:@else
4660 @%:@ include <assert.h>
4661 @%:@endif
4662                      Syntax error
4663 _ACEOF
4664 if { (ac_try="$ac_cpp conftest.$ac_ext"
4665 case "(($ac_try" in
4666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667   *) ac_try_echo=$ac_try;;
4668 esac
4669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4671   ac_status=$?
4672   grep -v '^ *+' conftest.er1 >conftest.err
4673   rm -f conftest.er1
4674   cat conftest.err >&5
4675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676   (exit $ac_status); } >/dev/null && {
4677          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4678          test ! -s conftest.err
4679        }; then
4680   :
4681 else
4682   echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.$ac_ext >&5
4685   # Broken: fails on valid input.
4686 continue
4689 rm -f conftest.err conftest.$ac_ext
4691   # OK, works on sane cases.  Now check whether nonexistent headers
4692   # can be detected and how.
4693   cat >conftest.$ac_ext <<_ACEOF
4694 /* confdefs.h.  */
4695 _ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h.  */
4699 @%:@include <ac_nonexistent.h>
4700 _ACEOF
4701 if { (ac_try="$ac_cpp conftest.$ac_ext"
4702 case "(($ac_try" in
4703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704   *) ac_try_echo=$ac_try;;
4705 esac
4706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4708   ac_status=$?
4709   grep -v '^ *+' conftest.er1 >conftest.err
4710   rm -f conftest.er1
4711   cat conftest.err >&5
4712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713   (exit $ac_status); } >/dev/null && {
4714          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4715          test ! -s conftest.err
4716        }; then
4717   # Broken: success on invalid input.
4718 continue
4719 else
4720   echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4723   # Passes both tests.
4724 ac_preproc_ok=:
4725 break
4728 rm -f conftest.err conftest.$ac_ext
4730 done
4731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4732 rm -f conftest.err conftest.$ac_ext
4733 if $ac_preproc_ok; then
4734   :
4735 else
4736   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4737 See \`config.log' for more details." >&5
4738 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4739 See \`config.log' for more details." >&2;}
4740    { (exit 1); exit 1; }; }
4743 ac_ext=c
4744 ac_cpp='$CPP $CPPFLAGS'
4745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4750 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4751 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4752 if test "${ac_cv_header_stdc+set}" = set; then
4753   echo $ECHO_N "(cached) $ECHO_C" >&6
4754 else
4755   cat >conftest.$ac_ext <<_ACEOF
4756 /* confdefs.h.  */
4757 _ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h.  */
4761 #include <stdlib.h>
4762 #include <stdarg.h>
4763 #include <string.h>
4764 #include <float.h>
4767 main ()
4770   ;
4771   return 0;
4773 _ACEOF
4774 rm -f conftest.$ac_objext
4775 if { (ac_try="$ac_compile"
4776 case "(($ac_try" in
4777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778   *) ac_try_echo=$ac_try;;
4779 esac
4780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4781   (eval "$ac_compile") 2>conftest.er1
4782   ac_status=$?
4783   grep -v '^ *+' conftest.er1 >conftest.err
4784   rm -f conftest.er1
4785   cat conftest.err >&5
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); } && {
4788          test -z "$ac_c_werror_flag" ||
4789          test ! -s conftest.err
4790        } && test -s conftest.$ac_objext; then
4791   ac_cv_header_stdc=yes
4792 else
4793   echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4796         ac_cv_header_stdc=no
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801 if test $ac_cv_header_stdc = yes; then
4802   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4803   cat >conftest.$ac_ext <<_ACEOF
4804 /* confdefs.h.  */
4805 _ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h.  */
4809 #include <string.h>
4811 _ACEOF
4812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4813   $EGREP "memchr" >/dev/null 2>&1; then
4814   :
4815 else
4816   ac_cv_header_stdc=no
4818 rm -f conftest*
4822 if test $ac_cv_header_stdc = yes; then
4823   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4824   cat >conftest.$ac_ext <<_ACEOF
4825 /* confdefs.h.  */
4826 _ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h.  */
4830 #include <stdlib.h>
4832 _ACEOF
4833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4834   $EGREP "free" >/dev/null 2>&1; then
4835   :
4836 else
4837   ac_cv_header_stdc=no
4839 rm -f conftest*
4843 if test $ac_cv_header_stdc = yes; then
4844   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4845   if test "$cross_compiling" = yes; then
4846   :
4847 else
4848   cat >conftest.$ac_ext <<_ACEOF
4849 /* confdefs.h.  */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h.  */
4854 #include <ctype.h>
4855 #include <stdlib.h>
4856 #if ((' ' & 0x0FF) == 0x020)
4857 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4858 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4859 #else
4860 # define ISLOWER(c) \
4861                    (('a' <= (c) && (c) <= 'i') \
4862                      || ('j' <= (c) && (c) <= 'r') \
4863                      || ('s' <= (c) && (c) <= 'z'))
4864 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4865 #endif
4867 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4869 main ()
4871   int i;
4872   for (i = 0; i < 256; i++)
4873     if (XOR (islower (i), ISLOWER (i))
4874         || toupper (i) != TOUPPER (i))
4875       return 2;
4876   return 0;
4878 _ACEOF
4879 rm -f conftest$ac_exeext
4880 if { (ac_try="$ac_link"
4881 case "(($ac_try" in
4882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4883   *) ac_try_echo=$ac_try;;
4884 esac
4885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4886   (eval "$ac_link") 2>&5
4887   ac_status=$?
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4890   { (case "(($ac_try" in
4891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4892   *) ac_try_echo=$ac_try;;
4893 esac
4894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4895   (eval "$ac_try") 2>&5
4896   ac_status=$?
4897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898   (exit $ac_status); }; }; then
4899   :
4900 else
4901   echo "$as_me: program exited with status $ac_status" >&5
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4905 ( exit $ac_status )
4906 ac_cv_header_stdc=no
4908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4914 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4915 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4916 if test $ac_cv_header_stdc = yes; then
4917   
4918 cat >>confdefs.h <<\_ACEOF
4919 @%:@define STDC_HEADERS 1
4920 _ACEOF
4924 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4934 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4935                   inttypes.h stdint.h unistd.h
4937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4941   echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943   cat >conftest.$ac_ext <<_ACEOF
4944 /* confdefs.h.  */
4945 _ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h.  */
4949 $ac_includes_default
4951 @%:@include <$ac_header>
4952 _ACEOF
4953 rm -f conftest.$ac_objext
4954 if { (ac_try="$ac_compile"
4955 case "(($ac_try" in
4956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957   *) ac_try_echo=$ac_try;;
4958 esac
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960   (eval "$ac_compile") 2>conftest.er1
4961   ac_status=$?
4962   grep -v '^ *+' conftest.er1 >conftest.err
4963   rm -f conftest.er1
4964   cat conftest.err >&5
4965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); } && {
4967          test -z "$ac_c_werror_flag" ||
4968          test ! -s conftest.err
4969        } && test -s conftest.$ac_objext; then
4970   eval "$as_ac_Header=yes"
4971 else
4972   echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4975         eval "$as_ac_Header=no"
4978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4980 ac_res=`eval echo '${'$as_ac_Header'}'`
4981                { echo "$as_me:$LINENO: result: $ac_res" >&5
4982 echo "${ECHO_T}$ac_res" >&6; }
4983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4984   cat >>confdefs.h <<_ACEOF
4985 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4986 _ACEOF
4990 done
4994 for ac_header in dlfcn.h
4996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4998   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5001   echo $ECHO_N "(cached) $ECHO_C" >&6
5003 ac_res=`eval echo '${'$as_ac_Header'}'`
5004                { echo "$as_me:$LINENO: result: $ac_res" >&5
5005 echo "${ECHO_T}$ac_res" >&6; }
5006 else
5007   # Is the header compilable?
5008 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5010 cat >conftest.$ac_ext <<_ACEOF
5011 /* confdefs.h.  */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h.  */
5016 $ac_includes_default
5017 @%:@include <$ac_header>
5018 _ACEOF
5019 rm -f conftest.$ac_objext
5020 if { (ac_try="$ac_compile"
5021 case "(($ac_try" in
5022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023   *) ac_try_echo=$ac_try;;
5024 esac
5025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5026   (eval "$ac_compile") 2>conftest.er1
5027   ac_status=$?
5028   grep -v '^ *+' conftest.er1 >conftest.err
5029   rm -f conftest.er1
5030   cat conftest.err >&5
5031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032   (exit $ac_status); } && {
5033          test -z "$ac_c_werror_flag" ||
5034          test ! -s conftest.err
5035        } && test -s conftest.$ac_objext; then
5036   ac_header_compiler=yes
5037 else
5038   echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5041         ac_header_compiler=no
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5046 echo "${ECHO_T}$ac_header_compiler" >&6; }
5048 # Is the header present?
5049 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5051 cat >conftest.$ac_ext <<_ACEOF
5052 /* confdefs.h.  */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h.  */
5057 @%:@include <$ac_header>
5058 _ACEOF
5059 if { (ac_try="$ac_cpp conftest.$ac_ext"
5060 case "(($ac_try" in
5061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062   *) ac_try_echo=$ac_try;;
5063 esac
5064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5066   ac_status=$?
5067   grep -v '^ *+' conftest.er1 >conftest.err
5068   rm -f conftest.er1
5069   cat conftest.err >&5
5070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071   (exit $ac_status); } >/dev/null && {
5072          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5073          test ! -s conftest.err
5074        }; then
5075   ac_header_preproc=yes
5076 else
5077   echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5080   ac_header_preproc=no
5083 rm -f conftest.err conftest.$ac_ext
5084 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5085 echo "${ECHO_T}$ac_header_preproc" >&6; }
5087 # So?  What about this header?
5088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5089   yes:no: )
5090     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5092     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5094     ac_header_preproc=yes
5095     ;;
5096   no:yes:* )
5097     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5099     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5100 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5101     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5103     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5104 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5107     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5109     
5110     ;;
5111 esac
5112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5115   echo $ECHO_N "(cached) $ECHO_C" >&6
5116 else
5117   eval "$as_ac_Header=\$ac_header_preproc"
5119 ac_res=`eval echo '${'$as_ac_Header'}'`
5120                { echo "$as_me:$LINENO: result: $ac_res" >&5
5121 echo "${ECHO_T}$ac_res" >&6; }
5124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5125   cat >>confdefs.h <<_ACEOF
5126 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5127 _ACEOF
5131 done
5133 ac_ext=cpp
5134 ac_cpp='$CXXCPP $CPPFLAGS'
5135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5138 if test -z "$CXX"; then
5139   if test -n "$CCC"; then
5140     CXX=$CCC
5141   else
5142     if test -n "$ac_tool_prefix"; then
5143   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5144   do
5145     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5149 if test "${ac_cv_prog_CXX+set}" = set; then
5150   echo $ECHO_N "(cached) $ECHO_C" >&6
5151 else
5152   if test -n "$CXX"; then
5153   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5158   IFS=$as_save_IFS
5159   test -z "$as_dir" && as_dir=.
5160   for ac_exec_ext in '' $ac_executable_extensions; do
5161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5162     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164     break 2
5165   fi
5166 done
5167 done
5168 IFS=$as_save_IFS
5172 CXX=$ac_cv_prog_CXX
5173 if test -n "$CXX"; then
5174   { echo "$as_me:$LINENO: result: $CXX" >&5
5175 echo "${ECHO_T}$CXX" >&6; }
5176 else
5177   { echo "$as_me:$LINENO: result: no" >&5
5178 echo "${ECHO_T}no" >&6; }
5182     test -n "$CXX" && break
5183   done
5185 if test -z "$CXX"; then
5186   ac_ct_CXX=$CXX
5187   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5189   # Extract the first word of "$ac_prog", so it can be a program name with args.
5190 set dummy $ac_prog; ac_word=$2
5191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5193 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5194   echo $ECHO_N "(cached) $ECHO_C" >&6
5195 else
5196   if test -n "$ac_ct_CXX"; then
5197   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5198 else
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH
5202   IFS=$as_save_IFS
5203   test -z "$as_dir" && as_dir=.
5204   for ac_exec_ext in '' $ac_executable_extensions; do
5205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206     ac_cv_prog_ac_ct_CXX="$ac_prog"
5207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5208     break 2
5209   fi
5210 done
5211 done
5212 IFS=$as_save_IFS
5216 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5217 if test -n "$ac_ct_CXX"; then
5218   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5219 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5220 else
5221   { echo "$as_me:$LINENO: result: no" >&5
5222 echo "${ECHO_T}no" >&6; }
5226   test -n "$ac_ct_CXX" && break
5227 done
5229   if test "x$ac_ct_CXX" = x; then
5230     CXX="g++"
5231   else
5232     case $cross_compiling:$ac_tool_warned in
5233 yes:)
5234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5235 whose name does not start with the host triplet.  If you think this
5236 configuration is useful to you, please write to autoconf@gnu.org." >&5
5237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5238 whose name does not start with the host triplet.  If you think this
5239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5240 ac_tool_warned=yes ;;
5241 esac
5242     CXX=$ac_ct_CXX
5243   fi
5246   fi
5248 # Provide some information about the compiler.
5249 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5250 ac_compiler=`set X $ac_compile; echo $2`
5251 { (ac_try="$ac_compiler --version >&5"
5252 case "(($ac_try" in
5253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254   *) ac_try_echo=$ac_try;;
5255 esac
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257   (eval "$ac_compiler --version >&5") 2>&5
5258   ac_status=$?
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); }
5261 { (ac_try="$ac_compiler -v >&5"
5262 case "(($ac_try" in
5263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5264   *) ac_try_echo=$ac_try;;
5265 esac
5266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5267   (eval "$ac_compiler -v >&5") 2>&5
5268   ac_status=$?
5269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270   (exit $ac_status); }
5271 { (ac_try="$ac_compiler -V >&5"
5272 case "(($ac_try" in
5273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274   *) ac_try_echo=$ac_try;;
5275 esac
5276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5277   (eval "$ac_compiler -V >&5") 2>&5
5278   ac_status=$?
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); }
5282 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5283 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5284 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5285   echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287   cat >conftest.$ac_ext <<_ACEOF
5288 /* confdefs.h.  */
5289 _ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h.  */
5295 main ()
5297 #ifndef __GNUC__
5298        choke me
5299 #endif
5301   ;
5302   return 0;
5304 _ACEOF
5305 rm -f conftest.$ac_objext
5306 if { (ac_try="$ac_compile"
5307 case "(($ac_try" in
5308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309   *) ac_try_echo=$ac_try;;
5310 esac
5311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312   (eval "$ac_compile") 2>conftest.er1
5313   ac_status=$?
5314   grep -v '^ *+' conftest.er1 >conftest.err
5315   rm -f conftest.er1
5316   cat conftest.err >&5
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); } && {
5319          test -z "$ac_cxx_werror_flag" ||
5320          test ! -s conftest.err
5321        } && test -s conftest.$ac_objext; then
5322   ac_compiler_gnu=yes
5323 else
5324   echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5327         ac_compiler_gnu=no
5330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5331 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5334 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5335 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5336 GXX=`test $ac_compiler_gnu = yes && echo yes`
5337 ac_test_CXXFLAGS=${CXXFLAGS+set}
5338 ac_save_CXXFLAGS=$CXXFLAGS
5339 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5340 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5341 if test "${ac_cv_prog_cxx_g+set}" = set; then
5342   echo $ECHO_N "(cached) $ECHO_C" >&6
5343 else
5344   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5345    ac_cxx_werror_flag=yes
5346    ac_cv_prog_cxx_g=no
5347    CXXFLAGS="-g"
5348    cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h.  */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h.  */
5356 main ()
5359   ;
5360   return 0;
5362 _ACEOF
5363 rm -f conftest.$ac_objext
5364 if { (ac_try="$ac_compile"
5365 case "(($ac_try" in
5366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367   *) ac_try_echo=$ac_try;;
5368 esac
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370   (eval "$ac_compile") 2>conftest.er1
5371   ac_status=$?
5372   grep -v '^ *+' conftest.er1 >conftest.err
5373   rm -f conftest.er1
5374   cat conftest.err >&5
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); } && {
5377          test -z "$ac_cxx_werror_flag" ||
5378          test ! -s conftest.err
5379        } && test -s conftest.$ac_objext; then
5380   ac_cv_prog_cxx_g=yes
5381 else
5382   echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5385         CXXFLAGS=""
5386       cat >conftest.$ac_ext <<_ACEOF
5387 /* confdefs.h.  */
5388 _ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h.  */
5394 main ()
5397   ;
5398   return 0;
5400 _ACEOF
5401 rm -f conftest.$ac_objext
5402 if { (ac_try="$ac_compile"
5403 case "(($ac_try" in
5404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405   *) ac_try_echo=$ac_try;;
5406 esac
5407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408   (eval "$ac_compile") 2>conftest.er1
5409   ac_status=$?
5410   grep -v '^ *+' conftest.er1 >conftest.err
5411   rm -f conftest.er1
5412   cat conftest.err >&5
5413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414   (exit $ac_status); } && {
5415          test -z "$ac_cxx_werror_flag" ||
5416          test ! -s conftest.err
5417        } && test -s conftest.$ac_objext; then
5418   :
5419 else
5420   echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5423         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5424          CXXFLAGS="-g"
5425          cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h.  */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h.  */
5433 main ()
5436   ;
5437   return 0;
5439 _ACEOF
5440 rm -f conftest.$ac_objext
5441 if { (ac_try="$ac_compile"
5442 case "(($ac_try" in
5443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444   *) ac_try_echo=$ac_try;;
5445 esac
5446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5447   (eval "$ac_compile") 2>conftest.er1
5448   ac_status=$?
5449   grep -v '^ *+' conftest.er1 >conftest.err
5450   rm -f conftest.er1
5451   cat conftest.err >&5
5452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453   (exit $ac_status); } && {
5454          test -z "$ac_cxx_werror_flag" ||
5455          test ! -s conftest.err
5456        } && test -s conftest.$ac_objext; then
5457   ac_cv_prog_cxx_g=yes
5458 else
5459   echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5462         
5465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5474 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5475 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5476 if test "$ac_test_CXXFLAGS" = set; then
5477   CXXFLAGS=$ac_save_CXXFLAGS
5478 elif test $ac_cv_prog_cxx_g = yes; then
5479   if test "$GXX" = yes; then
5480     CXXFLAGS="-g -O2"
5481   else
5482     CXXFLAGS="-g"
5483   fi
5484 else
5485   if test "$GXX" = yes; then
5486     CXXFLAGS="-O2"
5487   else
5488     CXXFLAGS=
5489   fi
5491 ac_ext=cpp
5492 ac_cpp='$CXXCPP $CPPFLAGS'
5493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5497 depcc="$CXX"  am_compiler_list=
5499 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5500 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5501 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5502   echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5505   # We make a subdir and do the tests there.  Otherwise we can end up
5506   # making bogus files that we don't know about and never remove.  For
5507   # instance it was reported that on HP-UX the gcc test will end up
5508   # making a dummy file named `D' -- because `-MD' means `put the output
5509   # in D'.
5510   mkdir conftest.dir
5511   # Copy depcomp to subdir because otherwise we won't find it if we're
5512   # using a relative directory.
5513   cp "$am_depcomp" conftest.dir
5514   cd conftest.dir
5515   # We will build objects and dependencies in a subdirectory because
5516   # it helps to detect inapplicable dependency modes.  For instance
5517   # both Tru64's cc and ICC support -MD to output dependencies as a
5518   # side effect of compilation, but ICC will put the dependencies in
5519   # the current directory while Tru64 will put them in the object
5520   # directory.
5521   mkdir sub
5523   am_cv_CXX_dependencies_compiler_type=none
5524   if test "$am_compiler_list" = ""; then
5525      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5526   fi
5527   for depmode in $am_compiler_list; do
5528     # Setup a source with many dependencies, because some compilers
5529     # like to wrap large dependency lists on column 80 (with \), and
5530     # we should not choose a depcomp mode which is confused by this.
5531     #
5532     # We need to recreate these files for each test, as the compiler may
5533     # overwrite some of them when testing with obscure command lines.
5534     # This happens at least with the AIX C compiler.
5535     : > sub/conftest.c
5536     for i in 1 2 3 4 5 6; do
5537       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5538       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5539       # Solaris 8's {/usr,}/bin/sh.
5540       touch sub/conftst$i.h
5541     done
5542     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5544     case $depmode in
5545     nosideeffect)
5546       # after this tag, mechanisms are not by side-effect, so they'll
5547       # only be used when explicitly requested
5548       if test "x$enable_dependency_tracking" = xyes; then
5549         continue
5550       else
5551         break
5552       fi
5553       ;;
5554     none) break ;;
5555     esac
5556     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5557     # mode.  It turns out that the SunPro C++ compiler does not properly
5558     # handle `-M -o', and we need to detect this.
5559     if depmode=$depmode \
5560        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5561        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5562        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5563          >/dev/null 2>conftest.err &&
5564        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5565        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5566        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5567       # icc doesn't choke on unknown options, it will just issue warnings
5568       # or remarks (even with -Werror).  So we grep stderr for any message
5569       # that says an option was ignored or not supported.
5570       # When given -MP, icc 7.0 and 7.1 complain thusly:
5571       #   icc: Command line warning: ignoring option '-M'; no argument required
5572       # The diagnosis changed in icc 8.0:
5573       #   icc: Command line remark: option '-MP' not supported
5574       if (grep 'ignoring option' conftest.err ||
5575           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5576         am_cv_CXX_dependencies_compiler_type=$depmode
5577         break
5578       fi
5579     fi
5580   done
5582   cd ..
5583   rm -rf conftest.dir
5584 else
5585   am_cv_CXX_dependencies_compiler_type=none
5589 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5590 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5591 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5595 if 
5596   test "x$enable_dependency_tracking" != xno \
5597   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5598   am__fastdepCXX_TRUE=
5599   am__fastdepCXX_FALSE='#'
5600 else
5601   am__fastdepCXX_TRUE='#'
5602   am__fastdepCXX_FALSE=
5608 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5609     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5610     (test "X$CXX" != "Xg++"))) ; then
5611   ac_ext=cpp
5612 ac_cpp='$CXXCPP $CPPFLAGS'
5613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5616 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5617 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5618 if test -z "$CXXCPP"; then
5619   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5620   echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5622       # Double quotes because CXXCPP needs to be expanded
5623     for CXXCPP in "$CXX -E" "/lib/cpp"
5624     do
5625       ac_preproc_ok=false
5626 for ac_cxx_preproc_warn_flag in '' yes
5628   # Use a header file that comes with gcc, so configuring glibc
5629   # with a fresh cross-compiler works.
5630   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5631   # <limits.h> exists even on freestanding compilers.
5632   # On the NeXT, cc -E runs the code through the compiler's parser,
5633   # not just through cpp. "Syntax error" is here to catch this case.
5634   cat >conftest.$ac_ext <<_ACEOF
5635 /* confdefs.h.  */
5636 _ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h.  */
5640 @%:@ifdef __STDC__
5641 @%:@ include <limits.h>
5642 @%:@else
5643 @%:@ include <assert.h>
5644 @%:@endif
5645                      Syntax error
5646 _ACEOF
5647 if { (ac_try="$ac_cpp conftest.$ac_ext"
5648 case "(($ac_try" in
5649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650   *) ac_try_echo=$ac_try;;
5651 esac
5652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5653   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5654   ac_status=$?
5655   grep -v '^ *+' conftest.er1 >conftest.err
5656   rm -f conftest.er1
5657   cat conftest.err >&5
5658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659   (exit $ac_status); } >/dev/null && {
5660          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5661          test ! -s conftest.err
5662        }; then
5663   :
5664 else
5665   echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5668   # Broken: fails on valid input.
5669 continue
5672 rm -f conftest.err conftest.$ac_ext
5674   # OK, works on sane cases.  Now check whether nonexistent headers
5675   # can be detected and how.
5676   cat >conftest.$ac_ext <<_ACEOF
5677 /* confdefs.h.  */
5678 _ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h.  */
5682 @%:@include <ac_nonexistent.h>
5683 _ACEOF
5684 if { (ac_try="$ac_cpp conftest.$ac_ext"
5685 case "(($ac_try" in
5686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687   *) ac_try_echo=$ac_try;;
5688 esac
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5691   ac_status=$?
5692   grep -v '^ *+' conftest.er1 >conftest.err
5693   rm -f conftest.er1
5694   cat conftest.err >&5
5695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696   (exit $ac_status); } >/dev/null && {
5697          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5698          test ! -s conftest.err
5699        }; then
5700   # Broken: success on invalid input.
5701 continue
5702 else
5703   echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5706   # Passes both tests.
5707 ac_preproc_ok=:
5708 break
5711 rm -f conftest.err conftest.$ac_ext
5713 done
5714 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5715 rm -f conftest.err conftest.$ac_ext
5716 if $ac_preproc_ok; then
5717   break
5720     done
5721     ac_cv_prog_CXXCPP=$CXXCPP
5722   
5724   CXXCPP=$ac_cv_prog_CXXCPP
5725 else
5726   ac_cv_prog_CXXCPP=$CXXCPP
5728 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5729 echo "${ECHO_T}$CXXCPP" >&6; }
5730 ac_preproc_ok=false
5731 for ac_cxx_preproc_warn_flag in '' yes
5733   # Use a header file that comes with gcc, so configuring glibc
5734   # with a fresh cross-compiler works.
5735   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5736   # <limits.h> exists even on freestanding compilers.
5737   # On the NeXT, cc -E runs the code through the compiler's parser,
5738   # not just through cpp. "Syntax error" is here to catch this case.
5739   cat >conftest.$ac_ext <<_ACEOF
5740 /* confdefs.h.  */
5741 _ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h.  */
5745 @%:@ifdef __STDC__
5746 @%:@ include <limits.h>
5747 @%:@else
5748 @%:@ include <assert.h>
5749 @%:@endif
5750                      Syntax error
5751 _ACEOF
5752 if { (ac_try="$ac_cpp conftest.$ac_ext"
5753 case "(($ac_try" in
5754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755   *) ac_try_echo=$ac_try;;
5756 esac
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5759   ac_status=$?
5760   grep -v '^ *+' conftest.er1 >conftest.err
5761   rm -f conftest.er1
5762   cat conftest.err >&5
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); } >/dev/null && {
5765          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5766          test ! -s conftest.err
5767        }; then
5768   :
5769 else
5770   echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5773   # Broken: fails on valid input.
5774 continue
5777 rm -f conftest.err conftest.$ac_ext
5779   # OK, works on sane cases.  Now check whether nonexistent headers
5780   # can be detected and how.
5781   cat >conftest.$ac_ext <<_ACEOF
5782 /* confdefs.h.  */
5783 _ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h.  */
5787 @%:@include <ac_nonexistent.h>
5788 _ACEOF
5789 if { (ac_try="$ac_cpp conftest.$ac_ext"
5790 case "(($ac_try" in
5791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792   *) ac_try_echo=$ac_try;;
5793 esac
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5796   ac_status=$?
5797   grep -v '^ *+' conftest.er1 >conftest.err
5798   rm -f conftest.er1
5799   cat conftest.err >&5
5800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801   (exit $ac_status); } >/dev/null && {
5802          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5803          test ! -s conftest.err
5804        }; then
5805   # Broken: success on invalid input.
5806 continue
5807 else
5808   echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5811   # Passes both tests.
5812 ac_preproc_ok=:
5813 break
5816 rm -f conftest.err conftest.$ac_ext
5818 done
5819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5820 rm -f conftest.err conftest.$ac_ext
5821 if $ac_preproc_ok; then
5822   :
5823 else
5824   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5825 See \`config.log' for more details." >&5
5826 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5827 See \`config.log' for more details." >&2;}
5828    { (exit 1); exit 1; }; }
5831 ac_ext=cpp
5832 ac_cpp='$CXXCPP $CPPFLAGS'
5833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5840 ac_ext=f
5841 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5842 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5843 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5844 if test -n "$ac_tool_prefix"; then
5845   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
5846   do
5847     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5851 if test "${ac_cv_prog_F77+set}" = set; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854   if test -n "$F77"; then
5855   ac_cv_prog_F77="$F77" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5860   IFS=$as_save_IFS
5861   test -z "$as_dir" && as_dir=.
5862   for ac_exec_ext in '' $ac_executable_extensions; do
5863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866     break 2
5867   fi
5868 done
5869 done
5870 IFS=$as_save_IFS
5874 F77=$ac_cv_prog_F77
5875 if test -n "$F77"; then
5876   { echo "$as_me:$LINENO: result: $F77" >&5
5877 echo "${ECHO_T}$F77" >&6; }
5878 else
5879   { echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6; }
5884     test -n "$F77" && break
5885   done
5887 if test -z "$F77"; then
5888   ac_ct_F77=$F77
5889   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
5891   # Extract the first word of "$ac_prog", so it can be a program name with args.
5892 set dummy $ac_prog; ac_word=$2
5893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5895 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5896   echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898   if test -n "$ac_ct_F77"; then
5899   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5904   IFS=$as_save_IFS
5905   test -z "$as_dir" && as_dir=.
5906   for ac_exec_ext in '' $ac_executable_extensions; do
5907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5908     ac_cv_prog_ac_ct_F77="$ac_prog"
5909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910     break 2
5911   fi
5912 done
5913 done
5914 IFS=$as_save_IFS
5918 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5919 if test -n "$ac_ct_F77"; then
5920   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5921 echo "${ECHO_T}$ac_ct_F77" >&6; }
5922 else
5923   { echo "$as_me:$LINENO: result: no" >&5
5924 echo "${ECHO_T}no" >&6; }
5928   test -n "$ac_ct_F77" && break
5929 done
5931   if test "x$ac_ct_F77" = x; then
5932     F77=""
5933   else
5934     case $cross_compiling:$ac_tool_warned in
5935 yes:)
5936 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5937 whose name does not start with the host triplet.  If you think this
5938 configuration is useful to you, please write to autoconf@gnu.org." >&5
5939 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5940 whose name does not start with the host triplet.  If you think this
5941 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5942 ac_tool_warned=yes ;;
5943 esac
5944     F77=$ac_ct_F77
5945   fi
5949 # Provide some information about the compiler.
5950 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5951 ac_compiler=`set X $ac_compile; echo $2`
5952 { (ac_try="$ac_compiler --version >&5"
5953 case "(($ac_try" in
5954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955   *) ac_try_echo=$ac_try;;
5956 esac
5957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958   (eval "$ac_compiler --version >&5") 2>&5
5959   ac_status=$?
5960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961   (exit $ac_status); }
5962 { (ac_try="$ac_compiler -v >&5"
5963 case "(($ac_try" in
5964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965   *) ac_try_echo=$ac_try;;
5966 esac
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968   (eval "$ac_compiler -v >&5") 2>&5
5969   ac_status=$?
5970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971   (exit $ac_status); }
5972 { (ac_try="$ac_compiler -V >&5"
5973 case "(($ac_try" in
5974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975   *) ac_try_echo=$ac_try;;
5976 esac
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978   (eval "$ac_compiler -V >&5") 2>&5
5979   ac_status=$?
5980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981   (exit $ac_status); }
5982 rm -f a.out
5984 # If we don't use `.F' as extension, the preprocessor is not run on the
5985 # input file.  (Note that this only needs to work for GNU compilers.)
5986 ac_save_ext=$ac_ext
5987 ac_ext=F
5988 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5989 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5990 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5991   echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993   cat >conftest.$ac_ext <<_ACEOF
5994       program main
5995 #ifndef __GNUC__
5996        choke me
5997 #endif
5999       end
6000 _ACEOF
6001 rm -f conftest.$ac_objext
6002 if { (ac_try="$ac_compile"
6003 case "(($ac_try" in
6004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005   *) ac_try_echo=$ac_try;;
6006 esac
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008   (eval "$ac_compile") 2>conftest.er1
6009   ac_status=$?
6010   grep -v '^ *+' conftest.er1 >conftest.err
6011   rm -f conftest.er1
6012   cat conftest.err >&5
6013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014   (exit $ac_status); } && {
6015          test -z "$ac_f77_werror_flag" ||
6016          test ! -s conftest.err
6017        } && test -s conftest.$ac_objext; then
6018   ac_compiler_gnu=yes
6019 else
6020   echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6023         ac_compiler_gnu=no
6026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6030 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6031 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6032 ac_ext=$ac_save_ext
6033 ac_test_FFLAGS=${FFLAGS+set}
6034 ac_save_FFLAGS=$FFLAGS
6035 FFLAGS=
6036 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6037 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6038 if test "${ac_cv_prog_f77_g+set}" = set; then
6039   echo $ECHO_N "(cached) $ECHO_C" >&6
6040 else
6041   FFLAGS=-g
6042 cat >conftest.$ac_ext <<_ACEOF
6043       program main
6045       end
6046 _ACEOF
6047 rm -f conftest.$ac_objext
6048 if { (ac_try="$ac_compile"
6049 case "(($ac_try" in
6050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051   *) ac_try_echo=$ac_try;;
6052 esac
6053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054   (eval "$ac_compile") 2>conftest.er1
6055   ac_status=$?
6056   grep -v '^ *+' conftest.er1 >conftest.err
6057   rm -f conftest.er1
6058   cat conftest.err >&5
6059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060   (exit $ac_status); } && {
6061          test -z "$ac_f77_werror_flag" ||
6062          test ! -s conftest.err
6063        } && test -s conftest.$ac_objext; then
6064   ac_cv_prog_f77_g=yes
6065 else
6066   echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6069         ac_cv_prog_f77_g=no
6072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6076 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6077 if test "$ac_test_FFLAGS" = set; then
6078   FFLAGS=$ac_save_FFLAGS
6079 elif test $ac_cv_prog_f77_g = yes; then
6080   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6081     FFLAGS="-g -O2"
6082   else
6083     FFLAGS="-g"
6084   fi
6085 else
6086   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6087     FFLAGS="-O2"
6088   else
6089     FFLAGS=
6090   fi
6093 G77=`test $ac_compiler_gnu = yes && echo yes`
6094 ac_ext=c
6095 ac_cpp='$CPP $CPPFLAGS'
6096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6102 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6104 # find the maximum length of command line arguments
6105 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6106 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6107 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6108   echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110     i=0
6111   teststring="ABCD"
6113   case $build_os in
6114   msdosdjgpp*)
6115     # On DJGPP, this test can blow up pretty badly due to problems in libc
6116     # (any single argument exceeding 2000 bytes causes a buffer overrun
6117     # during glob expansion).  Even if it were fixed, the result of this
6118     # check would be larger than it should be.
6119     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6120     ;;
6122   gnu*)
6123     # Under GNU Hurd, this test is not required because there is
6124     # no limit to the length of command line arguments.
6125     # Libtool will interpret -1 as no limit whatsoever
6126     lt_cv_sys_max_cmd_len=-1;
6127     ;;
6129   cygwin* | mingw*)
6130     # On Win9x/ME, this test blows up -- it succeeds, but takes
6131     # about 5 minutes as the teststring grows exponentially.
6132     # Worse, since 9x/ME are not pre-emptively multitasking,
6133     # you end up with a "frozen" computer, even though with patience
6134     # the test eventually succeeds (with a max line length of 256k).
6135     # Instead, let's just punt: use the minimum linelength reported by
6136     # all of the supported platforms: 8192 (on NT/2K/XP).
6137     lt_cv_sys_max_cmd_len=8192;
6138     ;;
6140   amigaos*)
6141     # On AmigaOS with pdksh, this test takes hours, literally.
6142     # So we just punt and use a minimum line length of 8192.
6143     lt_cv_sys_max_cmd_len=8192;
6144     ;;
6146   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6147     # This has been around since 386BSD, at least.  Likely further.
6148     if test -x /sbin/sysctl; then
6149       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6150     elif test -x /usr/sbin/sysctl; then
6151       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6152     else
6153       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6154     fi
6155     # And add a safety zone
6156     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6157     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6158     ;;
6159   osf*)
6160     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6161     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6162     # nice to cause kernel panics so lets avoid the loop below.
6163     # First set a reasonable default.
6164     lt_cv_sys_max_cmd_len=16384
6165     #
6166     if test -x /sbin/sysconfig; then
6167       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6168         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6169       esac
6170     fi
6171     ;;
6172   *)
6173     # If test is not a shell built-in, we'll probably end up computing a
6174     # maximum length that is only half of the actual maximum length, but
6175     # we can't tell.
6176     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6177     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6178                = "XX$teststring") >/dev/null 2>&1 &&
6179             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6180             lt_cv_sys_max_cmd_len=$new_result &&
6181             test $i != 17 # 1/2 MB should be enough
6182     do
6183       i=`expr $i + 1`
6184       teststring=$teststring$teststring
6185     done
6186     teststring=
6187     # Add a significant safety factor because C++ compilers can tack on massive
6188     # amounts of additional arguments before passing them to the linker.
6189     # It appears as though 1/2 is a usable value.
6190     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6191     ;;
6192   esac
6196 if test -n $lt_cv_sys_max_cmd_len ; then
6197   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6198 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6199 else
6200   { echo "$as_me:$LINENO: result: none" >&5
6201 echo "${ECHO_T}none" >&6; }
6207 # Check for command to grab the raw symbol name followed by C symbol from nm.
6208 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6209 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6210 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6211   echo $ECHO_N "(cached) $ECHO_C" >&6
6212 else
6213   
6214 # These are sane defaults that work on at least a few old systems.
6215 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6217 # Character class describing NM global symbol codes.
6218 symcode='[BCDEGRST]'
6220 # Regexp to match symbols that can be accessed directly from C.
6221 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6223 # Transform an extracted symbol line into a proper C declaration
6224 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6226 # Transform an extracted symbol line into symbol name and symbol address
6227 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'"
6229 # Define system-specific variables.
6230 case $host_os in
6231 aix*)
6232   symcode='[BCDT]'
6233   ;;
6234 cygwin* | mingw* | pw32*)
6235   symcode='[ABCDGISTW]'
6236   ;;
6237 hpux*) # Its linker distinguishes data from code symbols
6238   if test "$host_cpu" = ia64; then
6239     symcode='[ABCDEGRST]'
6240   fi
6241   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6242   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'"
6243   ;;
6244 linux*)
6245   if test "$host_cpu" = ia64; then
6246     symcode='[ABCDGIRSTW]'
6247     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6248     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'"
6249   fi
6250   ;;
6251 irix* | nonstopux*)
6252   symcode='[BCDEGRST]'
6253   ;;
6254 osf*)
6255   symcode='[BCDEGQRST]'
6256   ;;
6257 solaris* | sysv5*)
6258   symcode='[BDRT]'
6259   ;;
6260 sysv4)
6261   symcode='[DFNSTU]'
6262   ;;
6263 esac
6265 # Handle CRLF in mingw tool chain
6266 opt_cr=
6267 case $build_os in
6268 mingw*)
6269   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6270   ;;
6271 esac
6273 # If we're using GNU nm, then use its standard symbol codes.
6274 case `$NM -V 2>&1` in
6275 *GNU* | *'with BFD'*)
6276   symcode='[ABCDGIRSTW]' ;;
6277 esac
6279 # Try without a prefix undercore, then with it.
6280 for ac_symprfx in "" "_"; do
6282   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6283   symxfrm="\\1 $ac_symprfx\\2 \\2"
6285   # Write the raw and C identifiers.
6286   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6288   # Check to see that the pipe works correctly.
6289   pipe_works=no
6291   rm -f conftest*
6292   cat > conftest.$ac_ext <<EOF
6293 #ifdef __cplusplus
6294 extern "C" {
6295 #endif
6296 char nm_test_var;
6297 void nm_test_func(){}
6298 #ifdef __cplusplus
6300 #endif
6301 int main(){nm_test_var='a';nm_test_func();return(0);}
6304   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6305   (eval $ac_compile) 2>&5
6306   ac_status=$?
6307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308   (exit $ac_status); }; then
6309     # Now try to grab the symbols.
6310     nlist=conftest.nm
6311     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6312   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6313   ac_status=$?
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); } && test -s "$nlist"; then
6316       # Try sorting and uniquifying the output.
6317       if sort "$nlist" | uniq > "$nlist"T; then
6318         mv -f "$nlist"T "$nlist"
6319       else
6320         rm -f "$nlist"T
6321       fi
6323       # Make sure that we snagged all the symbols we need.
6324       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6325         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6326           cat <<EOF > conftest.$ac_ext
6327 #ifdef __cplusplus
6328 extern "C" {
6329 #endif
6332           # Now generate the symbol file.
6333           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6335           cat <<EOF >> conftest.$ac_ext
6336 #if defined (__STDC__) && __STDC__
6337 # define lt_ptr_t void *
6338 #else
6339 # define lt_ptr_t char *
6340 # define const
6341 #endif
6343 /* The mapping between symbol names and symbols. */
6344 const struct {
6345   const char *name;
6346   lt_ptr_t address;
6348 lt_preloaded_symbols[] =
6351           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6352           cat <<\EOF >> conftest.$ac_ext
6353   {0, (lt_ptr_t) 0}
6356 #ifdef __cplusplus
6358 #endif
6360           # Now try linking the two files.
6361           mv conftest.$ac_objext conftstm.$ac_objext
6362           lt_save_LIBS="$LIBS"
6363           lt_save_CFLAGS="$CFLAGS"
6364           LIBS="conftstm.$ac_objext"
6365           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6366           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6367   (eval $ac_link) 2>&5
6368   ac_status=$?
6369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6371             pipe_works=yes
6372           fi
6373           LIBS="$lt_save_LIBS"
6374           CFLAGS="$lt_save_CFLAGS"
6375         else
6376           echo "cannot find nm_test_func in $nlist" >&5
6377         fi
6378       else
6379         echo "cannot find nm_test_var in $nlist" >&5
6380       fi
6381     else
6382       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6383     fi
6384   else
6385     echo "$progname: failed program was:" >&5
6386     cat conftest.$ac_ext >&5
6387   fi
6388   rm -f conftest* conftst*
6390   # Do not use the global_symbol_pipe unless it works.
6391   if test "$pipe_works" = yes; then
6392     break
6393   else
6394     lt_cv_sys_global_symbol_pipe=
6395   fi
6396 done
6400 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6401   lt_cv_sys_global_symbol_to_cdecl=
6403 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6404   { echo "$as_me:$LINENO: result: failed" >&5
6405 echo "${ECHO_T}failed" >&6; }
6406 else
6407   { echo "$as_me:$LINENO: result: ok" >&5
6408 echo "${ECHO_T}ok" >&6; }
6411 { echo "$as_me:$LINENO: checking for objdir" >&5
6412 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6413 if test "${lt_cv_objdir+set}" = set; then
6414   echo $ECHO_N "(cached) $ECHO_C" >&6
6415 else
6416   rm -f .libs 2>/dev/null
6417 mkdir .libs 2>/dev/null
6418 if test -d .libs; then
6419   lt_cv_objdir=.libs
6420 else
6421   # MS-DOS does not allow filenames that begin with a dot.
6422   lt_cv_objdir=_libs
6424 rmdir .libs 2>/dev/null
6426 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6427 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6428 objdir=$lt_cv_objdir
6434 case $host_os in
6435 aix3*)
6436   # AIX sometimes has problems with the GCC collect2 program.  For some
6437   # reason, if we set the COLLECT_NAMES environment variable, the problems
6438   # vanish in a puff of smoke.
6439   if test "X${COLLECT_NAMES+set}" != Xset; then
6440     COLLECT_NAMES=
6441     export COLLECT_NAMES
6442   fi
6443   ;;
6444 esac
6446 # Sed substitution that helps us do robust quoting.  It backslashifies
6447 # metacharacters that are still active within double-quoted strings.
6448 Xsed='sed -e 1s/^X//'
6449 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6451 # Same as above, but do not quote variable references.
6452 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6454 # Sed substitution to delay expansion of an escaped shell variable in a
6455 # double_quote_subst'ed string.
6456 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6458 # Sed substitution to avoid accidental globbing in evaled expressions
6459 no_glob_subst='s/\*/\\\*/g'
6461 # Constants:
6462 rm="rm -f"
6464 # Global variables:
6465 default_ofile=libtool
6466 can_build_shared=yes
6468 # All known linkers require a `.a' archive for static linking (except MSVC,
6469 # which needs '.lib').
6470 libext=a
6471 ltmain="$ac_aux_dir/ltmain.sh"
6472 ofile="$default_ofile"
6473 with_gnu_ld="$lt_cv_prog_gnu_ld"
6475 if test -n "$ac_tool_prefix"; then
6476   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6477 set dummy ${ac_tool_prefix}ar; ac_word=$2
6478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6480 if test "${ac_cv_prog_AR+set}" = set; then
6481   echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483   if test -n "$AR"; then
6484   ac_cv_prog_AR="$AR" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6489   IFS=$as_save_IFS
6490   test -z "$as_dir" && as_dir=.
6491   for ac_exec_ext in '' $ac_executable_extensions; do
6492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493     ac_cv_prog_AR="${ac_tool_prefix}ar"
6494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495     break 2
6496   fi
6497 done
6498 done
6499 IFS=$as_save_IFS
6503 AR=$ac_cv_prog_AR
6504 if test -n "$AR"; then
6505   { echo "$as_me:$LINENO: result: $AR" >&5
6506 echo "${ECHO_T}$AR" >&6; }
6507 else
6508   { echo "$as_me:$LINENO: result: no" >&5
6509 echo "${ECHO_T}no" >&6; }
6514 if test -z "$ac_cv_prog_AR"; then
6515   ac_ct_AR=$AR
6516   # Extract the first word of "ar", so it can be a program name with args.
6517 set dummy ar; ac_word=$2
6518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6520 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6521   echo $ECHO_N "(cached) $ECHO_C" >&6
6522 else
6523   if test -n "$ac_ct_AR"; then
6524   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6525 else
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 for as_dir in $PATH
6529   IFS=$as_save_IFS
6530   test -z "$as_dir" && as_dir=.
6531   for ac_exec_ext in '' $ac_executable_extensions; do
6532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6533     ac_cv_prog_ac_ct_AR="ar"
6534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535     break 2
6536   fi
6537 done
6538 done
6539 IFS=$as_save_IFS
6543 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6544 if test -n "$ac_ct_AR"; then
6545   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6546 echo "${ECHO_T}$ac_ct_AR" >&6; }
6547 else
6548   { echo "$as_me:$LINENO: result: no" >&5
6549 echo "${ECHO_T}no" >&6; }
6552   if test "x$ac_ct_AR" = x; then
6553     AR="false"
6554   else
6555     case $cross_compiling:$ac_tool_warned in
6556 yes:)
6557 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6558 whose name does not start with the host triplet.  If you think this
6559 configuration is useful to you, please write to autoconf@gnu.org." >&5
6560 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6561 whose name does not start with the host triplet.  If you think this
6562 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6563 ac_tool_warned=yes ;;
6564 esac
6565     AR=$ac_ct_AR
6566   fi
6567 else
6568   AR="$ac_cv_prog_AR"
6571 if test -n "$ac_tool_prefix"; then
6572   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6573 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6576 if test "${ac_cv_prog_RANLIB+set}" = set; then
6577   echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else
6579   if test -n "$RANLIB"; then
6580   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6581 else
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH
6585   IFS=$as_save_IFS
6586   test -z "$as_dir" && as_dir=.
6587   for ac_exec_ext in '' $ac_executable_extensions; do
6588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6589     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591     break 2
6592   fi
6593 done
6594 done
6595 IFS=$as_save_IFS
6599 RANLIB=$ac_cv_prog_RANLIB
6600 if test -n "$RANLIB"; then
6601   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6602 echo "${ECHO_T}$RANLIB" >&6; }
6603 else
6604   { echo "$as_me:$LINENO: result: no" >&5
6605 echo "${ECHO_T}no" >&6; }
6610 if test -z "$ac_cv_prog_RANLIB"; then
6611   ac_ct_RANLIB=$RANLIB
6612   # Extract the first word of "ranlib", so it can be a program name with args.
6613 set dummy ranlib; ac_word=$2
6614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6616 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6617   echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619   if test -n "$ac_ct_RANLIB"; then
6620   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6621 else
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6625   IFS=$as_save_IFS
6626   test -z "$as_dir" && as_dir=.
6627   for ac_exec_ext in '' $ac_executable_extensions; do
6628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6629     ac_cv_prog_ac_ct_RANLIB="ranlib"
6630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6631     break 2
6632   fi
6633 done
6634 done
6635 IFS=$as_save_IFS
6639 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6640 if test -n "$ac_ct_RANLIB"; then
6641   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6642 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6643 else
6644   { echo "$as_me:$LINENO: result: no" >&5
6645 echo "${ECHO_T}no" >&6; }
6648   if test "x$ac_ct_RANLIB" = x; then
6649     RANLIB=":"
6650   else
6651     case $cross_compiling:$ac_tool_warned in
6652 yes:)
6653 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6654 whose name does not start with the host triplet.  If you think this
6655 configuration is useful to you, please write to autoconf@gnu.org." >&5
6656 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6657 whose name does not start with the host triplet.  If you think this
6658 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6659 ac_tool_warned=yes ;;
6660 esac
6661     RANLIB=$ac_ct_RANLIB
6662   fi
6663 else
6664   RANLIB="$ac_cv_prog_RANLIB"
6667 if test -n "$ac_tool_prefix"; then
6668   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6669 set dummy ${ac_tool_prefix}strip; ac_word=$2
6670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6672 if test "${ac_cv_prog_STRIP+set}" = set; then
6673   echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675   if test -n "$STRIP"; then
6676   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6677 else
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6681   IFS=$as_save_IFS
6682   test -z "$as_dir" && as_dir=.
6683   for ac_exec_ext in '' $ac_executable_extensions; do
6684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687     break 2
6688   fi
6689 done
6690 done
6691 IFS=$as_save_IFS
6695 STRIP=$ac_cv_prog_STRIP
6696 if test -n "$STRIP"; then
6697   { echo "$as_me:$LINENO: result: $STRIP" >&5
6698 echo "${ECHO_T}$STRIP" >&6; }
6699 else
6700   { echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6; }
6706 if test -z "$ac_cv_prog_STRIP"; then
6707   ac_ct_STRIP=$STRIP
6708   # Extract the first word of "strip", so it can be a program name with args.
6709 set dummy strip; ac_word=$2
6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6713   echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715   if test -n "$ac_ct_STRIP"; then
6716   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6721   IFS=$as_save_IFS
6722   test -z "$as_dir" && as_dir=.
6723   for ac_exec_ext in '' $ac_executable_extensions; do
6724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725     ac_cv_prog_ac_ct_STRIP="strip"
6726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727     break 2
6728   fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6735 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6736 if test -n "$ac_ct_STRIP"; then
6737   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6738 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6739 else
6740   { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6744   if test "x$ac_ct_STRIP" = x; then
6745     STRIP=":"
6746   else
6747     case $cross_compiling:$ac_tool_warned in
6748 yes:)
6749 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6750 whose name does not start with the host triplet.  If you think this
6751 configuration is useful to you, please write to autoconf@gnu.org." >&5
6752 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6753 whose name does not start with the host triplet.  If you think this
6754 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6755 ac_tool_warned=yes ;;
6756 esac
6757     STRIP=$ac_ct_STRIP
6758   fi
6759 else
6760   STRIP="$ac_cv_prog_STRIP"
6764 old_CC="$CC"
6765 old_CFLAGS="$CFLAGS"
6767 # Set sane defaults for various variables
6768 test -z "$AR" && AR=ar
6769 test -z "$AR_FLAGS" && AR_FLAGS=cru
6770 test -z "$AS" && AS=as
6771 test -z "$CC" && CC=cc
6772 test -z "$LTCC" && LTCC=$CC
6773 test -z "$DLLTOOL" && DLLTOOL=dlltool
6774 test -z "$LD" && LD=ld
6775 test -z "$LN_S" && LN_S="ln -s"
6776 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6777 test -z "$NM" && NM=nm
6778 test -z "$SED" && SED=sed
6779 test -z "$OBJDUMP" && OBJDUMP=objdump
6780 test -z "$RANLIB" && RANLIB=:
6781 test -z "$STRIP" && STRIP=:
6782 test -z "$ac_objext" && ac_objext=o
6784 # Determine commands to create old-style static archives.
6785 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6786 old_postinstall_cmds='chmod 644 $oldlib'
6787 old_postuninstall_cmds=
6789 if test -n "$RANLIB"; then
6790   case $host_os in
6791   openbsd*)
6792     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6793     ;;
6794   *)
6795     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6796     ;;
6797   esac
6798   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6801 for cc_temp in $compiler""; do
6802   case $cc_temp in
6803     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6804     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6805     \-*) ;;
6806     *) break;;
6807   esac
6808 done
6809 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6812 # Only perform the check for file, if the check method requires it
6813 case $deplibs_check_method in
6814 file_magic*)
6815   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6816     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6817 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6818 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6819   echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821   case $MAGIC_CMD in
6822 [\\/*] |  ?:[\\/]*)
6823   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6824   ;;
6826   lt_save_MAGIC_CMD="$MAGIC_CMD"
6827   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6828   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6829   for ac_dir in $ac_dummy; do
6830     IFS="$lt_save_ifs"
6831     test -z "$ac_dir" && ac_dir=.
6832     if test -f $ac_dir/${ac_tool_prefix}file; then
6833       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6834       if test -n "$file_magic_test_file"; then
6835         case $deplibs_check_method in
6836         "file_magic "*)
6837           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6838           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6839           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6840             $EGREP "$file_magic_regex" > /dev/null; then
6841             :
6842           else
6843             cat <<EOF 1>&2
6845 *** Warning: the command libtool uses to detect shared libraries,
6846 *** $file_magic_cmd, produces output that libtool cannot recognize.
6847 *** The result is that libtool may fail to recognize shared libraries
6848 *** as such.  This will affect the creation of libtool libraries that
6849 *** depend on shared libraries, but programs linked with such libtool
6850 *** libraries will work regardless of this problem.  Nevertheless, you
6851 *** may want to report the problem to your system manager and/or to
6852 *** bug-libtool@gnu.org
6855           fi ;;
6856         esac
6857       fi
6858       break
6859     fi
6860   done
6861   IFS="$lt_save_ifs"
6862   MAGIC_CMD="$lt_save_MAGIC_CMD"
6863   ;;
6864 esac
6867 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6868 if test -n "$MAGIC_CMD"; then
6869   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6870 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6871 else
6872   { echo "$as_me:$LINENO: result: no" >&5
6873 echo "${ECHO_T}no" >&6; }
6876 if test -z "$lt_cv_path_MAGIC_CMD"; then
6877   if test -n "$ac_tool_prefix"; then
6878     { echo "$as_me:$LINENO: checking for file" >&5
6879 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6880 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6881   echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883   case $MAGIC_CMD in
6884 [\\/*] |  ?:[\\/]*)
6885   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6886   ;;
6888   lt_save_MAGIC_CMD="$MAGIC_CMD"
6889   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6890   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6891   for ac_dir in $ac_dummy; do
6892     IFS="$lt_save_ifs"
6893     test -z "$ac_dir" && ac_dir=.
6894     if test -f $ac_dir/file; then
6895       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6896       if test -n "$file_magic_test_file"; then
6897         case $deplibs_check_method in
6898         "file_magic "*)
6899           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6900           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6901           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6902             $EGREP "$file_magic_regex" > /dev/null; then
6903             :
6904           else
6905             cat <<EOF 1>&2
6907 *** Warning: the command libtool uses to detect shared libraries,
6908 *** $file_magic_cmd, produces output that libtool cannot recognize.
6909 *** The result is that libtool may fail to recognize shared libraries
6910 *** as such.  This will affect the creation of libtool libraries that
6911 *** depend on shared libraries, but programs linked with such libtool
6912 *** libraries will work regardless of this problem.  Nevertheless, you
6913 *** may want to report the problem to your system manager and/or to
6914 *** bug-libtool@gnu.org
6917           fi ;;
6918         esac
6919       fi
6920       break
6921     fi
6922   done
6923   IFS="$lt_save_ifs"
6924   MAGIC_CMD="$lt_save_MAGIC_CMD"
6925   ;;
6926 esac
6929 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6930 if test -n "$MAGIC_CMD"; then
6931   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6932 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6933 else
6934   { echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6; }
6938   else
6939     MAGIC_CMD=:
6940   fi
6943   fi
6944   ;;
6945 esac
6947 enable_dlopen=no
6948 enable_win32_dll=no
6950 # Check whether --enable-libtool-lock was given.
6951 if test "${enable_libtool_lock+set}" = set; then
6952   enableval=$enable_libtool_lock; 
6955 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6958 # Check whether --with-pic was given.
6959 if test "${with_pic+set}" = set; then
6960   withval=$with_pic; pic_mode="$withval"
6961 else
6962   pic_mode=default
6965 test -z "$pic_mode" && pic_mode=default
6967 # Use C for the default configuration in the libtool script
6968 tagname=
6969 lt_save_CC="$CC"
6970 ac_ext=c
6971 ac_cpp='$CPP $CPPFLAGS'
6972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6977 # Source file extension for C test sources.
6978 ac_ext=c
6980 # Object file extension for compiled C test sources.
6981 objext=o
6982 objext=$objext
6984 # Code to be used in simple compile tests
6985 lt_simple_compile_test_code="int some_variable = 0;\n"
6987 # Code to be used in simple link tests
6988 lt_simple_link_test_code='int main(){return(0);}\n'
6991 # If no C compiler was specified, use CC.
6992 LTCC=${LTCC-"$CC"}
6994 # Allow CC to be a program name with arguments.
6995 compiler=$CC
6998 # save warnings/boilerplate of simple test code
6999 ac_outfile=conftest.$ac_objext
7000 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7001 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7002 _lt_compiler_boilerplate=`cat conftest.err`
7003 $rm conftest*
7005 ac_outfile=conftest.$ac_objext
7006 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7007 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7008 _lt_linker_boilerplate=`cat conftest.err`
7009 $rm conftest*
7013 # Check for any special shared library compilation flags.
7015 lt_prog_cc_shlib=
7016 if test "$GCC" = no; then
7017   case $host_os in
7018   sco3.2v5*)
7019     lt_prog_cc_shlib='-belf'
7020     ;;
7021   esac
7023 if test -n "$lt_prog_cc_shlib"; then
7024   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7025 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7026   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7027   else
7028     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7029 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7030     lt_cv_prog_cc_can_build_shared=no
7031   fi
7036 # Check to make sure the static flag actually works.
7038 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7039 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
7040 if test "${lt_prog_compiler_static_works+set}" = set; then
7041   echo $ECHO_N "(cached) $ECHO_C" >&6
7042 else
7043   lt_prog_compiler_static_works=no
7044    save_LDFLAGS="$LDFLAGS"
7045    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7046    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7047    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7048      # The linker can only warn and ignore the option if not recognized
7049      # So say no if there are warnings
7050      if test -s conftest.err; then
7051        # Append any errors to the config.log.
7052        cat conftest.err 1>&5
7053        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7054        $SED '/^$/d' conftest.err >conftest.er2
7055        if diff conftest.exp conftest.er2 >/dev/null; then
7056          lt_prog_compiler_static_works=yes
7057        fi
7058      else
7059        lt_prog_compiler_static_works=yes
7060      fi
7061    fi
7062    $rm conftest*
7063    LDFLAGS="$save_LDFLAGS"
7066 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7067 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7069 if test x"$lt_prog_compiler_static_works" = xyes; then
7070     :
7071 else
7072     lt_prog_compiler_static=
7077 ## CAVEAT EMPTOR:
7078 ## There is no encapsulation within the following macros, do not change
7079 ## the running order or otherwise move them around unless you know exactly
7080 ## what you are doing...
7082 lt_prog_compiler_no_builtin_flag=
7084 if test "$GCC" = yes; then
7085   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7087   
7088 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7089 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7090 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7091   echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093   lt_cv_prog_compiler_rtti_exceptions=no
7094   ac_outfile=conftest.$ac_objext
7095    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7096    lt_compiler_flag="-fno-rtti -fno-exceptions"
7097    # Insert the option either (1) after the last *FLAGS variable, or
7098    # (2) before a word containing "conftest.", or (3) at the end.
7099    # Note that $ac_compile itself does not contain backslashes and begins
7100    # with a dollar sign (not a hyphen), so the echo should work correctly.
7101    # The option is referenced via a variable to avoid confusing sed.
7102    lt_compile=`echo "$ac_compile" | $SED \
7103    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7104    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7105    -e 's:$: $lt_compiler_flag:'`
7106    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7107    (eval "$lt_compile" 2>conftest.err)
7108    ac_status=$?
7109    cat conftest.err >&5
7110    echo "$as_me:__oline__: \$? = $ac_status" >&5
7111    if (exit $ac_status) && test -s "$ac_outfile"; then
7112      # The compiler can only warn and ignore the option if not recognized
7113      # So say no if there are warnings other than the usual output.
7114      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7115      $SED '/^$/d' conftest.err >conftest.er2
7116      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7117        lt_cv_prog_compiler_rtti_exceptions=yes
7118      fi
7119    fi
7120    $rm conftest*
7123 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7124 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7126 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7127     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7128 else
7129     :
7134 lt_prog_compiler_wl=
7135 lt_prog_compiler_pic=
7136 lt_prog_compiler_static=
7138 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7139 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7141   if test "$GCC" = yes; then
7142     lt_prog_compiler_wl='-Wl,'
7143     lt_prog_compiler_static='-static'
7145     case $host_os in
7146       aix*)
7147       # All AIX code is PIC.
7148       if test "$host_cpu" = ia64; then
7149         # AIX 5 now supports IA64 processor
7150         lt_prog_compiler_static='-Bstatic'
7151       fi
7152       ;;
7154     amigaos*)
7155       # FIXME: we need at least 68020 code to build shared libraries, but
7156       # adding the `-m68020' flag to GCC prevents building anything better,
7157       # like `-m68040'.
7158       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7159       ;;
7161     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7162       # PIC is the default for these OSes.
7163       ;;
7165     mingw* | pw32* | os2*)
7166       # This hack is so that the source file can tell whether it is being
7167       # built for inclusion in a dll (and should export symbols for example).
7168       lt_prog_compiler_pic='-DDLL_EXPORT'
7169       ;;
7171     darwin* | rhapsody*)
7172       # PIC is the default on this platform
7173       # Common symbols not allowed in MH_DYLIB files
7174       lt_prog_compiler_pic='-fno-common'
7175       ;;
7177     msdosdjgpp*)
7178       # Just because we use GCC doesn't mean we suddenly get shared libraries
7179       # on systems that don't support them.
7180       lt_prog_compiler_can_build_shared=no
7181       enable_shared=no
7182       ;;
7184     sysv4*MP*)
7185       if test -d /usr/nec; then
7186         lt_prog_compiler_pic=-Kconform_pic
7187       fi
7188       ;;
7190     hpux*)
7191       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7192       # not for PA HP-UX.
7193       case $host_cpu in
7194       hppa*64*|ia64*)
7195         # +Z the default
7196         ;;
7197       *)
7198         lt_prog_compiler_pic='-fPIC'
7199         ;;
7200       esac
7201       ;;
7203     *)
7204       lt_prog_compiler_pic='-fPIC'
7205       ;;
7206     esac
7207   else
7208     # PORTME Check for flag to pass linker flags through the system compiler.
7209     case $host_os in
7210     aix*)
7211       lt_prog_compiler_wl='-Wl,'
7212       if test "$host_cpu" = ia64; then
7213         # AIX 5 now supports IA64 processor
7214         lt_prog_compiler_static='-Bstatic'
7215       else
7216         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7217       fi
7218       ;;
7219       darwin*)
7220         # PIC is the default on this platform
7221         # Common symbols not allowed in MH_DYLIB files
7222        case $cc_basename in
7223          xlc*)
7224          lt_prog_compiler_pic='-qnocommon'
7225          lt_prog_compiler_wl='-Wl,'
7226          ;;
7227        esac
7228        ;;
7230     mingw* | pw32* | os2*)
7231       # This hack is so that the source file can tell whether it is being
7232       # built for inclusion in a dll (and should export symbols for example).
7233       lt_prog_compiler_pic='-DDLL_EXPORT'
7234       ;;
7236     hpux9* | hpux10* | hpux11*)
7237       lt_prog_compiler_wl='-Wl,'
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='+Z'
7246         ;;
7247       esac
7248       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7249       lt_prog_compiler_static='${wl}-a ${wl}archive'
7250       ;;
7252     irix5* | irix6* | nonstopux*)
7253       lt_prog_compiler_wl='-Wl,'
7254       # PIC (with -KPIC) is the default.
7255       lt_prog_compiler_static='-non_shared'
7256       ;;
7258     newsos6)
7259       lt_prog_compiler_pic='-KPIC'
7260       lt_prog_compiler_static='-Bstatic'
7261       ;;
7263     linux*)
7264       case $cc_basename in
7265       icc* | ecc*)
7266         lt_prog_compiler_wl='-Wl,'
7267         lt_prog_compiler_pic='-KPIC'
7268         lt_prog_compiler_static='-static'
7269         ;;
7270       pgcc* | pgf77* | pgf90* | pgf95*)
7271         # Portland Group compilers (*not* the Pentium gcc compiler,
7272         # which looks to be a dead project)
7273         lt_prog_compiler_wl='-Wl,'
7274         lt_prog_compiler_pic='-fpic'
7275         lt_prog_compiler_static='-Bstatic'
7276         ;;
7277       ccc*)
7278         lt_prog_compiler_wl='-Wl,'
7279         # All Alpha code is PIC.
7280         lt_prog_compiler_static='-non_shared'
7281         ;;
7282       esac
7283       ;;
7285     osf3* | osf4* | osf5*)
7286       lt_prog_compiler_wl='-Wl,'
7287       # All OSF/1 code is PIC.
7288       lt_prog_compiler_static='-non_shared'
7289       ;;
7291     sco3.2v5*)
7292       lt_prog_compiler_pic='-Kpic'
7293       lt_prog_compiler_static='-dn'
7294       ;;
7296     solaris*)
7297       lt_prog_compiler_pic='-KPIC'
7298       lt_prog_compiler_static='-Bstatic'
7299       case $cc_basename in
7300       f77* | f90* | f95*)
7301         lt_prog_compiler_wl='-Qoption ld ';;
7302       *)
7303         lt_prog_compiler_wl='-Wl,';;
7304       esac
7305       ;;
7307     sunos4*)
7308       lt_prog_compiler_wl='-Qoption ld '
7309       lt_prog_compiler_pic='-PIC'
7310       lt_prog_compiler_static='-Bstatic'
7311       ;;
7313     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7314       lt_prog_compiler_wl='-Wl,'
7315       lt_prog_compiler_pic='-KPIC'
7316       lt_prog_compiler_static='-Bstatic'
7317       ;;
7319     sysv4*MP*)
7320       if test -d /usr/nec ;then
7321         lt_prog_compiler_pic='-Kconform_pic'
7322         lt_prog_compiler_static='-Bstatic'
7323       fi
7324       ;;
7326     unicos*)
7327       lt_prog_compiler_wl='-Wl,'
7328       lt_prog_compiler_can_build_shared=no
7329       ;;
7331     uts4*)
7332       lt_prog_compiler_pic='-pic'
7333       lt_prog_compiler_static='-Bstatic'
7334       ;;
7336     *)
7337       lt_prog_compiler_can_build_shared=no
7338       ;;
7339     esac
7340   fi
7342 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7343 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7346 # Check to make sure the PIC flag actually works.
7348 if test -n "$lt_prog_compiler_pic"; then
7349   
7350 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7351 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7352 if test "${lt_prog_compiler_pic_works+set}" = set; then
7353   echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355   lt_prog_compiler_pic_works=no
7356   ac_outfile=conftest.$ac_objext
7357    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7358    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7359    # Insert the option either (1) after the last *FLAGS variable, or
7360    # (2) before a word containing "conftest.", or (3) at the end.
7361    # Note that $ac_compile itself does not contain backslashes and begins
7362    # with a dollar sign (not a hyphen), so the echo should work correctly.
7363    # The option is referenced via a variable to avoid confusing sed.
7364    lt_compile=`echo "$ac_compile" | $SED \
7365    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7366    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7367    -e 's:$: $lt_compiler_flag:'`
7368    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7369    (eval "$lt_compile" 2>conftest.err)
7370    ac_status=$?
7371    cat conftest.err >&5
7372    echo "$as_me:__oline__: \$? = $ac_status" >&5
7373    if (exit $ac_status) && test -s "$ac_outfile"; then
7374      # The compiler can only warn and ignore the option if not recognized
7375      # So say no if there are warnings other than the usual output.
7376      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7377      $SED '/^$/d' conftest.err >conftest.er2
7378      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7379        lt_prog_compiler_pic_works=yes
7380      fi
7381    fi
7382    $rm conftest*
7385 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7386 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7388 if test x"$lt_prog_compiler_pic_works" = xyes; then
7389     case $lt_prog_compiler_pic in
7390      "" | " "*) ;;
7391      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7392      esac
7393 else
7394     lt_prog_compiler_pic=
7395      lt_prog_compiler_can_build_shared=no
7399 case $host_os in
7400   # For platforms which do not support PIC, -DPIC is meaningless:
7401   *djgpp*)
7402     lt_prog_compiler_pic=
7403     ;;
7404   *)
7405     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7406     ;;
7407 esac
7409 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7410 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7411 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7412   echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414   lt_cv_prog_compiler_c_o=no
7415    $rm -r conftest 2>/dev/null
7416    mkdir conftest
7417    cd conftest
7418    mkdir out
7419    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7421    lt_compiler_flag="-o out/conftest2.$ac_objext"
7422    # Insert the option either (1) after the last *FLAGS variable, or
7423    # (2) before a word containing "conftest.", or (3) at the end.
7424    # Note that $ac_compile itself does not contain backslashes and begins
7425    # with a dollar sign (not a hyphen), so the echo should work correctly.
7426    lt_compile=`echo "$ac_compile" | $SED \
7427    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7428    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7429    -e 's:$: $lt_compiler_flag:'`
7430    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7431    (eval "$lt_compile" 2>out/conftest.err)
7432    ac_status=$?
7433    cat out/conftest.err >&5
7434    echo "$as_me:__oline__: \$? = $ac_status" >&5
7435    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7436    then
7437      # The compiler can only warn and ignore the option if not recognized
7438      # So say no if there are warnings
7439      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7440      $SED '/^$/d' out/conftest.err >out/conftest.er2
7441      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7442        lt_cv_prog_compiler_c_o=yes
7443      fi
7444    fi
7445    chmod u+w . 2>&5
7446    $rm conftest*
7447    # SGI C++ compiler will create directory out/ii_files/ for
7448    # template instantiation
7449    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7450    $rm out/* && rmdir out
7451    cd ..
7452    rmdir conftest
7453    $rm conftest*
7456 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7457 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7460 hard_links="nottested"
7461 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7462   # do not overwrite the value of need_locks provided by the user
7463   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7464 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7465   hard_links=yes
7466   $rm conftest*
7467   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7468   touch conftest.a
7469   ln conftest.a conftest.b 2>&5 || hard_links=no
7470   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7471   { echo "$as_me:$LINENO: result: $hard_links" >&5
7472 echo "${ECHO_T}$hard_links" >&6; }
7473   if test "$hard_links" = no; then
7474     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7475 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7476     need_locks=warn
7477   fi
7478 else
7479   need_locks=no
7482 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7483 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7485   runpath_var=
7486   allow_undefined_flag=
7487   enable_shared_with_static_runtimes=no
7488   archive_cmds=
7489   archive_expsym_cmds=
7490   old_archive_From_new_cmds=
7491   old_archive_from_expsyms_cmds=
7492   export_dynamic_flag_spec=
7493   whole_archive_flag_spec=
7494   thread_safe_flag_spec=
7495   hardcode_libdir_flag_spec=
7496   hardcode_libdir_flag_spec_ld=
7497   hardcode_libdir_separator=
7498   hardcode_direct=no
7499   hardcode_minus_L=no
7500   hardcode_shlibpath_var=unsupported
7501   link_all_deplibs=unknown
7502   hardcode_automatic=no
7503   module_cmds=
7504   module_expsym_cmds=
7505   always_export_symbols=no
7506   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7507   # include_expsyms should be a list of space-separated symbols to be *always*
7508   # included in the symbol list
7509   include_expsyms=
7510   # exclude_expsyms can be an extended regexp of symbols to exclude
7511   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7512   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7513   # as well as any symbol that contains `d'.
7514   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7515   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7516   # platforms (ab)use it in PIC code, but their linkers get confused if
7517   # the symbol is explicitly referenced.  Since portable code cannot
7518   # rely on this symbol name, it's probably fine to never include it in
7519   # preloaded symbol tables.
7520   extract_expsyms_cmds=
7521   # Just being paranoid about ensuring that cc_basename is set.
7522   for cc_temp in $compiler""; do
7523   case $cc_temp in
7524     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7525     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7526     \-*) ;;
7527     *) break;;
7528   esac
7529 done
7530 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7532   case $host_os in
7533   cygwin* | mingw* | pw32*)
7534     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7535     # When not using gcc, we currently assume that we are using
7536     # Microsoft Visual C++.
7537     if test "$GCC" != yes; then
7538       with_gnu_ld=no
7539     fi
7540     ;;
7541   openbsd*)
7542     with_gnu_ld=no
7543     ;;
7544   esac
7546   ld_shlibs=yes
7547   if test "$with_gnu_ld" = yes; then
7548     # If archive_cmds runs LD, not CC, wlarc should be empty
7549     wlarc='${wl}'
7551     # Set some defaults for GNU ld with shared library support. These
7552     # are reset later if shared libraries are not supported. Putting them
7553     # here allows them to be overridden if necessary.
7554     runpath_var=LD_RUN_PATH
7555     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7556     export_dynamic_flag_spec='${wl}--export-dynamic'
7557     # ancient GNU ld didn't support --whole-archive et. al.
7558     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7559         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7560       else
7561         whole_archive_flag_spec=
7562     fi
7563     supports_anon_versioning=no
7564     case `$LD -v 2>/dev/null` in
7565       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7566       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7567       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7568       *\ 2.11.*) ;; # other 2.11 versions
7569       *) supports_anon_versioning=yes ;;
7570     esac
7572     # See if GNU ld supports shared libraries.
7573     case $host_os in
7574     aix3* | aix4* | aix5*)
7575       # On AIX/PPC, the GNU linker is very broken
7576       if test "$host_cpu" != ia64; then
7577         ld_shlibs=no
7578         cat <<EOF 1>&2
7580 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7581 *** to be unable to reliably create shared libraries on AIX.
7582 *** Therefore, libtool is disabling shared libraries support.  If you
7583 *** really care for shared libraries, you may want to modify your PATH
7584 *** so that a non-GNU linker is found, and then restart.
7587       fi
7588       ;;
7590     amigaos*)
7591       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)'
7592       hardcode_libdir_flag_spec='-L$libdir'
7593       hardcode_minus_L=yes
7595       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7596       # that the semantics of dynamic libraries on AmigaOS, at least up
7597       # to version 4, is to share data among multiple programs linked
7598       # with the same dynamic library.  Since this doesn't match the
7599       # behavior of shared libraries on other platforms, we can't use
7600       # them.
7601       ld_shlibs=no
7602       ;;
7604     beos*)
7605       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7606         allow_undefined_flag=unsupported
7607         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7608         # support --undefined.  This deserves some investigation.  FIXME
7609         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7610       else
7611         ld_shlibs=no
7612       fi
7613       ;;
7615     cygwin* | mingw* | pw32*)
7616       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7617       # as there is no search path for DLLs.
7618       hardcode_libdir_flag_spec='-L$libdir'
7619       allow_undefined_flag=unsupported
7620       always_export_symbols=no
7621       enable_shared_with_static_runtimes=yes
7622       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7624       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7625         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7626         # If the export-symbols file already is a .def file (1st line
7627         # is EXPORTS), use it as is; otherwise, prepend...
7628         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7629           cp $export_symbols $output_objdir/$soname.def;
7630         else
7631           echo EXPORTS > $output_objdir/$soname.def;
7632           cat $export_symbols >> $output_objdir/$soname.def;
7633         fi~
7634         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7635       else
7636         ld_shlibs=no
7637       fi
7638       ;;
7640     linux*)
7641       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7642         tmp_addflag=
7643         case $cc_basename,$host_cpu in
7644         pgcc*)                          # Portland Group C compiler
7645           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'
7646           tmp_addflag=' $pic_flag'
7647           ;;
7648         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7649           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'
7650           tmp_addflag=' $pic_flag -Mnomain' ;;
7651         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7652           tmp_addflag=' -i_dynamic' ;;
7653         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7654           tmp_addflag=' -i_dynamic -nofor_main' ;;
7655         ifc* | ifort*)                  # Intel Fortran compiler
7656           tmp_addflag=' -nofor_main' ;;
7657         esac
7658         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7660         if test $supports_anon_versioning = yes; then
7661           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7662   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7663   $echo "local: *; };" >> $output_objdir/$libname.ver~
7664           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7665         fi
7666         link_all_deplibs=no
7667       else
7668         ld_shlibs=no
7669       fi
7670       ;;
7672     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7673       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7674         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7675         wlarc=
7676       else
7677         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7678         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7679       fi
7680       ;;
7682     solaris* | sysv5*)
7683       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7684         ld_shlibs=no
7685         cat <<EOF 1>&2
7687 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7688 *** create shared libraries on Solaris systems.  Therefore, libtool
7689 *** is disabling shared libraries support.  We urge you to upgrade GNU
7690 *** binutils to release 2.9.1 or newer.  Another option is to modify
7691 *** your PATH or compiler configuration so that the native linker is
7692 *** used, and then restart.
7695       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7696         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7697         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7698       else
7699         ld_shlibs=no
7700       fi
7701       ;;
7703     sunos4*)
7704       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7705       wlarc=
7706       hardcode_direct=yes
7707       hardcode_shlibpath_var=no
7708       ;;
7710     *)
7711       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7712         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7713         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7714       else
7715         ld_shlibs=no
7716       fi
7717       ;;
7718     esac
7720     if test "$ld_shlibs" = no; then
7721       runpath_var=
7722       hardcode_libdir_flag_spec=
7723       export_dynamic_flag_spec=
7724       whole_archive_flag_spec=
7725     fi
7726   else
7727     # PORTME fill in a description of your system's linker (not GNU ld)
7728     case $host_os in
7729     aix3*)
7730       allow_undefined_flag=unsupported
7731       always_export_symbols=yes
7732       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'
7733       # Note: this linker hardcodes the directories in LIBPATH if there
7734       # are no directories specified by -L.
7735       hardcode_minus_L=yes
7736       if test "$GCC" = yes && test -z "$link_static_flag"; then
7737         # Neither direct hardcoding nor static linking is supported with a
7738         # broken collect2.
7739         hardcode_direct=unsupported
7740       fi
7741       ;;
7743     aix4* | aix5*)
7744       if test "$host_cpu" = ia64; then
7745         # On IA64, the linker does run time linking by default, so we don't
7746         # have to do anything special.
7747         aix_use_runtimelinking=no
7748         exp_sym_flag='-Bexport'
7749         no_entry_flag=""
7750       else
7751         # If we're using GNU nm, then we don't want the "-C" option.
7752         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7753         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7754           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'
7755         else
7756           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'
7757         fi
7758         aix_use_runtimelinking=no
7760         # Test if we are trying to use run time linking or normal
7761         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7762         # need to do runtime linking.
7763         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7764           for ld_flag in $LDFLAGS; do
7765           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7766             aix_use_runtimelinking=yes
7767             break
7768           fi
7769           done
7770         esac
7772         exp_sym_flag='-bexport'
7773         no_entry_flag='-bnoentry'
7774       fi
7776       # When large executables or shared objects are built, AIX ld can
7777       # have problems creating the table of contents.  If linking a library
7778       # or program results in "error TOC overflow" add -mminimal-toc to
7779       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7780       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7782       archive_cmds=''
7783       hardcode_direct=yes
7784       hardcode_libdir_separator=':'
7785       link_all_deplibs=yes
7787       if test "$GCC" = yes; then
7788         case $host_os in aix4.[012]|aix4.[012].*)
7789         # We only want to do this on AIX 4.2 and lower, the check
7790         # below for broken collect2 doesn't work under 4.3+
7791           collect2name=`${CC} -print-prog-name=collect2`
7792           if test -f "$collect2name" && \
7793            strings "$collect2name" | grep resolve_lib_name >/dev/null
7794           then
7795           # We have reworked collect2
7796           hardcode_direct=yes
7797           else
7798           # We have old collect2
7799           hardcode_direct=unsupported
7800           # It fails to find uninstalled libraries when the uninstalled
7801           # path is not listed in the libpath.  Setting hardcode_minus_L
7802           # to unsupported forces relinking
7803           hardcode_minus_L=yes
7804           hardcode_libdir_flag_spec='-L$libdir'
7805           hardcode_libdir_separator=
7806           fi
7807         esac
7808         shared_flag='-shared'
7809         if test "$aix_use_runtimelinking" = yes; then
7810           shared_flag="$shared_flag "'${wl}-G'
7811         fi
7812       else
7813         # not using gcc
7814         if test "$host_cpu" = ia64; then
7815         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7816         # chokes on -Wl,-G. The following line is correct:
7817           shared_flag='-G'
7818         else
7819         if test "$aix_use_runtimelinking" = yes; then
7820             shared_flag='${wl}-G'
7821           else
7822             shared_flag='${wl}-bM:SRE'
7823         fi
7824         fi
7825       fi
7827       # It seems that -bexpall does not export symbols beginning with
7828       # underscore (_), so it is better to generate a list of symbols to export.
7829       always_export_symbols=yes
7830       if test "$aix_use_runtimelinking" = yes; then
7831         # Warning - without using the other runtime loading flags (-brtl),
7832         # -berok will link without error, but may produce a broken library.
7833         allow_undefined_flag='-berok'
7834        # Determine the default libpath from the value encoded in an empty executable.
7835        cat >conftest.$ac_ext <<_ACEOF
7836 /* confdefs.h.  */
7837 _ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h.  */
7843 main ()
7846   ;
7847   return 0;
7849 _ACEOF
7850 rm -f conftest.$ac_objext conftest$ac_exeext
7851 if { (ac_try="$ac_link"
7852 case "(($ac_try" in
7853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854   *) ac_try_echo=$ac_try;;
7855 esac
7856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7857   (eval "$ac_link") 2>conftest.er1
7858   ac_status=$?
7859   grep -v '^ *+' conftest.er1 >conftest.err
7860   rm -f conftest.er1
7861   cat conftest.err >&5
7862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863   (exit $ac_status); } && {
7864          test -z "$ac_c_werror_flag" ||
7865          test ! -s conftest.err
7866        } && test -s conftest$ac_exeext &&
7867        $as_test_x conftest$ac_exeext; then
7868   
7869 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7871 # Check for a 64-bit object if we didn't find anything.
7872 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7873 }'`; fi
7874 else
7875   echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7878         
7881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7882       conftest$ac_exeext conftest.$ac_ext
7883 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7885        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7886         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7887        else
7888         if test "$host_cpu" = ia64; then
7889           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7890           allow_undefined_flag="-z nodefs"
7891           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7892         else
7893          # Determine the default libpath from the value encoded in an empty executable.
7894          cat >conftest.$ac_ext <<_ACEOF
7895 /* confdefs.h.  */
7896 _ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h.  */
7902 main ()
7905   ;
7906   return 0;
7908 _ACEOF
7909 rm -f conftest.$ac_objext conftest$ac_exeext
7910 if { (ac_try="$ac_link"
7911 case "(($ac_try" in
7912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913   *) ac_try_echo=$ac_try;;
7914 esac
7915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7916   (eval "$ac_link") 2>conftest.er1
7917   ac_status=$?
7918   grep -v '^ *+' conftest.er1 >conftest.err
7919   rm -f conftest.er1
7920   cat conftest.err >&5
7921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922   (exit $ac_status); } && {
7923          test -z "$ac_c_werror_flag" ||
7924          test ! -s conftest.err
7925        } && test -s conftest$ac_exeext &&
7926        $as_test_x conftest$ac_exeext; then
7927   
7928 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7930 # Check for a 64-bit object if we didn't find anything.
7931 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7932 }'`; fi
7933 else
7934   echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7937         
7940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7941       conftest$ac_exeext conftest.$ac_ext
7942 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7944          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7945           # Warning - without using the other run time loading flags,
7946           # -berok will link without error, but may produce a broken library.
7947           no_undefined_flag=' ${wl}-bernotok'
7948           allow_undefined_flag=' ${wl}-berok'
7949           # -bexpall does not export symbols beginning with underscore (_)
7950           always_export_symbols=yes
7951           # Exported symbols can be pulled into shared objects from archives
7952           whole_archive_flag_spec=' '
7953           archive_cmds_need_lc=yes
7954           # This is similar to how AIX traditionally builds its shared libraries.
7955           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7956         fi
7957       fi
7958       ;;
7960     amigaos*)
7961       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)'
7962       hardcode_libdir_flag_spec='-L$libdir'
7963       hardcode_minus_L=yes
7964       # see comment about different semantics on the GNU ld section
7965       ld_shlibs=no
7966       ;;
7968     bsdi[45]*)
7969       export_dynamic_flag_spec=-rdynamic
7970       ;;
7972     cygwin* | mingw* | pw32*)
7973       # When not using gcc, we currently assume that we are using
7974       # Microsoft Visual C++.
7975       # hardcode_libdir_flag_spec is actually meaningless, as there is
7976       # no search path for DLLs.
7977       hardcode_libdir_flag_spec=' '
7978       allow_undefined_flag=unsupported
7979       # Tell ltmain to make .lib files, not .a files.
7980       libext=lib
7981       # Tell ltmain to make .dll files, not .so files.
7982       shrext_cmds=".dll"
7983       # FIXME: Setting linknames here is a bad hack.
7984       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7985       # The linker will automatically build a .lib file if we build a DLL.
7986       old_archive_From_new_cmds='true'
7987       # FIXME: Should let the user specify the lib program.
7988       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7989       fix_srcfile_path='`cygpath -w "$srcfile"`'
7990       enable_shared_with_static_runtimes=yes
7991       ;;
7993     darwin* | rhapsody*)
7994       case $host_os in
7995         rhapsody* | darwin1.[012])
7996          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7997          ;;
7998        *) # Darwin 1.3 on
7999          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8000            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8001          else
8002            case ${MACOSX_DEPLOYMENT_TARGET} in
8003              10.[012])
8004                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8005                ;;
8006              10.*)
8007                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8008                ;;
8009            esac
8010          fi
8011          ;;
8012       esac
8013       archive_cmds_need_lc=no
8014       hardcode_direct=no
8015       hardcode_automatic=yes
8016       hardcode_shlibpath_var=unsupported
8017       whole_archive_flag_spec=''
8018       link_all_deplibs=yes
8019     if test "$GCC" = yes ; then
8020         output_verbose_link_cmd='echo'
8021         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8022       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8023       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8024       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}'
8025       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}'
8026     else
8027       case $cc_basename in
8028         xlc*)
8029          output_verbose_link_cmd='echo'
8030          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8031          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8032           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8033          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8034           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}'
8035           ;;
8036        *)
8037          ld_shlibs=no
8038           ;;
8039       esac
8040     fi
8041       ;;
8043     dgux*)
8044       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8045       hardcode_libdir_flag_spec='-L$libdir'
8046       hardcode_shlibpath_var=no
8047       ;;
8049     freebsd1*)
8050       ld_shlibs=no
8051       ;;
8053     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8054     # support.  Future versions do this automatically, but an explicit c++rt0.o
8055     # does not break anything, and helps significantly (at the cost of a little
8056     # extra space).
8057     freebsd2.2*)
8058       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8059       hardcode_libdir_flag_spec='-R$libdir'
8060       hardcode_direct=yes
8061       hardcode_shlibpath_var=no
8062       ;;
8064     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8065     freebsd2*)
8066       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8067       hardcode_direct=yes
8068       hardcode_minus_L=yes
8069       hardcode_shlibpath_var=no
8070       ;;
8072     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8073     freebsd* | kfreebsd*-gnu | dragonfly*)
8074       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8075       hardcode_libdir_flag_spec='-R$libdir'
8076       hardcode_direct=yes
8077       hardcode_shlibpath_var=no
8078       ;;
8080     hpux9*)
8081       if test "$GCC" = yes; then
8082         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'
8083       else
8084         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'
8085       fi
8086       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8087       hardcode_libdir_separator=:
8088       hardcode_direct=yes
8090       # hardcode_minus_L: Not really in the search PATH,
8091       # but as the default location of the library.
8092       hardcode_minus_L=yes
8093       export_dynamic_flag_spec='${wl}-E'
8094       ;;
8096     hpux10* | hpux11*)
8097       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8098         case $host_cpu in
8099         hppa*64*|ia64*)
8100           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8101           ;;
8102         *)
8103           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8104           ;;
8105         esac
8106       else
8107         case $host_cpu in
8108         hppa*64*|ia64*)
8109           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8110           ;;
8111         *)
8112           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8113           ;;
8114         esac
8115       fi
8116       if test "$with_gnu_ld" = no; then
8117         case $host_cpu in
8118         hppa*64*)
8119           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8120           hardcode_libdir_flag_spec_ld='+b $libdir'
8121           hardcode_libdir_separator=:
8122           hardcode_direct=no
8123           hardcode_shlibpath_var=no
8124           ;;
8125         ia64*)
8126           hardcode_libdir_flag_spec='-L$libdir'
8127           hardcode_direct=no
8128           hardcode_shlibpath_var=no
8130           # hardcode_minus_L: Not really in the search PATH,
8131           # but as the default location of the library.
8132           hardcode_minus_L=yes
8133           ;;
8134         *)
8135           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8136           hardcode_libdir_separator=:
8137           hardcode_direct=yes
8138           export_dynamic_flag_spec='${wl}-E'
8140           # hardcode_minus_L: Not really in the search PATH,
8141           # but as the default location of the library.
8142           hardcode_minus_L=yes
8143           ;;
8144         esac
8145       fi
8146       ;;
8148     irix5* | irix6* | nonstopux*)
8149       if test "$GCC" = yes; then
8150         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'
8151       else
8152         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'
8153         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8154       fi
8155       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8156       hardcode_libdir_separator=:
8157       link_all_deplibs=yes
8158       ;;
8160     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8161       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8162         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8163       else
8164         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8165       fi
8166       hardcode_libdir_flag_spec='-R$libdir'
8167       hardcode_direct=yes
8168       hardcode_shlibpath_var=no
8169       ;;
8171     newsos6)
8172       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8173       hardcode_direct=yes
8174       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8175       hardcode_libdir_separator=:
8176       hardcode_shlibpath_var=no
8177       ;;
8179     openbsd*)
8180       hardcode_direct=yes
8181       hardcode_shlibpath_var=no
8182       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8183         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8184         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8185         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8186         export_dynamic_flag_spec='${wl}-E'
8187       else
8188        case $host_os in
8189          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8190            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8191            hardcode_libdir_flag_spec='-R$libdir'
8192            ;;
8193          *)
8194            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8195            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8196            ;;
8197        esac
8198       fi
8199       ;;
8201     os2*)
8202       hardcode_libdir_flag_spec='-L$libdir'
8203       hardcode_minus_L=yes
8204       allow_undefined_flag=unsupported
8205       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'
8206       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8207       ;;
8209     osf3*)
8210       if test "$GCC" = yes; then
8211         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8212         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'
8213       else
8214         allow_undefined_flag=' -expect_unresolved \*'
8215         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'
8216       fi
8217       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8218       hardcode_libdir_separator=:
8219       ;;
8221     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8222       if test "$GCC" = yes; then
8223         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8224         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'
8225         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8226       else
8227         allow_undefined_flag=' -expect_unresolved \*'
8228         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'
8229         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8230         $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'
8232         # Both c and cxx compiler support -rpath directly
8233         hardcode_libdir_flag_spec='-rpath $libdir'
8234       fi
8235       hardcode_libdir_separator=:
8236       ;;
8238     sco3.2v5*)
8239       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8240       hardcode_shlibpath_var=no
8241       export_dynamic_flag_spec='${wl}-Bexport'
8242       runpath_var=LD_RUN_PATH
8243       hardcode_runpath_var=yes
8244       ;;
8246     solaris*)
8247       no_undefined_flag=' -z text'
8248       if test "$GCC" = yes; then
8249         wlarc='${wl}'
8250         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8251         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8252           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8253       else
8254         wlarc=''
8255         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8256         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8257         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8258       fi
8259       hardcode_libdir_flag_spec='-R$libdir'
8260       hardcode_shlibpath_var=no
8261       case $host_os in
8262       solaris2.[0-5] | solaris2.[0-5].*) ;;
8263       *)
8264         # The compiler driver will combine linker options so we
8265         # cannot just pass the convience library names through
8266         # without $wl, iff we do not link with $LD.
8267         # Luckily, gcc supports the same syntax we need for Sun Studio.
8268         # Supported since Solaris 2.6 (maybe 2.5.1?)
8269         case $wlarc in
8270         '')
8271           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8272         *)
8273           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8274         esac ;;
8275       esac
8276       link_all_deplibs=yes
8277       ;;
8279     sunos4*)
8280       if test "x$host_vendor" = xsequent; then
8281         # Use $CC to link under sequent, because it throws in some extra .o
8282         # files that make .init and .fini sections work.
8283         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8284       else
8285         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8286       fi
8287       hardcode_libdir_flag_spec='-L$libdir'
8288       hardcode_direct=yes
8289       hardcode_minus_L=yes
8290       hardcode_shlibpath_var=no
8291       ;;
8293     sysv4)
8294       case $host_vendor in
8295         sni)
8296           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8297           hardcode_direct=yes # is this really true???
8298         ;;
8299         siemens)
8300           ## LD is ld it makes a PLAMLIB
8301           ## CC just makes a GrossModule.
8302           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8303           reload_cmds='$CC -r -o $output$reload_objs'
8304           hardcode_direct=no
8305         ;;
8306         motorola)
8307           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8308           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8309         ;;
8310       esac
8311       runpath_var='LD_RUN_PATH'
8312       hardcode_shlibpath_var=no
8313       ;;
8315     sysv4.3*)
8316       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8317       hardcode_shlibpath_var=no
8318       export_dynamic_flag_spec='-Bexport'
8319       ;;
8321     sysv4*MP*)
8322       if test -d /usr/nec; then
8323         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8324         hardcode_shlibpath_var=no
8325         runpath_var=LD_RUN_PATH
8326         hardcode_runpath_var=yes
8327         ld_shlibs=yes
8328       fi
8329       ;;
8331     sysv4.2uw2*)
8332       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8333       hardcode_direct=yes
8334       hardcode_minus_L=no
8335       hardcode_shlibpath_var=no
8336       hardcode_runpath_var=yes
8337       runpath_var=LD_RUN_PATH
8338       ;;
8340    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8341       no_undefined_flag='${wl}-z ${wl}text'
8342       if test "$GCC" = yes; then
8343         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8344       else
8345         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8346       fi
8347       runpath_var='LD_RUN_PATH'
8348       hardcode_shlibpath_var=no
8349       ;;
8351     sysv5*)
8352       no_undefined_flag=' -z text'
8353       # $CC -shared without GNU ld will not create a library from C++
8354       # object files and a static libstdc++, better avoid it by now
8355       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8356       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8357                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8358       hardcode_libdir_flag_spec=
8359       hardcode_shlibpath_var=no
8360       runpath_var='LD_RUN_PATH'
8361       ;;
8363     uts4*)
8364       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8365       hardcode_libdir_flag_spec='-L$libdir'
8366       hardcode_shlibpath_var=no
8367       ;;
8369     *)
8370       ld_shlibs=no
8371       ;;
8372     esac
8373   fi
8375 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8376 echo "${ECHO_T}$ld_shlibs" >&6; }
8377 test "$ld_shlibs" = no && can_build_shared=no
8379 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8380 if test "$GCC" = yes; then
8381   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8385 # Do we need to explicitly link libc?
8387 case "x$archive_cmds_need_lc" in
8388 x|xyes)
8389   # Assume -lc should be added
8390   archive_cmds_need_lc=yes
8392   if test "$enable_shared" = yes && test "$GCC" = yes; then
8393     case $archive_cmds in
8394     *'~'*)
8395       # FIXME: we may have to deal with multi-command sequences.
8396       ;;
8397     '$CC '*)
8398       # Test whether the compiler implicitly links with -lc since on some
8399       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8400       # to ld, don't add -lc before -lgcc.
8401       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8402 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8403       $rm conftest*
8404       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8406       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8407   (eval $ac_compile) 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); } 2>conftest.err; then
8411         soname=conftest
8412         lib=conftest
8413         libobjs=conftest.$ac_objext
8414         deplibs=
8415         wl=$lt_prog_compiler_wl
8416         compiler_flags=-v
8417         linker_flags=-v
8418         verstring=
8419         output_objdir=.
8420         libname=conftest
8421         lt_save_allow_undefined_flag=$allow_undefined_flag
8422         allow_undefined_flag=
8423         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8424   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8425   ac_status=$?
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); }
8428         then
8429           archive_cmds_need_lc=no
8430         else
8431           archive_cmds_need_lc=yes
8432         fi
8433         allow_undefined_flag=$lt_save_allow_undefined_flag
8434       else
8435         cat conftest.err 1>&5
8436       fi
8437       $rm conftest*
8438       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8439 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8440       ;;
8441     esac
8442   fi
8443   ;;
8444 esac
8446 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8447 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8448 library_names_spec=
8449 libname_spec='lib$name'
8450 soname_spec=
8451 shrext_cmds=".so"
8452 postinstall_cmds=
8453 postuninstall_cmds=
8454 finish_cmds=
8455 finish_eval=
8456 shlibpath_var=
8457 shlibpath_overrides_runpath=unknown
8458 version_type=none
8459 dynamic_linker="$host_os ld.so"
8460 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8461 if test "$GCC" = yes; then
8462   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8463   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8464     # if the path contains ";" then we assume it to be the separator
8465     # otherwise default to the standard path separator (i.e. ":") - it is
8466     # assumed that no part of a normal pathname contains ";" but that should
8467     # okay in the real world where ";" in dirpaths is itself problematic.
8468     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8469   else
8470     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8471   fi
8472 else
8473   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8475 need_lib_prefix=unknown
8476 hardcode_into_libs=no
8478 # when you set need_version to no, make sure it does not cause -set_version
8479 # flags to be left without arguments
8480 need_version=unknown
8482 case $host_os in
8483 aix3*)
8484   version_type=linux
8485   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8486   shlibpath_var=LIBPATH
8488   # AIX 3 has no versioning support, so we append a major version to the name.
8489   soname_spec='${libname}${release}${shared_ext}$major'
8490   ;;
8492 aix4* | aix5*)
8493   version_type=linux
8494   need_lib_prefix=no
8495   need_version=no
8496   hardcode_into_libs=yes
8497   if test "$host_cpu" = ia64; then
8498     # AIX 5 supports IA64
8499     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8500     shlibpath_var=LD_LIBRARY_PATH
8501   else
8502     # With GCC up to 2.95.x, collect2 would create an import file
8503     # for dependence libraries.  The import file would start with
8504     # the line `#! .'.  This would cause the generated library to
8505     # depend on `.', always an invalid library.  This was fixed in
8506     # development snapshots of GCC prior to 3.0.
8507     case $host_os in
8508       aix4 | aix4.[01] | aix4.[01].*)
8509       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8510            echo ' yes '
8511            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8512         :
8513       else
8514         can_build_shared=no
8515       fi
8516       ;;
8517     esac
8518     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8519     # soname into executable. Probably we can add versioning support to
8520     # collect2, so additional links can be useful in future.
8521     if test "$aix_use_runtimelinking" = yes; then
8522       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8523       # instead of lib<name>.a to let people know that these are not
8524       # typical AIX shared libraries.
8525       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8526     else
8527       # We preserve .a as extension for shared libraries through AIX4.2
8528       # and later when we are not doing run time linking.
8529       library_names_spec='${libname}${release}.a $libname.a'
8530       soname_spec='${libname}${release}${shared_ext}$major'
8531     fi
8532     shlibpath_var=LIBPATH
8533   fi
8534   ;;
8536 amigaos*)
8537   library_names_spec='$libname.ixlibrary $libname.a'
8538   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8539   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'
8540   ;;
8542 beos*)
8543   library_names_spec='${libname}${shared_ext}'
8544   dynamic_linker="$host_os ld.so"
8545   shlibpath_var=LIBRARY_PATH
8546   ;;
8548 bsdi[45]*)
8549   version_type=linux
8550   need_version=no
8551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8552   soname_spec='${libname}${release}${shared_ext}$major'
8553   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8554   shlibpath_var=LD_LIBRARY_PATH
8555   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8556   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8557   # the default ld.so.conf also contains /usr/contrib/lib and
8558   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8559   # libtool to hard-code these into programs
8560   ;;
8562 cygwin* | mingw* | pw32*)
8563   version_type=windows
8564   shrext_cmds=".dll"
8565   need_version=no
8566   need_lib_prefix=no
8568   case $GCC,$host_os in
8569   yes,cygwin* | yes,mingw* | yes,pw32*)
8570     library_names_spec='$libname.dll.a'
8571     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8572     postinstall_cmds='base_file=`basename \${file}`~
8573       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8574       dldir=$destdir/`dirname \$dlpath`~
8575       test -d \$dldir || mkdir -p \$dldir~
8576       $install_prog $dir/$dlname \$dldir/$dlname~
8577       chmod a+x \$dldir/$dlname'
8578     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8579       dlpath=$dir/\$dldll~
8580        $rm \$dlpath'
8581     shlibpath_overrides_runpath=yes
8583     case $host_os in
8584     cygwin*)
8585       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8586       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8587       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8588       ;;
8589     mingw*)
8590       # MinGW DLLs use traditional 'lib' prefix
8591       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8592       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8593       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8594         # It is most probably a Windows format PATH printed by
8595         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8596         # path with ; separators, and with drive letters. We can handle the
8597         # drive letters (cygwin fileutils understands them), so leave them,
8598         # especially as we might pass files found there to a mingw objdump,
8599         # which wouldn't understand a cygwinified path. Ahh.
8600         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8601       else
8602         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8603       fi
8604       ;;
8605     pw32*)
8606       # pw32 DLLs use 'pw' prefix rather than 'lib'
8607       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8608       ;;
8609     esac
8610     ;;
8612   *)
8613     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8614     ;;
8615   esac
8616   dynamic_linker='Win32 ld.exe'
8617   # FIXME: first we should search . and the directory the executable is in
8618   shlibpath_var=PATH
8619   ;;
8621 darwin* | rhapsody*)
8622   dynamic_linker="$host_os dyld"
8623   version_type=darwin
8624   need_lib_prefix=no
8625   need_version=no
8626   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8627   soname_spec='${libname}${release}${major}$shared_ext'
8628   shlibpath_overrides_runpath=yes
8629   shlibpath_var=DYLD_LIBRARY_PATH
8630   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8631   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8632   if test "$GCC" = yes; then
8633     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8634   else
8635     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8636   fi
8637   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8638   ;;
8640 dgux*)
8641   version_type=linux
8642   need_lib_prefix=no
8643   need_version=no
8644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8645   soname_spec='${libname}${release}${shared_ext}$major'
8646   shlibpath_var=LD_LIBRARY_PATH
8647   ;;
8649 freebsd1*)
8650   dynamic_linker=no
8651   ;;
8653 kfreebsd*-gnu)
8654   version_type=linux
8655   need_lib_prefix=no
8656   need_version=no
8657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8658   soname_spec='${libname}${release}${shared_ext}$major'
8659   shlibpath_var=LD_LIBRARY_PATH
8660   shlibpath_overrides_runpath=no
8661   hardcode_into_libs=yes
8662   dynamic_linker='GNU ld.so'
8663   ;;
8665 freebsd* | dragonfly*)
8666   # DragonFly does not have aout.  When/if they implement a new
8667   # versioning mechanism, adjust this.
8668   if test -x /usr/bin/objformat; then
8669     objformat=`/usr/bin/objformat`
8670   else
8671     case $host_os in
8672     freebsd[123]*) objformat=aout ;;
8673     *) objformat=elf ;;
8674     esac
8675   fi
8676   version_type=freebsd-$objformat
8677   case $version_type in
8678     freebsd-elf*)
8679       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8680       need_version=no
8681       need_lib_prefix=no
8682       ;;
8683     freebsd-*)
8684       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8685       need_version=yes
8686       ;;
8687   esac
8688   shlibpath_var=LD_LIBRARY_PATH
8689   case $host_os in
8690   freebsd2*)
8691     shlibpath_overrides_runpath=yes
8692     ;;
8693   freebsd3.[01]* | freebsdelf3.[01]*)
8694     shlibpath_overrides_runpath=yes
8695     hardcode_into_libs=yes
8696     ;;
8697   *) # from 3.2 on
8698     shlibpath_overrides_runpath=no
8699     hardcode_into_libs=yes
8700     ;;
8701   esac
8702   ;;
8704 gnu*)
8705   version_type=linux
8706   need_lib_prefix=no
8707   need_version=no
8708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8709   soname_spec='${libname}${release}${shared_ext}$major'
8710   shlibpath_var=LD_LIBRARY_PATH
8711   hardcode_into_libs=yes
8712   ;;
8714 hpux9* | hpux10* | hpux11*)
8715   # Give a soname corresponding to the major version so that dld.sl refuses to
8716   # link against other versions.
8717   version_type=sunos
8718   need_lib_prefix=no
8719   need_version=no
8720   case $host_cpu in
8721   ia64*)
8722     shrext_cmds='.so'
8723     hardcode_into_libs=yes
8724     dynamic_linker="$host_os dld.so"
8725     shlibpath_var=LD_LIBRARY_PATH
8726     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8727     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8728     soname_spec='${libname}${release}${shared_ext}$major'
8729     if test "X$HPUX_IA64_MODE" = X32; then
8730       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8731     else
8732       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8733     fi
8734     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8735     ;;
8736    hppa*64*)
8737      shrext_cmds='.sl'
8738      hardcode_into_libs=yes
8739      dynamic_linker="$host_os dld.sl"
8740      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8741      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8742      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8743      soname_spec='${libname}${release}${shared_ext}$major'
8744      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8745      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8746      ;;
8747    *)
8748     shrext_cmds='.sl'
8749     dynamic_linker="$host_os dld.sl"
8750     shlibpath_var=SHLIB_PATH
8751     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8752     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8753     soname_spec='${libname}${release}${shared_ext}$major'
8754     ;;
8755   esac
8756   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8757   postinstall_cmds='chmod 555 $lib'
8758   ;;
8760 irix5* | irix6* | nonstopux*)
8761   case $host_os in
8762     nonstopux*) version_type=nonstopux ;;
8763     *)
8764         if test "$lt_cv_prog_gnu_ld" = yes; then
8765                 version_type=linux
8766         else
8767                 version_type=irix
8768         fi ;;
8769   esac
8770   need_lib_prefix=no
8771   need_version=no
8772   soname_spec='${libname}${release}${shared_ext}$major'
8773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8774   case $host_os in
8775   irix5* | nonstopux*)
8776     libsuff= shlibsuff=
8777     ;;
8778   *)
8779     case $LD in # libtool.m4 will add one of these switches to LD
8780     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8781       libsuff= shlibsuff= libmagic=32-bit;;
8782     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8783       libsuff=32 shlibsuff=N32 libmagic=N32;;
8784     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8785       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8786     *) libsuff= shlibsuff= libmagic=never-match;;
8787     esac
8788     ;;
8789   esac
8790   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8791   shlibpath_overrides_runpath=no
8792   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8793   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8794   hardcode_into_libs=yes
8795   ;;
8797 # No shared lib support for Linux oldld, aout, or coff.
8798 linux*oldld* | linux*aout* | linux*coff*)
8799   dynamic_linker=no
8800   ;;
8802 # This must be Linux ELF.
8803 linux*)
8804   version_type=linux
8805   need_lib_prefix=no
8806   need_version=no
8807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8808   soname_spec='${libname}${release}${shared_ext}$major'
8809   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8810   shlibpath_var=LD_LIBRARY_PATH
8811   shlibpath_overrides_runpath=no
8812   # This implies no fast_install, which is unacceptable.
8813   # Some rework will be needed to allow for fast_install
8814   # before this can be enabled.
8815   hardcode_into_libs=yes
8817   # Append ld.so.conf contents to the search path
8818   if test -f /etc/ld.so.conf; then
8819     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8820     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8821   fi
8823   # We used to test for /lib/ld.so.1 and disable shared libraries on
8824   # powerpc, because MkLinux only supported shared libraries with the
8825   # GNU dynamic linker.  Since this was broken with cross compilers,
8826   # most powerpc-linux boxes support dynamic linking these days and
8827   # people can always --disable-shared, the test was removed, and we
8828   # assume the GNU/Linux dynamic linker is in use.
8829   dynamic_linker='GNU/Linux ld.so'
8830   ;;
8832 netbsdelf*-gnu)
8833   version_type=linux
8834   need_lib_prefix=no
8835   need_version=no
8836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8837   soname_spec='${libname}${release}${shared_ext}$major'
8838   shlibpath_var=LD_LIBRARY_PATH
8839   shlibpath_overrides_runpath=no
8840   hardcode_into_libs=yes
8841   dynamic_linker='NetBSD ld.elf_so'
8842   ;;
8844 knetbsd*-gnu)
8845   version_type=linux
8846   need_lib_prefix=no
8847   need_version=no
8848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8849   soname_spec='${libname}${release}${shared_ext}$major'
8850   shlibpath_var=LD_LIBRARY_PATH
8851   shlibpath_overrides_runpath=no
8852   hardcode_into_libs=yes
8853   dynamic_linker='GNU ld.so'
8854   ;;
8856 netbsd*)
8857   version_type=sunos
8858   need_lib_prefix=no
8859   need_version=no
8860   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8861     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8862     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8863     dynamic_linker='NetBSD (a.out) ld.so'
8864   else
8865     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8866     soname_spec='${libname}${release}${shared_ext}$major'
8867     dynamic_linker='NetBSD ld.elf_so'
8868   fi
8869   shlibpath_var=LD_LIBRARY_PATH
8870   shlibpath_overrides_runpath=yes
8871   hardcode_into_libs=yes
8872   ;;
8874 newsos6)
8875   version_type=linux
8876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8877   shlibpath_var=LD_LIBRARY_PATH
8878   shlibpath_overrides_runpath=yes
8879   ;;
8881 nto-qnx*)
8882   version_type=linux
8883   need_lib_prefix=no
8884   need_version=no
8885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8886   soname_spec='${libname}${release}${shared_ext}$major'
8887   shlibpath_var=LD_LIBRARY_PATH
8888   shlibpath_overrides_runpath=yes
8889   ;;
8891 openbsd*)
8892   version_type=sunos
8893   need_lib_prefix=no
8894   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8895   case $host_os in
8896     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8897     *)                         need_version=no  ;;
8898   esac
8899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8900   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8901   shlibpath_var=LD_LIBRARY_PATH
8902   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8903     case $host_os in
8904       openbsd2.[89] | openbsd2.[89].*)
8905         shlibpath_overrides_runpath=no
8906         ;;
8907       *)
8908         shlibpath_overrides_runpath=yes
8909         ;;
8910       esac
8911   else
8912     shlibpath_overrides_runpath=yes
8913   fi
8914   ;;
8916 os2*)
8917   libname_spec='$name'
8918   shrext_cmds=".dll"
8919   need_lib_prefix=no
8920   library_names_spec='$libname${shared_ext} $libname.a'
8921   dynamic_linker='OS/2 ld.exe'
8922   shlibpath_var=LIBPATH
8923   ;;
8925 osf3* | osf4* | osf5*)
8926   version_type=osf
8927   need_lib_prefix=no
8928   need_version=no
8929   soname_spec='${libname}${release}${shared_ext}$major'
8930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8931   shlibpath_var=LD_LIBRARY_PATH
8932   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8933   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8934   ;;
8936 sco3.2v5*)
8937   version_type=osf
8938   soname_spec='${libname}${release}${shared_ext}$major'
8939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8940   shlibpath_var=LD_LIBRARY_PATH
8941   ;;
8943 solaris*)
8944   version_type=linux
8945   need_lib_prefix=no
8946   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
8950   shlibpath_overrides_runpath=yes
8951   hardcode_into_libs=yes
8952   # ldd complains unless libraries are executable
8953   postinstall_cmds='chmod +x $lib'
8954   ;;
8956 sunos4*)
8957   version_type=sunos
8958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8959   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8960   shlibpath_var=LD_LIBRARY_PATH
8961   shlibpath_overrides_runpath=yes
8962   if test "$with_gnu_ld" = yes; then
8963     need_lib_prefix=no
8964   fi
8965   need_version=yes
8966   ;;
8968 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8969   version_type=linux
8970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8971   soname_spec='${libname}${release}${shared_ext}$major'
8972   shlibpath_var=LD_LIBRARY_PATH
8973   case $host_vendor in
8974     sni)
8975       shlibpath_overrides_runpath=no
8976       need_lib_prefix=no
8977       export_dynamic_flag_spec='${wl}-Blargedynsym'
8978       runpath_var=LD_RUN_PATH
8979       ;;
8980     siemens)
8981       need_lib_prefix=no
8982       ;;
8983     motorola)
8984       need_lib_prefix=no
8985       need_version=no
8986       shlibpath_overrides_runpath=no
8987       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8988       ;;
8989   esac
8990   ;;
8992 sysv4*MP*)
8993   if test -d /usr/nec ;then
8994     version_type=linux
8995     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8996     soname_spec='$libname${shared_ext}.$major'
8997     shlibpath_var=LD_LIBRARY_PATH
8998   fi
8999   ;;
9001 uts4*)
9002   version_type=linux
9003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9004   soname_spec='${libname}${release}${shared_ext}$major'
9005   shlibpath_var=LD_LIBRARY_PATH
9006   ;;
9009   dynamic_linker=no
9010   ;;
9011 esac
9012 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9013 echo "${ECHO_T}$dynamic_linker" >&6; }
9014 test "$dynamic_linker" = no && can_build_shared=no
9016 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9017 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9018 hardcode_action=
9019 if test -n "$hardcode_libdir_flag_spec" || \
9020    test -n "$runpath_var" || \
9021    test "X$hardcode_automatic" = "Xyes" ; then
9023   # We can hardcode non-existant directories.
9024   if test "$hardcode_direct" != no &&
9025      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9026      # have to relink, otherwise we might link with an installed library
9027      # when we should be linking with a yet-to-be-installed one
9028      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9029      test "$hardcode_minus_L" != no; then
9030     # Linking always hardcodes the temporary library directory.
9031     hardcode_action=relink
9032   else
9033     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9034     hardcode_action=immediate
9035   fi
9036 else
9037   # We cannot hardcode anything, or else we can only hardcode existing
9038   # directories.
9039   hardcode_action=unsupported
9041 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9042 echo "${ECHO_T}$hardcode_action" >&6; }
9044 if test "$hardcode_action" = relink; then
9045   # Fast installation is not supported
9046   enable_fast_install=no
9047 elif test "$shlibpath_overrides_runpath" = yes ||
9048      test "$enable_shared" = no; then
9049   # Fast installation is not necessary
9050   enable_fast_install=needless
9053 striplib=
9054 old_striplib=
9055 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9056 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9057 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9058   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9059   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9060   { echo "$as_me:$LINENO: result: yes" >&5
9061 echo "${ECHO_T}yes" >&6; }
9062 else
9063 # FIXME - insert some real tests, host_os isn't really good enough
9064   case $host_os in
9065    darwin*)
9066        if test -n "$STRIP" ; then
9067          striplib="$STRIP -x"
9068          { echo "$as_me:$LINENO: result: yes" >&5
9069 echo "${ECHO_T}yes" >&6; }
9070        else
9071   { echo "$as_me:$LINENO: result: no" >&5
9072 echo "${ECHO_T}no" >&6; }
9074        ;;
9075    *)
9076   { echo "$as_me:$LINENO: result: no" >&5
9077 echo "${ECHO_T}no" >&6; }
9078     ;;
9079   esac
9082 if test "x$enable_dlopen" != xyes; then
9083   enable_dlopen=unknown
9084   enable_dlopen_self=unknown
9085   enable_dlopen_self_static=unknown
9086 else
9087   lt_cv_dlopen=no
9088   lt_cv_dlopen_libs=
9090   case $host_os in
9091   beos*)
9092     lt_cv_dlopen="load_add_on"
9093     lt_cv_dlopen_libs=
9094     lt_cv_dlopen_self=yes
9095     ;;
9097   mingw* | pw32*)
9098     lt_cv_dlopen="LoadLibrary"
9099     lt_cv_dlopen_libs=
9100    ;;
9102   cygwin*)
9103     lt_cv_dlopen="dlopen"
9104     lt_cv_dlopen_libs=
9105    ;;
9107   darwin*)
9108   # if libdl is installed we need to link against it
9109     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9110 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9111 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9112   echo $ECHO_N "(cached) $ECHO_C" >&6
9113 else
9114   ac_check_lib_save_LIBS=$LIBS
9115 LIBS="-ldl  $LIBS"
9116 cat >conftest.$ac_ext <<_ACEOF
9117 /* confdefs.h.  */
9118 _ACEOF
9119 cat confdefs.h >>conftest.$ac_ext
9120 cat >>conftest.$ac_ext <<_ACEOF
9121 /* end confdefs.h.  */
9123 /* Override any GCC internal prototype to avoid an error.
9124    Use char because int might match the return type of a GCC
9125    builtin and then its argument prototype would still apply.  */
9126 #ifdef __cplusplus
9127 extern "C"
9128 #endif
9129 char dlopen ();
9131 main ()
9133 return dlopen ();
9134   ;
9135   return 0;
9137 _ACEOF
9138 rm -f conftest.$ac_objext conftest$ac_exeext
9139 if { (ac_try="$ac_link"
9140 case "(($ac_try" in
9141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142   *) ac_try_echo=$ac_try;;
9143 esac
9144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145   (eval "$ac_link") 2>conftest.er1
9146   ac_status=$?
9147   grep -v '^ *+' conftest.er1 >conftest.err
9148   rm -f conftest.er1
9149   cat conftest.err >&5
9150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151   (exit $ac_status); } && {
9152          test -z "$ac_c_werror_flag" ||
9153          test ! -s conftest.err
9154        } && test -s conftest$ac_exeext &&
9155        $as_test_x conftest$ac_exeext; then
9156   ac_cv_lib_dl_dlopen=yes
9157 else
9158   echo "$as_me: failed program was:" >&5
9159 sed 's/^/| /' conftest.$ac_ext >&5
9161         ac_cv_lib_dl_dlopen=no
9164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9165       conftest$ac_exeext conftest.$ac_ext
9166 LIBS=$ac_check_lib_save_LIBS
9168 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9169 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9170 if test $ac_cv_lib_dl_dlopen = yes; then
9171   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9172 else
9173   
9174     lt_cv_dlopen="dyld"
9175     lt_cv_dlopen_libs=
9176     lt_cv_dlopen_self=yes
9177     
9180    ;;
9182   *)
9183     { echo "$as_me:$LINENO: checking for shl_load" >&5
9184 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9185 if test "${ac_cv_func_shl_load+set}" = set; then
9186   echo $ECHO_N "(cached) $ECHO_C" >&6
9187 else
9188   cat >conftest.$ac_ext <<_ACEOF
9189 /* confdefs.h.  */
9190 _ACEOF
9191 cat confdefs.h >>conftest.$ac_ext
9192 cat >>conftest.$ac_ext <<_ACEOF
9193 /* end confdefs.h.  */
9194 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9195    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9196 #define shl_load innocuous_shl_load
9198 /* System header to define __stub macros and hopefully few prototypes,
9199     which can conflict with char shl_load (); below.
9200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9201     <limits.h> exists even on freestanding compilers.  */
9203 #ifdef __STDC__
9204 # include <limits.h>
9205 #else
9206 # include <assert.h>
9207 #endif
9209 #undef shl_load
9211 /* Override any GCC internal prototype to avoid an error.
9212    Use char because int might match the return type of a GCC
9213    builtin and then its argument prototype would still apply.  */
9214 #ifdef __cplusplus
9215 extern "C"
9216 #endif
9217 char shl_load ();
9218 /* The GNU C library defines this for functions which it implements
9219     to always fail with ENOSYS.  Some functions are actually named
9220     something starting with __ and the normal name is an alias.  */
9221 #if defined __stub_shl_load || defined __stub___shl_load
9222 choke me
9223 #endif
9226 main ()
9228 return shl_load ();
9229   ;
9230   return 0;
9232 _ACEOF
9233 rm -f conftest.$ac_objext conftest$ac_exeext
9234 if { (ac_try="$ac_link"
9235 case "(($ac_try" in
9236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9237   *) ac_try_echo=$ac_try;;
9238 esac
9239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9240   (eval "$ac_link") 2>conftest.er1
9241   ac_status=$?
9242   grep -v '^ *+' conftest.er1 >conftest.err
9243   rm -f conftest.er1
9244   cat conftest.err >&5
9245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246   (exit $ac_status); } && {
9247          test -z "$ac_c_werror_flag" ||
9248          test ! -s conftest.err
9249        } && test -s conftest$ac_exeext &&
9250        $as_test_x conftest$ac_exeext; then
9251   ac_cv_func_shl_load=yes
9252 else
9253   echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9256         ac_cv_func_shl_load=no
9259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9260       conftest$ac_exeext conftest.$ac_ext
9262 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9263 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9264 if test $ac_cv_func_shl_load = yes; then
9265   lt_cv_dlopen="shl_load"
9266 else
9267   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9268 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9269 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9270   echo $ECHO_N "(cached) $ECHO_C" >&6
9271 else
9272   ac_check_lib_save_LIBS=$LIBS
9273 LIBS="-ldld  $LIBS"
9274 cat >conftest.$ac_ext <<_ACEOF
9275 /* confdefs.h.  */
9276 _ACEOF
9277 cat confdefs.h >>conftest.$ac_ext
9278 cat >>conftest.$ac_ext <<_ACEOF
9279 /* end confdefs.h.  */
9281 /* Override any GCC internal prototype to avoid an error.
9282    Use char because int might match the return type of a GCC
9283    builtin and then its argument prototype would still apply.  */
9284 #ifdef __cplusplus
9285 extern "C"
9286 #endif
9287 char shl_load ();
9289 main ()
9291 return shl_load ();
9292   ;
9293   return 0;
9295 _ACEOF
9296 rm -f conftest.$ac_objext conftest$ac_exeext
9297 if { (ac_try="$ac_link"
9298 case "(($ac_try" in
9299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9300   *) ac_try_echo=$ac_try;;
9301 esac
9302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9303   (eval "$ac_link") 2>conftest.er1
9304   ac_status=$?
9305   grep -v '^ *+' conftest.er1 >conftest.err
9306   rm -f conftest.er1
9307   cat conftest.err >&5
9308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309   (exit $ac_status); } && {
9310          test -z "$ac_c_werror_flag" ||
9311          test ! -s conftest.err
9312        } && test -s conftest$ac_exeext &&
9313        $as_test_x conftest$ac_exeext; then
9314   ac_cv_lib_dld_shl_load=yes
9315 else
9316   echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9319         ac_cv_lib_dld_shl_load=no
9322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9323       conftest$ac_exeext conftest.$ac_ext
9324 LIBS=$ac_check_lib_save_LIBS
9326 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9327 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9328 if test $ac_cv_lib_dld_shl_load = yes; then
9329   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9330 else
9331   { echo "$as_me:$LINENO: checking for dlopen" >&5
9332 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9333 if test "${ac_cv_func_dlopen+set}" = set; then
9334   echo $ECHO_N "(cached) $ECHO_C" >&6
9335 else
9336   cat >conftest.$ac_ext <<_ACEOF
9337 /* confdefs.h.  */
9338 _ACEOF
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h.  */
9342 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9343    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9344 #define dlopen innocuous_dlopen
9346 /* System header to define __stub macros and hopefully few prototypes,
9347     which can conflict with char dlopen (); below.
9348     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9349     <limits.h> exists even on freestanding compilers.  */
9351 #ifdef __STDC__
9352 # include <limits.h>
9353 #else
9354 # include <assert.h>
9355 #endif
9357 #undef dlopen
9359 /* Override any GCC internal prototype to avoid an error.
9360    Use char because int might match the return type of a GCC
9361    builtin and then its argument prototype would still apply.  */
9362 #ifdef __cplusplus
9363 extern "C"
9364 #endif
9365 char dlopen ();
9366 /* The GNU C library defines this for functions which it implements
9367     to always fail with ENOSYS.  Some functions are actually named
9368     something starting with __ and the normal name is an alias.  */
9369 #if defined __stub_dlopen || defined __stub___dlopen
9370 choke me
9371 #endif
9374 main ()
9376 return dlopen ();
9377   ;
9378   return 0;
9380 _ACEOF
9381 rm -f conftest.$ac_objext conftest$ac_exeext
9382 if { (ac_try="$ac_link"
9383 case "(($ac_try" in
9384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9385   *) ac_try_echo=$ac_try;;
9386 esac
9387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9388   (eval "$ac_link") 2>conftest.er1
9389   ac_status=$?
9390   grep -v '^ *+' conftest.er1 >conftest.err
9391   rm -f conftest.er1
9392   cat conftest.err >&5
9393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394   (exit $ac_status); } && {
9395          test -z "$ac_c_werror_flag" ||
9396          test ! -s conftest.err
9397        } && test -s conftest$ac_exeext &&
9398        $as_test_x conftest$ac_exeext; then
9399   ac_cv_func_dlopen=yes
9400 else
9401   echo "$as_me: failed program was:" >&5
9402 sed 's/^/| /' conftest.$ac_ext >&5
9404         ac_cv_func_dlopen=no
9407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9408       conftest$ac_exeext conftest.$ac_ext
9410 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9411 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9412 if test $ac_cv_func_dlopen = yes; then
9413   lt_cv_dlopen="dlopen"
9414 else
9415   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9416 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9417 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9418   echo $ECHO_N "(cached) $ECHO_C" >&6
9419 else
9420   ac_check_lib_save_LIBS=$LIBS
9421 LIBS="-ldl  $LIBS"
9422 cat >conftest.$ac_ext <<_ACEOF
9423 /* confdefs.h.  */
9424 _ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h.  */
9429 /* Override any GCC internal prototype to avoid an error.
9430    Use char because int might match the return type of a GCC
9431    builtin and then its argument prototype would still apply.  */
9432 #ifdef __cplusplus
9433 extern "C"
9434 #endif
9435 char dlopen ();
9437 main ()
9439 return dlopen ();
9440   ;
9441   return 0;
9443 _ACEOF
9444 rm -f conftest.$ac_objext conftest$ac_exeext
9445 if { (ac_try="$ac_link"
9446 case "(($ac_try" in
9447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9448   *) ac_try_echo=$ac_try;;
9449 esac
9450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9451   (eval "$ac_link") 2>conftest.er1
9452   ac_status=$?
9453   grep -v '^ *+' conftest.er1 >conftest.err
9454   rm -f conftest.er1
9455   cat conftest.err >&5
9456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457   (exit $ac_status); } && {
9458          test -z "$ac_c_werror_flag" ||
9459          test ! -s conftest.err
9460        } && test -s conftest$ac_exeext &&
9461        $as_test_x conftest$ac_exeext; then
9462   ac_cv_lib_dl_dlopen=yes
9463 else
9464   echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.$ac_ext >&5
9467         ac_cv_lib_dl_dlopen=no
9470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9471       conftest$ac_exeext conftest.$ac_ext
9472 LIBS=$ac_check_lib_save_LIBS
9474 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9475 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9476 if test $ac_cv_lib_dl_dlopen = yes; then
9477   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9478 else
9479   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9480 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9481 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9482   echo $ECHO_N "(cached) $ECHO_C" >&6
9483 else
9484   ac_check_lib_save_LIBS=$LIBS
9485 LIBS="-lsvld  $LIBS"
9486 cat >conftest.$ac_ext <<_ACEOF
9487 /* confdefs.h.  */
9488 _ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h.  */
9493 /* Override any GCC internal prototype to avoid an error.
9494    Use char because int might match the return type of a GCC
9495    builtin and then its argument prototype would still apply.  */
9496 #ifdef __cplusplus
9497 extern "C"
9498 #endif
9499 char dlopen ();
9501 main ()
9503 return dlopen ();
9504   ;
9505   return 0;
9507 _ACEOF
9508 rm -f conftest.$ac_objext conftest$ac_exeext
9509 if { (ac_try="$ac_link"
9510 case "(($ac_try" in
9511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512   *) ac_try_echo=$ac_try;;
9513 esac
9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515   (eval "$ac_link") 2>conftest.er1
9516   ac_status=$?
9517   grep -v '^ *+' conftest.er1 >conftest.err
9518   rm -f conftest.er1
9519   cat conftest.err >&5
9520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521   (exit $ac_status); } && {
9522          test -z "$ac_c_werror_flag" ||
9523          test ! -s conftest.err
9524        } && test -s conftest$ac_exeext &&
9525        $as_test_x conftest$ac_exeext; then
9526   ac_cv_lib_svld_dlopen=yes
9527 else
9528   echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9531         ac_cv_lib_svld_dlopen=no
9534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9535       conftest$ac_exeext conftest.$ac_ext
9536 LIBS=$ac_check_lib_save_LIBS
9538 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9539 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9540 if test $ac_cv_lib_svld_dlopen = yes; then
9541   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9542 else
9543   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9544 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9545 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9546   echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548   ac_check_lib_save_LIBS=$LIBS
9549 LIBS="-ldld  $LIBS"
9550 cat >conftest.$ac_ext <<_ACEOF
9551 /* confdefs.h.  */
9552 _ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h.  */
9557 /* Override any GCC internal prototype to avoid an error.
9558    Use char because int might match the return type of a GCC
9559    builtin and then its argument prototype would still apply.  */
9560 #ifdef __cplusplus
9561 extern "C"
9562 #endif
9563 char dld_link ();
9565 main ()
9567 return dld_link ();
9568   ;
9569   return 0;
9571 _ACEOF
9572 rm -f conftest.$ac_objext conftest$ac_exeext
9573 if { (ac_try="$ac_link"
9574 case "(($ac_try" in
9575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576   *) ac_try_echo=$ac_try;;
9577 esac
9578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9579   (eval "$ac_link") 2>conftest.er1
9580   ac_status=$?
9581   grep -v '^ *+' conftest.er1 >conftest.err
9582   rm -f conftest.er1
9583   cat conftest.err >&5
9584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585   (exit $ac_status); } && {
9586          test -z "$ac_c_werror_flag" ||
9587          test ! -s conftest.err
9588        } && test -s conftest$ac_exeext &&
9589        $as_test_x conftest$ac_exeext; then
9590   ac_cv_lib_dld_dld_link=yes
9591 else
9592   echo "$as_me: failed program was:" >&5
9593 sed 's/^/| /' conftest.$ac_ext >&5
9595         ac_cv_lib_dld_dld_link=no
9598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9599       conftest$ac_exeext conftest.$ac_ext
9600 LIBS=$ac_check_lib_save_LIBS
9602 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9603 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9604 if test $ac_cv_lib_dld_dld_link = yes; then
9605   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9608               
9611             
9614           
9617         
9620       
9623     ;;
9624   esac
9626   if test "x$lt_cv_dlopen" != xno; then
9627     enable_dlopen=yes
9628   else
9629     enable_dlopen=no
9630   fi
9632   case $lt_cv_dlopen in
9633   dlopen)
9634     save_CPPFLAGS="$CPPFLAGS"
9635     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9637     save_LDFLAGS="$LDFLAGS"
9638     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9640     save_LIBS="$LIBS"
9641     LIBS="$lt_cv_dlopen_libs $LIBS"
9643     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9644 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9645 if test "${lt_cv_dlopen_self+set}" = set; then
9646   echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648           if test "$cross_compiling" = yes; then :
9649   lt_cv_dlopen_self=cross
9650 else
9651   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9652   lt_status=$lt_dlunknown
9653   cat > conftest.$ac_ext <<EOF
9654 #line __oline__ "configure"
9655 #include "confdefs.h"
9657 #if HAVE_DLFCN_H
9658 #include <dlfcn.h>
9659 #endif
9661 #include <stdio.h>
9663 #ifdef RTLD_GLOBAL
9664 #  define LT_DLGLOBAL           RTLD_GLOBAL
9665 #else
9666 #  ifdef DL_GLOBAL
9667 #    define LT_DLGLOBAL         DL_GLOBAL
9668 #  else
9669 #    define LT_DLGLOBAL         0
9670 #  endif
9671 #endif
9673 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9674    find out it does not work in some platform. */
9675 #ifndef LT_DLLAZY_OR_NOW
9676 #  ifdef RTLD_LAZY
9677 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9678 #  else
9679 #    ifdef DL_LAZY
9680 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9681 #    else
9682 #      ifdef RTLD_NOW
9683 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9684 #      else
9685 #        ifdef DL_NOW
9686 #          define LT_DLLAZY_OR_NOW      DL_NOW
9687 #        else
9688 #          define LT_DLLAZY_OR_NOW      0
9689 #        endif
9690 #      endif
9691 #    endif
9692 #  endif
9693 #endif
9695 #ifdef __cplusplus
9696 extern "C" void exit (int);
9697 #endif
9699 void fnord() { int i=42;}
9700 int main ()
9702   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9703   int status = $lt_dlunknown;
9705   if (self)
9706     {
9707       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9708       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9709       /* dlclose (self); */
9710     }
9712     exit (status);
9715   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9716   (eval $ac_link) 2>&5
9717   ac_status=$?
9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9720     (./conftest; exit; ) >&5 2>/dev/null
9721     lt_status=$?
9722     case x$lt_status in
9723       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9724       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9725       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9726     esac
9727   else :
9728     # compilation failed
9729     lt_cv_dlopen_self=no
9730   fi
9732 rm -fr conftest*
9734     
9736 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9737 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9739     if test "x$lt_cv_dlopen_self" = xyes; then
9740       LDFLAGS="$LDFLAGS $link_static_flag"
9741       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9742 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9743 if test "${lt_cv_dlopen_self_static+set}" = set; then
9744   echo $ECHO_N "(cached) $ECHO_C" >&6
9745 else
9746           if test "$cross_compiling" = yes; then :
9747   lt_cv_dlopen_self_static=cross
9748 else
9749   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9750   lt_status=$lt_dlunknown
9751   cat > conftest.$ac_ext <<EOF
9752 #line __oline__ "configure"
9753 #include "confdefs.h"
9755 #if HAVE_DLFCN_H
9756 #include <dlfcn.h>
9757 #endif
9759 #include <stdio.h>
9761 #ifdef RTLD_GLOBAL
9762 #  define LT_DLGLOBAL           RTLD_GLOBAL
9763 #else
9764 #  ifdef DL_GLOBAL
9765 #    define LT_DLGLOBAL         DL_GLOBAL
9766 #  else
9767 #    define LT_DLGLOBAL         0
9768 #  endif
9769 #endif
9771 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9772    find out it does not work in some platform. */
9773 #ifndef LT_DLLAZY_OR_NOW
9774 #  ifdef RTLD_LAZY
9775 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9776 #  else
9777 #    ifdef DL_LAZY
9778 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9779 #    else
9780 #      ifdef RTLD_NOW
9781 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9782 #      else
9783 #        ifdef DL_NOW
9784 #          define LT_DLLAZY_OR_NOW      DL_NOW
9785 #        else
9786 #          define LT_DLLAZY_OR_NOW      0
9787 #        endif
9788 #      endif
9789 #    endif
9790 #  endif
9791 #endif
9793 #ifdef __cplusplus
9794 extern "C" void exit (int);
9795 #endif
9797 void fnord() { int i=42;}
9798 int main ()
9800   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9801   int status = $lt_dlunknown;
9803   if (self)
9804     {
9805       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9806       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9807       /* dlclose (self); */
9808     }
9810     exit (status);
9813   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9814   (eval $ac_link) 2>&5
9815   ac_status=$?
9816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9818     (./conftest; exit; ) >&5 2>/dev/null
9819     lt_status=$?
9820     case x$lt_status in
9821       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9822       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9823       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9824     esac
9825   else :
9826     # compilation failed
9827     lt_cv_dlopen_self_static=no
9828   fi
9830 rm -fr conftest*
9832       
9834 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9835 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9836     fi
9838     CPPFLAGS="$save_CPPFLAGS"
9839     LDFLAGS="$save_LDFLAGS"
9840     LIBS="$save_LIBS"
9841     ;;
9842   esac
9844   case $lt_cv_dlopen_self in
9845   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9846   *) enable_dlopen_self=unknown ;;
9847   esac
9849   case $lt_cv_dlopen_self_static in
9850   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9851   *) enable_dlopen_self_static=unknown ;;
9852   esac
9856 # Report which librarie types wil actually be built
9857 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9858 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9859 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9860 echo "${ECHO_T}$can_build_shared" >&6; }
9862 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9863 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9864 test "$can_build_shared" = "no" && enable_shared=no
9866 # On AIX, shared libraries and static libraries use the same namespace, and
9867 # are all built from PIC.
9868 case $host_os in
9869 aix3*)
9870   test "$enable_shared" = yes && enable_static=no
9871   if test -n "$RANLIB"; then
9872     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9873     postinstall_cmds='$RANLIB $lib'
9874   fi
9875   ;;
9877 aix4* | aix5*)
9878   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9879     test "$enable_shared" = yes && enable_static=no
9880   fi
9881     ;;
9882 esac
9883 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9884 echo "${ECHO_T}$enable_shared" >&6; }
9886 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9887 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9888 # Make sure either enable_shared or enable_static is yes.
9889 test "$enable_shared" = yes || enable_static=yes
9890 { echo "$as_me:$LINENO: result: $enable_static" >&5
9891 echo "${ECHO_T}$enable_static" >&6; }
9893 # The else clause should only fire when bootstrapping the
9894 # libtool distribution, otherwise you forgot to ship ltmain.sh
9895 # with your package, and you will get complaints that there are
9896 # no rules to generate ltmain.sh.
9897 if test -f "$ltmain"; then
9898   # See if we are running on zsh, and set the options which allow our commands through
9899   # without removal of \ escapes.
9900   if test -n "${ZSH_VERSION+set}" ; then
9901     setopt NO_GLOB_SUBST
9902   fi
9903   # Now quote all the things that may contain metacharacters while being
9904   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9905   # variables and quote the copies for generation of the libtool script.
9906   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9907     SED SHELL STRIP \
9908     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9909     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9910     deplibs_check_method reload_flag reload_cmds need_locks \
9911     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9912     lt_cv_sys_global_symbol_to_c_name_address \
9913     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9914     old_postinstall_cmds old_postuninstall_cmds \
9915     compiler \
9916     CC \
9917     LD \
9918     lt_prog_compiler_wl \
9919     lt_prog_compiler_pic \
9920     lt_prog_compiler_static \
9921     lt_prog_compiler_no_builtin_flag \
9922     export_dynamic_flag_spec \
9923     thread_safe_flag_spec \
9924     whole_archive_flag_spec \
9925     enable_shared_with_static_runtimes \
9926     old_archive_cmds \
9927     old_archive_from_new_cmds \
9928     predep_objects \
9929     postdep_objects \
9930     predeps \
9931     postdeps \
9932     compiler_lib_search_path \
9933     archive_cmds \
9934     archive_expsym_cmds \
9935     postinstall_cmds \
9936     postuninstall_cmds \
9937     old_archive_from_expsyms_cmds \
9938     allow_undefined_flag \
9939     no_undefined_flag \
9940     export_symbols_cmds \
9941     hardcode_libdir_flag_spec \
9942     hardcode_libdir_flag_spec_ld \
9943     hardcode_libdir_separator \
9944     hardcode_automatic \
9945     module_cmds \
9946     module_expsym_cmds \
9947     lt_cv_prog_compiler_c_o \
9948     exclude_expsyms \
9949     include_expsyms; do
9951     case $var in
9952     old_archive_cmds | \
9953     old_archive_from_new_cmds | \
9954     archive_cmds | \
9955     archive_expsym_cmds | \
9956     module_cmds | \
9957     module_expsym_cmds | \
9958     old_archive_from_expsyms_cmds | \
9959     export_symbols_cmds | \
9960     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9961     postinstall_cmds | postuninstall_cmds | \
9962     old_postinstall_cmds | old_postuninstall_cmds | \
9963     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9964       # Double-quote double-evaled strings.
9965       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9966       ;;
9967     *)
9968       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9969       ;;
9970     esac
9971   done
9973   case $lt_echo in
9974   *'\$0 --fallback-echo"')
9975     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9976     ;;
9977   esac
9979 cfgfile="${ofile}T"
9980   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9981   $rm -f "$cfgfile"
9982   { echo "$as_me:$LINENO: creating $ofile" >&5
9983 echo "$as_me: creating $ofile" >&6;}
9985   cat <<__EOF__ >> "$cfgfile"
9986 #! $SHELL
9988 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9989 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9990 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9992 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9993 # Free Software Foundation, Inc.
9995 # This file is part of GNU Libtool:
9996 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9998 # This program is free software; you can redistribute it and/or modify
9999 # it under the terms of the GNU General Public License as published by
10000 # the Free Software Foundation; either version 2 of the License, or
10001 # (at your option) any later version.
10003 # This program is distributed in the hope that it will be useful, but
10004 # WITHOUT ANY WARRANTY; without even the implied warranty of
10005 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10006 # General Public License for more details.
10008 # You should have received a copy of the GNU General Public License
10009 # along with this program; if not, write to the Free Software
10010 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10012 # As a special exception to the GNU General Public License, if you
10013 # distribute this file as part of a program that contains a
10014 # configuration script generated by Autoconf, you may include it under
10015 # the same distribution terms that you use for the rest of that program.
10017 # A sed program that does not truncate output.
10018 SED=$lt_SED
10020 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10021 Xsed="$SED -e 1s/^X//"
10023 # The HP-UX ksh and POSIX shell print the target directory to stdout
10024 # if CDPATH is set.
10025 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10027 # The names of the tagged configurations supported by this script.
10028 available_tags=
10030 # ### BEGIN LIBTOOL CONFIG
10032 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10034 # Shell to use when invoking shell scripts.
10035 SHELL=$lt_SHELL
10037 # Whether or not to build shared libraries.
10038 build_libtool_libs=$enable_shared
10040 # Whether or not to build static libraries.
10041 build_old_libs=$enable_static
10043 # Whether or not to add -lc for building shared libraries.
10044 build_libtool_need_lc=$archive_cmds_need_lc
10046 # Whether or not to disallow shared libs when runtime libs are static
10047 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10049 # Whether or not to optimize for fast installation.
10050 fast_install=$enable_fast_install
10052 # The host system.
10053 host_alias=$host_alias
10054 host=$host
10055 host_os=$host_os
10057 # The build system.
10058 build_alias=$build_alias
10059 build=$build
10060 build_os=$build_os
10062 # An echo program that does not interpret backslashes.
10063 echo=$lt_echo
10065 # The archiver.
10066 AR=$lt_AR
10067 AR_FLAGS=$lt_AR_FLAGS
10069 # A C compiler.
10070 LTCC=$lt_LTCC
10072 # A language-specific compiler.
10073 CC=$lt_compiler
10075 # Is the compiler the GNU C compiler?
10076 with_gcc=$GCC
10078 # An ERE matcher.
10079 EGREP=$lt_EGREP
10081 # The linker used to build libraries.
10082 LD=$lt_LD
10084 # Whether we need hard or soft links.
10085 LN_S=$lt_LN_S
10087 # A BSD-compatible nm program.
10088 NM=$lt_NM
10090 # A symbol stripping program
10091 STRIP=$lt_STRIP
10093 # Used to examine libraries when file_magic_cmd begins "file"
10094 MAGIC_CMD=$MAGIC_CMD
10096 # Used on cygwin: DLL creation program.
10097 DLLTOOL="$DLLTOOL"
10099 # Used on cygwin: object dumper.
10100 OBJDUMP="$OBJDUMP"
10102 # Used on cygwin: assembler.
10103 AS="$AS"
10105 # The name of the directory that contains temporary libtool files.
10106 objdir=$objdir
10108 # How to create reloadable object files.
10109 reload_flag=$lt_reload_flag
10110 reload_cmds=$lt_reload_cmds
10112 # How to pass a linker flag through the compiler.
10113 wl=$lt_lt_prog_compiler_wl
10115 # Object file suffix (normally "o").
10116 objext="$ac_objext"
10118 # Old archive suffix (normally "a").
10119 libext="$libext"
10121 # Shared library suffix (normally ".so").
10122 shrext_cmds='$shrext_cmds'
10124 # Executable file suffix (normally "").
10125 exeext="$exeext"
10127 # Additional compiler flags for building library objects.
10128 pic_flag=$lt_lt_prog_compiler_pic
10129 pic_mode=$pic_mode
10131 # What is the maximum length of a command?
10132 max_cmd_len=$lt_cv_sys_max_cmd_len
10134 # Does compiler simultaneously support -c and -o options?
10135 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10137 # Must we lock files when doing compilation?
10138 need_locks=$lt_need_locks
10140 # Do we need the lib prefix for modules?
10141 need_lib_prefix=$need_lib_prefix
10143 # Do we need a version for libraries?
10144 need_version=$need_version
10146 # Whether dlopen is supported.
10147 dlopen_support=$enable_dlopen
10149 # Whether dlopen of programs is supported.
10150 dlopen_self=$enable_dlopen_self
10152 # Whether dlopen of statically linked programs is supported.
10153 dlopen_self_static=$enable_dlopen_self_static
10155 # Compiler flag to prevent dynamic linking.
10156 link_static_flag=$lt_lt_prog_compiler_static
10158 # Compiler flag to turn off builtin functions.
10159 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10161 # Compiler flag to allow reflexive dlopens.
10162 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10164 # Compiler flag to generate shared objects directly from archives.
10165 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10167 # Compiler flag to generate thread-safe objects.
10168 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10170 # Library versioning type.
10171 version_type=$version_type
10173 # Format of library name prefix.
10174 libname_spec=$lt_libname_spec
10176 # List of archive names.  First name is the real one, the rest are links.
10177 # The last name is the one that the linker finds with -lNAME.
10178 library_names_spec=$lt_library_names_spec
10180 # The coded name of the library, if different from the real name.
10181 soname_spec=$lt_soname_spec
10183 # Commands used to build and install an old-style archive.
10184 RANLIB=$lt_RANLIB
10185 old_archive_cmds=$lt_old_archive_cmds
10186 old_postinstall_cmds=$lt_old_postinstall_cmds
10187 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10189 # Create an old-style archive from a shared archive.
10190 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10192 # Create a temporary old-style archive to link instead of a shared archive.
10193 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10195 # Commands used to build and install a shared archive.
10196 archive_cmds=$lt_archive_cmds
10197 archive_expsym_cmds=$lt_archive_expsym_cmds
10198 postinstall_cmds=$lt_postinstall_cmds
10199 postuninstall_cmds=$lt_postuninstall_cmds
10201 # Commands used to build a loadable module (assumed same as above if empty)
10202 module_cmds=$lt_module_cmds
10203 module_expsym_cmds=$lt_module_expsym_cmds
10205 # Commands to strip libraries.
10206 old_striplib=$lt_old_striplib
10207 striplib=$lt_striplib
10209 # Dependencies to place before the objects being linked to create a
10210 # shared library.
10211 predep_objects=$lt_predep_objects
10213 # Dependencies to place after the objects being linked to create a
10214 # shared library.
10215 postdep_objects=$lt_postdep_objects
10217 # Dependencies to place before the objects being linked to create a
10218 # shared library.
10219 predeps=$lt_predeps
10221 # Dependencies to place after the objects being linked to create a
10222 # shared library.
10223 postdeps=$lt_postdeps
10225 # The library search path used internally by the compiler when linking
10226 # a shared library.
10227 compiler_lib_search_path=$lt_compiler_lib_search_path
10229 # Method to check whether dependent libraries are shared objects.
10230 deplibs_check_method=$lt_deplibs_check_method
10232 # Command to use when deplibs_check_method == file_magic.
10233 file_magic_cmd=$lt_file_magic_cmd
10235 # Flag that allows shared libraries with undefined symbols to be built.
10236 allow_undefined_flag=$lt_allow_undefined_flag
10238 # Flag that forces no undefined symbols.
10239 no_undefined_flag=$lt_no_undefined_flag
10241 # Commands used to finish a libtool library installation in a directory.
10242 finish_cmds=$lt_finish_cmds
10244 # Same as above, but a single script fragment to be evaled but not shown.
10245 finish_eval=$lt_finish_eval
10247 # Take the output of nm and produce a listing of raw symbols and C names.
10248 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10250 # Transform the output of nm in a proper C declaration
10251 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10253 # Transform the output of nm in a C name address pair
10254 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10256 # This is the shared library runtime path variable.
10257 runpath_var=$runpath_var
10259 # This is the shared library path variable.
10260 shlibpath_var=$shlibpath_var
10262 # Is shlibpath searched before the hard-coded library search path?
10263 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10265 # How to hardcode a shared library path into an executable.
10266 hardcode_action=$hardcode_action
10268 # Whether we should hardcode library paths into libraries.
10269 hardcode_into_libs=$hardcode_into_libs
10271 # Flag to hardcode \$libdir into a binary during linking.
10272 # This must work even if \$libdir does not exist.
10273 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10275 # If ld is used when linking, flag to hardcode \$libdir into
10276 # a binary during linking. This must work even if \$libdir does
10277 # not exist.
10278 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10280 # Whether we need a single -rpath flag with a separated argument.
10281 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10283 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10284 # resulting binary.
10285 hardcode_direct=$hardcode_direct
10287 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10288 # resulting binary.
10289 hardcode_minus_L=$hardcode_minus_L
10291 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10292 # the resulting binary.
10293 hardcode_shlibpath_var=$hardcode_shlibpath_var
10295 # Set to yes if building a shared library automatically hardcodes DIR into the library
10296 # and all subsequent libraries and executables linked against it.
10297 hardcode_automatic=$hardcode_automatic
10299 # Variables whose values should be saved in libtool wrapper scripts and
10300 # restored at relink time.
10301 variables_saved_for_relink="$variables_saved_for_relink"
10303 # Whether libtool must link a program against all its dependency libraries.
10304 link_all_deplibs=$link_all_deplibs
10306 # Compile-time system search path for libraries
10307 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10309 # Run-time system search path for libraries
10310 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10312 # Fix the shell variable \$srcfile for the compiler.
10313 fix_srcfile_path="$fix_srcfile_path"
10315 # Set to yes if exported symbols are required.
10316 always_export_symbols=$always_export_symbols
10318 # The commands to list exported symbols.
10319 export_symbols_cmds=$lt_export_symbols_cmds
10321 # The commands to extract the exported symbol list from a shared archive.
10322 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10324 # Symbols that should not be listed in the preloaded symbols.
10325 exclude_expsyms=$lt_exclude_expsyms
10327 # Symbols that must always be exported.
10328 include_expsyms=$lt_include_expsyms
10330 # ### END LIBTOOL CONFIG
10332 __EOF__
10335   case $host_os in
10336   aix3*)
10337     cat <<\EOF >> "$cfgfile"
10339 # AIX sometimes has problems with the GCC collect2 program.  For some
10340 # reason, if we set the COLLECT_NAMES environment variable, the problems
10341 # vanish in a puff of smoke.
10342 if test "X${COLLECT_NAMES+set}" != Xset; then
10343   COLLECT_NAMES=
10344   export COLLECT_NAMES
10347     ;;
10348   esac
10350   # We use sed instead of cat because bash on DJGPP gets confused if
10351   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10352   # text mode, it properly converts lines to CR/LF.  This bash problem
10353   # is reportedly fixed, but why not run on old versions too?
10354   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10356   mv -f "$cfgfile" "$ofile" || \
10357     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10358   chmod +x "$ofile"
10360 else
10361   # If there is no Makefile yet, we rely on a make rule to execute
10362   # `config.status --recheck' to rerun these tests and create the
10363   # libtool script then.
10364   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10365   if test -f "$ltmain_in"; then
10366     test -f Makefile && make "$ltmain"
10367   fi
10371 ac_ext=c
10372 ac_cpp='$CPP $CPPFLAGS'
10373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10377 CC="$lt_save_CC"
10380 # Check whether --with-tags was given.
10381 if test "${with_tags+set}" = set; then
10382   withval=$with_tags; tagnames="$withval"
10386 if test -f "$ltmain" && test -n "$tagnames"; then
10387   if test ! -f "${ofile}"; then
10388     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10389 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10390   fi
10392   if test -z "$LTCC"; then
10393     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10394     if test -z "$LTCC"; then
10395       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10396 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10397     else
10398       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10399 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10400     fi
10401   fi
10403   # Extract list of available tagged configurations in $ofile.
10404   # Note that this assumes the entire list is on one line.
10405   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10407   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10408   for tagname in $tagnames; do
10409     IFS="$lt_save_ifs"
10410     # Check whether tagname contains only valid characters
10411     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10412     "") ;;
10413     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10414 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10415    { (exit 1); exit 1; }; }
10416         ;;
10417     esac
10419     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10420     then
10421       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10422 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10423    { (exit 1); exit 1; }; }
10424     fi
10426     # Update the list of available tags.
10427     if test -n "$tagname"; then
10428       echo appending configuration tag \"$tagname\" to $ofile
10430       case $tagname in
10431       CXX)
10432         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10433             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10434             (test "X$CXX" != "Xg++"))) ; then
10435           ac_ext=cpp
10436 ac_cpp='$CXXCPP $CPPFLAGS'
10437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10444 archive_cmds_need_lc_CXX=no
10445 allow_undefined_flag_CXX=
10446 always_export_symbols_CXX=no
10447 archive_expsym_cmds_CXX=
10448 export_dynamic_flag_spec_CXX=
10449 hardcode_direct_CXX=no
10450 hardcode_libdir_flag_spec_CXX=
10451 hardcode_libdir_flag_spec_ld_CXX=
10452 hardcode_libdir_separator_CXX=
10453 hardcode_minus_L_CXX=no
10454 hardcode_automatic_CXX=no
10455 module_cmds_CXX=
10456 module_expsym_cmds_CXX=
10457 link_all_deplibs_CXX=unknown
10458 old_archive_cmds_CXX=$old_archive_cmds
10459 no_undefined_flag_CXX=
10460 whole_archive_flag_spec_CXX=
10461 enable_shared_with_static_runtimes_CXX=no
10463 # Dependencies to place before and after the object being linked:
10464 predep_objects_CXX=
10465 postdep_objects_CXX=
10466 predeps_CXX=
10467 postdeps_CXX=
10468 compiler_lib_search_path_CXX=
10470 # Source file extension for C++ test sources.
10471 ac_ext=cpp
10473 # Object file extension for compiled C++ test sources.
10474 objext=o
10475 objext_CXX=$objext
10477 # Code to be used in simple compile tests
10478 lt_simple_compile_test_code="int some_variable = 0;\n"
10480 # Code to be used in simple link tests
10481 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10483 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10485 # If no C compiler was specified, use CC.
10486 LTCC=${LTCC-"$CC"}
10488 # Allow CC to be a program name with arguments.
10489 compiler=$CC
10492 # save warnings/boilerplate of simple test code
10493 ac_outfile=conftest.$ac_objext
10494 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10495 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10496 _lt_compiler_boilerplate=`cat conftest.err`
10497 $rm conftest*
10499 ac_outfile=conftest.$ac_objext
10500 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10501 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10502 _lt_linker_boilerplate=`cat conftest.err`
10503 $rm conftest*
10506 # Allow CC to be a program name with arguments.
10507 lt_save_CC=$CC
10508 lt_save_LD=$LD
10509 lt_save_GCC=$GCC
10510 GCC=$GXX
10511 lt_save_with_gnu_ld=$with_gnu_ld
10512 lt_save_path_LD=$lt_cv_path_LD
10513 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10514   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10515 else
10516   unset lt_cv_prog_gnu_ld
10518 if test -n "${lt_cv_path_LDCXX+set}"; then
10519   lt_cv_path_LD=$lt_cv_path_LDCXX
10520 else
10521   unset lt_cv_path_LD
10523 test -z "${LDCXX+set}" || LD=$LDCXX
10524 CC=${CXX-"c++"}
10525 compiler=$CC
10526 compiler_CXX=$CC
10527 for cc_temp in $compiler""; do
10528   case $cc_temp in
10529     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10530     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10531     \-*) ;;
10532     *) break;;
10533   esac
10534 done
10535 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10538 # We don't want -fno-exception wen compiling C++ code, so set the
10539 # no_builtin_flag separately
10540 if test "$GXX" = yes; then
10541   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10542 else
10543   lt_prog_compiler_no_builtin_flag_CXX=
10546 if test "$GXX" = yes; then
10547   # Set up default GNU C++ configuration
10549   
10550 # Check whether --with-gnu-ld was given.
10551 if test "${with_gnu_ld+set}" = set; then
10552   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10553 else
10554   with_gnu_ld=no
10557 ac_prog=ld
10558 if test "$GCC" = yes; then
10559   # Check if gcc -print-prog-name=ld gives a path.
10560   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10561 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10562   case $host in
10563   *-*-mingw*)
10564     # gcc leaves a trailing carriage return which upsets mingw
10565     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10566   *)
10567     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10568   esac
10569   case $ac_prog in
10570     # Accept absolute paths.
10571     [\\/]* | ?:[\\/]*)
10572       re_direlt='/[^/][^/]*/\.\./'
10573       # Canonicalize the pathname of ld
10574       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10575       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10576         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10577       done
10578       test -z "$LD" && LD="$ac_prog"
10579       ;;
10580   "")
10581     # If it fails, then pretend we aren't using GCC.
10582     ac_prog=ld
10583     ;;
10584   *)
10585     # If it is relative, then search for the first ld in PATH.
10586     with_gnu_ld=unknown
10587     ;;
10588   esac
10589 elif test "$with_gnu_ld" = yes; then
10590   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10591 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10592 else
10593   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10594 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10596 if test "${lt_cv_path_LD+set}" = set; then
10597   echo $ECHO_N "(cached) $ECHO_C" >&6
10598 else
10599   if test -z "$LD"; then
10600   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10601   for ac_dir in $PATH; do
10602     IFS="$lt_save_ifs"
10603     test -z "$ac_dir" && ac_dir=.
10604     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10605       lt_cv_path_LD="$ac_dir/$ac_prog"
10606       # Check to see if the program is GNU ld.  I'd rather use --version,
10607       # but apparently some variants of GNU ld only accept -v.
10608       # Break only if it was the GNU/non-GNU ld that we prefer.
10609       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10610       *GNU* | *'with BFD'*)
10611         test "$with_gnu_ld" != no && break
10612         ;;
10613       *)
10614         test "$with_gnu_ld" != yes && break
10615         ;;
10616       esac
10617     fi
10618   done
10619   IFS="$lt_save_ifs"
10620 else
10621   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10625 LD="$lt_cv_path_LD"
10626 if test -n "$LD"; then
10627   { echo "$as_me:$LINENO: result: $LD" >&5
10628 echo "${ECHO_T}$LD" >&6; }
10629 else
10630   { echo "$as_me:$LINENO: result: no" >&5
10631 echo "${ECHO_T}no" >&6; }
10633 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10634 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10635    { (exit 1); exit 1; }; }
10636 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10637 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10638 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10639   echo $ECHO_N "(cached) $ECHO_C" >&6
10640 else
10641   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10642 case `$LD -v 2>&1 </dev/null` in
10643 *GNU* | *'with BFD'*)
10644   lt_cv_prog_gnu_ld=yes
10645   ;;
10647   lt_cv_prog_gnu_ld=no
10648   ;;
10649 esac
10651 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10652 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10653 with_gnu_ld=$lt_cv_prog_gnu_ld
10657   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10658   # archiving commands below assume that GNU ld is being used.
10659   if test "$with_gnu_ld" = yes; then
10660     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10661     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'
10663     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10664     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10666     # If archive_cmds runs LD, not CC, wlarc should be empty
10667     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10668     #     investigate it a little bit more. (MM)
10669     wlarc='${wl}'
10671     # ancient GNU ld didn't support --whole-archive et. al.
10672     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10673         grep 'no-whole-archive' > /dev/null; then
10674       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10675     else
10676       whole_archive_flag_spec_CXX=
10677     fi
10678   else
10679     with_gnu_ld=no
10680     wlarc=
10682     # A generic and very simple default shared library creation
10683     # command for GNU C++ for the case where it uses the native
10684     # linker, instead of GNU ld.  If possible, this setting should
10685     # overridden to take advantage of the native linker features on
10686     # the platform it is being used on.
10687     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10688   fi
10690   # Commands to make compiler produce verbose output that lists
10691   # what "hidden" libraries, object files and flags are used when
10692   # linking a shared library.
10693   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10695 else
10696   GXX=no
10697   with_gnu_ld=no
10698   wlarc=
10701 # PORTME: fill in a description of your system's C++ link characteristics
10702 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10703 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10704 ld_shlibs_CXX=yes
10705 case $host_os in
10706   aix3*)
10707     # FIXME: insert proper C++ library support
10708     ld_shlibs_CXX=no
10709     ;;
10710   aix4* | aix5*)
10711     if test "$host_cpu" = ia64; then
10712       # On IA64, the linker does run time linking by default, so we don't
10713       # have to do anything special.
10714       aix_use_runtimelinking=no
10715       exp_sym_flag='-Bexport'
10716       no_entry_flag=""
10717     else
10718       aix_use_runtimelinking=no
10720       # Test if we are trying to use run time linking or normal
10721       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10722       # need to do runtime linking.
10723       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10724         for ld_flag in $LDFLAGS; do
10725           case $ld_flag in
10726           *-brtl*)
10727             aix_use_runtimelinking=yes
10728             break
10729             ;;
10730           esac
10731         done
10732       esac
10734       exp_sym_flag='-bexport'
10735       no_entry_flag='-bnoentry'
10736     fi
10738     # When large executables or shared objects are built, AIX ld can
10739     # have problems creating the table of contents.  If linking a library
10740     # or program results in "error TOC overflow" add -mminimal-toc to
10741     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10742     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10744     archive_cmds_CXX=''
10745     hardcode_direct_CXX=yes
10746     hardcode_libdir_separator_CXX=':'
10747     link_all_deplibs_CXX=yes
10749     if test "$GXX" = yes; then
10750       case $host_os in aix4.[012]|aix4.[012].*)
10751       # We only want to do this on AIX 4.2 and lower, the check
10752       # below for broken collect2 doesn't work under 4.3+
10753         collect2name=`${CC} -print-prog-name=collect2`
10754         if test -f "$collect2name" && \
10755            strings "$collect2name" | grep resolve_lib_name >/dev/null
10756         then
10757           # We have reworked collect2
10758           hardcode_direct_CXX=yes
10759         else
10760           # We have old collect2
10761           hardcode_direct_CXX=unsupported
10762           # It fails to find uninstalled libraries when the uninstalled
10763           # path is not listed in the libpath.  Setting hardcode_minus_L
10764           # to unsupported forces relinking
10765           hardcode_minus_L_CXX=yes
10766           hardcode_libdir_flag_spec_CXX='-L$libdir'
10767           hardcode_libdir_separator_CXX=
10768         fi
10769       esac
10770       shared_flag='-shared'
10771       if test "$aix_use_runtimelinking" = yes; then
10772         shared_flag="$shared_flag "'${wl}-G'
10773       fi
10774     else
10775       # not using gcc
10776       if test "$host_cpu" = ia64; then
10777         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10778         # chokes on -Wl,-G. The following line is correct:
10779         shared_flag='-G'
10780       else
10781         if test "$aix_use_runtimelinking" = yes; then
10782           shared_flag='${wl}-G'
10783         else
10784           shared_flag='${wl}-bM:SRE'
10785         fi
10786       fi
10787     fi
10789     # It seems that -bexpall does not export symbols beginning with
10790     # underscore (_), so it is better to generate a list of symbols to export.
10791     always_export_symbols_CXX=yes
10792     if test "$aix_use_runtimelinking" = yes; then
10793       # Warning - without using the other runtime loading flags (-brtl),
10794       # -berok will link without error, but may produce a broken library.
10795       allow_undefined_flag_CXX='-berok'
10796       # Determine the default libpath from the value encoded in an empty executable.
10797       cat >conftest.$ac_ext <<_ACEOF
10798 /* confdefs.h.  */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h.  */
10805 main ()
10808   ;
10809   return 0;
10811 _ACEOF
10812 rm -f conftest.$ac_objext conftest$ac_exeext
10813 if { (ac_try="$ac_link"
10814 case "(($ac_try" in
10815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10816   *) ac_try_echo=$ac_try;;
10817 esac
10818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10819   (eval "$ac_link") 2>conftest.er1
10820   ac_status=$?
10821   grep -v '^ *+' conftest.er1 >conftest.err
10822   rm -f conftest.er1
10823   cat conftest.err >&5
10824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825   (exit $ac_status); } && {
10826          test -z "$ac_cxx_werror_flag" ||
10827          test ! -s conftest.err
10828        } && test -s conftest$ac_exeext &&
10829        $as_test_x conftest$ac_exeext; then
10830   
10831 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10833 # Check for a 64-bit object if we didn't find anything.
10834 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10835 }'`; fi
10836 else
10837   echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10840         
10843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10844       conftest$ac_exeext conftest.$ac_ext
10845 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10847       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10849       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10850      else
10851       if test "$host_cpu" = ia64; then
10852         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10853         allow_undefined_flag_CXX="-z nodefs"
10854         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10855       else
10856         # Determine the default libpath from the value encoded in an empty executable.
10857         cat >conftest.$ac_ext <<_ACEOF
10858 /* confdefs.h.  */
10859 _ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h.  */
10865 main ()
10868   ;
10869   return 0;
10871 _ACEOF
10872 rm -f conftest.$ac_objext conftest$ac_exeext
10873 if { (ac_try="$ac_link"
10874 case "(($ac_try" in
10875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876   *) ac_try_echo=$ac_try;;
10877 esac
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879   (eval "$ac_link") 2>conftest.er1
10880   ac_status=$?
10881   grep -v '^ *+' conftest.er1 >conftest.err
10882   rm -f conftest.er1
10883   cat conftest.err >&5
10884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885   (exit $ac_status); } && {
10886          test -z "$ac_cxx_werror_flag" ||
10887          test ! -s conftest.err
10888        } && test -s conftest$ac_exeext &&
10889        $as_test_x conftest$ac_exeext; then
10890   
10891 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10893 # Check for a 64-bit object if we didn't find anything.
10894 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10895 }'`; fi
10896 else
10897   echo "$as_me: failed program was:" >&5
10898 sed 's/^/| /' conftest.$ac_ext >&5
10900         
10903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10904       conftest$ac_exeext conftest.$ac_ext
10905 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10907         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10908         # Warning - without using the other run time loading flags,
10909         # -berok will link without error, but may produce a broken library.
10910         no_undefined_flag_CXX=' ${wl}-bernotok'
10911         allow_undefined_flag_CXX=' ${wl}-berok'
10912         # -bexpall does not export symbols beginning with underscore (_)
10913         always_export_symbols_CXX=yes
10914         # Exported symbols can be pulled into shared objects from archives
10915         whole_archive_flag_spec_CXX=' '
10916         archive_cmds_need_lc_CXX=yes
10917         # This is similar to how AIX traditionally builds its shared libraries.
10918         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10919       fi
10920     fi
10921     ;;
10922   chorus*)
10923     case $cc_basename in
10924       *)
10925         # FIXME: insert proper C++ library support
10926         ld_shlibs_CXX=no
10927         ;;
10928     esac
10929     ;;
10932   cygwin* | mingw* | pw32*)
10933     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10934     # as there is no search path for DLLs.
10935     hardcode_libdir_flag_spec_CXX='-L$libdir'
10936     allow_undefined_flag_CXX=unsupported
10937     always_export_symbols_CXX=no
10938     enable_shared_with_static_runtimes_CXX=yes
10940     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10941       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10942       # If the export-symbols file already is a .def file (1st line
10943       # is EXPORTS), use it as is; otherwise, prepend...
10944       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10945         cp $export_symbols $output_objdir/$soname.def;
10946       else
10947         echo EXPORTS > $output_objdir/$soname.def;
10948         cat $export_symbols >> $output_objdir/$soname.def;
10949       fi~
10950       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10951     else
10952       ld_shlibs_CXX=no
10953     fi
10954   ;;
10955       darwin* | rhapsody*)
10956         case $host_os in
10957         rhapsody* | darwin1.[012])
10958          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10959          ;;
10960        *) # Darwin 1.3 on
10961          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10962            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10963          else
10964            case ${MACOSX_DEPLOYMENT_TARGET} in
10965              10.[012])
10966                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10967                ;;
10968              10.*)
10969                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10970                ;;
10971            esac
10972          fi
10973          ;;
10974         esac
10975       archive_cmds_need_lc_CXX=no
10976       hardcode_direct_CXX=no
10977       hardcode_automatic_CXX=yes
10978       hardcode_shlibpath_var_CXX=unsupported
10979       whole_archive_flag_spec_CXX=''
10980       link_all_deplibs_CXX=yes
10982     if test "$GXX" = yes ; then
10983       lt_int_apple_cc_single_mod=no
10984       output_verbose_link_cmd='echo'
10985       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10986        lt_int_apple_cc_single_mod=yes
10987       fi
10988       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10989        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10990       else
10991           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'
10992         fi
10993         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10994         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10995           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10996             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}'
10997           else
10998             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}'
10999           fi
11000             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}'
11001       else
11002       case $cc_basename in
11003         xlc*)
11004          output_verbose_link_cmd='echo'
11005           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11006           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11007           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11008           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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11009           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}'
11010           ;;
11011        *)
11012          ld_shlibs_CXX=no
11013           ;;
11014       esac
11015       fi
11016         ;;
11018   dgux*)
11019     case $cc_basename in
11020       ec++*)
11021         # FIXME: insert proper C++ library support
11022         ld_shlibs_CXX=no
11023         ;;
11024       ghcx*)
11025         # Green Hills C++ Compiler
11026         # FIXME: insert proper C++ library support
11027         ld_shlibs_CXX=no
11028         ;;
11029       *)
11030         # FIXME: insert proper C++ library support
11031         ld_shlibs_CXX=no
11032         ;;
11033     esac
11034     ;;
11035   freebsd[12]*)
11036     # C++ shared libraries reported to be fairly broken before switch to ELF
11037     ld_shlibs_CXX=no
11038     ;;
11039   freebsd-elf*)
11040     archive_cmds_need_lc_CXX=no
11041     ;;
11042   freebsd* | kfreebsd*-gnu | dragonfly*)
11043     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11044     # conventions
11045     ld_shlibs_CXX=yes
11046     ;;
11047   gnu*)
11048     ;;
11049   hpux9*)
11050     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11051     hardcode_libdir_separator_CXX=:
11052     export_dynamic_flag_spec_CXX='${wl}-E'
11053     hardcode_direct_CXX=yes
11054     hardcode_minus_L_CXX=yes # Not in the search PATH,
11055                                 # but as the default
11056                                 # location of the library.
11058     case $cc_basename in
11059     CC*)
11060       # FIXME: insert proper C++ library support
11061       ld_shlibs_CXX=no
11062       ;;
11063     aCC*)
11064       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'
11065       # Commands to make compiler produce verbose output that lists
11066       # what "hidden" libraries, object files and flags are used when
11067       # linking a shared library.
11068       #
11069       # There doesn't appear to be a way to prevent this compiler from
11070       # explicitly linking system object files so we need to strip them
11071       # from the output so that they don't get included in the library
11072       # dependencies.
11073       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'
11074       ;;
11075     *)
11076       if test "$GXX" = yes; then
11077         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'
11078       else
11079         # FIXME: insert proper C++ library support
11080         ld_shlibs_CXX=no
11081       fi
11082       ;;
11083     esac
11084     ;;
11085   hpux10*|hpux11*)
11086     if test $with_gnu_ld = no; then
11087       case $host_cpu in
11088       hppa*64*)
11089         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11090         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11091         hardcode_libdir_separator_CXX=:
11092         ;;
11093       ia64*)
11094         hardcode_libdir_flag_spec_CXX='-L$libdir'
11095         ;;
11096       *)
11097         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11098         hardcode_libdir_separator_CXX=:
11099         export_dynamic_flag_spec_CXX='${wl}-E'
11100         ;;
11101       esac
11102     fi
11103     case $host_cpu in
11104     hppa*64*)
11105       hardcode_direct_CXX=no
11106       hardcode_shlibpath_var_CXX=no
11107       ;;
11108     ia64*)
11109       hardcode_direct_CXX=no
11110       hardcode_shlibpath_var_CXX=no
11111       hardcode_minus_L_CXX=yes # Not in the search PATH,
11112                                               # but as the default
11113                                               # location of the library.
11114       ;;
11115     *)
11116       hardcode_direct_CXX=yes
11117       hardcode_minus_L_CXX=yes # Not in the search PATH,
11118                                               # but as the default
11119                                               # location of the library.
11120       ;;
11121     esac
11123     case $cc_basename in
11124       CC*)
11125         # FIXME: insert proper C++ library support
11126         ld_shlibs_CXX=no
11127         ;;
11128       aCC*)
11129         case $host_cpu in
11130         hppa*64*|ia64*)
11131           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11132           ;;
11133         *)
11134           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11135           ;;
11136         esac
11137         # Commands to make compiler produce verbose output that lists
11138         # what "hidden" libraries, object files and flags are used when
11139         # linking a shared library.
11140         #
11141         # There doesn't appear to be a way to prevent this compiler from
11142         # explicitly linking system object files so we need to strip them
11143         # from the output so that they don't get included in the library
11144         # dependencies.
11145         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'
11146         ;;
11147       *)
11148         if test "$GXX" = yes; then
11149           if test $with_gnu_ld = no; then
11150             case $host_cpu in
11151             ia64*|hppa*64*)
11152               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11153               ;;
11154             *)
11155               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'
11156               ;;
11157             esac
11158           fi
11159         else
11160           # FIXME: insert proper C++ library support
11161           ld_shlibs_CXX=no
11162         fi
11163         ;;
11164     esac
11165     ;;
11166   irix5* | irix6*)
11167     case $cc_basename in
11168       CC*)
11169         # SGI C++
11170         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'
11172         # Archives containing C++ object files must be created using
11173         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11174         # necessary to make sure instantiated templates are included
11175         # in the archive.
11176         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11177         ;;
11178       *)
11179         if test "$GXX" = yes; then
11180           if test "$with_gnu_ld" = no; then
11181             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'
11182           else
11183             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'
11184           fi
11185         fi
11186         link_all_deplibs_CXX=yes
11187         ;;
11188     esac
11189     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11190     hardcode_libdir_separator_CXX=:
11191     ;;
11192   linux*)
11193     case $cc_basename in
11194       KCC*)
11195         # Kuck and Associates, Inc. (KAI) C++ Compiler
11197         # KCC will only create a shared library if the output file
11198         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11199         # to its proper name (with version) after linking.
11200         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'
11201         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'
11202         # Commands to make compiler produce verbose output that lists
11203         # what "hidden" libraries, object files and flags are used when
11204         # linking a shared library.
11205         #
11206         # There doesn't appear to be a way to prevent this compiler from
11207         # explicitly linking system object files so we need to strip them
11208         # from the output so that they don't get included in the library
11209         # dependencies.
11210         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'
11212         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11213         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11215         # Archives containing C++ object files must be created using
11216         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11217         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11218         ;;
11219       icpc*)
11220         # Intel C++
11221         with_gnu_ld=yes
11222         # version 8.0 and above of icpc choke on multiply defined symbols
11223         # if we add $predep_objects and $postdep_objects, however 7.1 and
11224         # earlier do not add the objects themselves.
11225         case `$CC -V 2>&1` in
11226         *"Version 7."*)
11227           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11228           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'
11229           ;;
11230         *)  # Version 8.0 or newer
11231           tmp_idyn=
11232           case $host_cpu in
11233             ia64*) tmp_idyn=' -i_dynamic';;
11234           esac
11235           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11236           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'
11237           ;;
11238         esac
11239         archive_cmds_need_lc_CXX=no
11240         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11241         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11242         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11243         ;;
11244       pgCC*)
11245         # Portland Group C++ compiler
11246         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11247         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'
11249         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11250         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11251         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'
11252         ;;
11253       cxx*)
11254         # Compaq C++
11255         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11256         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'
11258         runpath_var=LD_RUN_PATH
11259         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11260         hardcode_libdir_separator_CXX=:
11262         # Commands to make compiler produce verbose output that lists
11263         # what "hidden" libraries, object files and flags are used when
11264         # linking a shared library.
11265         #
11266         # There doesn't appear to be a way to prevent this compiler from
11267         # explicitly linking system object files so we need to strip them
11268         # from the output so that they don't get included in the library
11269         # dependencies.
11270         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'
11271         ;;
11272     esac
11273     ;;
11274   lynxos*)
11275     # FIXME: insert proper C++ library support
11276     ld_shlibs_CXX=no
11277     ;;
11278   m88k*)
11279     # FIXME: insert proper C++ library support
11280     ld_shlibs_CXX=no
11281     ;;
11282   mvs*)
11283     case $cc_basename in
11284       cxx*)
11285         # FIXME: insert proper C++ library support
11286         ld_shlibs_CXX=no
11287         ;;
11288       *)
11289         # FIXME: insert proper C++ library support
11290         ld_shlibs_CXX=no
11291         ;;
11292     esac
11293     ;;
11294   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11295     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11296       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11297       wlarc=
11298       hardcode_libdir_flag_spec_CXX='-R$libdir'
11299       hardcode_direct_CXX=yes
11300       hardcode_shlibpath_var_CXX=no
11301     fi
11302     # Workaround some broken pre-1.5 toolchains
11303     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11304     ;;
11305   openbsd2*)
11306     # C++ shared libraries are fairly broken
11307     ld_shlibs_CXX=no
11308     ;;
11309   openbsd*)
11310     hardcode_direct_CXX=yes
11311     hardcode_shlibpath_var_CXX=no
11312     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11313     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11314     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11315       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11316       export_dynamic_flag_spec_CXX='${wl}-E'
11317       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11318     fi
11319     output_verbose_link_cmd='echo'
11320     ;;
11321   osf3*)
11322     case $cc_basename in
11323       KCC*)
11324         # Kuck and Associates, Inc. (KAI) C++ Compiler
11326         # KCC will only create a shared library if the output file
11327         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11328         # to its proper name (with version) after linking.
11329         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'
11331         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11332         hardcode_libdir_separator_CXX=:
11334         # Archives containing C++ object files must be created using
11335         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11336         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11338         ;;
11339       RCC*)
11340         # Rational C++ 2.4.1
11341         # FIXME: insert proper C++ library support
11342         ld_shlibs_CXX=no
11343         ;;
11344       cxx*)
11345         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11346         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'
11348         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11349         hardcode_libdir_separator_CXX=:
11351         # Commands to make compiler produce verbose output that lists
11352         # what "hidden" libraries, object files and flags are used when
11353         # linking a shared library.
11354         #
11355         # There doesn't appear to be a way to prevent this compiler from
11356         # explicitly linking system object files so we need to strip them
11357         # from the output so that they don't get included in the library
11358         # dependencies.
11359         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'
11360         ;;
11361       *)
11362         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11363           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11364           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'
11366           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11367           hardcode_libdir_separator_CXX=:
11369           # Commands to make compiler produce verbose output that lists
11370           # what "hidden" libraries, object files and flags are used when
11371           # linking a shared library.
11372           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11374         else
11375           # FIXME: insert proper C++ library support
11376           ld_shlibs_CXX=no
11377         fi
11378         ;;
11379     esac
11380     ;;
11381   osf4* | osf5*)
11382     case $cc_basename in
11383       KCC*)
11384         # Kuck and Associates, Inc. (KAI) C++ Compiler
11386         # KCC will only create a shared library if the output file
11387         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11388         # to its proper name (with version) after linking.
11389         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'
11391         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11392         hardcode_libdir_separator_CXX=:
11394         # Archives containing C++ object files must be created using
11395         # the KAI C++ compiler.
11396         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11397         ;;
11398       RCC*)
11399         # Rational C++ 2.4.1
11400         # FIXME: insert proper C++ library support
11401         ld_shlibs_CXX=no
11402         ;;
11403       cxx*)
11404         allow_undefined_flag_CXX=' -expect_unresolved \*'
11405         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'
11406         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11407           echo "-hidden">> $lib.exp~
11408           $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~
11409           $rm $lib.exp'
11411         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11412         hardcode_libdir_separator_CXX=:
11414         # Commands to make compiler produce verbose output that lists
11415         # what "hidden" libraries, object files and flags are used when
11416         # linking a shared library.
11417         #
11418         # There doesn't appear to be a way to prevent this compiler from
11419         # explicitly linking system object files so we need to strip them
11420         # from the output so that they don't get included in the library
11421         # dependencies.
11422         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'
11423         ;;
11424       *)
11425         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11426           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11427          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'
11429           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11430           hardcode_libdir_separator_CXX=:
11432           # Commands to make compiler produce verbose output that lists
11433           # what "hidden" libraries, object files and flags are used when
11434           # linking a shared library.
11435           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11437         else
11438           # FIXME: insert proper C++ library support
11439           ld_shlibs_CXX=no
11440         fi
11441         ;;
11442     esac
11443     ;;
11444   psos*)
11445     # FIXME: insert proper C++ library support
11446     ld_shlibs_CXX=no
11447     ;;
11448   sco*)
11449     archive_cmds_need_lc_CXX=no
11450     case $cc_basename in
11451       CC*)
11452         # FIXME: insert proper C++ library support
11453         ld_shlibs_CXX=no
11454         ;;
11455       *)
11456         # FIXME: insert proper C++ library support
11457         ld_shlibs_CXX=no
11458         ;;
11459     esac
11460     ;;
11461   sunos4*)
11462     case $cc_basename in
11463       CC*)
11464         # Sun C++ 4.x
11465         # FIXME: insert proper C++ library support
11466         ld_shlibs_CXX=no
11467         ;;
11468       lcc*)
11469         # Lucid
11470         # FIXME: insert proper C++ library support
11471         ld_shlibs_CXX=no
11472         ;;
11473       *)
11474         # FIXME: insert proper C++ library support
11475         ld_shlibs_CXX=no
11476         ;;
11477     esac
11478     ;;
11479   solaris*)
11480     case $cc_basename in
11481       CC*)
11482         # Sun C++ 4.2, 5.x and Centerline C++
11483         archive_cmds_need_lc_CXX=yes
11484         no_undefined_flag_CXX=' -zdefs'
11485         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11486         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11487         $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'
11489         hardcode_libdir_flag_spec_CXX='-R$libdir'
11490         hardcode_shlibpath_var_CXX=no
11491         case $host_os in
11492           solaris2.[0-5] | solaris2.[0-5].*) ;;
11493           *)
11494             # The C++ compiler is used as linker so we must use $wl
11495             # flag to pass the commands to the underlying system
11496             # linker. We must also pass each convience library through
11497             # to the system linker between allextract/defaultextract.
11498             # The C++ compiler will combine linker options so we
11499             # cannot just pass the convience library names through
11500             # without $wl.
11501             # Supported since Solaris 2.6 (maybe 2.5.1?)
11502             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11503             ;;
11504         esac
11505         link_all_deplibs_CXX=yes
11507         output_verbose_link_cmd='echo'
11509         # Archives containing C++ object files must be created using
11510         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11511         # necessary to make sure instantiated templates are included
11512         # in the archive.
11513         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11514         ;;
11515       gcx*)
11516         # Green Hills C++ Compiler
11517         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11519         # The C++ compiler must be used to create the archive.
11520         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11521         ;;
11522       *)
11523         # GNU C++ compiler with Solaris linker
11524         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11525           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11526           if $CC --version | grep -v '^2\.7' > /dev/null; then
11527             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11528             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11529                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11531             # Commands to make compiler produce verbose output that lists
11532             # what "hidden" libraries, object files and flags are used when
11533             # linking a shared library.
11534             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11535           else
11536             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11537             # platform.
11538             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11539             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11540                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11542             # Commands to make compiler produce verbose output that lists
11543             # what "hidden" libraries, object files and flags are used when
11544             # linking a shared library.
11545             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11546           fi
11548           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11549         fi
11550         ;;
11551     esac
11552     ;;
11553   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11554     archive_cmds_need_lc_CXX=no
11555     ;;
11556   tandem*)
11557     case $cc_basename in
11558       NCC*)
11559         # NonStop-UX NCC 3.20
11560         # FIXME: insert proper C++ library support
11561         ld_shlibs_CXX=no
11562         ;;
11563       *)
11564         # FIXME: insert proper C++ library support
11565         ld_shlibs_CXX=no
11566         ;;
11567     esac
11568     ;;
11569   vxworks*)
11570     # FIXME: insert proper C++ library support
11571     ld_shlibs_CXX=no
11572     ;;
11573   *)
11574     # FIXME: insert proper C++ library support
11575     ld_shlibs_CXX=no
11576     ;;
11577 esac
11578 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11579 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11580 test "$ld_shlibs_CXX" = no && can_build_shared=no
11582 GCC_CXX="$GXX"
11583 LD_CXX="$LD"
11585 ## CAVEAT EMPTOR:
11586 ## There is no encapsulation within the following macros, do not change
11587 ## the running order or otherwise move them around unless you know exactly
11588 ## what you are doing...
11590 cat > conftest.$ac_ext <<EOF
11591 class Foo
11593 public:
11594   Foo (void) { a = 0; }
11595 private:
11596   int a;
11600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11601   (eval $ac_compile) 2>&5
11602   ac_status=$?
11603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604   (exit $ac_status); }; then
11605   # Parse the compiler output and extract the necessary
11606   # objects, libraries and library flags.
11608   # Sentinel used to keep track of whether or not we are before
11609   # the conftest object file.
11610   pre_test_object_deps_done=no
11612   # The `*' in the case matches for architectures that use `case' in
11613   # $output_verbose_cmd can trigger glob expansion during the loop
11614   # eval without this substitution.
11615   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11617   for p in `eval $output_verbose_link_cmd`; do
11618     case $p in
11620     -L* | -R* | -l*)
11621        # Some compilers place space between "-{L,R}" and the path.
11622        # Remove the space.
11623        if test $p = "-L" \
11624           || test $p = "-R"; then
11625          prev=$p
11626          continue
11627        else
11628          prev=
11629        fi
11631        if test "$pre_test_object_deps_done" = no; then
11632          case $p in
11633          -L* | -R*)
11634            # Internal compiler library paths should come after those
11635            # provided the user.  The postdeps already come after the
11636            # user supplied libs so there is no need to process them.
11637            if test -z "$compiler_lib_search_path_CXX"; then
11638              compiler_lib_search_path_CXX="${prev}${p}"
11639            else
11640              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11641            fi
11642            ;;
11643          # The "-l" case would never come before the object being
11644          # linked, so don't bother handling this case.
11645          esac
11646        else
11647          if test -z "$postdeps_CXX"; then
11648            postdeps_CXX="${prev}${p}"
11649          else
11650            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11651          fi
11652        fi
11653        ;;
11655     *.$objext)
11656        # This assumes that the test object file only shows up
11657        # once in the compiler output.
11658        if test "$p" = "conftest.$objext"; then
11659          pre_test_object_deps_done=yes
11660          continue
11661        fi
11663        if test "$pre_test_object_deps_done" = no; then
11664          if test -z "$predep_objects_CXX"; then
11665            predep_objects_CXX="$p"
11666          else
11667            predep_objects_CXX="$predep_objects_CXX $p"
11668          fi
11669        else
11670          if test -z "$postdep_objects_CXX"; then
11671            postdep_objects_CXX="$p"
11672          else
11673            postdep_objects_CXX="$postdep_objects_CXX $p"
11674          fi
11675        fi
11676        ;;
11678     *) ;; # Ignore the rest.
11680     esac
11681   done
11683   # Clean up.
11684   rm -f a.out a.exe
11685 else
11686   echo "libtool.m4: error: problem compiling CXX test program"
11689 $rm -f confest.$objext
11691 # PORTME: override above test on systems where it is broken
11692 case $host_os in
11693 solaris*)
11694   case $cc_basename in
11695   CC*)
11696     # Adding this requires a known-good setup of shared libraries for
11697     # Sun compiler versions before 5.6, else PIC objects from an old
11698     # archive will be linked into the output, leading to subtle bugs.
11699     postdeps_CXX='-lCstd -lCrun'
11700     ;;
11701   esac
11702 esac
11705 case " $postdeps_CXX " in
11706 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11707 esac
11709 lt_prog_compiler_wl_CXX=
11710 lt_prog_compiler_pic_CXX=
11711 lt_prog_compiler_static_CXX=
11713 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11714 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11716   # C++ specific cases for pic, static, wl, etc.
11717   if test "$GXX" = yes; then
11718     lt_prog_compiler_wl_CXX='-Wl,'
11719     lt_prog_compiler_static_CXX='-static'
11721     case $host_os in
11722     aix*)
11723       # All AIX code is PIC.
11724       if test "$host_cpu" = ia64; then
11725         # AIX 5 now supports IA64 processor
11726         lt_prog_compiler_static_CXX='-Bstatic'
11727       fi
11728       ;;
11729     amigaos*)
11730       # FIXME: we need at least 68020 code to build shared libraries, but
11731       # adding the `-m68020' flag to GCC prevents building anything better,
11732       # like `-m68040'.
11733       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11734       ;;
11735     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11736       # PIC is the default for these OSes.
11737       ;;
11738     mingw* | os2* | pw32*)
11739       # This hack is so that the source file can tell whether it is being
11740       # built for inclusion in a dll (and should export symbols for example).
11741       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11742       ;;
11743     darwin* | rhapsody*)
11744       # PIC is the default on this platform
11745       # Common symbols not allowed in MH_DYLIB files
11746       lt_prog_compiler_pic_CXX='-fno-common'
11747       ;;
11748     *djgpp*)
11749       # DJGPP does not support shared libraries at all
11750       lt_prog_compiler_pic_CXX=
11751       ;;
11752     sysv4*MP*)
11753       if test -d /usr/nec; then
11754         lt_prog_compiler_pic_CXX=-Kconform_pic
11755       fi
11756       ;;
11757     hpux*)
11758       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11759       # not for PA HP-UX.
11760       case $host_cpu in
11761       hppa*64*|ia64*)
11762         ;;
11763       *)
11764         lt_prog_compiler_pic_CXX='-fPIC'
11765         ;;
11766       esac
11767       ;;
11768     *)
11769       lt_prog_compiler_pic_CXX='-fPIC'
11770       ;;
11771     esac
11772   else
11773     case $host_os in
11774       aix4* | aix5*)
11775         # All AIX code is PIC.
11776         if test "$host_cpu" = ia64; then
11777           # AIX 5 now supports IA64 processor
11778           lt_prog_compiler_static_CXX='-Bstatic'
11779         else
11780           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11781         fi
11782         ;;
11783       chorus*)
11784         case $cc_basename in
11785         cxch68*)
11786           # Green Hills C++ Compiler
11787           # _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"
11788           ;;
11789         esac
11790         ;;
11791        darwin*)
11792          # PIC is the default on this platform
11793          # Common symbols not allowed in MH_DYLIB files
11794          case $cc_basename in
11795            xlc*)
11796            lt_prog_compiler_pic_CXX='-qnocommon'
11797            lt_prog_compiler_wl_CXX='-Wl,'
11798            ;;
11799          esac
11800        ;;
11801       dgux*)
11802         case $cc_basename in
11803           ec++*)
11804             lt_prog_compiler_pic_CXX='-KPIC'
11805             ;;
11806           ghcx*)
11807             # Green Hills C++ Compiler
11808             lt_prog_compiler_pic_CXX='-pic'
11809             ;;
11810           *)
11811             ;;
11812         esac
11813         ;;
11814       freebsd* | kfreebsd*-gnu | dragonfly*)
11815         # FreeBSD uses GNU C++
11816         ;;
11817       hpux9* | hpux10* | hpux11*)
11818         case $cc_basename in
11819           CC*)
11820             lt_prog_compiler_wl_CXX='-Wl,'
11821             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11822             if test "$host_cpu" != ia64; then
11823               lt_prog_compiler_pic_CXX='+Z'
11824             fi
11825             ;;
11826           aCC*)
11827             lt_prog_compiler_wl_CXX='-Wl,'
11828             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11829             case $host_cpu in
11830             hppa*64*|ia64*)
11831               # +Z the default
11832               ;;
11833             *)
11834               lt_prog_compiler_pic_CXX='+Z'
11835               ;;
11836             esac
11837             ;;
11838           *)
11839             ;;
11840         esac
11841         ;;
11842       irix5* | irix6* | nonstopux*)
11843         case $cc_basename in
11844           CC*)
11845             lt_prog_compiler_wl_CXX='-Wl,'
11846             lt_prog_compiler_static_CXX='-non_shared'
11847             # CC pic flag -KPIC is the default.
11848             ;;
11849           *)
11850             ;;
11851         esac
11852         ;;
11853       linux*)
11854         case $cc_basename in
11855           KCC*)
11856             # KAI C++ Compiler
11857             lt_prog_compiler_wl_CXX='--backend -Wl,'
11858             lt_prog_compiler_pic_CXX='-fPIC'
11859             ;;
11860           icpc* | ecpc*)
11861             # Intel C++
11862             lt_prog_compiler_wl_CXX='-Wl,'
11863             lt_prog_compiler_pic_CXX='-KPIC'
11864             lt_prog_compiler_static_CXX='-static'
11865             ;;
11866           pgCC*)
11867             # Portland Group C++ compiler.
11868             lt_prog_compiler_wl_CXX='-Wl,'
11869             lt_prog_compiler_pic_CXX='-fpic'
11870             lt_prog_compiler_static_CXX='-Bstatic'
11871             ;;
11872           cxx*)
11873             # Compaq C++
11874             # Make sure the PIC flag is empty.  It appears that all Alpha
11875             # Linux and Compaq Tru64 Unix objects are PIC.
11876             lt_prog_compiler_pic_CXX=
11877             lt_prog_compiler_static_CXX='-non_shared'
11878             ;;
11879           *)
11880             ;;
11881         esac
11882         ;;
11883       lynxos*)
11884         ;;
11885       m88k*)
11886         ;;
11887       mvs*)
11888         case $cc_basename in
11889           cxx*)
11890             lt_prog_compiler_pic_CXX='-W c,exportall'
11891             ;;
11892           *)
11893             ;;
11894         esac
11895         ;;
11896       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11897         ;;
11898       osf3* | osf4* | osf5*)
11899         case $cc_basename in
11900           KCC*)
11901             lt_prog_compiler_wl_CXX='--backend -Wl,'
11902             ;;
11903           RCC*)
11904             # Rational C++ 2.4.1
11905             lt_prog_compiler_pic_CXX='-pic'
11906             ;;
11907           cxx*)
11908             # Digital/Compaq C++
11909             lt_prog_compiler_wl_CXX='-Wl,'
11910             # Make sure the PIC flag is empty.  It appears that all Alpha
11911             # Linux and Compaq Tru64 Unix objects are PIC.
11912             lt_prog_compiler_pic_CXX=
11913             lt_prog_compiler_static_CXX='-non_shared'
11914             ;;
11915           *)
11916             ;;
11917         esac
11918         ;;
11919       psos*)
11920         ;;
11921       sco*)
11922         case $cc_basename in
11923           CC*)
11924             lt_prog_compiler_pic_CXX='-fPIC'
11925             ;;
11926           *)
11927             ;;
11928         esac
11929         ;;
11930       solaris*)
11931         case $cc_basename in
11932           CC*)
11933             # Sun C++ 4.2, 5.x and Centerline C++
11934             lt_prog_compiler_pic_CXX='-KPIC'
11935             lt_prog_compiler_static_CXX='-Bstatic'
11936             lt_prog_compiler_wl_CXX='-Qoption ld '
11937             ;;
11938           gcx*)
11939             # Green Hills C++ Compiler
11940             lt_prog_compiler_pic_CXX='-PIC'
11941             ;;
11942           *)
11943             ;;
11944         esac
11945         ;;
11946       sunos4*)
11947         case $cc_basename in
11948           CC*)
11949             # Sun C++ 4.x
11950             lt_prog_compiler_pic_CXX='-pic'
11951             lt_prog_compiler_static_CXX='-Bstatic'
11952             ;;
11953           lcc*)
11954             # Lucid
11955             lt_prog_compiler_pic_CXX='-pic'
11956             ;;
11957           *)
11958             ;;
11959         esac
11960         ;;
11961       tandem*)
11962         case $cc_basename in
11963           NCC*)
11964             # NonStop-UX NCC 3.20
11965             lt_prog_compiler_pic_CXX='-KPIC'
11966             ;;
11967           *)
11968             ;;
11969         esac
11970         ;;
11971       unixware*)
11972         ;;
11973       vxworks*)
11974         ;;
11975       *)
11976         lt_prog_compiler_can_build_shared_CXX=no
11977         ;;
11978     esac
11979   fi
11981 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11982 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11985 # Check to make sure the PIC flag actually works.
11987 if test -n "$lt_prog_compiler_pic_CXX"; then
11988   
11989 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11990 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11991 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11992   echo $ECHO_N "(cached) $ECHO_C" >&6
11993 else
11994   lt_prog_compiler_pic_works_CXX=no
11995   ac_outfile=conftest.$ac_objext
11996    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11997    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11998    # Insert the option either (1) after the last *FLAGS variable, or
11999    # (2) before a word containing "conftest.", or (3) at the end.
12000    # Note that $ac_compile itself does not contain backslashes and begins
12001    # with a dollar sign (not a hyphen), so the echo should work correctly.
12002    # The option is referenced via a variable to avoid confusing sed.
12003    lt_compile=`echo "$ac_compile" | $SED \
12004    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12005    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12006    -e 's:$: $lt_compiler_flag:'`
12007    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12008    (eval "$lt_compile" 2>conftest.err)
12009    ac_status=$?
12010    cat conftest.err >&5
12011    echo "$as_me:__oline__: \$? = $ac_status" >&5
12012    if (exit $ac_status) && test -s "$ac_outfile"; then
12013      # The compiler can only warn and ignore the option if not recognized
12014      # So say no if there are warnings other than the usual output.
12015      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12016      $SED '/^$/d' conftest.err >conftest.er2
12017      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12018        lt_prog_compiler_pic_works_CXX=yes
12019      fi
12020    fi
12021    $rm conftest*
12024 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12025 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12027 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12028     case $lt_prog_compiler_pic_CXX in
12029      "" | " "*) ;;
12030      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12031      esac
12032 else
12033     lt_prog_compiler_pic_CXX=
12034      lt_prog_compiler_can_build_shared_CXX=no
12038 case $host_os in
12039   # For platforms which do not support PIC, -DPIC is meaningless:
12040   *djgpp*)
12041     lt_prog_compiler_pic_CXX=
12042     ;;
12043   *)
12044     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12045     ;;
12046 esac
12048 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12049 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12050 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12051   echo $ECHO_N "(cached) $ECHO_C" >&6
12052 else
12053   lt_cv_prog_compiler_c_o_CXX=no
12054    $rm -r conftest 2>/dev/null
12055    mkdir conftest
12056    cd conftest
12057    mkdir out
12058    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12060    lt_compiler_flag="-o out/conftest2.$ac_objext"
12061    # Insert the option either (1) after the last *FLAGS variable, or
12062    # (2) before a word containing "conftest.", or (3) at the end.
12063    # Note that $ac_compile itself does not contain backslashes and begins
12064    # with a dollar sign (not a hyphen), so the echo should work correctly.
12065    lt_compile=`echo "$ac_compile" | $SED \
12066    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12067    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12068    -e 's:$: $lt_compiler_flag:'`
12069    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12070    (eval "$lt_compile" 2>out/conftest.err)
12071    ac_status=$?
12072    cat out/conftest.err >&5
12073    echo "$as_me:__oline__: \$? = $ac_status" >&5
12074    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12075    then
12076      # The compiler can only warn and ignore the option if not recognized
12077      # So say no if there are warnings
12078      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
12079      $SED '/^$/d' out/conftest.err >out/conftest.er2
12080      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12081        lt_cv_prog_compiler_c_o_CXX=yes
12082      fi
12083    fi
12084    chmod u+w . 2>&5
12085    $rm conftest*
12086    # SGI C++ compiler will create directory out/ii_files/ for
12087    # template instantiation
12088    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12089    $rm out/* && rmdir out
12090    cd ..
12091    rmdir conftest
12092    $rm conftest*
12095 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12096 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12099 hard_links="nottested"
12100 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12101   # do not overwrite the value of need_locks provided by the user
12102   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12103 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12104   hard_links=yes
12105   $rm conftest*
12106   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12107   touch conftest.a
12108   ln conftest.a conftest.b 2>&5 || hard_links=no
12109   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12110   { echo "$as_me:$LINENO: result: $hard_links" >&5
12111 echo "${ECHO_T}$hard_links" >&6; }
12112   if test "$hard_links" = no; then
12113     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12114 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12115     need_locks=warn
12116   fi
12117 else
12118   need_locks=no
12121 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12122 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12124   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12125   case $host_os in
12126   aix4* | aix5*)
12127     # If we're using GNU nm, then we don't want the "-C" option.
12128     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12129     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12130       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'
12131     else
12132       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'
12133     fi
12134     ;;
12135   pw32*)
12136     export_symbols_cmds_CXX="$ltdll_cmds"
12137   ;;
12138   cygwin* | mingw*)
12139     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'
12140   ;;
12141   linux*)
12142     link_all_deplibs_CXX=no
12143   ;;
12144   *)
12145     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12146   ;;
12147   esac
12149 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12150 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12151 test "$ld_shlibs_CXX" = no && can_build_shared=no
12153 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12154 if test "$GCC" = yes; then
12155   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12159 # Do we need to explicitly link libc?
12161 case "x$archive_cmds_need_lc_CXX" in
12162 x|xyes)
12163   # Assume -lc should be added
12164   archive_cmds_need_lc_CXX=yes
12166   if test "$enable_shared" = yes && test "$GCC" = yes; then
12167     case $archive_cmds_CXX in
12168     *'~'*)
12169       # FIXME: we may have to deal with multi-command sequences.
12170       ;;
12171     '$CC '*)
12172       # Test whether the compiler implicitly links with -lc since on some
12173       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12174       # to ld, don't add -lc before -lgcc.
12175       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12176 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12177       $rm conftest*
12178       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12180       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12181   (eval $ac_compile) 2>&5
12182   ac_status=$?
12183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); } 2>conftest.err; then
12185         soname=conftest
12186         lib=conftest
12187         libobjs=conftest.$ac_objext
12188         deplibs=
12189         wl=$lt_prog_compiler_wl_CXX
12190         compiler_flags=-v
12191         linker_flags=-v
12192         verstring=
12193         output_objdir=.
12194         libname=conftest
12195         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12196         allow_undefined_flag_CXX=
12197         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12198   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12199   ac_status=$?
12200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201   (exit $ac_status); }
12202         then
12203           archive_cmds_need_lc_CXX=no
12204         else
12205           archive_cmds_need_lc_CXX=yes
12206         fi
12207         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12208       else
12209         cat conftest.err 1>&5
12210       fi
12211       $rm conftest*
12212       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12213 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12214       ;;
12215     esac
12216   fi
12217   ;;
12218 esac
12220 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12221 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12222 library_names_spec=
12223 libname_spec='lib$name'
12224 soname_spec=
12225 shrext_cmds=".so"
12226 postinstall_cmds=
12227 postuninstall_cmds=
12228 finish_cmds=
12229 finish_eval=
12230 shlibpath_var=
12231 shlibpath_overrides_runpath=unknown
12232 version_type=none
12233 dynamic_linker="$host_os ld.so"
12234 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12235 if test "$GCC" = yes; then
12236   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12237   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12238     # if the path contains ";" then we assume it to be the separator
12239     # otherwise default to the standard path separator (i.e. ":") - it is
12240     # assumed that no part of a normal pathname contains ";" but that should
12241     # okay in the real world where ";" in dirpaths is itself problematic.
12242     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12243   else
12244     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12245   fi
12246 else
12247   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12249 need_lib_prefix=unknown
12250 hardcode_into_libs=no
12252 # when you set need_version to no, make sure it does not cause -set_version
12253 # flags to be left without arguments
12254 need_version=unknown
12256 case $host_os in
12257 aix3*)
12258   version_type=linux
12259   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12260   shlibpath_var=LIBPATH
12262   # AIX 3 has no versioning support, so we append a major version to the name.
12263   soname_spec='${libname}${release}${shared_ext}$major'
12264   ;;
12266 aix4* | aix5*)
12267   version_type=linux
12268   need_lib_prefix=no
12269   need_version=no
12270   hardcode_into_libs=yes
12271   if test "$host_cpu" = ia64; then
12272     # AIX 5 supports IA64
12273     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12274     shlibpath_var=LD_LIBRARY_PATH
12275   else
12276     # With GCC up to 2.95.x, collect2 would create an import file
12277     # for dependence libraries.  The import file would start with
12278     # the line `#! .'.  This would cause the generated library to
12279     # depend on `.', always an invalid library.  This was fixed in
12280     # development snapshots of GCC prior to 3.0.
12281     case $host_os in
12282       aix4 | aix4.[01] | aix4.[01].*)
12283       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12284            echo ' yes '
12285            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12286         :
12287       else
12288         can_build_shared=no
12289       fi
12290       ;;
12291     esac
12292     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12293     # soname into executable. Probably we can add versioning support to
12294     # collect2, so additional links can be useful in future.
12295     if test "$aix_use_runtimelinking" = yes; then
12296       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12297       # instead of lib<name>.a to let people know that these are not
12298       # typical AIX shared libraries.
12299       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12300     else
12301       # We preserve .a as extension for shared libraries through AIX4.2
12302       # and later when we are not doing run time linking.
12303       library_names_spec='${libname}${release}.a $libname.a'
12304       soname_spec='${libname}${release}${shared_ext}$major'
12305     fi
12306     shlibpath_var=LIBPATH
12307   fi
12308   ;;
12310 amigaos*)
12311   library_names_spec='$libname.ixlibrary $libname.a'
12312   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12313   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'
12314   ;;
12316 beos*)
12317   library_names_spec='${libname}${shared_ext}'
12318   dynamic_linker="$host_os ld.so"
12319   shlibpath_var=LIBRARY_PATH
12320   ;;
12322 bsdi[45]*)
12323   version_type=linux
12324   need_version=no
12325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12326   soname_spec='${libname}${release}${shared_ext}$major'
12327   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12328   shlibpath_var=LD_LIBRARY_PATH
12329   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12330   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12331   # the default ld.so.conf also contains /usr/contrib/lib and
12332   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12333   # libtool to hard-code these into programs
12334   ;;
12336 cygwin* | mingw* | pw32*)
12337   version_type=windows
12338   shrext_cmds=".dll"
12339   need_version=no
12340   need_lib_prefix=no
12342   case $GCC,$host_os in
12343   yes,cygwin* | yes,mingw* | yes,pw32*)
12344     library_names_spec='$libname.dll.a'
12345     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12346     postinstall_cmds='base_file=`basename \${file}`~
12347       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12348       dldir=$destdir/`dirname \$dlpath`~
12349       test -d \$dldir || mkdir -p \$dldir~
12350       $install_prog $dir/$dlname \$dldir/$dlname~
12351       chmod a+x \$dldir/$dlname'
12352     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12353       dlpath=$dir/\$dldll~
12354        $rm \$dlpath'
12355     shlibpath_overrides_runpath=yes
12357     case $host_os in
12358     cygwin*)
12359       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12360       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12361       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12362       ;;
12363     mingw*)
12364       # MinGW DLLs use traditional 'lib' prefix
12365       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12366       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12367       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12368         # It is most probably a Windows format PATH printed by
12369         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12370         # path with ; separators, and with drive letters. We can handle the
12371         # drive letters (cygwin fileutils understands them), so leave them,
12372         # especially as we might pass files found there to a mingw objdump,
12373         # which wouldn't understand a cygwinified path. Ahh.
12374         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12375       else
12376         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12377       fi
12378       ;;
12379     pw32*)
12380       # pw32 DLLs use 'pw' prefix rather than 'lib'
12381       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12382       ;;
12383     esac
12384     ;;
12386   *)
12387     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12388     ;;
12389   esac
12390   dynamic_linker='Win32 ld.exe'
12391   # FIXME: first we should search . and the directory the executable is in
12392   shlibpath_var=PATH
12393   ;;
12395 darwin* | rhapsody*)
12396   dynamic_linker="$host_os dyld"
12397   version_type=darwin
12398   need_lib_prefix=no
12399   need_version=no
12400   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12401   soname_spec='${libname}${release}${major}$shared_ext'
12402   shlibpath_overrides_runpath=yes
12403   shlibpath_var=DYLD_LIBRARY_PATH
12404   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12405   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12406   if test "$GCC" = yes; then
12407     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12408   else
12409     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12410   fi
12411   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12412   ;;
12414 dgux*)
12415   version_type=linux
12416   need_lib_prefix=no
12417   need_version=no
12418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12419   soname_spec='${libname}${release}${shared_ext}$major'
12420   shlibpath_var=LD_LIBRARY_PATH
12421   ;;
12423 freebsd1*)
12424   dynamic_linker=no
12425   ;;
12427 kfreebsd*-gnu)
12428   version_type=linux
12429   need_lib_prefix=no
12430   need_version=no
12431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12432   soname_spec='${libname}${release}${shared_ext}$major'
12433   shlibpath_var=LD_LIBRARY_PATH
12434   shlibpath_overrides_runpath=no
12435   hardcode_into_libs=yes
12436   dynamic_linker='GNU ld.so'
12437   ;;
12439 freebsd* | dragonfly*)
12440   # DragonFly does not have aout.  When/if they implement a new
12441   # versioning mechanism, adjust this.
12442   if test -x /usr/bin/objformat; then
12443     objformat=`/usr/bin/objformat`
12444   else
12445     case $host_os in
12446     freebsd[123]*) objformat=aout ;;
12447     *) objformat=elf ;;
12448     esac
12449   fi
12450   version_type=freebsd-$objformat
12451   case $version_type in
12452     freebsd-elf*)
12453       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12454       need_version=no
12455       need_lib_prefix=no
12456       ;;
12457     freebsd-*)
12458       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12459       need_version=yes
12460       ;;
12461   esac
12462   shlibpath_var=LD_LIBRARY_PATH
12463   case $host_os in
12464   freebsd2*)
12465     shlibpath_overrides_runpath=yes
12466     ;;
12467   freebsd3.[01]* | freebsdelf3.[01]*)
12468     shlibpath_overrides_runpath=yes
12469     hardcode_into_libs=yes
12470     ;;
12471   *) # from 3.2 on
12472     shlibpath_overrides_runpath=no
12473     hardcode_into_libs=yes
12474     ;;
12475   esac
12476   ;;
12478 gnu*)
12479   version_type=linux
12480   need_lib_prefix=no
12481   need_version=no
12482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12483   soname_spec='${libname}${release}${shared_ext}$major'
12484   shlibpath_var=LD_LIBRARY_PATH
12485   hardcode_into_libs=yes
12486   ;;
12488 hpux9* | hpux10* | hpux11*)
12489   # Give a soname corresponding to the major version so that dld.sl refuses to
12490   # link against other versions.
12491   version_type=sunos
12492   need_lib_prefix=no
12493   need_version=no
12494   case $host_cpu in
12495   ia64*)
12496     shrext_cmds='.so'
12497     hardcode_into_libs=yes
12498     dynamic_linker="$host_os dld.so"
12499     shlibpath_var=LD_LIBRARY_PATH
12500     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12501     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12502     soname_spec='${libname}${release}${shared_ext}$major'
12503     if test "X$HPUX_IA64_MODE" = X32; then
12504       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12505     else
12506       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12507     fi
12508     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12509     ;;
12510    hppa*64*)
12511      shrext_cmds='.sl'
12512      hardcode_into_libs=yes
12513      dynamic_linker="$host_os dld.sl"
12514      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12515      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12516      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12517      soname_spec='${libname}${release}${shared_ext}$major'
12518      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12519      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12520      ;;
12521    *)
12522     shrext_cmds='.sl'
12523     dynamic_linker="$host_os dld.sl"
12524     shlibpath_var=SHLIB_PATH
12525     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12526     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12527     soname_spec='${libname}${release}${shared_ext}$major'
12528     ;;
12529   esac
12530   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12531   postinstall_cmds='chmod 555 $lib'
12532   ;;
12534 irix5* | irix6* | nonstopux*)
12535   case $host_os in
12536     nonstopux*) version_type=nonstopux ;;
12537     *)
12538         if test "$lt_cv_prog_gnu_ld" = yes; then
12539                 version_type=linux
12540         else
12541                 version_type=irix
12542         fi ;;
12543   esac
12544   need_lib_prefix=no
12545   need_version=no
12546   soname_spec='${libname}${release}${shared_ext}$major'
12547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12548   case $host_os in
12549   irix5* | nonstopux*)
12550     libsuff= shlibsuff=
12551     ;;
12552   *)
12553     case $LD in # libtool.m4 will add one of these switches to LD
12554     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12555       libsuff= shlibsuff= libmagic=32-bit;;
12556     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12557       libsuff=32 shlibsuff=N32 libmagic=N32;;
12558     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12559       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12560     *) libsuff= shlibsuff= libmagic=never-match;;
12561     esac
12562     ;;
12563   esac
12564   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12565   shlibpath_overrides_runpath=no
12566   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12567   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12568   hardcode_into_libs=yes
12569   ;;
12571 # No shared lib support for Linux oldld, aout, or coff.
12572 linux*oldld* | linux*aout* | linux*coff*)
12573   dynamic_linker=no
12574   ;;
12576 # This must be Linux ELF.
12577 linux*)
12578   version_type=linux
12579   need_lib_prefix=no
12580   need_version=no
12581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12582   soname_spec='${libname}${release}${shared_ext}$major'
12583   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12584   shlibpath_var=LD_LIBRARY_PATH
12585   shlibpath_overrides_runpath=no
12586   # This implies no fast_install, which is unacceptable.
12587   # Some rework will be needed to allow for fast_install
12588   # before this can be enabled.
12589   hardcode_into_libs=yes
12591   # Append ld.so.conf contents to the search path
12592   if test -f /etc/ld.so.conf; then
12593     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12594     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12595   fi
12597   # We used to test for /lib/ld.so.1 and disable shared libraries on
12598   # powerpc, because MkLinux only supported shared libraries with the
12599   # GNU dynamic linker.  Since this was broken with cross compilers,
12600   # most powerpc-linux boxes support dynamic linking these days and
12601   # people can always --disable-shared, the test was removed, and we
12602   # assume the GNU/Linux dynamic linker is in use.
12603   dynamic_linker='GNU/Linux ld.so'
12604   ;;
12606 netbsdelf*-gnu)
12607   version_type=linux
12608   need_lib_prefix=no
12609   need_version=no
12610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12611   soname_spec='${libname}${release}${shared_ext}$major'
12612   shlibpath_var=LD_LIBRARY_PATH
12613   shlibpath_overrides_runpath=no
12614   hardcode_into_libs=yes
12615   dynamic_linker='NetBSD ld.elf_so'
12616   ;;
12618 knetbsd*-gnu)
12619   version_type=linux
12620   need_lib_prefix=no
12621   need_version=no
12622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12623   soname_spec='${libname}${release}${shared_ext}$major'
12624   shlibpath_var=LD_LIBRARY_PATH
12625   shlibpath_overrides_runpath=no
12626   hardcode_into_libs=yes
12627   dynamic_linker='GNU ld.so'
12628   ;;
12630 netbsd*)
12631   version_type=sunos
12632   need_lib_prefix=no
12633   need_version=no
12634   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12635     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12636     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12637     dynamic_linker='NetBSD (a.out) ld.so'
12638   else
12639     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12640     soname_spec='${libname}${release}${shared_ext}$major'
12641     dynamic_linker='NetBSD ld.elf_so'
12642   fi
12643   shlibpath_var=LD_LIBRARY_PATH
12644   shlibpath_overrides_runpath=yes
12645   hardcode_into_libs=yes
12646   ;;
12648 newsos6)
12649   version_type=linux
12650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12651   shlibpath_var=LD_LIBRARY_PATH
12652   shlibpath_overrides_runpath=yes
12653   ;;
12655 nto-qnx*)
12656   version_type=linux
12657   need_lib_prefix=no
12658   need_version=no
12659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12660   soname_spec='${libname}${release}${shared_ext}$major'
12661   shlibpath_var=LD_LIBRARY_PATH
12662   shlibpath_overrides_runpath=yes
12663   ;;
12665 openbsd*)
12666   version_type=sunos
12667   need_lib_prefix=no
12668   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12669   case $host_os in
12670     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12671     *)                         need_version=no  ;;
12672   esac
12673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12674   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12675   shlibpath_var=LD_LIBRARY_PATH
12676   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12677     case $host_os in
12678       openbsd2.[89] | openbsd2.[89].*)
12679         shlibpath_overrides_runpath=no
12680         ;;
12681       *)
12682         shlibpath_overrides_runpath=yes
12683         ;;
12684       esac
12685   else
12686     shlibpath_overrides_runpath=yes
12687   fi
12688   ;;
12690 os2*)
12691   libname_spec='$name'
12692   shrext_cmds=".dll"
12693   need_lib_prefix=no
12694   library_names_spec='$libname${shared_ext} $libname.a'
12695   dynamic_linker='OS/2 ld.exe'
12696   shlibpath_var=LIBPATH
12697   ;;
12699 osf3* | osf4* | osf5*)
12700   version_type=osf
12701   need_lib_prefix=no
12702   need_version=no
12703   soname_spec='${libname}${release}${shared_ext}$major'
12704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12705   shlibpath_var=LD_LIBRARY_PATH
12706   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12707   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12708   ;;
12710 sco3.2v5*)
12711   version_type=osf
12712   soname_spec='${libname}${release}${shared_ext}$major'
12713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12714   shlibpath_var=LD_LIBRARY_PATH
12715   ;;
12717 solaris*)
12718   version_type=linux
12719   need_lib_prefix=no
12720   need_version=no
12721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12722   soname_spec='${libname}${release}${shared_ext}$major'
12723   shlibpath_var=LD_LIBRARY_PATH
12724   shlibpath_overrides_runpath=yes
12725   hardcode_into_libs=yes
12726   # ldd complains unless libraries are executable
12727   postinstall_cmds='chmod +x $lib'
12728   ;;
12730 sunos4*)
12731   version_type=sunos
12732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12733   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12734   shlibpath_var=LD_LIBRARY_PATH
12735   shlibpath_overrides_runpath=yes
12736   if test "$with_gnu_ld" = yes; then
12737     need_lib_prefix=no
12738   fi
12739   need_version=yes
12740   ;;
12742 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12743   version_type=linux
12744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12745   soname_spec='${libname}${release}${shared_ext}$major'
12746   shlibpath_var=LD_LIBRARY_PATH
12747   case $host_vendor in
12748     sni)
12749       shlibpath_overrides_runpath=no
12750       need_lib_prefix=no
12751       export_dynamic_flag_spec='${wl}-Blargedynsym'
12752       runpath_var=LD_RUN_PATH
12753       ;;
12754     siemens)
12755       need_lib_prefix=no
12756       ;;
12757     motorola)
12758       need_lib_prefix=no
12759       need_version=no
12760       shlibpath_overrides_runpath=no
12761       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12762       ;;
12763   esac
12764   ;;
12766 sysv4*MP*)
12767   if test -d /usr/nec ;then
12768     version_type=linux
12769     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12770     soname_spec='$libname${shared_ext}.$major'
12771     shlibpath_var=LD_LIBRARY_PATH
12772   fi
12773   ;;
12775 uts4*)
12776   version_type=linux
12777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12778   soname_spec='${libname}${release}${shared_ext}$major'
12779   shlibpath_var=LD_LIBRARY_PATH
12780   ;;
12783   dynamic_linker=no
12784   ;;
12785 esac
12786 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12787 echo "${ECHO_T}$dynamic_linker" >&6; }
12788 test "$dynamic_linker" = no && can_build_shared=no
12790 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12791 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12792 hardcode_action_CXX=
12793 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12794    test -n "$runpath_var_CXX" || \
12795    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12797   # We can hardcode non-existant directories.
12798   if test "$hardcode_direct_CXX" != no &&
12799      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12800      # have to relink, otherwise we might link with an installed library
12801      # when we should be linking with a yet-to-be-installed one
12802      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12803      test "$hardcode_minus_L_CXX" != no; then
12804     # Linking always hardcodes the temporary library directory.
12805     hardcode_action_CXX=relink
12806   else
12807     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12808     hardcode_action_CXX=immediate
12809   fi
12810 else
12811   # We cannot hardcode anything, or else we can only hardcode existing
12812   # directories.
12813   hardcode_action_CXX=unsupported
12815 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12816 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12818 if test "$hardcode_action_CXX" = relink; then
12819   # Fast installation is not supported
12820   enable_fast_install=no
12821 elif test "$shlibpath_overrides_runpath" = yes ||
12822      test "$enable_shared" = no; then
12823   # Fast installation is not necessary
12824   enable_fast_install=needless
12827 striplib=
12828 old_striplib=
12829 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12830 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12831 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12832   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12833   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12834   { echo "$as_me:$LINENO: result: yes" >&5
12835 echo "${ECHO_T}yes" >&6; }
12836 else
12837 # FIXME - insert some real tests, host_os isn't really good enough
12838   case $host_os in
12839    darwin*)
12840        if test -n "$STRIP" ; then
12841          striplib="$STRIP -x"
12842          { echo "$as_me:$LINENO: result: yes" >&5
12843 echo "${ECHO_T}yes" >&6; }
12844        else
12845   { echo "$as_me:$LINENO: result: no" >&5
12846 echo "${ECHO_T}no" >&6; }
12848        ;;
12849    *)
12850   { echo "$as_me:$LINENO: result: no" >&5
12851 echo "${ECHO_T}no" >&6; }
12852     ;;
12853   esac
12856 if test "x$enable_dlopen" != xyes; then
12857   enable_dlopen=unknown
12858   enable_dlopen_self=unknown
12859   enable_dlopen_self_static=unknown
12860 else
12861   lt_cv_dlopen=no
12862   lt_cv_dlopen_libs=
12864   case $host_os in
12865   beos*)
12866     lt_cv_dlopen="load_add_on"
12867     lt_cv_dlopen_libs=
12868     lt_cv_dlopen_self=yes
12869     ;;
12871   mingw* | pw32*)
12872     lt_cv_dlopen="LoadLibrary"
12873     lt_cv_dlopen_libs=
12874    ;;
12876   cygwin*)
12877     lt_cv_dlopen="dlopen"
12878     lt_cv_dlopen_libs=
12879    ;;
12881   darwin*)
12882   # if libdl is installed we need to link against it
12883     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12884 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12885 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12886   echo $ECHO_N "(cached) $ECHO_C" >&6
12887 else
12888   ac_check_lib_save_LIBS=$LIBS
12889 LIBS="-ldl  $LIBS"
12890 cat >conftest.$ac_ext <<_ACEOF
12891 /* confdefs.h.  */
12892 _ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h.  */
12897 /* Override any GCC internal prototype to avoid an error.
12898    Use char because int might match the return type of a GCC
12899    builtin and then its argument prototype would still apply.  */
12900 #ifdef __cplusplus
12901 extern "C"
12902 #endif
12903 char dlopen ();
12905 main ()
12907 return dlopen ();
12908   ;
12909   return 0;
12911 _ACEOF
12912 rm -f conftest.$ac_objext conftest$ac_exeext
12913 if { (ac_try="$ac_link"
12914 case "(($ac_try" in
12915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916   *) ac_try_echo=$ac_try;;
12917 esac
12918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919   (eval "$ac_link") 2>conftest.er1
12920   ac_status=$?
12921   grep -v '^ *+' conftest.er1 >conftest.err
12922   rm -f conftest.er1
12923   cat conftest.err >&5
12924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925   (exit $ac_status); } && {
12926          test -z "$ac_cxx_werror_flag" ||
12927          test ! -s conftest.err
12928        } && test -s conftest$ac_exeext &&
12929        $as_test_x conftest$ac_exeext; then
12930   ac_cv_lib_dl_dlopen=yes
12931 else
12932   echo "$as_me: failed program was:" >&5
12933 sed 's/^/| /' conftest.$ac_ext >&5
12935         ac_cv_lib_dl_dlopen=no
12938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12939       conftest$ac_exeext conftest.$ac_ext
12940 LIBS=$ac_check_lib_save_LIBS
12942 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12943 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12944 if test $ac_cv_lib_dl_dlopen = yes; then
12945   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12946 else
12947   
12948     lt_cv_dlopen="dyld"
12949     lt_cv_dlopen_libs=
12950     lt_cv_dlopen_self=yes
12951     
12954    ;;
12956   *)
12957     { echo "$as_me:$LINENO: checking for shl_load" >&5
12958 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12959 if test "${ac_cv_func_shl_load+set}" = set; then
12960   echo $ECHO_N "(cached) $ECHO_C" >&6
12961 else
12962   cat >conftest.$ac_ext <<_ACEOF
12963 /* confdefs.h.  */
12964 _ACEOF
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h.  */
12968 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12970 #define shl_load innocuous_shl_load
12972 /* System header to define __stub macros and hopefully few prototypes,
12973     which can conflict with char shl_load (); below.
12974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12975     <limits.h> exists even on freestanding compilers.  */
12977 #ifdef __STDC__
12978 # include <limits.h>
12979 #else
12980 # include <assert.h>
12981 #endif
12983 #undef shl_load
12985 /* Override any GCC internal prototype to avoid an error.
12986    Use char because int might match the return type of a GCC
12987    builtin and then its argument prototype would still apply.  */
12988 #ifdef __cplusplus
12989 extern "C"
12990 #endif
12991 char shl_load ();
12992 /* The GNU C library defines this for functions which it implements
12993     to always fail with ENOSYS.  Some functions are actually named
12994     something starting with __ and the normal name is an alias.  */
12995 #if defined __stub_shl_load || defined __stub___shl_load
12996 choke me
12997 #endif
13000 main ()
13002 return shl_load ();
13003   ;
13004   return 0;
13006 _ACEOF
13007 rm -f conftest.$ac_objext conftest$ac_exeext
13008 if { (ac_try="$ac_link"
13009 case "(($ac_try" in
13010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011   *) ac_try_echo=$ac_try;;
13012 esac
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014   (eval "$ac_link") 2>conftest.er1
13015   ac_status=$?
13016   grep -v '^ *+' conftest.er1 >conftest.err
13017   rm -f conftest.er1
13018   cat conftest.err >&5
13019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020   (exit $ac_status); } && {
13021          test -z "$ac_cxx_werror_flag" ||
13022          test ! -s conftest.err
13023        } && test -s conftest$ac_exeext &&
13024        $as_test_x conftest$ac_exeext; then
13025   ac_cv_func_shl_load=yes
13026 else
13027   echo "$as_me: failed program was:" >&5
13028 sed 's/^/| /' conftest.$ac_ext >&5
13030         ac_cv_func_shl_load=no
13033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13034       conftest$ac_exeext conftest.$ac_ext
13036 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13037 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
13038 if test $ac_cv_func_shl_load = yes; then
13039   lt_cv_dlopen="shl_load"
13040 else
13041   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13042 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13043 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13044   echo $ECHO_N "(cached) $ECHO_C" >&6
13045 else
13046   ac_check_lib_save_LIBS=$LIBS
13047 LIBS="-ldld  $LIBS"
13048 cat >conftest.$ac_ext <<_ACEOF
13049 /* confdefs.h.  */
13050 _ACEOF
13051 cat confdefs.h >>conftest.$ac_ext
13052 cat >>conftest.$ac_ext <<_ACEOF
13053 /* end confdefs.h.  */
13055 /* Override any GCC internal prototype to avoid an error.
13056    Use char because int might match the return type of a GCC
13057    builtin and then its argument prototype would still apply.  */
13058 #ifdef __cplusplus
13059 extern "C"
13060 #endif
13061 char shl_load ();
13063 main ()
13065 return shl_load ();
13066   ;
13067   return 0;
13069 _ACEOF
13070 rm -f conftest.$ac_objext conftest$ac_exeext
13071 if { (ac_try="$ac_link"
13072 case "(($ac_try" in
13073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13074   *) ac_try_echo=$ac_try;;
13075 esac
13076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13077   (eval "$ac_link") 2>conftest.er1
13078   ac_status=$?
13079   grep -v '^ *+' conftest.er1 >conftest.err
13080   rm -f conftest.er1
13081   cat conftest.err >&5
13082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083   (exit $ac_status); } && {
13084          test -z "$ac_cxx_werror_flag" ||
13085          test ! -s conftest.err
13086        } && test -s conftest$ac_exeext &&
13087        $as_test_x conftest$ac_exeext; then
13088   ac_cv_lib_dld_shl_load=yes
13089 else
13090   echo "$as_me: failed program was:" >&5
13091 sed 's/^/| /' conftest.$ac_ext >&5
13093         ac_cv_lib_dld_shl_load=no
13096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13097       conftest$ac_exeext conftest.$ac_ext
13098 LIBS=$ac_check_lib_save_LIBS
13100 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13101 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13102 if test $ac_cv_lib_dld_shl_load = yes; then
13103   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13104 else
13105   { echo "$as_me:$LINENO: checking for dlopen" >&5
13106 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
13107 if test "${ac_cv_func_dlopen+set}" = set; then
13108   echo $ECHO_N "(cached) $ECHO_C" >&6
13109 else
13110   cat >conftest.$ac_ext <<_ACEOF
13111 /* confdefs.h.  */
13112 _ACEOF
13113 cat confdefs.h >>conftest.$ac_ext
13114 cat >>conftest.$ac_ext <<_ACEOF
13115 /* end confdefs.h.  */
13116 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13117    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13118 #define dlopen innocuous_dlopen
13120 /* System header to define __stub macros and hopefully few prototypes,
13121     which can conflict with char dlopen (); below.
13122     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13123     <limits.h> exists even on freestanding compilers.  */
13125 #ifdef __STDC__
13126 # include <limits.h>
13127 #else
13128 # include <assert.h>
13129 #endif
13131 #undef dlopen
13133 /* Override any GCC internal prototype to avoid an error.
13134    Use char because int might match the return type of a GCC
13135    builtin and then its argument prototype would still apply.  */
13136 #ifdef __cplusplus
13137 extern "C"
13138 #endif
13139 char dlopen ();
13140 /* The GNU C library defines this for functions which it implements
13141     to always fail with ENOSYS.  Some functions are actually named
13142     something starting with __ and the normal name is an alias.  */
13143 #if defined __stub_dlopen || defined __stub___dlopen
13144 choke me
13145 #endif
13148 main ()
13150 return dlopen ();
13151   ;
13152   return 0;
13154 _ACEOF
13155 rm -f conftest.$ac_objext conftest$ac_exeext
13156 if { (ac_try="$ac_link"
13157 case "(($ac_try" in
13158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159   *) ac_try_echo=$ac_try;;
13160 esac
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162   (eval "$ac_link") 2>conftest.er1
13163   ac_status=$?
13164   grep -v '^ *+' conftest.er1 >conftest.err
13165   rm -f conftest.er1
13166   cat conftest.err >&5
13167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168   (exit $ac_status); } && {
13169          test -z "$ac_cxx_werror_flag" ||
13170          test ! -s conftest.err
13171        } && test -s conftest$ac_exeext &&
13172        $as_test_x conftest$ac_exeext; then
13173   ac_cv_func_dlopen=yes
13174 else
13175   echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13178         ac_cv_func_dlopen=no
13181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13182       conftest$ac_exeext conftest.$ac_ext
13184 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13185 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13186 if test $ac_cv_func_dlopen = yes; then
13187   lt_cv_dlopen="dlopen"
13188 else
13189   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13190 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13191 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13192   echo $ECHO_N "(cached) $ECHO_C" >&6
13193 else
13194   ac_check_lib_save_LIBS=$LIBS
13195 LIBS="-ldl  $LIBS"
13196 cat >conftest.$ac_ext <<_ACEOF
13197 /* confdefs.h.  */
13198 _ACEOF
13199 cat confdefs.h >>conftest.$ac_ext
13200 cat >>conftest.$ac_ext <<_ACEOF
13201 /* end confdefs.h.  */
13203 /* Override any GCC internal prototype to avoid an error.
13204    Use char because int might match the return type of a GCC
13205    builtin and then its argument prototype would still apply.  */
13206 #ifdef __cplusplus
13207 extern "C"
13208 #endif
13209 char dlopen ();
13211 main ()
13213 return dlopen ();
13214   ;
13215   return 0;
13217 _ACEOF
13218 rm -f conftest.$ac_objext conftest$ac_exeext
13219 if { (ac_try="$ac_link"
13220 case "(($ac_try" in
13221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222   *) ac_try_echo=$ac_try;;
13223 esac
13224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225   (eval "$ac_link") 2>conftest.er1
13226   ac_status=$?
13227   grep -v '^ *+' conftest.er1 >conftest.err
13228   rm -f conftest.er1
13229   cat conftest.err >&5
13230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231   (exit $ac_status); } && {
13232          test -z "$ac_cxx_werror_flag" ||
13233          test ! -s conftest.err
13234        } && test -s conftest$ac_exeext &&
13235        $as_test_x conftest$ac_exeext; then
13236   ac_cv_lib_dl_dlopen=yes
13237 else
13238   echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13241         ac_cv_lib_dl_dlopen=no
13244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13245       conftest$ac_exeext conftest.$ac_ext
13246 LIBS=$ac_check_lib_save_LIBS
13248 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13249 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13250 if test $ac_cv_lib_dl_dlopen = yes; then
13251   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13252 else
13253   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13254 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13255 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13256   echo $ECHO_N "(cached) $ECHO_C" >&6
13257 else
13258   ac_check_lib_save_LIBS=$LIBS
13259 LIBS="-lsvld  $LIBS"
13260 cat >conftest.$ac_ext <<_ACEOF
13261 /* confdefs.h.  */
13262 _ACEOF
13263 cat confdefs.h >>conftest.$ac_ext
13264 cat >>conftest.$ac_ext <<_ACEOF
13265 /* end confdefs.h.  */
13267 /* Override any GCC internal prototype to avoid an error.
13268    Use char because int might match the return type of a GCC
13269    builtin and then its argument prototype would still apply.  */
13270 #ifdef __cplusplus
13271 extern "C"
13272 #endif
13273 char dlopen ();
13275 main ()
13277 return dlopen ();
13278   ;
13279   return 0;
13281 _ACEOF
13282 rm -f conftest.$ac_objext conftest$ac_exeext
13283 if { (ac_try="$ac_link"
13284 case "(($ac_try" in
13285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286   *) ac_try_echo=$ac_try;;
13287 esac
13288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13289   (eval "$ac_link") 2>conftest.er1
13290   ac_status=$?
13291   grep -v '^ *+' conftest.er1 >conftest.err
13292   rm -f conftest.er1
13293   cat conftest.err >&5
13294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295   (exit $ac_status); } && {
13296          test -z "$ac_cxx_werror_flag" ||
13297          test ! -s conftest.err
13298        } && test -s conftest$ac_exeext &&
13299        $as_test_x conftest$ac_exeext; then
13300   ac_cv_lib_svld_dlopen=yes
13301 else
13302   echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.$ac_ext >&5
13305         ac_cv_lib_svld_dlopen=no
13308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13309       conftest$ac_exeext conftest.$ac_ext
13310 LIBS=$ac_check_lib_save_LIBS
13312 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13313 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13314 if test $ac_cv_lib_svld_dlopen = yes; then
13315   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13316 else
13317   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13318 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13319 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13320   echo $ECHO_N "(cached) $ECHO_C" >&6
13321 else
13322   ac_check_lib_save_LIBS=$LIBS
13323 LIBS="-ldld  $LIBS"
13324 cat >conftest.$ac_ext <<_ACEOF
13325 /* confdefs.h.  */
13326 _ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h.  */
13331 /* Override any GCC internal prototype to avoid an error.
13332    Use char because int might match the return type of a GCC
13333    builtin and then its argument prototype would still apply.  */
13334 #ifdef __cplusplus
13335 extern "C"
13336 #endif
13337 char dld_link ();
13339 main ()
13341 return dld_link ();
13342   ;
13343   return 0;
13345 _ACEOF
13346 rm -f conftest.$ac_objext conftest$ac_exeext
13347 if { (ac_try="$ac_link"
13348 case "(($ac_try" in
13349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350   *) ac_try_echo=$ac_try;;
13351 esac
13352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353   (eval "$ac_link") 2>conftest.er1
13354   ac_status=$?
13355   grep -v '^ *+' conftest.er1 >conftest.err
13356   rm -f conftest.er1
13357   cat conftest.err >&5
13358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359   (exit $ac_status); } && {
13360          test -z "$ac_cxx_werror_flag" ||
13361          test ! -s conftest.err
13362        } && test -s conftest$ac_exeext &&
13363        $as_test_x conftest$ac_exeext; then
13364   ac_cv_lib_dld_dld_link=yes
13365 else
13366   echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13369         ac_cv_lib_dld_dld_link=no
13372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13373       conftest$ac_exeext conftest.$ac_ext
13374 LIBS=$ac_check_lib_save_LIBS
13376 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13377 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13378 if test $ac_cv_lib_dld_dld_link = yes; then
13379   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13382               
13385             
13388           
13391         
13394       
13397     ;;
13398   esac
13400   if test "x$lt_cv_dlopen" != xno; then
13401     enable_dlopen=yes
13402   else
13403     enable_dlopen=no
13404   fi
13406   case $lt_cv_dlopen in
13407   dlopen)
13408     save_CPPFLAGS="$CPPFLAGS"
13409     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13411     save_LDFLAGS="$LDFLAGS"
13412     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13414     save_LIBS="$LIBS"
13415     LIBS="$lt_cv_dlopen_libs $LIBS"
13417     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13418 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13419 if test "${lt_cv_dlopen_self+set}" = set; then
13420   echo $ECHO_N "(cached) $ECHO_C" >&6
13421 else
13422           if test "$cross_compiling" = yes; then :
13423   lt_cv_dlopen_self=cross
13424 else
13425   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13426   lt_status=$lt_dlunknown
13427   cat > conftest.$ac_ext <<EOF
13428 #line __oline__ "configure"
13429 #include "confdefs.h"
13431 #if HAVE_DLFCN_H
13432 #include <dlfcn.h>
13433 #endif
13435 #include <stdio.h>
13437 #ifdef RTLD_GLOBAL
13438 #  define LT_DLGLOBAL           RTLD_GLOBAL
13439 #else
13440 #  ifdef DL_GLOBAL
13441 #    define LT_DLGLOBAL         DL_GLOBAL
13442 #  else
13443 #    define LT_DLGLOBAL         0
13444 #  endif
13445 #endif
13447 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13448    find out it does not work in some platform. */
13449 #ifndef LT_DLLAZY_OR_NOW
13450 #  ifdef RTLD_LAZY
13451 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13452 #  else
13453 #    ifdef DL_LAZY
13454 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13455 #    else
13456 #      ifdef RTLD_NOW
13457 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13458 #      else
13459 #        ifdef DL_NOW
13460 #          define LT_DLLAZY_OR_NOW      DL_NOW
13461 #        else
13462 #          define LT_DLLAZY_OR_NOW      0
13463 #        endif
13464 #      endif
13465 #    endif
13466 #  endif
13467 #endif
13469 #ifdef __cplusplus
13470 extern "C" void exit (int);
13471 #endif
13473 void fnord() { int i=42;}
13474 int main ()
13476   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13477   int status = $lt_dlunknown;
13479   if (self)
13480     {
13481       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13482       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13483       /* dlclose (self); */
13484     }
13486     exit (status);
13489   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13490   (eval $ac_link) 2>&5
13491   ac_status=$?
13492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13494     (./conftest; exit; ) >&5 2>/dev/null
13495     lt_status=$?
13496     case x$lt_status in
13497       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13498       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13499       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13500     esac
13501   else :
13502     # compilation failed
13503     lt_cv_dlopen_self=no
13504   fi
13506 rm -fr conftest*
13508     
13510 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13511 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13513     if test "x$lt_cv_dlopen_self" = xyes; then
13514       LDFLAGS="$LDFLAGS $link_static_flag"
13515       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13516 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13517 if test "${lt_cv_dlopen_self_static+set}" = set; then
13518   echo $ECHO_N "(cached) $ECHO_C" >&6
13519 else
13520           if test "$cross_compiling" = yes; then :
13521   lt_cv_dlopen_self_static=cross
13522 else
13523   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13524   lt_status=$lt_dlunknown
13525   cat > conftest.$ac_ext <<EOF
13526 #line __oline__ "configure"
13527 #include "confdefs.h"
13529 #if HAVE_DLFCN_H
13530 #include <dlfcn.h>
13531 #endif
13533 #include <stdio.h>
13535 #ifdef RTLD_GLOBAL
13536 #  define LT_DLGLOBAL           RTLD_GLOBAL
13537 #else
13538 #  ifdef DL_GLOBAL
13539 #    define LT_DLGLOBAL         DL_GLOBAL
13540 #  else
13541 #    define LT_DLGLOBAL         0
13542 #  endif
13543 #endif
13545 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13546    find out it does not work in some platform. */
13547 #ifndef LT_DLLAZY_OR_NOW
13548 #  ifdef RTLD_LAZY
13549 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13550 #  else
13551 #    ifdef DL_LAZY
13552 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13553 #    else
13554 #      ifdef RTLD_NOW
13555 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13556 #      else
13557 #        ifdef DL_NOW
13558 #          define LT_DLLAZY_OR_NOW      DL_NOW
13559 #        else
13560 #          define LT_DLLAZY_OR_NOW      0
13561 #        endif
13562 #      endif
13563 #    endif
13564 #  endif
13565 #endif
13567 #ifdef __cplusplus
13568 extern "C" void exit (int);
13569 #endif
13571 void fnord() { int i=42;}
13572 int main ()
13574   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13575   int status = $lt_dlunknown;
13577   if (self)
13578     {
13579       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13580       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13581       /* dlclose (self); */
13582     }
13584     exit (status);
13587   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13588   (eval $ac_link) 2>&5
13589   ac_status=$?
13590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13592     (./conftest; exit; ) >&5 2>/dev/null
13593     lt_status=$?
13594     case x$lt_status in
13595       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13596       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13597       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13598     esac
13599   else :
13600     # compilation failed
13601     lt_cv_dlopen_self_static=no
13602   fi
13604 rm -fr conftest*
13606       
13608 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13609 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13610     fi
13612     CPPFLAGS="$save_CPPFLAGS"
13613     LDFLAGS="$save_LDFLAGS"
13614     LIBS="$save_LIBS"
13615     ;;
13616   esac
13618   case $lt_cv_dlopen_self in
13619   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13620   *) enable_dlopen_self=unknown ;;
13621   esac
13623   case $lt_cv_dlopen_self_static in
13624   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13625   *) enable_dlopen_self_static=unknown ;;
13626   esac
13630 # The else clause should only fire when bootstrapping the
13631 # libtool distribution, otherwise you forgot to ship ltmain.sh
13632 # with your package, and you will get complaints that there are
13633 # no rules to generate ltmain.sh.
13634 if test -f "$ltmain"; then
13635   # See if we are running on zsh, and set the options which allow our commands through
13636   # without removal of \ escapes.
13637   if test -n "${ZSH_VERSION+set}" ; then
13638     setopt NO_GLOB_SUBST
13639   fi
13640   # Now quote all the things that may contain metacharacters while being
13641   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13642   # variables and quote the copies for generation of the libtool script.
13643   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13644     SED SHELL STRIP \
13645     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13646     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13647     deplibs_check_method reload_flag reload_cmds need_locks \
13648     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13649     lt_cv_sys_global_symbol_to_c_name_address \
13650     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13651     old_postinstall_cmds old_postuninstall_cmds \
13652     compiler_CXX \
13653     CC_CXX \
13654     LD_CXX \
13655     lt_prog_compiler_wl_CXX \
13656     lt_prog_compiler_pic_CXX \
13657     lt_prog_compiler_static_CXX \
13658     lt_prog_compiler_no_builtin_flag_CXX \
13659     export_dynamic_flag_spec_CXX \
13660     thread_safe_flag_spec_CXX \
13661     whole_archive_flag_spec_CXX \
13662     enable_shared_with_static_runtimes_CXX \
13663     old_archive_cmds_CXX \
13664     old_archive_from_new_cmds_CXX \
13665     predep_objects_CXX \
13666     postdep_objects_CXX \
13667     predeps_CXX \
13668     postdeps_CXX \
13669     compiler_lib_search_path_CXX \
13670     archive_cmds_CXX \
13671     archive_expsym_cmds_CXX \
13672     postinstall_cmds_CXX \
13673     postuninstall_cmds_CXX \
13674     old_archive_from_expsyms_cmds_CXX \
13675     allow_undefined_flag_CXX \
13676     no_undefined_flag_CXX \
13677     export_symbols_cmds_CXX \
13678     hardcode_libdir_flag_spec_CXX \
13679     hardcode_libdir_flag_spec_ld_CXX \
13680     hardcode_libdir_separator_CXX \
13681     hardcode_automatic_CXX \
13682     module_cmds_CXX \
13683     module_expsym_cmds_CXX \
13684     lt_cv_prog_compiler_c_o_CXX \
13685     exclude_expsyms_CXX \
13686     include_expsyms_CXX; do
13688     case $var in
13689     old_archive_cmds_CXX | \
13690     old_archive_from_new_cmds_CXX | \
13691     archive_cmds_CXX | \
13692     archive_expsym_cmds_CXX | \
13693     module_cmds_CXX | \
13694     module_expsym_cmds_CXX | \
13695     old_archive_from_expsyms_cmds_CXX | \
13696     export_symbols_cmds_CXX | \
13697     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13698     postinstall_cmds | postuninstall_cmds | \
13699     old_postinstall_cmds | old_postuninstall_cmds | \
13700     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13701       # Double-quote double-evaled strings.
13702       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13703       ;;
13704     *)
13705       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13706       ;;
13707     esac
13708   done
13710   case $lt_echo in
13711   *'\$0 --fallback-echo"')
13712     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13713     ;;
13714   esac
13716 cfgfile="$ofile"
13718   cat <<__EOF__ >> "$cfgfile"
13719 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13721 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13723 # Shell to use when invoking shell scripts.
13724 SHELL=$lt_SHELL
13726 # Whether or not to build shared libraries.
13727 build_libtool_libs=$enable_shared
13729 # Whether or not to build static libraries.
13730 build_old_libs=$enable_static
13732 # Whether or not to add -lc for building shared libraries.
13733 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13735 # Whether or not to disallow shared libs when runtime libs are static
13736 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13738 # Whether or not to optimize for fast installation.
13739 fast_install=$enable_fast_install
13741 # The host system.
13742 host_alias=$host_alias
13743 host=$host
13744 host_os=$host_os
13746 # The build system.
13747 build_alias=$build_alias
13748 build=$build
13749 build_os=$build_os
13751 # An echo program that does not interpret backslashes.
13752 echo=$lt_echo
13754 # The archiver.
13755 AR=$lt_AR
13756 AR_FLAGS=$lt_AR_FLAGS
13758 # A C compiler.
13759 LTCC=$lt_LTCC
13761 # A language-specific compiler.
13762 CC=$lt_compiler_CXX
13764 # Is the compiler the GNU C compiler?
13765 with_gcc=$GCC_CXX
13767 # An ERE matcher.
13768 EGREP=$lt_EGREP
13770 # The linker used to build libraries.
13771 LD=$lt_LD_CXX
13773 # Whether we need hard or soft links.
13774 LN_S=$lt_LN_S
13776 # A BSD-compatible nm program.
13777 NM=$lt_NM
13779 # A symbol stripping program
13780 STRIP=$lt_STRIP
13782 # Used to examine libraries when file_magic_cmd begins "file"
13783 MAGIC_CMD=$MAGIC_CMD
13785 # Used on cygwin: DLL creation program.
13786 DLLTOOL="$DLLTOOL"
13788 # Used on cygwin: object dumper.
13789 OBJDUMP="$OBJDUMP"
13791 # Used on cygwin: assembler.
13792 AS="$AS"
13794 # The name of the directory that contains temporary libtool files.
13795 objdir=$objdir
13797 # How to create reloadable object files.
13798 reload_flag=$lt_reload_flag
13799 reload_cmds=$lt_reload_cmds
13801 # How to pass a linker flag through the compiler.
13802 wl=$lt_lt_prog_compiler_wl_CXX
13804 # Object file suffix (normally "o").
13805 objext="$ac_objext"
13807 # Old archive suffix (normally "a").
13808 libext="$libext"
13810 # Shared library suffix (normally ".so").
13811 shrext_cmds='$shrext_cmds'
13813 # Executable file suffix (normally "").
13814 exeext="$exeext"
13816 # Additional compiler flags for building library objects.
13817 pic_flag=$lt_lt_prog_compiler_pic_CXX
13818 pic_mode=$pic_mode
13820 # What is the maximum length of a command?
13821 max_cmd_len=$lt_cv_sys_max_cmd_len
13823 # Does compiler simultaneously support -c and -o options?
13824 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13826 # Must we lock files when doing compilation?
13827 need_locks=$lt_need_locks
13829 # Do we need the lib prefix for modules?
13830 need_lib_prefix=$need_lib_prefix
13832 # Do we need a version for libraries?
13833 need_version=$need_version
13835 # Whether dlopen is supported.
13836 dlopen_support=$enable_dlopen
13838 # Whether dlopen of programs is supported.
13839 dlopen_self=$enable_dlopen_self
13841 # Whether dlopen of statically linked programs is supported.
13842 dlopen_self_static=$enable_dlopen_self_static
13844 # Compiler flag to prevent dynamic linking.
13845 link_static_flag=$lt_lt_prog_compiler_static_CXX
13847 # Compiler flag to turn off builtin functions.
13848 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13850 # Compiler flag to allow reflexive dlopens.
13851 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13853 # Compiler flag to generate shared objects directly from archives.
13854 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13856 # Compiler flag to generate thread-safe objects.
13857 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13859 # Library versioning type.
13860 version_type=$version_type
13862 # Format of library name prefix.
13863 libname_spec=$lt_libname_spec
13865 # List of archive names.  First name is the real one, the rest are links.
13866 # The last name is the one that the linker finds with -lNAME.
13867 library_names_spec=$lt_library_names_spec
13869 # The coded name of the library, if different from the real name.
13870 soname_spec=$lt_soname_spec
13872 # Commands used to build and install an old-style archive.
13873 RANLIB=$lt_RANLIB
13874 old_archive_cmds=$lt_old_archive_cmds_CXX
13875 old_postinstall_cmds=$lt_old_postinstall_cmds
13876 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13878 # Create an old-style archive from a shared archive.
13879 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13881 # Create a temporary old-style archive to link instead of a shared archive.
13882 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13884 # Commands used to build and install a shared archive.
13885 archive_cmds=$lt_archive_cmds_CXX
13886 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13887 postinstall_cmds=$lt_postinstall_cmds
13888 postuninstall_cmds=$lt_postuninstall_cmds
13890 # Commands used to build a loadable module (assumed same as above if empty)
13891 module_cmds=$lt_module_cmds_CXX
13892 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13894 # Commands to strip libraries.
13895 old_striplib=$lt_old_striplib
13896 striplib=$lt_striplib
13898 # Dependencies to place before the objects being linked to create a
13899 # shared library.
13900 predep_objects=$lt_predep_objects_CXX
13902 # Dependencies to place after the objects being linked to create a
13903 # shared library.
13904 postdep_objects=$lt_postdep_objects_CXX
13906 # Dependencies to place before the objects being linked to create a
13907 # shared library.
13908 predeps=$lt_predeps_CXX
13910 # Dependencies to place after the objects being linked to create a
13911 # shared library.
13912 postdeps=$lt_postdeps_CXX
13914 # The library search path used internally by the compiler when linking
13915 # a shared library.
13916 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13918 # Method to check whether dependent libraries are shared objects.
13919 deplibs_check_method=$lt_deplibs_check_method
13921 # Command to use when deplibs_check_method == file_magic.
13922 file_magic_cmd=$lt_file_magic_cmd
13924 # Flag that allows shared libraries with undefined symbols to be built.
13925 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13927 # Flag that forces no undefined symbols.
13928 no_undefined_flag=$lt_no_undefined_flag_CXX
13930 # Commands used to finish a libtool library installation in a directory.
13931 finish_cmds=$lt_finish_cmds
13933 # Same as above, but a single script fragment to be evaled but not shown.
13934 finish_eval=$lt_finish_eval
13936 # Take the output of nm and produce a listing of raw symbols and C names.
13937 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13939 # Transform the output of nm in a proper C declaration
13940 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13942 # Transform the output of nm in a C name address pair
13943 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13945 # This is the shared library runtime path variable.
13946 runpath_var=$runpath_var
13948 # This is the shared library path variable.
13949 shlibpath_var=$shlibpath_var
13951 # Is shlibpath searched before the hard-coded library search path?
13952 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13954 # How to hardcode a shared library path into an executable.
13955 hardcode_action=$hardcode_action_CXX
13957 # Whether we should hardcode library paths into libraries.
13958 hardcode_into_libs=$hardcode_into_libs
13960 # Flag to hardcode \$libdir into a binary during linking.
13961 # This must work even if \$libdir does not exist.
13962 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13964 # If ld is used when linking, flag to hardcode \$libdir into
13965 # a binary during linking. This must work even if \$libdir does
13966 # not exist.
13967 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13969 # Whether we need a single -rpath flag with a separated argument.
13970 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13972 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13973 # resulting binary.
13974 hardcode_direct=$hardcode_direct_CXX
13976 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13977 # resulting binary.
13978 hardcode_minus_L=$hardcode_minus_L_CXX
13980 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13981 # the resulting binary.
13982 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13984 # Set to yes if building a shared library automatically hardcodes DIR into the library
13985 # and all subsequent libraries and executables linked against it.
13986 hardcode_automatic=$hardcode_automatic_CXX
13988 # Variables whose values should be saved in libtool wrapper scripts and
13989 # restored at relink time.
13990 variables_saved_for_relink="$variables_saved_for_relink"
13992 # Whether libtool must link a program against all its dependency libraries.
13993 link_all_deplibs=$link_all_deplibs_CXX
13995 # Compile-time system search path for libraries
13996 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13998 # Run-time system search path for libraries
13999 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14001 # Fix the shell variable \$srcfile for the compiler.
14002 fix_srcfile_path="$fix_srcfile_path_CXX"
14004 # Set to yes if exported symbols are required.
14005 always_export_symbols=$always_export_symbols_CXX
14007 # The commands to list exported symbols.
14008 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14010 # The commands to extract the exported symbol list from a shared archive.
14011 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14013 # Symbols that should not be listed in the preloaded symbols.
14014 exclude_expsyms=$lt_exclude_expsyms_CXX
14016 # Symbols that must always be exported.
14017 include_expsyms=$lt_include_expsyms_CXX
14019 # ### END LIBTOOL TAG CONFIG: $tagname
14021 __EOF__
14024 else
14025   # If there is no Makefile yet, we rely on a make rule to execute
14026   # `config.status --recheck' to rerun these tests and create the
14027   # libtool script then.
14028   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14029   if test -f "$ltmain_in"; then
14030     test -f Makefile && make "$ltmain"
14031   fi
14035 ac_ext=c
14036 ac_cpp='$CPP $CPPFLAGS'
14037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14041 CC=$lt_save_CC
14042 LDCXX=$LD
14043 LD=$lt_save_LD
14044 GCC=$lt_save_GCC
14045 with_gnu_ldcxx=$with_gnu_ld
14046 with_gnu_ld=$lt_save_with_gnu_ld
14047 lt_cv_path_LDCXX=$lt_cv_path_LD
14048 lt_cv_path_LD=$lt_save_path_LD
14049 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14050 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14052         else
14053           tagname=""
14054         fi
14055         ;;
14057       F77)
14058         if test -n "$F77" && test "X$F77" != "Xno"; then
14059           
14060 ac_ext=f
14061 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14062 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14063 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14066 archive_cmds_need_lc_F77=no
14067 allow_undefined_flag_F77=
14068 always_export_symbols_F77=no
14069 archive_expsym_cmds_F77=
14070 export_dynamic_flag_spec_F77=
14071 hardcode_direct_F77=no
14072 hardcode_libdir_flag_spec_F77=
14073 hardcode_libdir_flag_spec_ld_F77=
14074 hardcode_libdir_separator_F77=
14075 hardcode_minus_L_F77=no
14076 hardcode_automatic_F77=no
14077 module_cmds_F77=
14078 module_expsym_cmds_F77=
14079 link_all_deplibs_F77=unknown
14080 old_archive_cmds_F77=$old_archive_cmds
14081 no_undefined_flag_F77=
14082 whole_archive_flag_spec_F77=
14083 enable_shared_with_static_runtimes_F77=no
14085 # Source file extension for f77 test sources.
14086 ac_ext=f
14088 # Object file extension for compiled f77 test sources.
14089 objext=o
14090 objext_F77=$objext
14092 # Code to be used in simple compile tests
14093 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14095 # Code to be used in simple link tests
14096 lt_simple_link_test_code="      program t\n      end\n"
14098 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14100 # If no C compiler was specified, use CC.
14101 LTCC=${LTCC-"$CC"}
14103 # Allow CC to be a program name with arguments.
14104 compiler=$CC
14107 # save warnings/boilerplate of simple test code
14108 ac_outfile=conftest.$ac_objext
14109 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14110 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14111 _lt_compiler_boilerplate=`cat conftest.err`
14112 $rm conftest*
14114 ac_outfile=conftest.$ac_objext
14115 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14116 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14117 _lt_linker_boilerplate=`cat conftest.err`
14118 $rm conftest*
14121 # Allow CC to be a program name with arguments.
14122 lt_save_CC="$CC"
14123 CC=${F77-"f77"}
14124 compiler=$CC
14125 compiler_F77=$CC
14126 for cc_temp in $compiler""; do
14127   case $cc_temp in
14128     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14129     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14130     \-*) ;;
14131     *) break;;
14132   esac
14133 done
14134 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14137 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14138 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14139 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14140 echo "${ECHO_T}$can_build_shared" >&6; }
14142 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14143 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14144 test "$can_build_shared" = "no" && enable_shared=no
14146 # On AIX, shared libraries and static libraries use the same namespace, and
14147 # are all built from PIC.
14148 case $host_os in
14149 aix3*)
14150   test "$enable_shared" = yes && enable_static=no
14151   if test -n "$RANLIB"; then
14152     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14153     postinstall_cmds='$RANLIB $lib'
14154   fi
14155   ;;
14156 aix4* | aix5*)
14157   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14158     test "$enable_shared" = yes && enable_static=no
14159   fi
14160   ;;
14161 esac
14162 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14163 echo "${ECHO_T}$enable_shared" >&6; }
14165 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14166 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14167 # Make sure either enable_shared or enable_static is yes.
14168 test "$enable_shared" = yes || enable_static=yes
14169 { echo "$as_me:$LINENO: result: $enable_static" >&5
14170 echo "${ECHO_T}$enable_static" >&6; }
14172 test "$ld_shlibs_F77" = no && can_build_shared=no
14174 GCC_F77="$G77"
14175 LD_F77="$LD"
14177 lt_prog_compiler_wl_F77=
14178 lt_prog_compiler_pic_F77=
14179 lt_prog_compiler_static_F77=
14181 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14182 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14184   if test "$GCC" = yes; then
14185     lt_prog_compiler_wl_F77='-Wl,'
14186     lt_prog_compiler_static_F77='-static'
14188     case $host_os in
14189       aix*)
14190       # All AIX code is PIC.
14191       if test "$host_cpu" = ia64; then
14192         # AIX 5 now supports IA64 processor
14193         lt_prog_compiler_static_F77='-Bstatic'
14194       fi
14195       ;;
14197     amigaos*)
14198       # FIXME: we need at least 68020 code to build shared libraries, but
14199       # adding the `-m68020' flag to GCC prevents building anything better,
14200       # like `-m68040'.
14201       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14202       ;;
14204     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14205       # PIC is the default for these OSes.
14206       ;;
14208     mingw* | pw32* | os2*)
14209       # This hack is so that the source file can tell whether it is being
14210       # built for inclusion in a dll (and should export symbols for example).
14211       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14212       ;;
14214     darwin* | rhapsody*)
14215       # PIC is the default on this platform
14216       # Common symbols not allowed in MH_DYLIB files
14217       lt_prog_compiler_pic_F77='-fno-common'
14218       ;;
14220     msdosdjgpp*)
14221       # Just because we use GCC doesn't mean we suddenly get shared libraries
14222       # on systems that don't support them.
14223       lt_prog_compiler_can_build_shared_F77=no
14224       enable_shared=no
14225       ;;
14227     sysv4*MP*)
14228       if test -d /usr/nec; then
14229         lt_prog_compiler_pic_F77=-Kconform_pic
14230       fi
14231       ;;
14233     hpux*)
14234       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14235       # not for PA HP-UX.
14236       case $host_cpu in
14237       hppa*64*|ia64*)
14238         # +Z the default
14239         ;;
14240       *)
14241         lt_prog_compiler_pic_F77='-fPIC'
14242         ;;
14243       esac
14244       ;;
14246     *)
14247       lt_prog_compiler_pic_F77='-fPIC'
14248       ;;
14249     esac
14250   else
14251     # PORTME Check for flag to pass linker flags through the system compiler.
14252     case $host_os in
14253     aix*)
14254       lt_prog_compiler_wl_F77='-Wl,'
14255       if test "$host_cpu" = ia64; then
14256         # AIX 5 now supports IA64 processor
14257         lt_prog_compiler_static_F77='-Bstatic'
14258       else
14259         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14260       fi
14261       ;;
14262       darwin*)
14263         # PIC is the default on this platform
14264         # Common symbols not allowed in MH_DYLIB files
14265        case $cc_basename in
14266          xlc*)
14267          lt_prog_compiler_pic_F77='-qnocommon'
14268          lt_prog_compiler_wl_F77='-Wl,'
14269          ;;
14270        esac
14271        ;;
14273     mingw* | pw32* | os2*)
14274       # This hack is so that the source file can tell whether it is being
14275       # built for inclusion in a dll (and should export symbols for example).
14276       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14277       ;;
14279     hpux9* | hpux10* | hpux11*)
14280       lt_prog_compiler_wl_F77='-Wl,'
14281       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14282       # not for PA HP-UX.
14283       case $host_cpu in
14284       hppa*64*|ia64*)
14285         # +Z the default
14286         ;;
14287       *)
14288         lt_prog_compiler_pic_F77='+Z'
14289         ;;
14290       esac
14291       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14292       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14293       ;;
14295     irix5* | irix6* | nonstopux*)
14296       lt_prog_compiler_wl_F77='-Wl,'
14297       # PIC (with -KPIC) is the default.
14298       lt_prog_compiler_static_F77='-non_shared'
14299       ;;
14301     newsos6)
14302       lt_prog_compiler_pic_F77='-KPIC'
14303       lt_prog_compiler_static_F77='-Bstatic'
14304       ;;
14306     linux*)
14307       case $cc_basename in
14308       icc* | ecc*)
14309         lt_prog_compiler_wl_F77='-Wl,'
14310         lt_prog_compiler_pic_F77='-KPIC'
14311         lt_prog_compiler_static_F77='-static'
14312         ;;
14313       pgcc* | pgf77* | pgf90* | pgf95*)
14314         # Portland Group compilers (*not* the Pentium gcc compiler,
14315         # which looks to be a dead project)
14316         lt_prog_compiler_wl_F77='-Wl,'
14317         lt_prog_compiler_pic_F77='-fpic'
14318         lt_prog_compiler_static_F77='-Bstatic'
14319         ;;
14320       ccc*)
14321         lt_prog_compiler_wl_F77='-Wl,'
14322         # All Alpha code is PIC.
14323         lt_prog_compiler_static_F77='-non_shared'
14324         ;;
14325       esac
14326       ;;
14328     osf3* | osf4* | osf5*)
14329       lt_prog_compiler_wl_F77='-Wl,'
14330       # All OSF/1 code is PIC.
14331       lt_prog_compiler_static_F77='-non_shared'
14332       ;;
14334     sco3.2v5*)
14335       lt_prog_compiler_pic_F77='-Kpic'
14336       lt_prog_compiler_static_F77='-dn'
14337       ;;
14339     solaris*)
14340       lt_prog_compiler_pic_F77='-KPIC'
14341       lt_prog_compiler_static_F77='-Bstatic'
14342       case $cc_basename in
14343       f77* | f90* | f95*)
14344         lt_prog_compiler_wl_F77='-Qoption ld ';;
14345       *)
14346         lt_prog_compiler_wl_F77='-Wl,';;
14347       esac
14348       ;;
14350     sunos4*)
14351       lt_prog_compiler_wl_F77='-Qoption ld '
14352       lt_prog_compiler_pic_F77='-PIC'
14353       lt_prog_compiler_static_F77='-Bstatic'
14354       ;;
14356     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14357       lt_prog_compiler_wl_F77='-Wl,'
14358       lt_prog_compiler_pic_F77='-KPIC'
14359       lt_prog_compiler_static_F77='-Bstatic'
14360       ;;
14362     sysv4*MP*)
14363       if test -d /usr/nec ;then
14364         lt_prog_compiler_pic_F77='-Kconform_pic'
14365         lt_prog_compiler_static_F77='-Bstatic'
14366       fi
14367       ;;
14369     unicos*)
14370       lt_prog_compiler_wl_F77='-Wl,'
14371       lt_prog_compiler_can_build_shared_F77=no
14372       ;;
14374     uts4*)
14375       lt_prog_compiler_pic_F77='-pic'
14376       lt_prog_compiler_static_F77='-Bstatic'
14377       ;;
14379     *)
14380       lt_prog_compiler_can_build_shared_F77=no
14381       ;;
14382     esac
14383   fi
14385 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14386 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14389 # Check to make sure the PIC flag actually works.
14391 if test -n "$lt_prog_compiler_pic_F77"; then
14392   
14393 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14394 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14395 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14396   echo $ECHO_N "(cached) $ECHO_C" >&6
14397 else
14398   lt_prog_compiler_pic_works_F77=no
14399   ac_outfile=conftest.$ac_objext
14400    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14401    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14402    # Insert the option either (1) after the last *FLAGS variable, or
14403    # (2) before a word containing "conftest.", or (3) at the end.
14404    # Note that $ac_compile itself does not contain backslashes and begins
14405    # with a dollar sign (not a hyphen), so the echo should work correctly.
14406    # The option is referenced via a variable to avoid confusing sed.
14407    lt_compile=`echo "$ac_compile" | $SED \
14408    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14409    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14410    -e 's:$: $lt_compiler_flag:'`
14411    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14412    (eval "$lt_compile" 2>conftest.err)
14413    ac_status=$?
14414    cat conftest.err >&5
14415    echo "$as_me:__oline__: \$? = $ac_status" >&5
14416    if (exit $ac_status) && test -s "$ac_outfile"; then
14417      # The compiler can only warn and ignore the option if not recognized
14418      # So say no if there are warnings other than the usual output.
14419      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14420      $SED '/^$/d' conftest.err >conftest.er2
14421      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14422        lt_prog_compiler_pic_works_F77=yes
14423      fi
14424    fi
14425    $rm conftest*
14428 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14429 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14431 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14432     case $lt_prog_compiler_pic_F77 in
14433      "" | " "*) ;;
14434      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14435      esac
14436 else
14437     lt_prog_compiler_pic_F77=
14438      lt_prog_compiler_can_build_shared_F77=no
14442 case $host_os in
14443   # For platforms which do not support PIC, -DPIC is meaningless:
14444   *djgpp*)
14445     lt_prog_compiler_pic_F77=
14446     ;;
14447   *)
14448     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14449     ;;
14450 esac
14452 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14453 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14454 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14455   echo $ECHO_N "(cached) $ECHO_C" >&6
14456 else
14457   lt_cv_prog_compiler_c_o_F77=no
14458    $rm -r conftest 2>/dev/null
14459    mkdir conftest
14460    cd conftest
14461    mkdir out
14462    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14464    lt_compiler_flag="-o out/conftest2.$ac_objext"
14465    # Insert the option either (1) after the last *FLAGS variable, or
14466    # (2) before a word containing "conftest.", or (3) at the end.
14467    # Note that $ac_compile itself does not contain backslashes and begins
14468    # with a dollar sign (not a hyphen), so the echo should work correctly.
14469    lt_compile=`echo "$ac_compile" | $SED \
14470    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14471    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14472    -e 's:$: $lt_compiler_flag:'`
14473    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14474    (eval "$lt_compile" 2>out/conftest.err)
14475    ac_status=$?
14476    cat out/conftest.err >&5
14477    echo "$as_me:__oline__: \$? = $ac_status" >&5
14478    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14479    then
14480      # The compiler can only warn and ignore the option if not recognized
14481      # So say no if there are warnings
14482      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14483      $SED '/^$/d' out/conftest.err >out/conftest.er2
14484      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14485        lt_cv_prog_compiler_c_o_F77=yes
14486      fi
14487    fi
14488    chmod u+w . 2>&5
14489    $rm conftest*
14490    # SGI C++ compiler will create directory out/ii_files/ for
14491    # template instantiation
14492    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14493    $rm out/* && rmdir out
14494    cd ..
14495    rmdir conftest
14496    $rm conftest*
14499 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14500 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14503 hard_links="nottested"
14504 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14505   # do not overwrite the value of need_locks provided by the user
14506   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14507 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14508   hard_links=yes
14509   $rm conftest*
14510   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14511   touch conftest.a
14512   ln conftest.a conftest.b 2>&5 || hard_links=no
14513   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14514   { echo "$as_me:$LINENO: result: $hard_links" >&5
14515 echo "${ECHO_T}$hard_links" >&6; }
14516   if test "$hard_links" = no; then
14517     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14518 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14519     need_locks=warn
14520   fi
14521 else
14522   need_locks=no
14525 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14526 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14528   runpath_var=
14529   allow_undefined_flag_F77=
14530   enable_shared_with_static_runtimes_F77=no
14531   archive_cmds_F77=
14532   archive_expsym_cmds_F77=
14533   old_archive_From_new_cmds_F77=
14534   old_archive_from_expsyms_cmds_F77=
14535   export_dynamic_flag_spec_F77=
14536   whole_archive_flag_spec_F77=
14537   thread_safe_flag_spec_F77=
14538   hardcode_libdir_flag_spec_F77=
14539   hardcode_libdir_flag_spec_ld_F77=
14540   hardcode_libdir_separator_F77=
14541   hardcode_direct_F77=no
14542   hardcode_minus_L_F77=no
14543   hardcode_shlibpath_var_F77=unsupported
14544   link_all_deplibs_F77=unknown
14545   hardcode_automatic_F77=no
14546   module_cmds_F77=
14547   module_expsym_cmds_F77=
14548   always_export_symbols_F77=no
14549   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14550   # include_expsyms should be a list of space-separated symbols to be *always*
14551   # included in the symbol list
14552   include_expsyms_F77=
14553   # exclude_expsyms can be an extended regexp of symbols to exclude
14554   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14555   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14556   # as well as any symbol that contains `d'.
14557   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14558   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14559   # platforms (ab)use it in PIC code, but their linkers get confused if
14560   # the symbol is explicitly referenced.  Since portable code cannot
14561   # rely on this symbol name, it's probably fine to never include it in
14562   # preloaded symbol tables.
14563   extract_expsyms_cmds=
14564   # Just being paranoid about ensuring that cc_basename is set.
14565   for cc_temp in $compiler""; do
14566   case $cc_temp in
14567     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14568     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14569     \-*) ;;
14570     *) break;;
14571   esac
14572 done
14573 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14575   case $host_os in
14576   cygwin* | mingw* | pw32*)
14577     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14578     # When not using gcc, we currently assume that we are using
14579     # Microsoft Visual C++.
14580     if test "$GCC" != yes; then
14581       with_gnu_ld=no
14582     fi
14583     ;;
14584   openbsd*)
14585     with_gnu_ld=no
14586     ;;
14587   esac
14589   ld_shlibs_F77=yes
14590   if test "$with_gnu_ld" = yes; then
14591     # If archive_cmds runs LD, not CC, wlarc should be empty
14592     wlarc='${wl}'
14594     # Set some defaults for GNU ld with shared library support. These
14595     # are reset later if shared libraries are not supported. Putting them
14596     # here allows them to be overridden if necessary.
14597     runpath_var=LD_RUN_PATH
14598     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14599     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14600     # ancient GNU ld didn't support --whole-archive et. al.
14601     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14602         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14603       else
14604         whole_archive_flag_spec_F77=
14605     fi
14606     supports_anon_versioning=no
14607     case `$LD -v 2>/dev/null` in
14608       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14609       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14610       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14611       *\ 2.11.*) ;; # other 2.11 versions
14612       *) supports_anon_versioning=yes ;;
14613     esac
14615     # See if GNU ld supports shared libraries.
14616     case $host_os in
14617     aix3* | aix4* | aix5*)
14618       # On AIX/PPC, the GNU linker is very broken
14619       if test "$host_cpu" != ia64; then
14620         ld_shlibs_F77=no
14621         cat <<EOF 1>&2
14623 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14624 *** to be unable to reliably create shared libraries on AIX.
14625 *** Therefore, libtool is disabling shared libraries support.  If you
14626 *** really care for shared libraries, you may want to modify your PATH
14627 *** so that a non-GNU linker is found, and then restart.
14630       fi
14631       ;;
14633     amigaos*)
14634       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)'
14635       hardcode_libdir_flag_spec_F77='-L$libdir'
14636       hardcode_minus_L_F77=yes
14638       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14639       # that the semantics of dynamic libraries on AmigaOS, at least up
14640       # to version 4, is to share data among multiple programs linked
14641       # with the same dynamic library.  Since this doesn't match the
14642       # behavior of shared libraries on other platforms, we can't use
14643       # them.
14644       ld_shlibs_F77=no
14645       ;;
14647     beos*)
14648       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14649         allow_undefined_flag_F77=unsupported
14650         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14651         # support --undefined.  This deserves some investigation.  FIXME
14652         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14653       else
14654         ld_shlibs_F77=no
14655       fi
14656       ;;
14658     cygwin* | mingw* | pw32*)
14659       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14660       # as there is no search path for DLLs.
14661       hardcode_libdir_flag_spec_F77='-L$libdir'
14662       allow_undefined_flag_F77=unsupported
14663       always_export_symbols_F77=no
14664       enable_shared_with_static_runtimes_F77=yes
14665       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14667       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14668         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14669         # If the export-symbols file already is a .def file (1st line
14670         # is EXPORTS), use it as is; otherwise, prepend...
14671         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14672           cp $export_symbols $output_objdir/$soname.def;
14673         else
14674           echo EXPORTS > $output_objdir/$soname.def;
14675           cat $export_symbols >> $output_objdir/$soname.def;
14676         fi~
14677         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14678       else
14679         ld_shlibs_F77=no
14680       fi
14681       ;;
14683     linux*)
14684       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14685         tmp_addflag=
14686         case $cc_basename,$host_cpu in
14687         pgcc*)                          # Portland Group C compiler
14688           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'
14689           tmp_addflag=' $pic_flag'
14690           ;;
14691         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14692           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'
14693           tmp_addflag=' $pic_flag -Mnomain' ;;
14694         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14695           tmp_addflag=' -i_dynamic' ;;
14696         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14697           tmp_addflag=' -i_dynamic -nofor_main' ;;
14698         ifc* | ifort*)                  # Intel Fortran compiler
14699           tmp_addflag=' -nofor_main' ;;
14700         esac
14701         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14703         if test $supports_anon_versioning = yes; then
14704           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14705   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14706   $echo "local: *; };" >> $output_objdir/$libname.ver~
14707           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14708         fi
14709         link_all_deplibs_F77=no
14710       else
14711         ld_shlibs_F77=no
14712       fi
14713       ;;
14715     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14716       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14717         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14718         wlarc=
14719       else
14720         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14721         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14722       fi
14723       ;;
14725     solaris* | sysv5*)
14726       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14727         ld_shlibs_F77=no
14728         cat <<EOF 1>&2
14730 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14731 *** create shared libraries on Solaris systems.  Therefore, libtool
14732 *** is disabling shared libraries support.  We urge you to upgrade GNU
14733 *** binutils to release 2.9.1 or newer.  Another option is to modify
14734 *** your PATH or compiler configuration so that the native linker is
14735 *** used, and then restart.
14738       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14739         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14740         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14741       else
14742         ld_shlibs_F77=no
14743       fi
14744       ;;
14746     sunos4*)
14747       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14748       wlarc=
14749       hardcode_direct_F77=yes
14750       hardcode_shlibpath_var_F77=no
14751       ;;
14753     *)
14754       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14755         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14756         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14757       else
14758         ld_shlibs_F77=no
14759       fi
14760       ;;
14761     esac
14763     if test "$ld_shlibs_F77" = no; then
14764       runpath_var=
14765       hardcode_libdir_flag_spec_F77=
14766       export_dynamic_flag_spec_F77=
14767       whole_archive_flag_spec_F77=
14768     fi
14769   else
14770     # PORTME fill in a description of your system's linker (not GNU ld)
14771     case $host_os in
14772     aix3*)
14773       allow_undefined_flag_F77=unsupported
14774       always_export_symbols_F77=yes
14775       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'
14776       # Note: this linker hardcodes the directories in LIBPATH if there
14777       # are no directories specified by -L.
14778       hardcode_minus_L_F77=yes
14779       if test "$GCC" = yes && test -z "$link_static_flag"; then
14780         # Neither direct hardcoding nor static linking is supported with a
14781         # broken collect2.
14782         hardcode_direct_F77=unsupported
14783       fi
14784       ;;
14786     aix4* | aix5*)
14787       if test "$host_cpu" = ia64; then
14788         # On IA64, the linker does run time linking by default, so we don't
14789         # have to do anything special.
14790         aix_use_runtimelinking=no
14791         exp_sym_flag='-Bexport'
14792         no_entry_flag=""
14793       else
14794         # If we're using GNU nm, then we don't want the "-C" option.
14795         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14796         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14797           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'
14798         else
14799           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'
14800         fi
14801         aix_use_runtimelinking=no
14803         # Test if we are trying to use run time linking or normal
14804         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14805         # need to do runtime linking.
14806         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14807           for ld_flag in $LDFLAGS; do
14808           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14809             aix_use_runtimelinking=yes
14810             break
14811           fi
14812           done
14813         esac
14815         exp_sym_flag='-bexport'
14816         no_entry_flag='-bnoentry'
14817       fi
14819       # When large executables or shared objects are built, AIX ld can
14820       # have problems creating the table of contents.  If linking a library
14821       # or program results in "error TOC overflow" add -mminimal-toc to
14822       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14823       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14825       archive_cmds_F77=''
14826       hardcode_direct_F77=yes
14827       hardcode_libdir_separator_F77=':'
14828       link_all_deplibs_F77=yes
14830       if test "$GCC" = yes; then
14831         case $host_os in aix4.[012]|aix4.[012].*)
14832         # We only want to do this on AIX 4.2 and lower, the check
14833         # below for broken collect2 doesn't work under 4.3+
14834           collect2name=`${CC} -print-prog-name=collect2`
14835           if test -f "$collect2name" && \
14836            strings "$collect2name" | grep resolve_lib_name >/dev/null
14837           then
14838           # We have reworked collect2
14839           hardcode_direct_F77=yes
14840           else
14841           # We have old collect2
14842           hardcode_direct_F77=unsupported
14843           # It fails to find uninstalled libraries when the uninstalled
14844           # path is not listed in the libpath.  Setting hardcode_minus_L
14845           # to unsupported forces relinking
14846           hardcode_minus_L_F77=yes
14847           hardcode_libdir_flag_spec_F77='-L$libdir'
14848           hardcode_libdir_separator_F77=
14849           fi
14850         esac
14851         shared_flag='-shared'
14852         if test "$aix_use_runtimelinking" = yes; then
14853           shared_flag="$shared_flag "'${wl}-G'
14854         fi
14855       else
14856         # not using gcc
14857         if test "$host_cpu" = ia64; then
14858         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14859         # chokes on -Wl,-G. The following line is correct:
14860           shared_flag='-G'
14861         else
14862         if test "$aix_use_runtimelinking" = yes; then
14863             shared_flag='${wl}-G'
14864           else
14865             shared_flag='${wl}-bM:SRE'
14866         fi
14867         fi
14868       fi
14870       # It seems that -bexpall does not export symbols beginning with
14871       # underscore (_), so it is better to generate a list of symbols to export.
14872       always_export_symbols_F77=yes
14873       if test "$aix_use_runtimelinking" = yes; then
14874         # Warning - without using the other runtime loading flags (-brtl),
14875         # -berok will link without error, but may produce a broken library.
14876         allow_undefined_flag_F77='-berok'
14877        # Determine the default libpath from the value encoded in an empty executable.
14878        cat >conftest.$ac_ext <<_ACEOF
14879       program main
14881       end
14882 _ACEOF
14883 rm -f conftest.$ac_objext conftest$ac_exeext
14884 if { (ac_try="$ac_link"
14885 case "(($ac_try" in
14886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887   *) ac_try_echo=$ac_try;;
14888 esac
14889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890   (eval "$ac_link") 2>conftest.er1
14891   ac_status=$?
14892   grep -v '^ *+' conftest.er1 >conftest.err
14893   rm -f conftest.er1
14894   cat conftest.err >&5
14895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896   (exit $ac_status); } && {
14897          test -z "$ac_f77_werror_flag" ||
14898          test ! -s conftest.err
14899        } && test -s conftest$ac_exeext &&
14900        $as_test_x conftest$ac_exeext; then
14901   
14902 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14904 # Check for a 64-bit object if we didn't find anything.
14905 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14906 }'`; fi
14907 else
14908   echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.$ac_ext >&5
14911         
14914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14915       conftest$ac_exeext conftest.$ac_ext
14916 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14918        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14919         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14920        else
14921         if test "$host_cpu" = ia64; then
14922           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14923           allow_undefined_flag_F77="-z nodefs"
14924           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14925         else
14926          # Determine the default libpath from the value encoded in an empty executable.
14927          cat >conftest.$ac_ext <<_ACEOF
14928       program main
14930       end
14931 _ACEOF
14932 rm -f conftest.$ac_objext conftest$ac_exeext
14933 if { (ac_try="$ac_link"
14934 case "(($ac_try" in
14935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14936   *) ac_try_echo=$ac_try;;
14937 esac
14938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14939   (eval "$ac_link") 2>conftest.er1
14940   ac_status=$?
14941   grep -v '^ *+' conftest.er1 >conftest.err
14942   rm -f conftest.er1
14943   cat conftest.err >&5
14944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945   (exit $ac_status); } && {
14946          test -z "$ac_f77_werror_flag" ||
14947          test ! -s conftest.err
14948        } && test -s conftest$ac_exeext &&
14949        $as_test_x conftest$ac_exeext; then
14950   
14951 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14953 # Check for a 64-bit object if we didn't find anything.
14954 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14955 }'`; fi
14956 else
14957   echo "$as_me: failed program was:" >&5
14958 sed 's/^/| /' conftest.$ac_ext >&5
14960         
14963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14964       conftest$ac_exeext conftest.$ac_ext
14965 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14967          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14968           # Warning - without using the other run time loading flags,
14969           # -berok will link without error, but may produce a broken library.
14970           no_undefined_flag_F77=' ${wl}-bernotok'
14971           allow_undefined_flag_F77=' ${wl}-berok'
14972           # -bexpall does not export symbols beginning with underscore (_)
14973           always_export_symbols_F77=yes
14974           # Exported symbols can be pulled into shared objects from archives
14975           whole_archive_flag_spec_F77=' '
14976           archive_cmds_need_lc_F77=yes
14977           # This is similar to how AIX traditionally builds its shared libraries.
14978           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14979         fi
14980       fi
14981       ;;
14983     amigaos*)
14984       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)'
14985       hardcode_libdir_flag_spec_F77='-L$libdir'
14986       hardcode_minus_L_F77=yes
14987       # see comment about different semantics on the GNU ld section
14988       ld_shlibs_F77=no
14989       ;;
14991     bsdi[45]*)
14992       export_dynamic_flag_spec_F77=-rdynamic
14993       ;;
14995     cygwin* | mingw* | pw32*)
14996       # When not using gcc, we currently assume that we are using
14997       # Microsoft Visual C++.
14998       # hardcode_libdir_flag_spec is actually meaningless, as there is
14999       # no search path for DLLs.
15000       hardcode_libdir_flag_spec_F77=' '
15001       allow_undefined_flag_F77=unsupported
15002       # Tell ltmain to make .lib files, not .a files.
15003       libext=lib
15004       # Tell ltmain to make .dll files, not .so files.
15005       shrext_cmds=".dll"
15006       # FIXME: Setting linknames here is a bad hack.
15007       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15008       # The linker will automatically build a .lib file if we build a DLL.
15009       old_archive_From_new_cmds_F77='true'
15010       # FIXME: Should let the user specify the lib program.
15011       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15012       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15013       enable_shared_with_static_runtimes_F77=yes
15014       ;;
15016     darwin* | rhapsody*)
15017       case $host_os in
15018         rhapsody* | darwin1.[012])
15019          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15020          ;;
15021        *) # Darwin 1.3 on
15022          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15023            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15024          else
15025            case ${MACOSX_DEPLOYMENT_TARGET} in
15026              10.[012])
15027                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15028                ;;
15029              10.*)
15030                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15031                ;;
15032            esac
15033          fi
15034          ;;
15035       esac
15036       archive_cmds_need_lc_F77=no
15037       hardcode_direct_F77=no
15038       hardcode_automatic_F77=yes
15039       hardcode_shlibpath_var_F77=unsupported
15040       whole_archive_flag_spec_F77=''
15041       link_all_deplibs_F77=yes
15042     if test "$GCC" = yes ; then
15043         output_verbose_link_cmd='echo'
15044         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15045       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15046       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15047       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}'
15048       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}'
15049     else
15050       case $cc_basename in
15051         xlc*)
15052          output_verbose_link_cmd='echo'
15053          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15054          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15055           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15056          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15057           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}'
15058           ;;
15059        *)
15060          ld_shlibs_F77=no
15061           ;;
15062       esac
15063     fi
15064       ;;
15066     dgux*)
15067       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15068       hardcode_libdir_flag_spec_F77='-L$libdir'
15069       hardcode_shlibpath_var_F77=no
15070       ;;
15072     freebsd1*)
15073       ld_shlibs_F77=no
15074       ;;
15076     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15077     # support.  Future versions do this automatically, but an explicit c++rt0.o
15078     # does not break anything, and helps significantly (at the cost of a little
15079     # extra space).
15080     freebsd2.2*)
15081       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15082       hardcode_libdir_flag_spec_F77='-R$libdir'
15083       hardcode_direct_F77=yes
15084       hardcode_shlibpath_var_F77=no
15085       ;;
15087     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15088     freebsd2*)
15089       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15090       hardcode_direct_F77=yes
15091       hardcode_minus_L_F77=yes
15092       hardcode_shlibpath_var_F77=no
15093       ;;
15095     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15096     freebsd* | kfreebsd*-gnu | dragonfly*)
15097       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15098       hardcode_libdir_flag_spec_F77='-R$libdir'
15099       hardcode_direct_F77=yes
15100       hardcode_shlibpath_var_F77=no
15101       ;;
15103     hpux9*)
15104       if test "$GCC" = yes; then
15105         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'
15106       else
15107         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'
15108       fi
15109       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15110       hardcode_libdir_separator_F77=:
15111       hardcode_direct_F77=yes
15113       # hardcode_minus_L: Not really in the search PATH,
15114       # but as the default location of the library.
15115       hardcode_minus_L_F77=yes
15116       export_dynamic_flag_spec_F77='${wl}-E'
15117       ;;
15119     hpux10* | hpux11*)
15120       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15121         case $host_cpu in
15122         hppa*64*|ia64*)
15123           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15124           ;;
15125         *)
15126           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15127           ;;
15128         esac
15129       else
15130         case $host_cpu in
15131         hppa*64*|ia64*)
15132           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15133           ;;
15134         *)
15135           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15136           ;;
15137         esac
15138       fi
15139       if test "$with_gnu_ld" = no; then
15140         case $host_cpu in
15141         hppa*64*)
15142           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15143           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15144           hardcode_libdir_separator_F77=:
15145           hardcode_direct_F77=no
15146           hardcode_shlibpath_var_F77=no
15147           ;;
15148         ia64*)
15149           hardcode_libdir_flag_spec_F77='-L$libdir'
15150           hardcode_direct_F77=no
15151           hardcode_shlibpath_var_F77=no
15153           # hardcode_minus_L: Not really in the search PATH,
15154           # but as the default location of the library.
15155           hardcode_minus_L_F77=yes
15156           ;;
15157         *)
15158           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15159           hardcode_libdir_separator_F77=:
15160           hardcode_direct_F77=yes
15161           export_dynamic_flag_spec_F77='${wl}-E'
15163           # hardcode_minus_L: Not really in the search PATH,
15164           # but as the default location of the library.
15165           hardcode_minus_L_F77=yes
15166           ;;
15167         esac
15168       fi
15169       ;;
15171     irix5* | irix6* | nonstopux*)
15172       if test "$GCC" = yes; then
15173         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'
15174       else
15175         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'
15176         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15177       fi
15178       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15179       hardcode_libdir_separator_F77=:
15180       link_all_deplibs_F77=yes
15181       ;;
15183     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15184       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15185         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15186       else
15187         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15188       fi
15189       hardcode_libdir_flag_spec_F77='-R$libdir'
15190       hardcode_direct_F77=yes
15191       hardcode_shlibpath_var_F77=no
15192       ;;
15194     newsos6)
15195       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15196       hardcode_direct_F77=yes
15197       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15198       hardcode_libdir_separator_F77=:
15199       hardcode_shlibpath_var_F77=no
15200       ;;
15202     openbsd*)
15203       hardcode_direct_F77=yes
15204       hardcode_shlibpath_var_F77=no
15205       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15206         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15207         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15208         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15209         export_dynamic_flag_spec_F77='${wl}-E'
15210       else
15211        case $host_os in
15212          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15213            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15214            hardcode_libdir_flag_spec_F77='-R$libdir'
15215            ;;
15216          *)
15217            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15218            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15219            ;;
15220        esac
15221       fi
15222       ;;
15224     os2*)
15225       hardcode_libdir_flag_spec_F77='-L$libdir'
15226       hardcode_minus_L_F77=yes
15227       allow_undefined_flag_F77=unsupported
15228       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'
15229       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15230       ;;
15232     osf3*)
15233       if test "$GCC" = yes; then
15234         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15235         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'
15236       else
15237         allow_undefined_flag_F77=' -expect_unresolved \*'
15238         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'
15239       fi
15240       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15241       hardcode_libdir_separator_F77=:
15242       ;;
15244     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15245       if test "$GCC" = yes; then
15246         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15247         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'
15248         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15249       else
15250         allow_undefined_flag_F77=' -expect_unresolved \*'
15251         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'
15252         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~
15253         $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'
15255         # Both c and cxx compiler support -rpath directly
15256         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15257       fi
15258       hardcode_libdir_separator_F77=:
15259       ;;
15261     sco3.2v5*)
15262       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15263       hardcode_shlibpath_var_F77=no
15264       export_dynamic_flag_spec_F77='${wl}-Bexport'
15265       runpath_var=LD_RUN_PATH
15266       hardcode_runpath_var=yes
15267       ;;
15269     solaris*)
15270       no_undefined_flag_F77=' -z text'
15271       if test "$GCC" = yes; then
15272         wlarc='${wl}'
15273         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15274         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15275           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15276       else
15277         wlarc=''
15278         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15279         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15280         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15281       fi
15282       hardcode_libdir_flag_spec_F77='-R$libdir'
15283       hardcode_shlibpath_var_F77=no
15284       case $host_os in
15285       solaris2.[0-5] | solaris2.[0-5].*) ;;
15286       *)
15287         # The compiler driver will combine linker options so we
15288         # cannot just pass the convience library names through
15289         # without $wl, iff we do not link with $LD.
15290         # Luckily, gcc supports the same syntax we need for Sun Studio.
15291         # Supported since Solaris 2.6 (maybe 2.5.1?)
15292         case $wlarc in
15293         '')
15294           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15295         *)
15296           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15297         esac ;;
15298       esac
15299       link_all_deplibs_F77=yes
15300       ;;
15302     sunos4*)
15303       if test "x$host_vendor" = xsequent; then
15304         # Use $CC to link under sequent, because it throws in some extra .o
15305         # files that make .init and .fini sections work.
15306         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15307       else
15308         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15309       fi
15310       hardcode_libdir_flag_spec_F77='-L$libdir'
15311       hardcode_direct_F77=yes
15312       hardcode_minus_L_F77=yes
15313       hardcode_shlibpath_var_F77=no
15314       ;;
15316     sysv4)
15317       case $host_vendor in
15318         sni)
15319           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15320           hardcode_direct_F77=yes # is this really true???
15321         ;;
15322         siemens)
15323           ## LD is ld it makes a PLAMLIB
15324           ## CC just makes a GrossModule.
15325           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15326           reload_cmds_F77='$CC -r -o $output$reload_objs'
15327           hardcode_direct_F77=no
15328         ;;
15329         motorola)
15330           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15331           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15332         ;;
15333       esac
15334       runpath_var='LD_RUN_PATH'
15335       hardcode_shlibpath_var_F77=no
15336       ;;
15338     sysv4.3*)
15339       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15340       hardcode_shlibpath_var_F77=no
15341       export_dynamic_flag_spec_F77='-Bexport'
15342       ;;
15344     sysv4*MP*)
15345       if test -d /usr/nec; then
15346         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15347         hardcode_shlibpath_var_F77=no
15348         runpath_var=LD_RUN_PATH
15349         hardcode_runpath_var=yes
15350         ld_shlibs_F77=yes
15351       fi
15352       ;;
15354     sysv4.2uw2*)
15355       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15356       hardcode_direct_F77=yes
15357       hardcode_minus_L_F77=no
15358       hardcode_shlibpath_var_F77=no
15359       hardcode_runpath_var=yes
15360       runpath_var=LD_RUN_PATH
15361       ;;
15363    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15364       no_undefined_flag_F77='${wl}-z ${wl}text'
15365       if test "$GCC" = yes; then
15366         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15367       else
15368         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15369       fi
15370       runpath_var='LD_RUN_PATH'
15371       hardcode_shlibpath_var_F77=no
15372       ;;
15374     sysv5*)
15375       no_undefined_flag_F77=' -z text'
15376       # $CC -shared without GNU ld will not create a library from C++
15377       # object files and a static libstdc++, better avoid it by now
15378       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15379       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15380                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15381       hardcode_libdir_flag_spec_F77=
15382       hardcode_shlibpath_var_F77=no
15383       runpath_var='LD_RUN_PATH'
15384       ;;
15386     uts4*)
15387       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15388       hardcode_libdir_flag_spec_F77='-L$libdir'
15389       hardcode_shlibpath_var_F77=no
15390       ;;
15392     *)
15393       ld_shlibs_F77=no
15394       ;;
15395     esac
15396   fi
15398 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15399 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15400 test "$ld_shlibs_F77" = no && can_build_shared=no
15402 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15403 if test "$GCC" = yes; then
15404   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15408 # Do we need to explicitly link libc?
15410 case "x$archive_cmds_need_lc_F77" in
15411 x|xyes)
15412   # Assume -lc should be added
15413   archive_cmds_need_lc_F77=yes
15415   if test "$enable_shared" = yes && test "$GCC" = yes; then
15416     case $archive_cmds_F77 in
15417     *'~'*)
15418       # FIXME: we may have to deal with multi-command sequences.
15419       ;;
15420     '$CC '*)
15421       # Test whether the compiler implicitly links with -lc since on some
15422       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15423       # to ld, don't add -lc before -lgcc.
15424       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15425 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15426       $rm conftest*
15427       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15429       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15430   (eval $ac_compile) 2>&5
15431   ac_status=$?
15432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433   (exit $ac_status); } 2>conftest.err; then
15434         soname=conftest
15435         lib=conftest
15436         libobjs=conftest.$ac_objext
15437         deplibs=
15438         wl=$lt_prog_compiler_wl_F77
15439         compiler_flags=-v
15440         linker_flags=-v
15441         verstring=
15442         output_objdir=.
15443         libname=conftest
15444         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15445         allow_undefined_flag_F77=
15446         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15447   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15448   ac_status=$?
15449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450   (exit $ac_status); }
15451         then
15452           archive_cmds_need_lc_F77=no
15453         else
15454           archive_cmds_need_lc_F77=yes
15455         fi
15456         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15457       else
15458         cat conftest.err 1>&5
15459       fi
15460       $rm conftest*
15461       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15462 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15463       ;;
15464     esac
15465   fi
15466   ;;
15467 esac
15469 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15470 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15471 library_names_spec=
15472 libname_spec='lib$name'
15473 soname_spec=
15474 shrext_cmds=".so"
15475 postinstall_cmds=
15476 postuninstall_cmds=
15477 finish_cmds=
15478 finish_eval=
15479 shlibpath_var=
15480 shlibpath_overrides_runpath=unknown
15481 version_type=none
15482 dynamic_linker="$host_os ld.so"
15483 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15484 if test "$GCC" = yes; then
15485   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15486   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15487     # if the path contains ";" then we assume it to be the separator
15488     # otherwise default to the standard path separator (i.e. ":") - it is
15489     # assumed that no part of a normal pathname contains ";" but that should
15490     # okay in the real world where ";" in dirpaths is itself problematic.
15491     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15492   else
15493     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15494   fi
15495 else
15496   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15498 need_lib_prefix=unknown
15499 hardcode_into_libs=no
15501 # when you set need_version to no, make sure it does not cause -set_version
15502 # flags to be left without arguments
15503 need_version=unknown
15505 case $host_os in
15506 aix3*)
15507   version_type=linux
15508   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15509   shlibpath_var=LIBPATH
15511   # AIX 3 has no versioning support, so we append a major version to the name.
15512   soname_spec='${libname}${release}${shared_ext}$major'
15513   ;;
15515 aix4* | aix5*)
15516   version_type=linux
15517   need_lib_prefix=no
15518   need_version=no
15519   hardcode_into_libs=yes
15520   if test "$host_cpu" = ia64; then
15521     # AIX 5 supports IA64
15522     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15523     shlibpath_var=LD_LIBRARY_PATH
15524   else
15525     # With GCC up to 2.95.x, collect2 would create an import file
15526     # for dependence libraries.  The import file would start with
15527     # the line `#! .'.  This would cause the generated library to
15528     # depend on `.', always an invalid library.  This was fixed in
15529     # development snapshots of GCC prior to 3.0.
15530     case $host_os in
15531       aix4 | aix4.[01] | aix4.[01].*)
15532       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15533            echo ' yes '
15534            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15535         :
15536       else
15537         can_build_shared=no
15538       fi
15539       ;;
15540     esac
15541     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15542     # soname into executable. Probably we can add versioning support to
15543     # collect2, so additional links can be useful in future.
15544     if test "$aix_use_runtimelinking" = yes; then
15545       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15546       # instead of lib<name>.a to let people know that these are not
15547       # typical AIX shared libraries.
15548       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15549     else
15550       # We preserve .a as extension for shared libraries through AIX4.2
15551       # and later when we are not doing run time linking.
15552       library_names_spec='${libname}${release}.a $libname.a'
15553       soname_spec='${libname}${release}${shared_ext}$major'
15554     fi
15555     shlibpath_var=LIBPATH
15556   fi
15557   ;;
15559 amigaos*)
15560   library_names_spec='$libname.ixlibrary $libname.a'
15561   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15562   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'
15563   ;;
15565 beos*)
15566   library_names_spec='${libname}${shared_ext}'
15567   dynamic_linker="$host_os ld.so"
15568   shlibpath_var=LIBRARY_PATH
15569   ;;
15571 bsdi[45]*)
15572   version_type=linux
15573   need_version=no
15574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15575   soname_spec='${libname}${release}${shared_ext}$major'
15576   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15577   shlibpath_var=LD_LIBRARY_PATH
15578   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15579   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15580   # the default ld.so.conf also contains /usr/contrib/lib and
15581   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15582   # libtool to hard-code these into programs
15583   ;;
15585 cygwin* | mingw* | pw32*)
15586   version_type=windows
15587   shrext_cmds=".dll"
15588   need_version=no
15589   need_lib_prefix=no
15591   case $GCC,$host_os in
15592   yes,cygwin* | yes,mingw* | yes,pw32*)
15593     library_names_spec='$libname.dll.a'
15594     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15595     postinstall_cmds='base_file=`basename \${file}`~
15596       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15597       dldir=$destdir/`dirname \$dlpath`~
15598       test -d \$dldir || mkdir -p \$dldir~
15599       $install_prog $dir/$dlname \$dldir/$dlname~
15600       chmod a+x \$dldir/$dlname'
15601     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15602       dlpath=$dir/\$dldll~
15603        $rm \$dlpath'
15604     shlibpath_overrides_runpath=yes
15606     case $host_os in
15607     cygwin*)
15608       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15609       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15610       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15611       ;;
15612     mingw*)
15613       # MinGW DLLs use traditional 'lib' prefix
15614       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15615       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15616       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15617         # It is most probably a Windows format PATH printed by
15618         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15619         # path with ; separators, and with drive letters. We can handle the
15620         # drive letters (cygwin fileutils understands them), so leave them,
15621         # especially as we might pass files found there to a mingw objdump,
15622         # which wouldn't understand a cygwinified path. Ahh.
15623         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15624       else
15625         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15626       fi
15627       ;;
15628     pw32*)
15629       # pw32 DLLs use 'pw' prefix rather than 'lib'
15630       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15631       ;;
15632     esac
15633     ;;
15635   *)
15636     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15637     ;;
15638   esac
15639   dynamic_linker='Win32 ld.exe'
15640   # FIXME: first we should search . and the directory the executable is in
15641   shlibpath_var=PATH
15642   ;;
15644 darwin* | rhapsody*)
15645   dynamic_linker="$host_os dyld"
15646   version_type=darwin
15647   need_lib_prefix=no
15648   need_version=no
15649   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15650   soname_spec='${libname}${release}${major}$shared_ext'
15651   shlibpath_overrides_runpath=yes
15652   shlibpath_var=DYLD_LIBRARY_PATH
15653   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15654   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15655   if test "$GCC" = yes; then
15656     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15657   else
15658     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15659   fi
15660   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15661   ;;
15663 dgux*)
15664   version_type=linux
15665   need_lib_prefix=no
15666   need_version=no
15667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15668   soname_spec='${libname}${release}${shared_ext}$major'
15669   shlibpath_var=LD_LIBRARY_PATH
15670   ;;
15672 freebsd1*)
15673   dynamic_linker=no
15674   ;;
15676 kfreebsd*-gnu)
15677   version_type=linux
15678   need_lib_prefix=no
15679   need_version=no
15680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15681   soname_spec='${libname}${release}${shared_ext}$major'
15682   shlibpath_var=LD_LIBRARY_PATH
15683   shlibpath_overrides_runpath=no
15684   hardcode_into_libs=yes
15685   dynamic_linker='GNU ld.so'
15686   ;;
15688 freebsd* | dragonfly*)
15689   # DragonFly does not have aout.  When/if they implement a new
15690   # versioning mechanism, adjust this.
15691   if test -x /usr/bin/objformat; then
15692     objformat=`/usr/bin/objformat`
15693   else
15694     case $host_os in
15695     freebsd[123]*) objformat=aout ;;
15696     *) objformat=elf ;;
15697     esac
15698   fi
15699   version_type=freebsd-$objformat
15700   case $version_type in
15701     freebsd-elf*)
15702       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15703       need_version=no
15704       need_lib_prefix=no
15705       ;;
15706     freebsd-*)
15707       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15708       need_version=yes
15709       ;;
15710   esac
15711   shlibpath_var=LD_LIBRARY_PATH
15712   case $host_os in
15713   freebsd2*)
15714     shlibpath_overrides_runpath=yes
15715     ;;
15716   freebsd3.[01]* | freebsdelf3.[01]*)
15717     shlibpath_overrides_runpath=yes
15718     hardcode_into_libs=yes
15719     ;;
15720   *) # from 3.2 on
15721     shlibpath_overrides_runpath=no
15722     hardcode_into_libs=yes
15723     ;;
15724   esac
15725   ;;
15727 gnu*)
15728   version_type=linux
15729   need_lib_prefix=no
15730   need_version=no
15731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15732   soname_spec='${libname}${release}${shared_ext}$major'
15733   shlibpath_var=LD_LIBRARY_PATH
15734   hardcode_into_libs=yes
15735   ;;
15737 hpux9* | hpux10* | hpux11*)
15738   # Give a soname corresponding to the major version so that dld.sl refuses to
15739   # link against other versions.
15740   version_type=sunos
15741   need_lib_prefix=no
15742   need_version=no
15743   case $host_cpu in
15744   ia64*)
15745     shrext_cmds='.so'
15746     hardcode_into_libs=yes
15747     dynamic_linker="$host_os dld.so"
15748     shlibpath_var=LD_LIBRARY_PATH
15749     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15750     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15751     soname_spec='${libname}${release}${shared_ext}$major'
15752     if test "X$HPUX_IA64_MODE" = X32; then
15753       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15754     else
15755       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15756     fi
15757     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15758     ;;
15759    hppa*64*)
15760      shrext_cmds='.sl'
15761      hardcode_into_libs=yes
15762      dynamic_linker="$host_os dld.sl"
15763      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15764      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15765      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15766      soname_spec='${libname}${release}${shared_ext}$major'
15767      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15768      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15769      ;;
15770    *)
15771     shrext_cmds='.sl'
15772     dynamic_linker="$host_os dld.sl"
15773     shlibpath_var=SHLIB_PATH
15774     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15775     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15776     soname_spec='${libname}${release}${shared_ext}$major'
15777     ;;
15778   esac
15779   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15780   postinstall_cmds='chmod 555 $lib'
15781   ;;
15783 irix5* | irix6* | nonstopux*)
15784   case $host_os in
15785     nonstopux*) version_type=nonstopux ;;
15786     *)
15787         if test "$lt_cv_prog_gnu_ld" = yes; then
15788                 version_type=linux
15789         else
15790                 version_type=irix
15791         fi ;;
15792   esac
15793   need_lib_prefix=no
15794   need_version=no
15795   soname_spec='${libname}${release}${shared_ext}$major'
15796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15797   case $host_os in
15798   irix5* | nonstopux*)
15799     libsuff= shlibsuff=
15800     ;;
15801   *)
15802     case $LD in # libtool.m4 will add one of these switches to LD
15803     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15804       libsuff= shlibsuff= libmagic=32-bit;;
15805     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15806       libsuff=32 shlibsuff=N32 libmagic=N32;;
15807     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15808       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15809     *) libsuff= shlibsuff= libmagic=never-match;;
15810     esac
15811     ;;
15812   esac
15813   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15814   shlibpath_overrides_runpath=no
15815   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15816   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15817   hardcode_into_libs=yes
15818   ;;
15820 # No shared lib support for Linux oldld, aout, or coff.
15821 linux*oldld* | linux*aout* | linux*coff*)
15822   dynamic_linker=no
15823   ;;
15825 # This must be Linux ELF.
15826 linux*)
15827   version_type=linux
15828   need_lib_prefix=no
15829   need_version=no
15830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15831   soname_spec='${libname}${release}${shared_ext}$major'
15832   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15833   shlibpath_var=LD_LIBRARY_PATH
15834   shlibpath_overrides_runpath=no
15835   # This implies no fast_install, which is unacceptable.
15836   # Some rework will be needed to allow for fast_install
15837   # before this can be enabled.
15838   hardcode_into_libs=yes
15840   # Append ld.so.conf contents to the search path
15841   if test -f /etc/ld.so.conf; then
15842     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15843     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15844   fi
15846   # We used to test for /lib/ld.so.1 and disable shared libraries on
15847   # powerpc, because MkLinux only supported shared libraries with the
15848   # GNU dynamic linker.  Since this was broken with cross compilers,
15849   # most powerpc-linux boxes support dynamic linking these days and
15850   # people can always --disable-shared, the test was removed, and we
15851   # assume the GNU/Linux dynamic linker is in use.
15852   dynamic_linker='GNU/Linux ld.so'
15853   ;;
15855 netbsdelf*-gnu)
15856   version_type=linux
15857   need_lib_prefix=no
15858   need_version=no
15859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15860   soname_spec='${libname}${release}${shared_ext}$major'
15861   shlibpath_var=LD_LIBRARY_PATH
15862   shlibpath_overrides_runpath=no
15863   hardcode_into_libs=yes
15864   dynamic_linker='NetBSD ld.elf_so'
15865   ;;
15867 knetbsd*-gnu)
15868   version_type=linux
15869   need_lib_prefix=no
15870   need_version=no
15871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15872   soname_spec='${libname}${release}${shared_ext}$major'
15873   shlibpath_var=LD_LIBRARY_PATH
15874   shlibpath_overrides_runpath=no
15875   hardcode_into_libs=yes
15876   dynamic_linker='GNU ld.so'
15877   ;;
15879 netbsd*)
15880   version_type=sunos
15881   need_lib_prefix=no
15882   need_version=no
15883   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15884     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15885     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15886     dynamic_linker='NetBSD (a.out) ld.so'
15887   else
15888     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15889     soname_spec='${libname}${release}${shared_ext}$major'
15890     dynamic_linker='NetBSD ld.elf_so'
15891   fi
15892   shlibpath_var=LD_LIBRARY_PATH
15893   shlibpath_overrides_runpath=yes
15894   hardcode_into_libs=yes
15895   ;;
15897 newsos6)
15898   version_type=linux
15899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15900   shlibpath_var=LD_LIBRARY_PATH
15901   shlibpath_overrides_runpath=yes
15902   ;;
15904 nto-qnx*)
15905   version_type=linux
15906   need_lib_prefix=no
15907   need_version=no
15908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15909   soname_spec='${libname}${release}${shared_ext}$major'
15910   shlibpath_var=LD_LIBRARY_PATH
15911   shlibpath_overrides_runpath=yes
15912   ;;
15914 openbsd*)
15915   version_type=sunos
15916   need_lib_prefix=no
15917   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15918   case $host_os in
15919     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15920     *)                         need_version=no  ;;
15921   esac
15922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15923   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15924   shlibpath_var=LD_LIBRARY_PATH
15925   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15926     case $host_os in
15927       openbsd2.[89] | openbsd2.[89].*)
15928         shlibpath_overrides_runpath=no
15929         ;;
15930       *)
15931         shlibpath_overrides_runpath=yes
15932         ;;
15933       esac
15934   else
15935     shlibpath_overrides_runpath=yes
15936   fi
15937   ;;
15939 os2*)
15940   libname_spec='$name'
15941   shrext_cmds=".dll"
15942   need_lib_prefix=no
15943   library_names_spec='$libname${shared_ext} $libname.a'
15944   dynamic_linker='OS/2 ld.exe'
15945   shlibpath_var=LIBPATH
15946   ;;
15948 osf3* | osf4* | osf5*)
15949   version_type=osf
15950   need_lib_prefix=no
15951   need_version=no
15952   soname_spec='${libname}${release}${shared_ext}$major'
15953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15954   shlibpath_var=LD_LIBRARY_PATH
15955   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15956   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15957   ;;
15959 sco3.2v5*)
15960   version_type=osf
15961   soname_spec='${libname}${release}${shared_ext}$major'
15962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15963   shlibpath_var=LD_LIBRARY_PATH
15964   ;;
15966 solaris*)
15967   version_type=linux
15968   need_lib_prefix=no
15969   need_version=no
15970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15971   soname_spec='${libname}${release}${shared_ext}$major'
15972   shlibpath_var=LD_LIBRARY_PATH
15973   shlibpath_overrides_runpath=yes
15974   hardcode_into_libs=yes
15975   # ldd complains unless libraries are executable
15976   postinstall_cmds='chmod +x $lib'
15977   ;;
15979 sunos4*)
15980   version_type=sunos
15981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15982   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15983   shlibpath_var=LD_LIBRARY_PATH
15984   shlibpath_overrides_runpath=yes
15985   if test "$with_gnu_ld" = yes; then
15986     need_lib_prefix=no
15987   fi
15988   need_version=yes
15989   ;;
15991 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15992   version_type=linux
15993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15994   soname_spec='${libname}${release}${shared_ext}$major'
15995   shlibpath_var=LD_LIBRARY_PATH
15996   case $host_vendor in
15997     sni)
15998       shlibpath_overrides_runpath=no
15999       need_lib_prefix=no
16000       export_dynamic_flag_spec='${wl}-Blargedynsym'
16001       runpath_var=LD_RUN_PATH
16002       ;;
16003     siemens)
16004       need_lib_prefix=no
16005       ;;
16006     motorola)
16007       need_lib_prefix=no
16008       need_version=no
16009       shlibpath_overrides_runpath=no
16010       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16011       ;;
16012   esac
16013   ;;
16015 sysv4*MP*)
16016   if test -d /usr/nec ;then
16017     version_type=linux
16018     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16019     soname_spec='$libname${shared_ext}.$major'
16020     shlibpath_var=LD_LIBRARY_PATH
16021   fi
16022   ;;
16024 uts4*)
16025   version_type=linux
16026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16027   soname_spec='${libname}${release}${shared_ext}$major'
16028   shlibpath_var=LD_LIBRARY_PATH
16029   ;;
16032   dynamic_linker=no
16033   ;;
16034 esac
16035 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16036 echo "${ECHO_T}$dynamic_linker" >&6; }
16037 test "$dynamic_linker" = no && can_build_shared=no
16039 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16040 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16041 hardcode_action_F77=
16042 if test -n "$hardcode_libdir_flag_spec_F77" || \
16043    test -n "$runpath_var_F77" || \
16044    test "X$hardcode_automatic_F77" = "Xyes" ; then
16046   # We can hardcode non-existant directories.
16047   if test "$hardcode_direct_F77" != no &&
16048      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16049      # have to relink, otherwise we might link with an installed library
16050      # when we should be linking with a yet-to-be-installed one
16051      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16052      test "$hardcode_minus_L_F77" != no; then
16053     # Linking always hardcodes the temporary library directory.
16054     hardcode_action_F77=relink
16055   else
16056     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16057     hardcode_action_F77=immediate
16058   fi
16059 else
16060   # We cannot hardcode anything, or else we can only hardcode existing
16061   # directories.
16062   hardcode_action_F77=unsupported
16064 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16065 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16067 if test "$hardcode_action_F77" = relink; then
16068   # Fast installation is not supported
16069   enable_fast_install=no
16070 elif test "$shlibpath_overrides_runpath" = yes ||
16071      test "$enable_shared" = no; then
16072   # Fast installation is not necessary
16073   enable_fast_install=needless
16076 striplib=
16077 old_striplib=
16078 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16079 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16080 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16081   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16082   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16083   { echo "$as_me:$LINENO: result: yes" >&5
16084 echo "${ECHO_T}yes" >&6; }
16085 else
16086 # FIXME - insert some real tests, host_os isn't really good enough
16087   case $host_os in
16088    darwin*)
16089        if test -n "$STRIP" ; then
16090          striplib="$STRIP -x"
16091          { echo "$as_me:$LINENO: result: yes" >&5
16092 echo "${ECHO_T}yes" >&6; }
16093        else
16094   { echo "$as_me:$LINENO: result: no" >&5
16095 echo "${ECHO_T}no" >&6; }
16097        ;;
16098    *)
16099   { echo "$as_me:$LINENO: result: no" >&5
16100 echo "${ECHO_T}no" >&6; }
16101     ;;
16102   esac
16107 # The else clause should only fire when bootstrapping the
16108 # libtool distribution, otherwise you forgot to ship ltmain.sh
16109 # with your package, and you will get complaints that there are
16110 # no rules to generate ltmain.sh.
16111 if test -f "$ltmain"; then
16112   # See if we are running on zsh, and set the options which allow our commands through
16113   # without removal of \ escapes.
16114   if test -n "${ZSH_VERSION+set}" ; then
16115     setopt NO_GLOB_SUBST
16116   fi
16117   # Now quote all the things that may contain metacharacters while being
16118   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16119   # variables and quote the copies for generation of the libtool script.
16120   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16121     SED SHELL STRIP \
16122     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16123     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16124     deplibs_check_method reload_flag reload_cmds need_locks \
16125     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16126     lt_cv_sys_global_symbol_to_c_name_address \
16127     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16128     old_postinstall_cmds old_postuninstall_cmds \
16129     compiler_F77 \
16130     CC_F77 \
16131     LD_F77 \
16132     lt_prog_compiler_wl_F77 \
16133     lt_prog_compiler_pic_F77 \
16134     lt_prog_compiler_static_F77 \
16135     lt_prog_compiler_no_builtin_flag_F77 \
16136     export_dynamic_flag_spec_F77 \
16137     thread_safe_flag_spec_F77 \
16138     whole_archive_flag_spec_F77 \
16139     enable_shared_with_static_runtimes_F77 \
16140     old_archive_cmds_F77 \
16141     old_archive_from_new_cmds_F77 \
16142     predep_objects_F77 \
16143     postdep_objects_F77 \
16144     predeps_F77 \
16145     postdeps_F77 \
16146     compiler_lib_search_path_F77 \
16147     archive_cmds_F77 \
16148     archive_expsym_cmds_F77 \
16149     postinstall_cmds_F77 \
16150     postuninstall_cmds_F77 \
16151     old_archive_from_expsyms_cmds_F77 \
16152     allow_undefined_flag_F77 \
16153     no_undefined_flag_F77 \
16154     export_symbols_cmds_F77 \
16155     hardcode_libdir_flag_spec_F77 \
16156     hardcode_libdir_flag_spec_ld_F77 \
16157     hardcode_libdir_separator_F77 \
16158     hardcode_automatic_F77 \
16159     module_cmds_F77 \
16160     module_expsym_cmds_F77 \
16161     lt_cv_prog_compiler_c_o_F77 \
16162     exclude_expsyms_F77 \
16163     include_expsyms_F77; do
16165     case $var in
16166     old_archive_cmds_F77 | \
16167     old_archive_from_new_cmds_F77 | \
16168     archive_cmds_F77 | \
16169     archive_expsym_cmds_F77 | \
16170     module_cmds_F77 | \
16171     module_expsym_cmds_F77 | \
16172     old_archive_from_expsyms_cmds_F77 | \
16173     export_symbols_cmds_F77 | \
16174     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16175     postinstall_cmds | postuninstall_cmds | \
16176     old_postinstall_cmds | old_postuninstall_cmds | \
16177     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16178       # Double-quote double-evaled strings.
16179       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16180       ;;
16181     *)
16182       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16183       ;;
16184     esac
16185   done
16187   case $lt_echo in
16188   *'\$0 --fallback-echo"')
16189     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16190     ;;
16191   esac
16193 cfgfile="$ofile"
16195   cat <<__EOF__ >> "$cfgfile"
16196 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16198 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16200 # Shell to use when invoking shell scripts.
16201 SHELL=$lt_SHELL
16203 # Whether or not to build shared libraries.
16204 build_libtool_libs=$enable_shared
16206 # Whether or not to build static libraries.
16207 build_old_libs=$enable_static
16209 # Whether or not to add -lc for building shared libraries.
16210 build_libtool_need_lc=$archive_cmds_need_lc_F77
16212 # Whether or not to disallow shared libs when runtime libs are static
16213 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16215 # Whether or not to optimize for fast installation.
16216 fast_install=$enable_fast_install
16218 # The host system.
16219 host_alias=$host_alias
16220 host=$host
16221 host_os=$host_os
16223 # The build system.
16224 build_alias=$build_alias
16225 build=$build
16226 build_os=$build_os
16228 # An echo program that does not interpret backslashes.
16229 echo=$lt_echo
16231 # The archiver.
16232 AR=$lt_AR
16233 AR_FLAGS=$lt_AR_FLAGS
16235 # A C compiler.
16236 LTCC=$lt_LTCC
16238 # A language-specific compiler.
16239 CC=$lt_compiler_F77
16241 # Is the compiler the GNU C compiler?
16242 with_gcc=$GCC_F77
16244 # An ERE matcher.
16245 EGREP=$lt_EGREP
16247 # The linker used to build libraries.
16248 LD=$lt_LD_F77
16250 # Whether we need hard or soft links.
16251 LN_S=$lt_LN_S
16253 # A BSD-compatible nm program.
16254 NM=$lt_NM
16256 # A symbol stripping program
16257 STRIP=$lt_STRIP
16259 # Used to examine libraries when file_magic_cmd begins "file"
16260 MAGIC_CMD=$MAGIC_CMD
16262 # Used on cygwin: DLL creation program.
16263 DLLTOOL="$DLLTOOL"
16265 # Used on cygwin: object dumper.
16266 OBJDUMP="$OBJDUMP"
16268 # Used on cygwin: assembler.
16269 AS="$AS"
16271 # The name of the directory that contains temporary libtool files.
16272 objdir=$objdir
16274 # How to create reloadable object files.
16275 reload_flag=$lt_reload_flag
16276 reload_cmds=$lt_reload_cmds
16278 # How to pass a linker flag through the compiler.
16279 wl=$lt_lt_prog_compiler_wl_F77
16281 # Object file suffix (normally "o").
16282 objext="$ac_objext"
16284 # Old archive suffix (normally "a").
16285 libext="$libext"
16287 # Shared library suffix (normally ".so").
16288 shrext_cmds='$shrext_cmds'
16290 # Executable file suffix (normally "").
16291 exeext="$exeext"
16293 # Additional compiler flags for building library objects.
16294 pic_flag=$lt_lt_prog_compiler_pic_F77
16295 pic_mode=$pic_mode
16297 # What is the maximum length of a command?
16298 max_cmd_len=$lt_cv_sys_max_cmd_len
16300 # Does compiler simultaneously support -c and -o options?
16301 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16303 # Must we lock files when doing compilation?
16304 need_locks=$lt_need_locks
16306 # Do we need the lib prefix for modules?
16307 need_lib_prefix=$need_lib_prefix
16309 # Do we need a version for libraries?
16310 need_version=$need_version
16312 # Whether dlopen is supported.
16313 dlopen_support=$enable_dlopen
16315 # Whether dlopen of programs is supported.
16316 dlopen_self=$enable_dlopen_self
16318 # Whether dlopen of statically linked programs is supported.
16319 dlopen_self_static=$enable_dlopen_self_static
16321 # Compiler flag to prevent dynamic linking.
16322 link_static_flag=$lt_lt_prog_compiler_static_F77
16324 # Compiler flag to turn off builtin functions.
16325 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16327 # Compiler flag to allow reflexive dlopens.
16328 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16330 # Compiler flag to generate shared objects directly from archives.
16331 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16333 # Compiler flag to generate thread-safe objects.
16334 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16336 # Library versioning type.
16337 version_type=$version_type
16339 # Format of library name prefix.
16340 libname_spec=$lt_libname_spec
16342 # List of archive names.  First name is the real one, the rest are links.
16343 # The last name is the one that the linker finds with -lNAME.
16344 library_names_spec=$lt_library_names_spec
16346 # The coded name of the library, if different from the real name.
16347 soname_spec=$lt_soname_spec
16349 # Commands used to build and install an old-style archive.
16350 RANLIB=$lt_RANLIB
16351 old_archive_cmds=$lt_old_archive_cmds_F77
16352 old_postinstall_cmds=$lt_old_postinstall_cmds
16353 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16355 # Create an old-style archive from a shared archive.
16356 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16358 # Create a temporary old-style archive to link instead of a shared archive.
16359 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16361 # Commands used to build and install a shared archive.
16362 archive_cmds=$lt_archive_cmds_F77
16363 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16364 postinstall_cmds=$lt_postinstall_cmds
16365 postuninstall_cmds=$lt_postuninstall_cmds
16367 # Commands used to build a loadable module (assumed same as above if empty)
16368 module_cmds=$lt_module_cmds_F77
16369 module_expsym_cmds=$lt_module_expsym_cmds_F77
16371 # Commands to strip libraries.
16372 old_striplib=$lt_old_striplib
16373 striplib=$lt_striplib
16375 # Dependencies to place before the objects being linked to create a
16376 # shared library.
16377 predep_objects=$lt_predep_objects_F77
16379 # Dependencies to place after the objects being linked to create a
16380 # shared library.
16381 postdep_objects=$lt_postdep_objects_F77
16383 # Dependencies to place before the objects being linked to create a
16384 # shared library.
16385 predeps=$lt_predeps_F77
16387 # Dependencies to place after the objects being linked to create a
16388 # shared library.
16389 postdeps=$lt_postdeps_F77
16391 # The library search path used internally by the compiler when linking
16392 # a shared library.
16393 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16395 # Method to check whether dependent libraries are shared objects.
16396 deplibs_check_method=$lt_deplibs_check_method
16398 # Command to use when deplibs_check_method == file_magic.
16399 file_magic_cmd=$lt_file_magic_cmd
16401 # Flag that allows shared libraries with undefined symbols to be built.
16402 allow_undefined_flag=$lt_allow_undefined_flag_F77
16404 # Flag that forces no undefined symbols.
16405 no_undefined_flag=$lt_no_undefined_flag_F77
16407 # Commands used to finish a libtool library installation in a directory.
16408 finish_cmds=$lt_finish_cmds
16410 # Same as above, but a single script fragment to be evaled but not shown.
16411 finish_eval=$lt_finish_eval
16413 # Take the output of nm and produce a listing of raw symbols and C names.
16414 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16416 # Transform the output of nm in a proper C declaration
16417 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16419 # Transform the output of nm in a C name address pair
16420 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16422 # This is the shared library runtime path variable.
16423 runpath_var=$runpath_var
16425 # This is the shared library path variable.
16426 shlibpath_var=$shlibpath_var
16428 # Is shlibpath searched before the hard-coded library search path?
16429 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16431 # How to hardcode a shared library path into an executable.
16432 hardcode_action=$hardcode_action_F77
16434 # Whether we should hardcode library paths into libraries.
16435 hardcode_into_libs=$hardcode_into_libs
16437 # Flag to hardcode \$libdir into a binary during linking.
16438 # This must work even if \$libdir does not exist.
16439 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16441 # If ld is used when linking, flag to hardcode \$libdir into
16442 # a binary during linking. This must work even if \$libdir does
16443 # not exist.
16444 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16446 # Whether we need a single -rpath flag with a separated argument.
16447 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16449 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16450 # resulting binary.
16451 hardcode_direct=$hardcode_direct_F77
16453 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16454 # resulting binary.
16455 hardcode_minus_L=$hardcode_minus_L_F77
16457 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16458 # the resulting binary.
16459 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16461 # Set to yes if building a shared library automatically hardcodes DIR into the library
16462 # and all subsequent libraries and executables linked against it.
16463 hardcode_automatic=$hardcode_automatic_F77
16465 # Variables whose values should be saved in libtool wrapper scripts and
16466 # restored at relink time.
16467 variables_saved_for_relink="$variables_saved_for_relink"
16469 # Whether libtool must link a program against all its dependency libraries.
16470 link_all_deplibs=$link_all_deplibs_F77
16472 # Compile-time system search path for libraries
16473 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16475 # Run-time system search path for libraries
16476 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16478 # Fix the shell variable \$srcfile for the compiler.
16479 fix_srcfile_path="$fix_srcfile_path_F77"
16481 # Set to yes if exported symbols are required.
16482 always_export_symbols=$always_export_symbols_F77
16484 # The commands to list exported symbols.
16485 export_symbols_cmds=$lt_export_symbols_cmds_F77
16487 # The commands to extract the exported symbol list from a shared archive.
16488 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16490 # Symbols that should not be listed in the preloaded symbols.
16491 exclude_expsyms=$lt_exclude_expsyms_F77
16493 # Symbols that must always be exported.
16494 include_expsyms=$lt_include_expsyms_F77
16496 # ### END LIBTOOL TAG CONFIG: $tagname
16498 __EOF__
16501 else
16502   # If there is no Makefile yet, we rely on a make rule to execute
16503   # `config.status --recheck' to rerun these tests and create the
16504   # libtool script then.
16505   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16506   if test -f "$ltmain_in"; then
16507     test -f Makefile && make "$ltmain"
16508   fi
16512 ac_ext=c
16513 ac_cpp='$CPP $CPPFLAGS'
16514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16518 CC="$lt_save_CC"
16520         else
16521           tagname=""
16522         fi
16523         ;;
16525       GCJ)
16526         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16527           
16529 # Source file extension for Java test sources.
16530 ac_ext=java
16532 # Object file extension for compiled Java test sources.
16533 objext=o
16534 objext_GCJ=$objext
16536 # Code to be used in simple compile tests
16537 lt_simple_compile_test_code="class foo {}\n"
16539 # Code to be used in simple link tests
16540 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16542 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16544 # If no C compiler was specified, use CC.
16545 LTCC=${LTCC-"$CC"}
16547 # Allow CC to be a program name with arguments.
16548 compiler=$CC
16551 # save warnings/boilerplate of simple test code
16552 ac_outfile=conftest.$ac_objext
16553 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16554 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16555 _lt_compiler_boilerplate=`cat conftest.err`
16556 $rm conftest*
16558 ac_outfile=conftest.$ac_objext
16559 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16560 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16561 _lt_linker_boilerplate=`cat conftest.err`
16562 $rm conftest*
16565 # Allow CC to be a program name with arguments.
16566 lt_save_CC="$CC"
16567 CC=${GCJ-"gcj"}
16568 compiler=$CC
16569 compiler_GCJ=$CC
16570 for cc_temp in $compiler""; do
16571   case $cc_temp in
16572     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16573     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16574     \-*) ;;
16575     *) break;;
16576   esac
16577 done
16578 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16581 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16582 archive_cmds_need_lc_GCJ=no
16584 old_archive_cmds_GCJ=$old_archive_cmds
16586 ## CAVEAT EMPTOR:
16587 ## There is no encapsulation within the following macros, do not change
16588 ## the running order or otherwise move them around unless you know exactly
16589 ## what you are doing...
16591 lt_prog_compiler_no_builtin_flag_GCJ=
16593 if test "$GCC" = yes; then
16594   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16596   
16597 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16598 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16599 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16600   echo $ECHO_N "(cached) $ECHO_C" >&6
16601 else
16602   lt_cv_prog_compiler_rtti_exceptions=no
16603   ac_outfile=conftest.$ac_objext
16604    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16605    lt_compiler_flag="-fno-rtti -fno-exceptions"
16606    # Insert the option either (1) after the last *FLAGS variable, or
16607    # (2) before a word containing "conftest.", or (3) at the end.
16608    # Note that $ac_compile itself does not contain backslashes and begins
16609    # with a dollar sign (not a hyphen), so the echo should work correctly.
16610    # The option is referenced via a variable to avoid confusing sed.
16611    lt_compile=`echo "$ac_compile" | $SED \
16612    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16613    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16614    -e 's:$: $lt_compiler_flag:'`
16615    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16616    (eval "$lt_compile" 2>conftest.err)
16617    ac_status=$?
16618    cat conftest.err >&5
16619    echo "$as_me:__oline__: \$? = $ac_status" >&5
16620    if (exit $ac_status) && test -s "$ac_outfile"; then
16621      # The compiler can only warn and ignore the option if not recognized
16622      # So say no if there are warnings other than the usual output.
16623      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16624      $SED '/^$/d' conftest.err >conftest.er2
16625      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16626        lt_cv_prog_compiler_rtti_exceptions=yes
16627      fi
16628    fi
16629    $rm conftest*
16632 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16633 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16635 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16636     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16637 else
16638     :
16643 lt_prog_compiler_wl_GCJ=
16644 lt_prog_compiler_pic_GCJ=
16645 lt_prog_compiler_static_GCJ=
16647 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16648 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16650   if test "$GCC" = yes; then
16651     lt_prog_compiler_wl_GCJ='-Wl,'
16652     lt_prog_compiler_static_GCJ='-static'
16654     case $host_os in
16655       aix*)
16656       # All AIX code is PIC.
16657       if test "$host_cpu" = ia64; then
16658         # AIX 5 now supports IA64 processor
16659         lt_prog_compiler_static_GCJ='-Bstatic'
16660       fi
16661       ;;
16663     amigaos*)
16664       # FIXME: we need at least 68020 code to build shared libraries, but
16665       # adding the `-m68020' flag to GCC prevents building anything better,
16666       # like `-m68040'.
16667       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16668       ;;
16670     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16671       # PIC is the default for these OSes.
16672       ;;
16674     mingw* | pw32* | os2*)
16675       # This hack is so that the source file can tell whether it is being
16676       # built for inclusion in a dll (and should export symbols for example).
16677       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16678       ;;
16680     darwin* | rhapsody*)
16681       # PIC is the default on this platform
16682       # Common symbols not allowed in MH_DYLIB files
16683       lt_prog_compiler_pic_GCJ='-fno-common'
16684       ;;
16686     msdosdjgpp*)
16687       # Just because we use GCC doesn't mean we suddenly get shared libraries
16688       # on systems that don't support them.
16689       lt_prog_compiler_can_build_shared_GCJ=no
16690       enable_shared=no
16691       ;;
16693     sysv4*MP*)
16694       if test -d /usr/nec; then
16695         lt_prog_compiler_pic_GCJ=-Kconform_pic
16696       fi
16697       ;;
16699     hpux*)
16700       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16701       # not for PA HP-UX.
16702       case $host_cpu in
16703       hppa*64*|ia64*)
16704         # +Z the default
16705         ;;
16706       *)
16707         lt_prog_compiler_pic_GCJ='-fPIC'
16708         ;;
16709       esac
16710       ;;
16712     *)
16713       lt_prog_compiler_pic_GCJ='-fPIC'
16714       ;;
16715     esac
16716   else
16717     # PORTME Check for flag to pass linker flags through the system compiler.
16718     case $host_os in
16719     aix*)
16720       lt_prog_compiler_wl_GCJ='-Wl,'
16721       if test "$host_cpu" = ia64; then
16722         # AIX 5 now supports IA64 processor
16723         lt_prog_compiler_static_GCJ='-Bstatic'
16724       else
16725         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16726       fi
16727       ;;
16728       darwin*)
16729         # PIC is the default on this platform
16730         # Common symbols not allowed in MH_DYLIB files
16731        case $cc_basename in
16732          xlc*)
16733          lt_prog_compiler_pic_GCJ='-qnocommon'
16734          lt_prog_compiler_wl_GCJ='-Wl,'
16735          ;;
16736        esac
16737        ;;
16739     mingw* | pw32* | os2*)
16740       # This hack is so that the source file can tell whether it is being
16741       # built for inclusion in a dll (and should export symbols for example).
16742       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16743       ;;
16745     hpux9* | hpux10* | hpux11*)
16746       lt_prog_compiler_wl_GCJ='-Wl,'
16747       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16748       # not for PA HP-UX.
16749       case $host_cpu in
16750       hppa*64*|ia64*)
16751         # +Z the default
16752         ;;
16753       *)
16754         lt_prog_compiler_pic_GCJ='+Z'
16755         ;;
16756       esac
16757       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16758       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16759       ;;
16761     irix5* | irix6* | nonstopux*)
16762       lt_prog_compiler_wl_GCJ='-Wl,'
16763       # PIC (with -KPIC) is the default.
16764       lt_prog_compiler_static_GCJ='-non_shared'
16765       ;;
16767     newsos6)
16768       lt_prog_compiler_pic_GCJ='-KPIC'
16769       lt_prog_compiler_static_GCJ='-Bstatic'
16770       ;;
16772     linux*)
16773       case $cc_basename in
16774       icc* | ecc*)
16775         lt_prog_compiler_wl_GCJ='-Wl,'
16776         lt_prog_compiler_pic_GCJ='-KPIC'
16777         lt_prog_compiler_static_GCJ='-static'
16778         ;;
16779       pgcc* | pgf77* | pgf90* | pgf95*)
16780         # Portland Group compilers (*not* the Pentium gcc compiler,
16781         # which looks to be a dead project)
16782         lt_prog_compiler_wl_GCJ='-Wl,'
16783         lt_prog_compiler_pic_GCJ='-fpic'
16784         lt_prog_compiler_static_GCJ='-Bstatic'
16785         ;;
16786       ccc*)
16787         lt_prog_compiler_wl_GCJ='-Wl,'
16788         # All Alpha code is PIC.
16789         lt_prog_compiler_static_GCJ='-non_shared'
16790         ;;
16791       esac
16792       ;;
16794     osf3* | osf4* | osf5*)
16795       lt_prog_compiler_wl_GCJ='-Wl,'
16796       # All OSF/1 code is PIC.
16797       lt_prog_compiler_static_GCJ='-non_shared'
16798       ;;
16800     sco3.2v5*)
16801       lt_prog_compiler_pic_GCJ='-Kpic'
16802       lt_prog_compiler_static_GCJ='-dn'
16803       ;;
16805     solaris*)
16806       lt_prog_compiler_pic_GCJ='-KPIC'
16807       lt_prog_compiler_static_GCJ='-Bstatic'
16808       case $cc_basename in
16809       f77* | f90* | f95*)
16810         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16811       *)
16812         lt_prog_compiler_wl_GCJ='-Wl,';;
16813       esac
16814       ;;
16816     sunos4*)
16817       lt_prog_compiler_wl_GCJ='-Qoption ld '
16818       lt_prog_compiler_pic_GCJ='-PIC'
16819       lt_prog_compiler_static_GCJ='-Bstatic'
16820       ;;
16822     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16823       lt_prog_compiler_wl_GCJ='-Wl,'
16824       lt_prog_compiler_pic_GCJ='-KPIC'
16825       lt_prog_compiler_static_GCJ='-Bstatic'
16826       ;;
16828     sysv4*MP*)
16829       if test -d /usr/nec ;then
16830         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16831         lt_prog_compiler_static_GCJ='-Bstatic'
16832       fi
16833       ;;
16835     unicos*)
16836       lt_prog_compiler_wl_GCJ='-Wl,'
16837       lt_prog_compiler_can_build_shared_GCJ=no
16838       ;;
16840     uts4*)
16841       lt_prog_compiler_pic_GCJ='-pic'
16842       lt_prog_compiler_static_GCJ='-Bstatic'
16843       ;;
16845     *)
16846       lt_prog_compiler_can_build_shared_GCJ=no
16847       ;;
16848     esac
16849   fi
16851 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16852 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16855 # Check to make sure the PIC flag actually works.
16857 if test -n "$lt_prog_compiler_pic_GCJ"; then
16858   
16859 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16860 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16861 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16862   echo $ECHO_N "(cached) $ECHO_C" >&6
16863 else
16864   lt_prog_compiler_pic_works_GCJ=no
16865   ac_outfile=conftest.$ac_objext
16866    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16867    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16868    # Insert the option either (1) after the last *FLAGS variable, or
16869    # (2) before a word containing "conftest.", or (3) at the end.
16870    # Note that $ac_compile itself does not contain backslashes and begins
16871    # with a dollar sign (not a hyphen), so the echo should work correctly.
16872    # The option is referenced via a variable to avoid confusing sed.
16873    lt_compile=`echo "$ac_compile" | $SED \
16874    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16875    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16876    -e 's:$: $lt_compiler_flag:'`
16877    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16878    (eval "$lt_compile" 2>conftest.err)
16879    ac_status=$?
16880    cat conftest.err >&5
16881    echo "$as_me:__oline__: \$? = $ac_status" >&5
16882    if (exit $ac_status) && test -s "$ac_outfile"; then
16883      # The compiler can only warn and ignore the option if not recognized
16884      # So say no if there are warnings other than the usual output.
16885      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16886      $SED '/^$/d' conftest.err >conftest.er2
16887      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16888        lt_prog_compiler_pic_works_GCJ=yes
16889      fi
16890    fi
16891    $rm conftest*
16894 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16895 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16897 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16898     case $lt_prog_compiler_pic_GCJ in
16899      "" | " "*) ;;
16900      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16901      esac
16902 else
16903     lt_prog_compiler_pic_GCJ=
16904      lt_prog_compiler_can_build_shared_GCJ=no
16908 case $host_os in
16909   # For platforms which do not support PIC, -DPIC is meaningless:
16910   *djgpp*)
16911     lt_prog_compiler_pic_GCJ=
16912     ;;
16913   *)
16914     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16915     ;;
16916 esac
16918 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16919 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16920 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16921   echo $ECHO_N "(cached) $ECHO_C" >&6
16922 else
16923   lt_cv_prog_compiler_c_o_GCJ=no
16924    $rm -r conftest 2>/dev/null
16925    mkdir conftest
16926    cd conftest
16927    mkdir out
16928    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16930    lt_compiler_flag="-o out/conftest2.$ac_objext"
16931    # Insert the option either (1) after the last *FLAGS variable, or
16932    # (2) before a word containing "conftest.", or (3) at the end.
16933    # Note that $ac_compile itself does not contain backslashes and begins
16934    # with a dollar sign (not a hyphen), so the echo should work correctly.
16935    lt_compile=`echo "$ac_compile" | $SED \
16936    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16937    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16938    -e 's:$: $lt_compiler_flag:'`
16939    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16940    (eval "$lt_compile" 2>out/conftest.err)
16941    ac_status=$?
16942    cat out/conftest.err >&5
16943    echo "$as_me:__oline__: \$? = $ac_status" >&5
16944    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16945    then
16946      # The compiler can only warn and ignore the option if not recognized
16947      # So say no if there are warnings
16948      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16949      $SED '/^$/d' out/conftest.err >out/conftest.er2
16950      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16951        lt_cv_prog_compiler_c_o_GCJ=yes
16952      fi
16953    fi
16954    chmod u+w . 2>&5
16955    $rm conftest*
16956    # SGI C++ compiler will create directory out/ii_files/ for
16957    # template instantiation
16958    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16959    $rm out/* && rmdir out
16960    cd ..
16961    rmdir conftest
16962    $rm conftest*
16965 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16966 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16969 hard_links="nottested"
16970 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16971   # do not overwrite the value of need_locks provided by the user
16972   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16973 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16974   hard_links=yes
16975   $rm conftest*
16976   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16977   touch conftest.a
16978   ln conftest.a conftest.b 2>&5 || hard_links=no
16979   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16980   { echo "$as_me:$LINENO: result: $hard_links" >&5
16981 echo "${ECHO_T}$hard_links" >&6; }
16982   if test "$hard_links" = no; then
16983     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16984 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16985     need_locks=warn
16986   fi
16987 else
16988   need_locks=no
16991 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16992 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16994   runpath_var=
16995   allow_undefined_flag_GCJ=
16996   enable_shared_with_static_runtimes_GCJ=no
16997   archive_cmds_GCJ=
16998   archive_expsym_cmds_GCJ=
16999   old_archive_From_new_cmds_GCJ=
17000   old_archive_from_expsyms_cmds_GCJ=
17001   export_dynamic_flag_spec_GCJ=
17002   whole_archive_flag_spec_GCJ=
17003   thread_safe_flag_spec_GCJ=
17004   hardcode_libdir_flag_spec_GCJ=
17005   hardcode_libdir_flag_spec_ld_GCJ=
17006   hardcode_libdir_separator_GCJ=
17007   hardcode_direct_GCJ=no
17008   hardcode_minus_L_GCJ=no
17009   hardcode_shlibpath_var_GCJ=unsupported
17010   link_all_deplibs_GCJ=unknown
17011   hardcode_automatic_GCJ=no
17012   module_cmds_GCJ=
17013   module_expsym_cmds_GCJ=
17014   always_export_symbols_GCJ=no
17015   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17016   # include_expsyms should be a list of space-separated symbols to be *always*
17017   # included in the symbol list
17018   include_expsyms_GCJ=
17019   # exclude_expsyms can be an extended regexp of symbols to exclude
17020   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17021   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17022   # as well as any symbol that contains `d'.
17023   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17024   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17025   # platforms (ab)use it in PIC code, but their linkers get confused if
17026   # the symbol is explicitly referenced.  Since portable code cannot
17027   # rely on this symbol name, it's probably fine to never include it in
17028   # preloaded symbol tables.
17029   extract_expsyms_cmds=
17030   # Just being paranoid about ensuring that cc_basename is set.
17031   for cc_temp in $compiler""; do
17032   case $cc_temp in
17033     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17034     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17035     \-*) ;;
17036     *) break;;
17037   esac
17038 done
17039 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17041   case $host_os in
17042   cygwin* | mingw* | pw32*)
17043     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17044     # When not using gcc, we currently assume that we are using
17045     # Microsoft Visual C++.
17046     if test "$GCC" != yes; then
17047       with_gnu_ld=no
17048     fi
17049     ;;
17050   openbsd*)
17051     with_gnu_ld=no
17052     ;;
17053   esac
17055   ld_shlibs_GCJ=yes
17056   if test "$with_gnu_ld" = yes; then
17057     # If archive_cmds runs LD, not CC, wlarc should be empty
17058     wlarc='${wl}'
17060     # Set some defaults for GNU ld with shared library support. These
17061     # are reset later if shared libraries are not supported. Putting them
17062     # here allows them to be overridden if necessary.
17063     runpath_var=LD_RUN_PATH
17064     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17065     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17066     # ancient GNU ld didn't support --whole-archive et. al.
17067     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17068         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17069       else
17070         whole_archive_flag_spec_GCJ=
17071     fi
17072     supports_anon_versioning=no
17073     case `$LD -v 2>/dev/null` in
17074       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17075       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17076       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17077       *\ 2.11.*) ;; # other 2.11 versions
17078       *) supports_anon_versioning=yes ;;
17079     esac
17081     # See if GNU ld supports shared libraries.
17082     case $host_os in
17083     aix3* | aix4* | aix5*)
17084       # On AIX/PPC, the GNU linker is very broken
17085       if test "$host_cpu" != ia64; then
17086         ld_shlibs_GCJ=no
17087         cat <<EOF 1>&2
17089 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17090 *** to be unable to reliably create shared libraries on AIX.
17091 *** Therefore, libtool is disabling shared libraries support.  If you
17092 *** really care for shared libraries, you may want to modify your PATH
17093 *** so that a non-GNU linker is found, and then restart.
17096       fi
17097       ;;
17099     amigaos*)
17100       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)'
17101       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17102       hardcode_minus_L_GCJ=yes
17104       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17105       # that the semantics of dynamic libraries on AmigaOS, at least up
17106       # to version 4, is to share data among multiple programs linked
17107       # with the same dynamic library.  Since this doesn't match the
17108       # behavior of shared libraries on other platforms, we can't use
17109       # them.
17110       ld_shlibs_GCJ=no
17111       ;;
17113     beos*)
17114       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17115         allow_undefined_flag_GCJ=unsupported
17116         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17117         # support --undefined.  This deserves some investigation.  FIXME
17118         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17119       else
17120         ld_shlibs_GCJ=no
17121       fi
17122       ;;
17124     cygwin* | mingw* | pw32*)
17125       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17126       # as there is no search path for DLLs.
17127       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17128       allow_undefined_flag_GCJ=unsupported
17129       always_export_symbols_GCJ=no
17130       enable_shared_with_static_runtimes_GCJ=yes
17131       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17133       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17134         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17135         # If the export-symbols file already is a .def file (1st line
17136         # is EXPORTS), use it as is; otherwise, prepend...
17137         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17138           cp $export_symbols $output_objdir/$soname.def;
17139         else
17140           echo EXPORTS > $output_objdir/$soname.def;
17141           cat $export_symbols >> $output_objdir/$soname.def;
17142         fi~
17143         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17144       else
17145         ld_shlibs_GCJ=no
17146       fi
17147       ;;
17149     linux*)
17150       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17151         tmp_addflag=
17152         case $cc_basename,$host_cpu in
17153         pgcc*)                          # Portland Group C compiler
17154           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'
17155           tmp_addflag=' $pic_flag'
17156           ;;
17157         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17158           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'
17159           tmp_addflag=' $pic_flag -Mnomain' ;;
17160         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17161           tmp_addflag=' -i_dynamic' ;;
17162         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17163           tmp_addflag=' -i_dynamic -nofor_main' ;;
17164         ifc* | ifort*)                  # Intel Fortran compiler
17165           tmp_addflag=' -nofor_main' ;;
17166         esac
17167         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17169         if test $supports_anon_versioning = yes; then
17170           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17171   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17172   $echo "local: *; };" >> $output_objdir/$libname.ver~
17173           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17174         fi
17175         link_all_deplibs_GCJ=no
17176       else
17177         ld_shlibs_GCJ=no
17178       fi
17179       ;;
17181     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17182       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17183         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17184         wlarc=
17185       else
17186         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17187         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17188       fi
17189       ;;
17191     solaris* | sysv5*)
17192       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17193         ld_shlibs_GCJ=no
17194         cat <<EOF 1>&2
17196 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17197 *** create shared libraries on Solaris systems.  Therefore, libtool
17198 *** is disabling shared libraries support.  We urge you to upgrade GNU
17199 *** binutils to release 2.9.1 or newer.  Another option is to modify
17200 *** your PATH or compiler configuration so that the native linker is
17201 *** used, and then restart.
17204       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17205         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17206         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17207       else
17208         ld_shlibs_GCJ=no
17209       fi
17210       ;;
17212     sunos4*)
17213       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17214       wlarc=
17215       hardcode_direct_GCJ=yes
17216       hardcode_shlibpath_var_GCJ=no
17217       ;;
17219     *)
17220       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17221         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17222         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17223       else
17224         ld_shlibs_GCJ=no
17225       fi
17226       ;;
17227     esac
17229     if test "$ld_shlibs_GCJ" = no; then
17230       runpath_var=
17231       hardcode_libdir_flag_spec_GCJ=
17232       export_dynamic_flag_spec_GCJ=
17233       whole_archive_flag_spec_GCJ=
17234     fi
17235   else
17236     # PORTME fill in a description of your system's linker (not GNU ld)
17237     case $host_os in
17238     aix3*)
17239       allow_undefined_flag_GCJ=unsupported
17240       always_export_symbols_GCJ=yes
17241       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'
17242       # Note: this linker hardcodes the directories in LIBPATH if there
17243       # are no directories specified by -L.
17244       hardcode_minus_L_GCJ=yes
17245       if test "$GCC" = yes && test -z "$link_static_flag"; then
17246         # Neither direct hardcoding nor static linking is supported with a
17247         # broken collect2.
17248         hardcode_direct_GCJ=unsupported
17249       fi
17250       ;;
17252     aix4* | aix5*)
17253       if test "$host_cpu" = ia64; then
17254         # On IA64, the linker does run time linking by default, so we don't
17255         # have to do anything special.
17256         aix_use_runtimelinking=no
17257         exp_sym_flag='-Bexport'
17258         no_entry_flag=""
17259       else
17260         # If we're using GNU nm, then we don't want the "-C" option.
17261         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17262         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17263           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'
17264         else
17265           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'
17266         fi
17267         aix_use_runtimelinking=no
17269         # Test if we are trying to use run time linking or normal
17270         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17271         # need to do runtime linking.
17272         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17273           for ld_flag in $LDFLAGS; do
17274           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17275             aix_use_runtimelinking=yes
17276             break
17277           fi
17278           done
17279         esac
17281         exp_sym_flag='-bexport'
17282         no_entry_flag='-bnoentry'
17283       fi
17285       # When large executables or shared objects are built, AIX ld can
17286       # have problems creating the table of contents.  If linking a library
17287       # or program results in "error TOC overflow" add -mminimal-toc to
17288       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17289       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17291       archive_cmds_GCJ=''
17292       hardcode_direct_GCJ=yes
17293       hardcode_libdir_separator_GCJ=':'
17294       link_all_deplibs_GCJ=yes
17296       if test "$GCC" = yes; then
17297         case $host_os in aix4.[012]|aix4.[012].*)
17298         # We only want to do this on AIX 4.2 and lower, the check
17299         # below for broken collect2 doesn't work under 4.3+
17300           collect2name=`${CC} -print-prog-name=collect2`
17301           if test -f "$collect2name" && \
17302            strings "$collect2name" | grep resolve_lib_name >/dev/null
17303           then
17304           # We have reworked collect2
17305           hardcode_direct_GCJ=yes
17306           else
17307           # We have old collect2
17308           hardcode_direct_GCJ=unsupported
17309           # It fails to find uninstalled libraries when the uninstalled
17310           # path is not listed in the libpath.  Setting hardcode_minus_L
17311           # to unsupported forces relinking
17312           hardcode_minus_L_GCJ=yes
17313           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17314           hardcode_libdir_separator_GCJ=
17315           fi
17316         esac
17317         shared_flag='-shared'
17318         if test "$aix_use_runtimelinking" = yes; then
17319           shared_flag="$shared_flag "'${wl}-G'
17320         fi
17321       else
17322         # not using gcc
17323         if test "$host_cpu" = ia64; then
17324         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17325         # chokes on -Wl,-G. The following line is correct:
17326           shared_flag='-G'
17327         else
17328         if test "$aix_use_runtimelinking" = yes; then
17329             shared_flag='${wl}-G'
17330           else
17331             shared_flag='${wl}-bM:SRE'
17332         fi
17333         fi
17334       fi
17336       # It seems that -bexpall does not export symbols beginning with
17337       # underscore (_), so it is better to generate a list of symbols to export.
17338       always_export_symbols_GCJ=yes
17339       if test "$aix_use_runtimelinking" = yes; then
17340         # Warning - without using the other runtime loading flags (-brtl),
17341         # -berok will link without error, but may produce a broken library.
17342         allow_undefined_flag_GCJ='-berok'
17343        # Determine the default libpath from the value encoded in an empty executable.
17344        cat >conftest.$ac_ext <<_ACEOF
17345 /* confdefs.h.  */
17346 _ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h.  */
17352 main ()
17355   ;
17356   return 0;
17358 _ACEOF
17359 rm -f conftest.$ac_objext conftest$ac_exeext
17360 if { (ac_try="$ac_link"
17361 case "(($ac_try" in
17362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363   *) ac_try_echo=$ac_try;;
17364 esac
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366   (eval "$ac_link") 2>conftest.er1
17367   ac_status=$?
17368   grep -v '^ *+' conftest.er1 >conftest.err
17369   rm -f conftest.er1
17370   cat conftest.err >&5
17371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372   (exit $ac_status); } && {
17373          test -z "$ac_c_werror_flag" ||
17374          test ! -s conftest.err
17375        } && test -s conftest$ac_exeext &&
17376        $as_test_x conftest$ac_exeext; then
17377   
17378 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17380 # Check for a 64-bit object if we didn't find anything.
17381 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17382 }'`; fi
17383 else
17384   echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17387         
17390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17391       conftest$ac_exeext conftest.$ac_ext
17392 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17394        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17395         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17396        else
17397         if test "$host_cpu" = ia64; then
17398           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17399           allow_undefined_flag_GCJ="-z nodefs"
17400           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17401         else
17402          # Determine the default libpath from the value encoded in an empty executable.
17403          cat >conftest.$ac_ext <<_ACEOF
17404 /* confdefs.h.  */
17405 _ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h.  */
17411 main ()
17414   ;
17415   return 0;
17417 _ACEOF
17418 rm -f conftest.$ac_objext conftest$ac_exeext
17419 if { (ac_try="$ac_link"
17420 case "(($ac_try" in
17421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422   *) ac_try_echo=$ac_try;;
17423 esac
17424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425   (eval "$ac_link") 2>conftest.er1
17426   ac_status=$?
17427   grep -v '^ *+' conftest.er1 >conftest.err
17428   rm -f conftest.er1
17429   cat conftest.err >&5
17430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431   (exit $ac_status); } && {
17432          test -z "$ac_c_werror_flag" ||
17433          test ! -s conftest.err
17434        } && test -s conftest$ac_exeext &&
17435        $as_test_x conftest$ac_exeext; then
17436   
17437 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17439 # Check for a 64-bit object if we didn't find anything.
17440 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17441 }'`; fi
17442 else
17443   echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17446         
17449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17450       conftest$ac_exeext conftest.$ac_ext
17451 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17453          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17454           # Warning - without using the other run time loading flags,
17455           # -berok will link without error, but may produce a broken library.
17456           no_undefined_flag_GCJ=' ${wl}-bernotok'
17457           allow_undefined_flag_GCJ=' ${wl}-berok'
17458           # -bexpall does not export symbols beginning with underscore (_)
17459           always_export_symbols_GCJ=yes
17460           # Exported symbols can be pulled into shared objects from archives
17461           whole_archive_flag_spec_GCJ=' '
17462           archive_cmds_need_lc_GCJ=yes
17463           # This is similar to how AIX traditionally builds its shared libraries.
17464           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17465         fi
17466       fi
17467       ;;
17469     amigaos*)
17470       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)'
17471       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17472       hardcode_minus_L_GCJ=yes
17473       # see comment about different semantics on the GNU ld section
17474       ld_shlibs_GCJ=no
17475       ;;
17477     bsdi[45]*)
17478       export_dynamic_flag_spec_GCJ=-rdynamic
17479       ;;
17481     cygwin* | mingw* | pw32*)
17482       # When not using gcc, we currently assume that we are using
17483       # Microsoft Visual C++.
17484       # hardcode_libdir_flag_spec is actually meaningless, as there is
17485       # no search path for DLLs.
17486       hardcode_libdir_flag_spec_GCJ=' '
17487       allow_undefined_flag_GCJ=unsupported
17488       # Tell ltmain to make .lib files, not .a files.
17489       libext=lib
17490       # Tell ltmain to make .dll files, not .so files.
17491       shrext_cmds=".dll"
17492       # FIXME: Setting linknames here is a bad hack.
17493       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17494       # The linker will automatically build a .lib file if we build a DLL.
17495       old_archive_From_new_cmds_GCJ='true'
17496       # FIXME: Should let the user specify the lib program.
17497       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17498       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17499       enable_shared_with_static_runtimes_GCJ=yes
17500       ;;
17502     darwin* | rhapsody*)
17503       case $host_os in
17504         rhapsody* | darwin1.[012])
17505          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17506          ;;
17507        *) # Darwin 1.3 on
17508          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17509            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17510          else
17511            case ${MACOSX_DEPLOYMENT_TARGET} in
17512              10.[012])
17513                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17514                ;;
17515              10.*)
17516                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17517                ;;
17518            esac
17519          fi
17520          ;;
17521       esac
17522       archive_cmds_need_lc_GCJ=no
17523       hardcode_direct_GCJ=no
17524       hardcode_automatic_GCJ=yes
17525       hardcode_shlibpath_var_GCJ=unsupported
17526       whole_archive_flag_spec_GCJ=''
17527       link_all_deplibs_GCJ=yes
17528     if test "$GCC" = yes ; then
17529         output_verbose_link_cmd='echo'
17530         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17531       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17532       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17533       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}'
17534       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}'
17535     else
17536       case $cc_basename in
17537         xlc*)
17538          output_verbose_link_cmd='echo'
17539          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17540          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17541           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17542          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17543           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}'
17544           ;;
17545        *)
17546          ld_shlibs_GCJ=no
17547           ;;
17548       esac
17549     fi
17550       ;;
17552     dgux*)
17553       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17554       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17555       hardcode_shlibpath_var_GCJ=no
17556       ;;
17558     freebsd1*)
17559       ld_shlibs_GCJ=no
17560       ;;
17562     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17563     # support.  Future versions do this automatically, but an explicit c++rt0.o
17564     # does not break anything, and helps significantly (at the cost of a little
17565     # extra space).
17566     freebsd2.2*)
17567       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17568       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17569       hardcode_direct_GCJ=yes
17570       hardcode_shlibpath_var_GCJ=no
17571       ;;
17573     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17574     freebsd2*)
17575       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17576       hardcode_direct_GCJ=yes
17577       hardcode_minus_L_GCJ=yes
17578       hardcode_shlibpath_var_GCJ=no
17579       ;;
17581     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17582     freebsd* | kfreebsd*-gnu | dragonfly*)
17583       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17584       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17585       hardcode_direct_GCJ=yes
17586       hardcode_shlibpath_var_GCJ=no
17587       ;;
17589     hpux9*)
17590       if test "$GCC" = yes; then
17591         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'
17592       else
17593         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'
17594       fi
17595       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17596       hardcode_libdir_separator_GCJ=:
17597       hardcode_direct_GCJ=yes
17599       # hardcode_minus_L: Not really in the search PATH,
17600       # but as the default location of the library.
17601       hardcode_minus_L_GCJ=yes
17602       export_dynamic_flag_spec_GCJ='${wl}-E'
17603       ;;
17605     hpux10* | hpux11*)
17606       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17607         case $host_cpu in
17608         hppa*64*|ia64*)
17609           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17610           ;;
17611         *)
17612           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17613           ;;
17614         esac
17615       else
17616         case $host_cpu in
17617         hppa*64*|ia64*)
17618           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17619           ;;
17620         *)
17621           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17622           ;;
17623         esac
17624       fi
17625       if test "$with_gnu_ld" = no; then
17626         case $host_cpu in
17627         hppa*64*)
17628           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17629           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17630           hardcode_libdir_separator_GCJ=:
17631           hardcode_direct_GCJ=no
17632           hardcode_shlibpath_var_GCJ=no
17633           ;;
17634         ia64*)
17635           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17636           hardcode_direct_GCJ=no
17637           hardcode_shlibpath_var_GCJ=no
17639           # hardcode_minus_L: Not really in the search PATH,
17640           # but as the default location of the library.
17641           hardcode_minus_L_GCJ=yes
17642           ;;
17643         *)
17644           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17645           hardcode_libdir_separator_GCJ=:
17646           hardcode_direct_GCJ=yes
17647           export_dynamic_flag_spec_GCJ='${wl}-E'
17649           # hardcode_minus_L: Not really in the search PATH,
17650           # but as the default location of the library.
17651           hardcode_minus_L_GCJ=yes
17652           ;;
17653         esac
17654       fi
17655       ;;
17657     irix5* | irix6* | nonstopux*)
17658       if test "$GCC" = yes; then
17659         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'
17660       else
17661         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'
17662         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17663       fi
17664       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17665       hardcode_libdir_separator_GCJ=:
17666       link_all_deplibs_GCJ=yes
17667       ;;
17669     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17670       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17671         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17672       else
17673         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17674       fi
17675       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17676       hardcode_direct_GCJ=yes
17677       hardcode_shlibpath_var_GCJ=no
17678       ;;
17680     newsos6)
17681       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17682       hardcode_direct_GCJ=yes
17683       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17684       hardcode_libdir_separator_GCJ=:
17685       hardcode_shlibpath_var_GCJ=no
17686       ;;
17688     openbsd*)
17689       hardcode_direct_GCJ=yes
17690       hardcode_shlibpath_var_GCJ=no
17691       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17692         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17693         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17694         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17695         export_dynamic_flag_spec_GCJ='${wl}-E'
17696       else
17697        case $host_os in
17698          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17699            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17700            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17701            ;;
17702          *)
17703            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17704            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17705            ;;
17706        esac
17707       fi
17708       ;;
17710     os2*)
17711       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17712       hardcode_minus_L_GCJ=yes
17713       allow_undefined_flag_GCJ=unsupported
17714       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'
17715       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17716       ;;
17718     osf3*)
17719       if test "$GCC" = yes; then
17720         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17721         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'
17722       else
17723         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17724         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'
17725       fi
17726       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17727       hardcode_libdir_separator_GCJ=:
17728       ;;
17730     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17731       if test "$GCC" = yes; then
17732         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17733         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'
17734         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17735       else
17736         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17737         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'
17738         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~
17739         $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'
17741         # Both c and cxx compiler support -rpath directly
17742         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17743       fi
17744       hardcode_libdir_separator_GCJ=:
17745       ;;
17747     sco3.2v5*)
17748       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17749       hardcode_shlibpath_var_GCJ=no
17750       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17751       runpath_var=LD_RUN_PATH
17752       hardcode_runpath_var=yes
17753       ;;
17755     solaris*)
17756       no_undefined_flag_GCJ=' -z text'
17757       if test "$GCC" = yes; then
17758         wlarc='${wl}'
17759         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17760         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17761           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17762       else
17763         wlarc=''
17764         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17765         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17766         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17767       fi
17768       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17769       hardcode_shlibpath_var_GCJ=no
17770       case $host_os in
17771       solaris2.[0-5] | solaris2.[0-5].*) ;;
17772       *)
17773         # The compiler driver will combine linker options so we
17774         # cannot just pass the convience library names through
17775         # without $wl, iff we do not link with $LD.
17776         # Luckily, gcc supports the same syntax we need for Sun Studio.
17777         # Supported since Solaris 2.6 (maybe 2.5.1?)
17778         case $wlarc in
17779         '')
17780           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17781         *)
17782           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17783         esac ;;
17784       esac
17785       link_all_deplibs_GCJ=yes
17786       ;;
17788     sunos4*)
17789       if test "x$host_vendor" = xsequent; then
17790         # Use $CC to link under sequent, because it throws in some extra .o
17791         # files that make .init and .fini sections work.
17792         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17793       else
17794         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17795       fi
17796       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17797       hardcode_direct_GCJ=yes
17798       hardcode_minus_L_GCJ=yes
17799       hardcode_shlibpath_var_GCJ=no
17800       ;;
17802     sysv4)
17803       case $host_vendor in
17804         sni)
17805           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17806           hardcode_direct_GCJ=yes # is this really true???
17807         ;;
17808         siemens)
17809           ## LD is ld it makes a PLAMLIB
17810           ## CC just makes a GrossModule.
17811           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17812           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17813           hardcode_direct_GCJ=no
17814         ;;
17815         motorola)
17816           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17817           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17818         ;;
17819       esac
17820       runpath_var='LD_RUN_PATH'
17821       hardcode_shlibpath_var_GCJ=no
17822       ;;
17824     sysv4.3*)
17825       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17826       hardcode_shlibpath_var_GCJ=no
17827       export_dynamic_flag_spec_GCJ='-Bexport'
17828       ;;
17830     sysv4*MP*)
17831       if test -d /usr/nec; then
17832         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17833         hardcode_shlibpath_var_GCJ=no
17834         runpath_var=LD_RUN_PATH
17835         hardcode_runpath_var=yes
17836         ld_shlibs_GCJ=yes
17837       fi
17838       ;;
17840     sysv4.2uw2*)
17841       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17842       hardcode_direct_GCJ=yes
17843       hardcode_minus_L_GCJ=no
17844       hardcode_shlibpath_var_GCJ=no
17845       hardcode_runpath_var=yes
17846       runpath_var=LD_RUN_PATH
17847       ;;
17849    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17850       no_undefined_flag_GCJ='${wl}-z ${wl}text'
17851       if test "$GCC" = yes; then
17852         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17853       else
17854         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17855       fi
17856       runpath_var='LD_RUN_PATH'
17857       hardcode_shlibpath_var_GCJ=no
17858       ;;
17860     sysv5*)
17861       no_undefined_flag_GCJ=' -z text'
17862       # $CC -shared without GNU ld will not create a library from C++
17863       # object files and a static libstdc++, better avoid it by now
17864       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17865       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17866                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17867       hardcode_libdir_flag_spec_GCJ=
17868       hardcode_shlibpath_var_GCJ=no
17869       runpath_var='LD_RUN_PATH'
17870       ;;
17872     uts4*)
17873       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17874       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17875       hardcode_shlibpath_var_GCJ=no
17876       ;;
17878     *)
17879       ld_shlibs_GCJ=no
17880       ;;
17881     esac
17882   fi
17884 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17885 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17886 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17888 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17889 if test "$GCC" = yes; then
17890   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17894 # Do we need to explicitly link libc?
17896 case "x$archive_cmds_need_lc_GCJ" in
17897 x|xyes)
17898   # Assume -lc should be added
17899   archive_cmds_need_lc_GCJ=yes
17901   if test "$enable_shared" = yes && test "$GCC" = yes; then
17902     case $archive_cmds_GCJ in
17903     *'~'*)
17904       # FIXME: we may have to deal with multi-command sequences.
17905       ;;
17906     '$CC '*)
17907       # Test whether the compiler implicitly links with -lc since on some
17908       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17909       # to ld, don't add -lc before -lgcc.
17910       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17911 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17912       $rm conftest*
17913       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17915       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17916   (eval $ac_compile) 2>&5
17917   ac_status=$?
17918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919   (exit $ac_status); } 2>conftest.err; then
17920         soname=conftest
17921         lib=conftest
17922         libobjs=conftest.$ac_objext
17923         deplibs=
17924         wl=$lt_prog_compiler_wl_GCJ
17925         compiler_flags=-v
17926         linker_flags=-v
17927         verstring=
17928         output_objdir=.
17929         libname=conftest
17930         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17931         allow_undefined_flag_GCJ=
17932         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17933   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17934   ac_status=$?
17935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936   (exit $ac_status); }
17937         then
17938           archive_cmds_need_lc_GCJ=no
17939         else
17940           archive_cmds_need_lc_GCJ=yes
17941         fi
17942         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17943       else
17944         cat conftest.err 1>&5
17945       fi
17946       $rm conftest*
17947       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17948 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17949       ;;
17950     esac
17951   fi
17952   ;;
17953 esac
17955 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17956 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17957 library_names_spec=
17958 libname_spec='lib$name'
17959 soname_spec=
17960 shrext_cmds=".so"
17961 postinstall_cmds=
17962 postuninstall_cmds=
17963 finish_cmds=
17964 finish_eval=
17965 shlibpath_var=
17966 shlibpath_overrides_runpath=unknown
17967 version_type=none
17968 dynamic_linker="$host_os ld.so"
17969 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17970 if test "$GCC" = yes; then
17971   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17972   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17973     # if the path contains ";" then we assume it to be the separator
17974     # otherwise default to the standard path separator (i.e. ":") - it is
17975     # assumed that no part of a normal pathname contains ";" but that should
17976     # okay in the real world where ";" in dirpaths is itself problematic.
17977     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17978   else
17979     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17980   fi
17981 else
17982   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17984 need_lib_prefix=unknown
17985 hardcode_into_libs=no
17987 # when you set need_version to no, make sure it does not cause -set_version
17988 # flags to be left without arguments
17989 need_version=unknown
17991 case $host_os in
17992 aix3*)
17993   version_type=linux
17994   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17995   shlibpath_var=LIBPATH
17997   # AIX 3 has no versioning support, so we append a major version to the name.
17998   soname_spec='${libname}${release}${shared_ext}$major'
17999   ;;
18001 aix4* | aix5*)
18002   version_type=linux
18003   need_lib_prefix=no
18004   need_version=no
18005   hardcode_into_libs=yes
18006   if test "$host_cpu" = ia64; then
18007     # AIX 5 supports IA64
18008     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18009     shlibpath_var=LD_LIBRARY_PATH
18010   else
18011     # With GCC up to 2.95.x, collect2 would create an import file
18012     # for dependence libraries.  The import file would start with
18013     # the line `#! .'.  This would cause the generated library to
18014     # depend on `.', always an invalid library.  This was fixed in
18015     # development snapshots of GCC prior to 3.0.
18016     case $host_os in
18017       aix4 | aix4.[01] | aix4.[01].*)
18018       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18019            echo ' yes '
18020            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18021         :
18022       else
18023         can_build_shared=no
18024       fi
18025       ;;
18026     esac
18027     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18028     # soname into executable. Probably we can add versioning support to
18029     # collect2, so additional links can be useful in future.
18030     if test "$aix_use_runtimelinking" = yes; then
18031       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18032       # instead of lib<name>.a to let people know that these are not
18033       # typical AIX shared libraries.
18034       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18035     else
18036       # We preserve .a as extension for shared libraries through AIX4.2
18037       # and later when we are not doing run time linking.
18038       library_names_spec='${libname}${release}.a $libname.a'
18039       soname_spec='${libname}${release}${shared_ext}$major'
18040     fi
18041     shlibpath_var=LIBPATH
18042   fi
18043   ;;
18045 amigaos*)
18046   library_names_spec='$libname.ixlibrary $libname.a'
18047   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18048   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'
18049   ;;
18051 beos*)
18052   library_names_spec='${libname}${shared_ext}'
18053   dynamic_linker="$host_os ld.so"
18054   shlibpath_var=LIBRARY_PATH
18055   ;;
18057 bsdi[45]*)
18058   version_type=linux
18059   need_version=no
18060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18061   soname_spec='${libname}${release}${shared_ext}$major'
18062   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18063   shlibpath_var=LD_LIBRARY_PATH
18064   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18065   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18066   # the default ld.so.conf also contains /usr/contrib/lib and
18067   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18068   # libtool to hard-code these into programs
18069   ;;
18071 cygwin* | mingw* | pw32*)
18072   version_type=windows
18073   shrext_cmds=".dll"
18074   need_version=no
18075   need_lib_prefix=no
18077   case $GCC,$host_os in
18078   yes,cygwin* | yes,mingw* | yes,pw32*)
18079     library_names_spec='$libname.dll.a'
18080     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18081     postinstall_cmds='base_file=`basename \${file}`~
18082       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18083       dldir=$destdir/`dirname \$dlpath`~
18084       test -d \$dldir || mkdir -p \$dldir~
18085       $install_prog $dir/$dlname \$dldir/$dlname~
18086       chmod a+x \$dldir/$dlname'
18087     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18088       dlpath=$dir/\$dldll~
18089        $rm \$dlpath'
18090     shlibpath_overrides_runpath=yes
18092     case $host_os in
18093     cygwin*)
18094       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18095       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18096       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18097       ;;
18098     mingw*)
18099       # MinGW DLLs use traditional 'lib' prefix
18100       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18101       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18102       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18103         # It is most probably a Windows format PATH printed by
18104         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18105         # path with ; separators, and with drive letters. We can handle the
18106         # drive letters (cygwin fileutils understands them), so leave them,
18107         # especially as we might pass files found there to a mingw objdump,
18108         # which wouldn't understand a cygwinified path. Ahh.
18109         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18110       else
18111         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18112       fi
18113       ;;
18114     pw32*)
18115       # pw32 DLLs use 'pw' prefix rather than 'lib'
18116       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18117       ;;
18118     esac
18119     ;;
18121   *)
18122     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18123     ;;
18124   esac
18125   dynamic_linker='Win32 ld.exe'
18126   # FIXME: first we should search . and the directory the executable is in
18127   shlibpath_var=PATH
18128   ;;
18130 darwin* | rhapsody*)
18131   dynamic_linker="$host_os dyld"
18132   version_type=darwin
18133   need_lib_prefix=no
18134   need_version=no
18135   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18136   soname_spec='${libname}${release}${major}$shared_ext'
18137   shlibpath_overrides_runpath=yes
18138   shlibpath_var=DYLD_LIBRARY_PATH
18139   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18140   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18141   if test "$GCC" = yes; then
18142     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18143   else
18144     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18145   fi
18146   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18147   ;;
18149 dgux*)
18150   version_type=linux
18151   need_lib_prefix=no
18152   need_version=no
18153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18154   soname_spec='${libname}${release}${shared_ext}$major'
18155   shlibpath_var=LD_LIBRARY_PATH
18156   ;;
18158 freebsd1*)
18159   dynamic_linker=no
18160   ;;
18162 kfreebsd*-gnu)
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   shlibpath_var=LD_LIBRARY_PATH
18169   shlibpath_overrides_runpath=no
18170   hardcode_into_libs=yes
18171   dynamic_linker='GNU ld.so'
18172   ;;
18174 freebsd* | dragonfly*)
18175   # DragonFly does not have aout.  When/if they implement a new
18176   # versioning mechanism, adjust this.
18177   if test -x /usr/bin/objformat; then
18178     objformat=`/usr/bin/objformat`
18179   else
18180     case $host_os in
18181     freebsd[123]*) objformat=aout ;;
18182     *) objformat=elf ;;
18183     esac
18184   fi
18185   version_type=freebsd-$objformat
18186   case $version_type in
18187     freebsd-elf*)
18188       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18189       need_version=no
18190       need_lib_prefix=no
18191       ;;
18192     freebsd-*)
18193       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18194       need_version=yes
18195       ;;
18196   esac
18197   shlibpath_var=LD_LIBRARY_PATH
18198   case $host_os in
18199   freebsd2*)
18200     shlibpath_overrides_runpath=yes
18201     ;;
18202   freebsd3.[01]* | freebsdelf3.[01]*)
18203     shlibpath_overrides_runpath=yes
18204     hardcode_into_libs=yes
18205     ;;
18206   *) # from 3.2 on
18207     shlibpath_overrides_runpath=no
18208     hardcode_into_libs=yes
18209     ;;
18210   esac
18211   ;;
18213 gnu*)
18214   version_type=linux
18215   need_lib_prefix=no
18216   need_version=no
18217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18218   soname_spec='${libname}${release}${shared_ext}$major'
18219   shlibpath_var=LD_LIBRARY_PATH
18220   hardcode_into_libs=yes
18221   ;;
18223 hpux9* | hpux10* | hpux11*)
18224   # Give a soname corresponding to the major version so that dld.sl refuses to
18225   # link against other versions.
18226   version_type=sunos
18227   need_lib_prefix=no
18228   need_version=no
18229   case $host_cpu in
18230   ia64*)
18231     shrext_cmds='.so'
18232     hardcode_into_libs=yes
18233     dynamic_linker="$host_os dld.so"
18234     shlibpath_var=LD_LIBRARY_PATH
18235     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18236     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18237     soname_spec='${libname}${release}${shared_ext}$major'
18238     if test "X$HPUX_IA64_MODE" = X32; then
18239       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18240     else
18241       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18242     fi
18243     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18244     ;;
18245    hppa*64*)
18246      shrext_cmds='.sl'
18247      hardcode_into_libs=yes
18248      dynamic_linker="$host_os dld.sl"
18249      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18250      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18251      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18252      soname_spec='${libname}${release}${shared_ext}$major'
18253      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18254      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18255      ;;
18256    *)
18257     shrext_cmds='.sl'
18258     dynamic_linker="$host_os dld.sl"
18259     shlibpath_var=SHLIB_PATH
18260     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18261     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18262     soname_spec='${libname}${release}${shared_ext}$major'
18263     ;;
18264   esac
18265   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18266   postinstall_cmds='chmod 555 $lib'
18267   ;;
18269 irix5* | irix6* | nonstopux*)
18270   case $host_os in
18271     nonstopux*) version_type=nonstopux ;;
18272     *)
18273         if test "$lt_cv_prog_gnu_ld" = yes; then
18274                 version_type=linux
18275         else
18276                 version_type=irix
18277         fi ;;
18278   esac
18279   need_lib_prefix=no
18280   need_version=no
18281   soname_spec='${libname}${release}${shared_ext}$major'
18282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18283   case $host_os in
18284   irix5* | nonstopux*)
18285     libsuff= shlibsuff=
18286     ;;
18287   *)
18288     case $LD in # libtool.m4 will add one of these switches to LD
18289     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18290       libsuff= shlibsuff= libmagic=32-bit;;
18291     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18292       libsuff=32 shlibsuff=N32 libmagic=N32;;
18293     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18294       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18295     *) libsuff= shlibsuff= libmagic=never-match;;
18296     esac
18297     ;;
18298   esac
18299   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18300   shlibpath_overrides_runpath=no
18301   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18302   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18303   hardcode_into_libs=yes
18304   ;;
18306 # No shared lib support for Linux oldld, aout, or coff.
18307 linux*oldld* | linux*aout* | linux*coff*)
18308   dynamic_linker=no
18309   ;;
18311 # This must be Linux ELF.
18312 linux*)
18313   version_type=linux
18314   need_lib_prefix=no
18315   need_version=no
18316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18317   soname_spec='${libname}${release}${shared_ext}$major'
18318   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18319   shlibpath_var=LD_LIBRARY_PATH
18320   shlibpath_overrides_runpath=no
18321   # This implies no fast_install, which is unacceptable.
18322   # Some rework will be needed to allow for fast_install
18323   # before this can be enabled.
18324   hardcode_into_libs=yes
18326   # Append ld.so.conf contents to the search path
18327   if test -f /etc/ld.so.conf; then
18328     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18329     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18330   fi
18332   # We used to test for /lib/ld.so.1 and disable shared libraries on
18333   # powerpc, because MkLinux only supported shared libraries with the
18334   # GNU dynamic linker.  Since this was broken with cross compilers,
18335   # most powerpc-linux boxes support dynamic linking these days and
18336   # people can always --disable-shared, the test was removed, and we
18337   # assume the GNU/Linux dynamic linker is in use.
18338   dynamic_linker='GNU/Linux ld.so'
18339   ;;
18341 netbsdelf*-gnu)
18342   version_type=linux
18343   need_lib_prefix=no
18344   need_version=no
18345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18346   soname_spec='${libname}${release}${shared_ext}$major'
18347   shlibpath_var=LD_LIBRARY_PATH
18348   shlibpath_overrides_runpath=no
18349   hardcode_into_libs=yes
18350   dynamic_linker='NetBSD ld.elf_so'
18351   ;;
18353 knetbsd*-gnu)
18354   version_type=linux
18355   need_lib_prefix=no
18356   need_version=no
18357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18358   soname_spec='${libname}${release}${shared_ext}$major'
18359   shlibpath_var=LD_LIBRARY_PATH
18360   shlibpath_overrides_runpath=no
18361   hardcode_into_libs=yes
18362   dynamic_linker='GNU ld.so'
18363   ;;
18365 netbsd*)
18366   version_type=sunos
18367   need_lib_prefix=no
18368   need_version=no
18369   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18370     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18371     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18372     dynamic_linker='NetBSD (a.out) ld.so'
18373   else
18374     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18375     soname_spec='${libname}${release}${shared_ext}$major'
18376     dynamic_linker='NetBSD ld.elf_so'
18377   fi
18378   shlibpath_var=LD_LIBRARY_PATH
18379   shlibpath_overrides_runpath=yes
18380   hardcode_into_libs=yes
18381   ;;
18383 newsos6)
18384   version_type=linux
18385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18386   shlibpath_var=LD_LIBRARY_PATH
18387   shlibpath_overrides_runpath=yes
18388   ;;
18390 nto-qnx*)
18391   version_type=linux
18392   need_lib_prefix=no
18393   need_version=no
18394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18395   soname_spec='${libname}${release}${shared_ext}$major'
18396   shlibpath_var=LD_LIBRARY_PATH
18397   shlibpath_overrides_runpath=yes
18398   ;;
18400 openbsd*)
18401   version_type=sunos
18402   need_lib_prefix=no
18403   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18404   case $host_os in
18405     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18406     *)                         need_version=no  ;;
18407   esac
18408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18409   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18410   shlibpath_var=LD_LIBRARY_PATH
18411   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18412     case $host_os in
18413       openbsd2.[89] | openbsd2.[89].*)
18414         shlibpath_overrides_runpath=no
18415         ;;
18416       *)
18417         shlibpath_overrides_runpath=yes
18418         ;;
18419       esac
18420   else
18421     shlibpath_overrides_runpath=yes
18422   fi
18423   ;;
18425 os2*)
18426   libname_spec='$name'
18427   shrext_cmds=".dll"
18428   need_lib_prefix=no
18429   library_names_spec='$libname${shared_ext} $libname.a'
18430   dynamic_linker='OS/2 ld.exe'
18431   shlibpath_var=LIBPATH
18432   ;;
18434 osf3* | osf4* | osf5*)
18435   version_type=osf
18436   need_lib_prefix=no
18437   need_version=no
18438   soname_spec='${libname}${release}${shared_ext}$major'
18439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18440   shlibpath_var=LD_LIBRARY_PATH
18441   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18442   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18443   ;;
18445 sco3.2v5*)
18446   version_type=osf
18447   soname_spec='${libname}${release}${shared_ext}$major'
18448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18449   shlibpath_var=LD_LIBRARY_PATH
18450   ;;
18452 solaris*)
18453   version_type=linux
18454   need_lib_prefix=no
18455   need_version=no
18456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18457   soname_spec='${libname}${release}${shared_ext}$major'
18458   shlibpath_var=LD_LIBRARY_PATH
18459   shlibpath_overrides_runpath=yes
18460   hardcode_into_libs=yes
18461   # ldd complains unless libraries are executable
18462   postinstall_cmds='chmod +x $lib'
18463   ;;
18465 sunos4*)
18466   version_type=sunos
18467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18468   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18469   shlibpath_var=LD_LIBRARY_PATH
18470   shlibpath_overrides_runpath=yes
18471   if test "$with_gnu_ld" = yes; then
18472     need_lib_prefix=no
18473   fi
18474   need_version=yes
18475   ;;
18477 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18478   version_type=linux
18479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18480   soname_spec='${libname}${release}${shared_ext}$major'
18481   shlibpath_var=LD_LIBRARY_PATH
18482   case $host_vendor in
18483     sni)
18484       shlibpath_overrides_runpath=no
18485       need_lib_prefix=no
18486       export_dynamic_flag_spec='${wl}-Blargedynsym'
18487       runpath_var=LD_RUN_PATH
18488       ;;
18489     siemens)
18490       need_lib_prefix=no
18491       ;;
18492     motorola)
18493       need_lib_prefix=no
18494       need_version=no
18495       shlibpath_overrides_runpath=no
18496       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18497       ;;
18498   esac
18499   ;;
18501 sysv4*MP*)
18502   if test -d /usr/nec ;then
18503     version_type=linux
18504     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18505     soname_spec='$libname${shared_ext}.$major'
18506     shlibpath_var=LD_LIBRARY_PATH
18507   fi
18508   ;;
18510 uts4*)
18511   version_type=linux
18512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18513   soname_spec='${libname}${release}${shared_ext}$major'
18514   shlibpath_var=LD_LIBRARY_PATH
18515   ;;
18518   dynamic_linker=no
18519   ;;
18520 esac
18521 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18522 echo "${ECHO_T}$dynamic_linker" >&6; }
18523 test "$dynamic_linker" = no && can_build_shared=no
18525 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18526 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18527 hardcode_action_GCJ=
18528 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18529    test -n "$runpath_var_GCJ" || \
18530    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18532   # We can hardcode non-existant directories.
18533   if test "$hardcode_direct_GCJ" != no &&
18534      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18535      # have to relink, otherwise we might link with an installed library
18536      # when we should be linking with a yet-to-be-installed one
18537      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18538      test "$hardcode_minus_L_GCJ" != no; then
18539     # Linking always hardcodes the temporary library directory.
18540     hardcode_action_GCJ=relink
18541   else
18542     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18543     hardcode_action_GCJ=immediate
18544   fi
18545 else
18546   # We cannot hardcode anything, or else we can only hardcode existing
18547   # directories.
18548   hardcode_action_GCJ=unsupported
18550 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18551 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18553 if test "$hardcode_action_GCJ" = relink; then
18554   # Fast installation is not supported
18555   enable_fast_install=no
18556 elif test "$shlibpath_overrides_runpath" = yes ||
18557      test "$enable_shared" = no; then
18558   # Fast installation is not necessary
18559   enable_fast_install=needless
18562 striplib=
18563 old_striplib=
18564 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18565 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18566 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18567   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18568   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18569   { echo "$as_me:$LINENO: result: yes" >&5
18570 echo "${ECHO_T}yes" >&6; }
18571 else
18572 # FIXME - insert some real tests, host_os isn't really good enough
18573   case $host_os in
18574    darwin*)
18575        if test -n "$STRIP" ; then
18576          striplib="$STRIP -x"
18577          { echo "$as_me:$LINENO: result: yes" >&5
18578 echo "${ECHO_T}yes" >&6; }
18579        else
18580   { echo "$as_me:$LINENO: result: no" >&5
18581 echo "${ECHO_T}no" >&6; }
18583        ;;
18584    *)
18585   { echo "$as_me:$LINENO: result: no" >&5
18586 echo "${ECHO_T}no" >&6; }
18587     ;;
18588   esac
18591 if test "x$enable_dlopen" != xyes; then
18592   enable_dlopen=unknown
18593   enable_dlopen_self=unknown
18594   enable_dlopen_self_static=unknown
18595 else
18596   lt_cv_dlopen=no
18597   lt_cv_dlopen_libs=
18599   case $host_os in
18600   beos*)
18601     lt_cv_dlopen="load_add_on"
18602     lt_cv_dlopen_libs=
18603     lt_cv_dlopen_self=yes
18604     ;;
18606   mingw* | pw32*)
18607     lt_cv_dlopen="LoadLibrary"
18608     lt_cv_dlopen_libs=
18609    ;;
18611   cygwin*)
18612     lt_cv_dlopen="dlopen"
18613     lt_cv_dlopen_libs=
18614    ;;
18616   darwin*)
18617   # if libdl is installed we need to link against it
18618     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18619 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18620 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18621   echo $ECHO_N "(cached) $ECHO_C" >&6
18622 else
18623   ac_check_lib_save_LIBS=$LIBS
18624 LIBS="-ldl  $LIBS"
18625 cat >conftest.$ac_ext <<_ACEOF
18626 /* confdefs.h.  */
18627 _ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h.  */
18632 /* Override any GCC internal prototype to avoid an error.
18633    Use char because int might match the return type of a GCC
18634    builtin and then its argument prototype would still apply.  */
18635 #ifdef __cplusplus
18636 extern "C"
18637 #endif
18638 char dlopen ();
18640 main ()
18642 return dlopen ();
18643   ;
18644   return 0;
18646 _ACEOF
18647 rm -f conftest.$ac_objext conftest$ac_exeext
18648 if { (ac_try="$ac_link"
18649 case "(($ac_try" in
18650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651   *) ac_try_echo=$ac_try;;
18652 esac
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654   (eval "$ac_link") 2>conftest.er1
18655   ac_status=$?
18656   grep -v '^ *+' conftest.er1 >conftest.err
18657   rm -f conftest.er1
18658   cat conftest.err >&5
18659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660   (exit $ac_status); } && {
18661          test -z "$ac_c_werror_flag" ||
18662          test ! -s conftest.err
18663        } && test -s conftest$ac_exeext &&
18664        $as_test_x conftest$ac_exeext; then
18665   ac_cv_lib_dl_dlopen=yes
18666 else
18667   echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18670         ac_cv_lib_dl_dlopen=no
18673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18674       conftest$ac_exeext conftest.$ac_ext
18675 LIBS=$ac_check_lib_save_LIBS
18677 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18678 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18679 if test $ac_cv_lib_dl_dlopen = yes; then
18680   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18681 else
18682   
18683     lt_cv_dlopen="dyld"
18684     lt_cv_dlopen_libs=
18685     lt_cv_dlopen_self=yes
18686     
18689    ;;
18691   *)
18692     { echo "$as_me:$LINENO: checking for shl_load" >&5
18693 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
18694 if test "${ac_cv_func_shl_load+set}" = set; then
18695   echo $ECHO_N "(cached) $ECHO_C" >&6
18696 else
18697   cat >conftest.$ac_ext <<_ACEOF
18698 /* confdefs.h.  */
18699 _ACEOF
18700 cat confdefs.h >>conftest.$ac_ext
18701 cat >>conftest.$ac_ext <<_ACEOF
18702 /* end confdefs.h.  */
18703 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18704    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18705 #define shl_load innocuous_shl_load
18707 /* System header to define __stub macros and hopefully few prototypes,
18708     which can conflict with char shl_load (); below.
18709     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18710     <limits.h> exists even on freestanding compilers.  */
18712 #ifdef __STDC__
18713 # include <limits.h>
18714 #else
18715 # include <assert.h>
18716 #endif
18718 #undef shl_load
18720 /* Override any GCC internal prototype to avoid an error.
18721    Use char because int might match the return type of a GCC
18722    builtin and then its argument prototype would still apply.  */
18723 #ifdef __cplusplus
18724 extern "C"
18725 #endif
18726 char shl_load ();
18727 /* The GNU C library defines this for functions which it implements
18728     to always fail with ENOSYS.  Some functions are actually named
18729     something starting with __ and the normal name is an alias.  */
18730 #if defined __stub_shl_load || defined __stub___shl_load
18731 choke me
18732 #endif
18735 main ()
18737 return shl_load ();
18738   ;
18739   return 0;
18741 _ACEOF
18742 rm -f conftest.$ac_objext conftest$ac_exeext
18743 if { (ac_try="$ac_link"
18744 case "(($ac_try" in
18745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18746   *) ac_try_echo=$ac_try;;
18747 esac
18748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18749   (eval "$ac_link") 2>conftest.er1
18750   ac_status=$?
18751   grep -v '^ *+' conftest.er1 >conftest.err
18752   rm -f conftest.er1
18753   cat conftest.err >&5
18754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755   (exit $ac_status); } && {
18756          test -z "$ac_c_werror_flag" ||
18757          test ! -s conftest.err
18758        } && test -s conftest$ac_exeext &&
18759        $as_test_x conftest$ac_exeext; then
18760   ac_cv_func_shl_load=yes
18761 else
18762   echo "$as_me: failed program was:" >&5
18763 sed 's/^/| /' conftest.$ac_ext >&5
18765         ac_cv_func_shl_load=no
18768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18769       conftest$ac_exeext conftest.$ac_ext
18771 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18772 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18773 if test $ac_cv_func_shl_load = yes; then
18774   lt_cv_dlopen="shl_load"
18775 else
18776   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18777 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18778 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18779   echo $ECHO_N "(cached) $ECHO_C" >&6
18780 else
18781   ac_check_lib_save_LIBS=$LIBS
18782 LIBS="-ldld  $LIBS"
18783 cat >conftest.$ac_ext <<_ACEOF
18784 /* confdefs.h.  */
18785 _ACEOF
18786 cat confdefs.h >>conftest.$ac_ext
18787 cat >>conftest.$ac_ext <<_ACEOF
18788 /* end confdefs.h.  */
18790 /* Override any GCC internal prototype to avoid an error.
18791    Use char because int might match the return type of a GCC
18792    builtin and then its argument prototype would still apply.  */
18793 #ifdef __cplusplus
18794 extern "C"
18795 #endif
18796 char shl_load ();
18798 main ()
18800 return shl_load ();
18801   ;
18802   return 0;
18804 _ACEOF
18805 rm -f conftest.$ac_objext conftest$ac_exeext
18806 if { (ac_try="$ac_link"
18807 case "(($ac_try" in
18808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809   *) ac_try_echo=$ac_try;;
18810 esac
18811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18812   (eval "$ac_link") 2>conftest.er1
18813   ac_status=$?
18814   grep -v '^ *+' conftest.er1 >conftest.err
18815   rm -f conftest.er1
18816   cat conftest.err >&5
18817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818   (exit $ac_status); } && {
18819          test -z "$ac_c_werror_flag" ||
18820          test ! -s conftest.err
18821        } && test -s conftest$ac_exeext &&
18822        $as_test_x conftest$ac_exeext; then
18823   ac_cv_lib_dld_shl_load=yes
18824 else
18825   echo "$as_me: failed program was:" >&5
18826 sed 's/^/| /' conftest.$ac_ext >&5
18828         ac_cv_lib_dld_shl_load=no
18831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18832       conftest$ac_exeext conftest.$ac_ext
18833 LIBS=$ac_check_lib_save_LIBS
18835 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18836 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18837 if test $ac_cv_lib_dld_shl_load = yes; then
18838   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18839 else
18840   { echo "$as_me:$LINENO: checking for dlopen" >&5
18841 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18842 if test "${ac_cv_func_dlopen+set}" = set; then
18843   echo $ECHO_N "(cached) $ECHO_C" >&6
18844 else
18845   cat >conftest.$ac_ext <<_ACEOF
18846 /* confdefs.h.  */
18847 _ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h.  */
18851 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18853 #define dlopen innocuous_dlopen
18855 /* System header to define __stub macros and hopefully few prototypes,
18856     which can conflict with char dlopen (); below.
18857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18858     <limits.h> exists even on freestanding compilers.  */
18860 #ifdef __STDC__
18861 # include <limits.h>
18862 #else
18863 # include <assert.h>
18864 #endif
18866 #undef dlopen
18868 /* Override any GCC internal prototype to avoid an error.
18869    Use char because int might match the return type of a GCC
18870    builtin and then its argument prototype would still apply.  */
18871 #ifdef __cplusplus
18872 extern "C"
18873 #endif
18874 char dlopen ();
18875 /* The GNU C library defines this for functions which it implements
18876     to always fail with ENOSYS.  Some functions are actually named
18877     something starting with __ and the normal name is an alias.  */
18878 #if defined __stub_dlopen || defined __stub___dlopen
18879 choke me
18880 #endif
18883 main ()
18885 return dlopen ();
18886   ;
18887   return 0;
18889 _ACEOF
18890 rm -f conftest.$ac_objext conftest$ac_exeext
18891 if { (ac_try="$ac_link"
18892 case "(($ac_try" in
18893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894   *) ac_try_echo=$ac_try;;
18895 esac
18896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897   (eval "$ac_link") 2>conftest.er1
18898   ac_status=$?
18899   grep -v '^ *+' conftest.er1 >conftest.err
18900   rm -f conftest.er1
18901   cat conftest.err >&5
18902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903   (exit $ac_status); } && {
18904          test -z "$ac_c_werror_flag" ||
18905          test ! -s conftest.err
18906        } && test -s conftest$ac_exeext &&
18907        $as_test_x conftest$ac_exeext; then
18908   ac_cv_func_dlopen=yes
18909 else
18910   echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.$ac_ext >&5
18913         ac_cv_func_dlopen=no
18916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18917       conftest$ac_exeext conftest.$ac_ext
18919 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18920 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
18921 if test $ac_cv_func_dlopen = yes; then
18922   lt_cv_dlopen="dlopen"
18923 else
18924   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18925 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18926 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18927   echo $ECHO_N "(cached) $ECHO_C" >&6
18928 else
18929   ac_check_lib_save_LIBS=$LIBS
18930 LIBS="-ldl  $LIBS"
18931 cat >conftest.$ac_ext <<_ACEOF
18932 /* confdefs.h.  */
18933 _ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h.  */
18938 /* Override any GCC internal prototype to avoid an error.
18939    Use char because int might match the return type of a GCC
18940    builtin and then its argument prototype would still apply.  */
18941 #ifdef __cplusplus
18942 extern "C"
18943 #endif
18944 char dlopen ();
18946 main ()
18948 return dlopen ();
18949   ;
18950   return 0;
18952 _ACEOF
18953 rm -f conftest.$ac_objext conftest$ac_exeext
18954 if { (ac_try="$ac_link"
18955 case "(($ac_try" in
18956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957   *) ac_try_echo=$ac_try;;
18958 esac
18959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18960   (eval "$ac_link") 2>conftest.er1
18961   ac_status=$?
18962   grep -v '^ *+' conftest.er1 >conftest.err
18963   rm -f conftest.er1
18964   cat conftest.err >&5
18965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966   (exit $ac_status); } && {
18967          test -z "$ac_c_werror_flag" ||
18968          test ! -s conftest.err
18969        } && test -s conftest$ac_exeext &&
18970        $as_test_x conftest$ac_exeext; then
18971   ac_cv_lib_dl_dlopen=yes
18972 else
18973   echo "$as_me: failed program was:" >&5
18974 sed 's/^/| /' conftest.$ac_ext >&5
18976         ac_cv_lib_dl_dlopen=no
18979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18980       conftest$ac_exeext conftest.$ac_ext
18981 LIBS=$ac_check_lib_save_LIBS
18983 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18984 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18985 if test $ac_cv_lib_dl_dlopen = yes; then
18986   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18987 else
18988   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18989 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
18990 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18991   echo $ECHO_N "(cached) $ECHO_C" >&6
18992 else
18993   ac_check_lib_save_LIBS=$LIBS
18994 LIBS="-lsvld  $LIBS"
18995 cat >conftest.$ac_ext <<_ACEOF
18996 /* confdefs.h.  */
18997 _ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h.  */
19002 /* Override any GCC internal prototype to avoid an error.
19003    Use char because int might match the return type of a GCC
19004    builtin and then its argument prototype would still apply.  */
19005 #ifdef __cplusplus
19006 extern "C"
19007 #endif
19008 char dlopen ();
19010 main ()
19012 return dlopen ();
19013   ;
19014   return 0;
19016 _ACEOF
19017 rm -f conftest.$ac_objext conftest$ac_exeext
19018 if { (ac_try="$ac_link"
19019 case "(($ac_try" in
19020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021   *) ac_try_echo=$ac_try;;
19022 esac
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024   (eval "$ac_link") 2>conftest.er1
19025   ac_status=$?
19026   grep -v '^ *+' conftest.er1 >conftest.err
19027   rm -f conftest.er1
19028   cat conftest.err >&5
19029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030   (exit $ac_status); } && {
19031          test -z "$ac_c_werror_flag" ||
19032          test ! -s conftest.err
19033        } && test -s conftest$ac_exeext &&
19034        $as_test_x conftest$ac_exeext; then
19035   ac_cv_lib_svld_dlopen=yes
19036 else
19037   echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19040         ac_cv_lib_svld_dlopen=no
19043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19044       conftest$ac_exeext conftest.$ac_ext
19045 LIBS=$ac_check_lib_save_LIBS
19047 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19048 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
19049 if test $ac_cv_lib_svld_dlopen = yes; then
19050   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19051 else
19052   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19053 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
19054 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19055   echo $ECHO_N "(cached) $ECHO_C" >&6
19056 else
19057   ac_check_lib_save_LIBS=$LIBS
19058 LIBS="-ldld  $LIBS"
19059 cat >conftest.$ac_ext <<_ACEOF
19060 /* confdefs.h.  */
19061 _ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h.  */
19066 /* Override any GCC internal prototype to avoid an error.
19067    Use char because int might match the return type of a GCC
19068    builtin and then its argument prototype would still apply.  */
19069 #ifdef __cplusplus
19070 extern "C"
19071 #endif
19072 char dld_link ();
19074 main ()
19076 return dld_link ();
19077   ;
19078   return 0;
19080 _ACEOF
19081 rm -f conftest.$ac_objext conftest$ac_exeext
19082 if { (ac_try="$ac_link"
19083 case "(($ac_try" in
19084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085   *) ac_try_echo=$ac_try;;
19086 esac
19087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088   (eval "$ac_link") 2>conftest.er1
19089   ac_status=$?
19090   grep -v '^ *+' conftest.er1 >conftest.err
19091   rm -f conftest.er1
19092   cat conftest.err >&5
19093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094   (exit $ac_status); } && {
19095          test -z "$ac_c_werror_flag" ||
19096          test ! -s conftest.err
19097        } && test -s conftest$ac_exeext &&
19098        $as_test_x conftest$ac_exeext; then
19099   ac_cv_lib_dld_dld_link=yes
19100 else
19101   echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19104         ac_cv_lib_dld_dld_link=no
19107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19108       conftest$ac_exeext conftest.$ac_ext
19109 LIBS=$ac_check_lib_save_LIBS
19111 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19112 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
19113 if test $ac_cv_lib_dld_dld_link = yes; then
19114   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19117               
19120             
19123           
19126         
19129       
19132     ;;
19133   esac
19135   if test "x$lt_cv_dlopen" != xno; then
19136     enable_dlopen=yes
19137   else
19138     enable_dlopen=no
19139   fi
19141   case $lt_cv_dlopen in
19142   dlopen)
19143     save_CPPFLAGS="$CPPFLAGS"
19144     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19146     save_LDFLAGS="$LDFLAGS"
19147     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19149     save_LIBS="$LIBS"
19150     LIBS="$lt_cv_dlopen_libs $LIBS"
19152     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19153 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
19154 if test "${lt_cv_dlopen_self+set}" = set; then
19155   echo $ECHO_N "(cached) $ECHO_C" >&6
19156 else
19157           if test "$cross_compiling" = yes; then :
19158   lt_cv_dlopen_self=cross
19159 else
19160   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19161   lt_status=$lt_dlunknown
19162   cat > conftest.$ac_ext <<EOF
19163 #line __oline__ "configure"
19164 #include "confdefs.h"
19166 #if HAVE_DLFCN_H
19167 #include <dlfcn.h>
19168 #endif
19170 #include <stdio.h>
19172 #ifdef RTLD_GLOBAL
19173 #  define LT_DLGLOBAL           RTLD_GLOBAL
19174 #else
19175 #  ifdef DL_GLOBAL
19176 #    define LT_DLGLOBAL         DL_GLOBAL
19177 #  else
19178 #    define LT_DLGLOBAL         0
19179 #  endif
19180 #endif
19182 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19183    find out it does not work in some platform. */
19184 #ifndef LT_DLLAZY_OR_NOW
19185 #  ifdef RTLD_LAZY
19186 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19187 #  else
19188 #    ifdef DL_LAZY
19189 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19190 #    else
19191 #      ifdef RTLD_NOW
19192 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19193 #      else
19194 #        ifdef DL_NOW
19195 #          define LT_DLLAZY_OR_NOW      DL_NOW
19196 #        else
19197 #          define LT_DLLAZY_OR_NOW      0
19198 #        endif
19199 #      endif
19200 #    endif
19201 #  endif
19202 #endif
19204 #ifdef __cplusplus
19205 extern "C" void exit (int);
19206 #endif
19208 void fnord() { int i=42;}
19209 int main ()
19211   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19212   int status = $lt_dlunknown;
19214   if (self)
19215     {
19216       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19217       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19218       /* dlclose (self); */
19219     }
19221     exit (status);
19224   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19225   (eval $ac_link) 2>&5
19226   ac_status=$?
19227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19229     (./conftest; exit; ) >&5 2>/dev/null
19230     lt_status=$?
19231     case x$lt_status in
19232       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19233       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19234       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19235     esac
19236   else :
19237     # compilation failed
19238     lt_cv_dlopen_self=no
19239   fi
19241 rm -fr conftest*
19243     
19245 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19246 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
19248     if test "x$lt_cv_dlopen_self" = xyes; then
19249       LDFLAGS="$LDFLAGS $link_static_flag"
19250       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19251 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
19252 if test "${lt_cv_dlopen_self_static+set}" = set; then
19253   echo $ECHO_N "(cached) $ECHO_C" >&6
19254 else
19255           if test "$cross_compiling" = yes; then :
19256   lt_cv_dlopen_self_static=cross
19257 else
19258   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19259   lt_status=$lt_dlunknown
19260   cat > conftest.$ac_ext <<EOF
19261 #line __oline__ "configure"
19262 #include "confdefs.h"
19264 #if HAVE_DLFCN_H
19265 #include <dlfcn.h>
19266 #endif
19268 #include <stdio.h>
19270 #ifdef RTLD_GLOBAL
19271 #  define LT_DLGLOBAL           RTLD_GLOBAL
19272 #else
19273 #  ifdef DL_GLOBAL
19274 #    define LT_DLGLOBAL         DL_GLOBAL
19275 #  else
19276 #    define LT_DLGLOBAL         0
19277 #  endif
19278 #endif
19280 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19281    find out it does not work in some platform. */
19282 #ifndef LT_DLLAZY_OR_NOW
19283 #  ifdef RTLD_LAZY
19284 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19285 #  else
19286 #    ifdef DL_LAZY
19287 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19288 #    else
19289 #      ifdef RTLD_NOW
19290 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19291 #      else
19292 #        ifdef DL_NOW
19293 #          define LT_DLLAZY_OR_NOW      DL_NOW
19294 #        else
19295 #          define LT_DLLAZY_OR_NOW      0
19296 #        endif
19297 #      endif
19298 #    endif
19299 #  endif
19300 #endif
19302 #ifdef __cplusplus
19303 extern "C" void exit (int);
19304 #endif
19306 void fnord() { int i=42;}
19307 int main ()
19309   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19310   int status = $lt_dlunknown;
19312   if (self)
19313     {
19314       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19315       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19316       /* dlclose (self); */
19317     }
19319     exit (status);
19322   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19323   (eval $ac_link) 2>&5
19324   ac_status=$?
19325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19327     (./conftest; exit; ) >&5 2>/dev/null
19328     lt_status=$?
19329     case x$lt_status in
19330       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19331       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19332       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19333     esac
19334   else :
19335     # compilation failed
19336     lt_cv_dlopen_self_static=no
19337   fi
19339 rm -fr conftest*
19341       
19343 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19344 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
19345     fi
19347     CPPFLAGS="$save_CPPFLAGS"
19348     LDFLAGS="$save_LDFLAGS"
19349     LIBS="$save_LIBS"
19350     ;;
19351   esac
19353   case $lt_cv_dlopen_self in
19354   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19355   *) enable_dlopen_self=unknown ;;
19356   esac
19358   case $lt_cv_dlopen_self_static in
19359   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19360   *) enable_dlopen_self_static=unknown ;;
19361   esac
19365 # The else clause should only fire when bootstrapping the
19366 # libtool distribution, otherwise you forgot to ship ltmain.sh
19367 # with your package, and you will get complaints that there are
19368 # no rules to generate ltmain.sh.
19369 if test -f "$ltmain"; then
19370   # See if we are running on zsh, and set the options which allow our commands through
19371   # without removal of \ escapes.
19372   if test -n "${ZSH_VERSION+set}" ; then
19373     setopt NO_GLOB_SUBST
19374   fi
19375   # Now quote all the things that may contain metacharacters while being
19376   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19377   # variables and quote the copies for generation of the libtool script.
19378   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19379     SED SHELL STRIP \
19380     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19381     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19382     deplibs_check_method reload_flag reload_cmds need_locks \
19383     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19384     lt_cv_sys_global_symbol_to_c_name_address \
19385     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19386     old_postinstall_cmds old_postuninstall_cmds \
19387     compiler_GCJ \
19388     CC_GCJ \
19389     LD_GCJ \
19390     lt_prog_compiler_wl_GCJ \
19391     lt_prog_compiler_pic_GCJ \
19392     lt_prog_compiler_static_GCJ \
19393     lt_prog_compiler_no_builtin_flag_GCJ \
19394     export_dynamic_flag_spec_GCJ \
19395     thread_safe_flag_spec_GCJ \
19396     whole_archive_flag_spec_GCJ \
19397     enable_shared_with_static_runtimes_GCJ \
19398     old_archive_cmds_GCJ \
19399     old_archive_from_new_cmds_GCJ \
19400     predep_objects_GCJ \
19401     postdep_objects_GCJ \
19402     predeps_GCJ \
19403     postdeps_GCJ \
19404     compiler_lib_search_path_GCJ \
19405     archive_cmds_GCJ \
19406     archive_expsym_cmds_GCJ \
19407     postinstall_cmds_GCJ \
19408     postuninstall_cmds_GCJ \
19409     old_archive_from_expsyms_cmds_GCJ \
19410     allow_undefined_flag_GCJ \
19411     no_undefined_flag_GCJ \
19412     export_symbols_cmds_GCJ \
19413     hardcode_libdir_flag_spec_GCJ \
19414     hardcode_libdir_flag_spec_ld_GCJ \
19415     hardcode_libdir_separator_GCJ \
19416     hardcode_automatic_GCJ \
19417     module_cmds_GCJ \
19418     module_expsym_cmds_GCJ \
19419     lt_cv_prog_compiler_c_o_GCJ \
19420     exclude_expsyms_GCJ \
19421     include_expsyms_GCJ; do
19423     case $var in
19424     old_archive_cmds_GCJ | \
19425     old_archive_from_new_cmds_GCJ | \
19426     archive_cmds_GCJ | \
19427     archive_expsym_cmds_GCJ | \
19428     module_cmds_GCJ | \
19429     module_expsym_cmds_GCJ | \
19430     old_archive_from_expsyms_cmds_GCJ | \
19431     export_symbols_cmds_GCJ | \
19432     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19433     postinstall_cmds | postuninstall_cmds | \
19434     old_postinstall_cmds | old_postuninstall_cmds | \
19435     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19436       # Double-quote double-evaled strings.
19437       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19438       ;;
19439     *)
19440       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19441       ;;
19442     esac
19443   done
19445   case $lt_echo in
19446   *'\$0 --fallback-echo"')
19447     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19448     ;;
19449   esac
19451 cfgfile="$ofile"
19453   cat <<__EOF__ >> "$cfgfile"
19454 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19456 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19458 # Shell to use when invoking shell scripts.
19459 SHELL=$lt_SHELL
19461 # Whether or not to build shared libraries.
19462 build_libtool_libs=$enable_shared
19464 # Whether or not to build static libraries.
19465 build_old_libs=$enable_static
19467 # Whether or not to add -lc for building shared libraries.
19468 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19470 # Whether or not to disallow shared libs when runtime libs are static
19471 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19473 # Whether or not to optimize for fast installation.
19474 fast_install=$enable_fast_install
19476 # The host system.
19477 host_alias=$host_alias
19478 host=$host
19479 host_os=$host_os
19481 # The build system.
19482 build_alias=$build_alias
19483 build=$build
19484 build_os=$build_os
19486 # An echo program that does not interpret backslashes.
19487 echo=$lt_echo
19489 # The archiver.
19490 AR=$lt_AR
19491 AR_FLAGS=$lt_AR_FLAGS
19493 # A C compiler.
19494 LTCC=$lt_LTCC
19496 # A language-specific compiler.
19497 CC=$lt_compiler_GCJ
19499 # Is the compiler the GNU C compiler?
19500 with_gcc=$GCC_GCJ
19502 # An ERE matcher.
19503 EGREP=$lt_EGREP
19505 # The linker used to build libraries.
19506 LD=$lt_LD_GCJ
19508 # Whether we need hard or soft links.
19509 LN_S=$lt_LN_S
19511 # A BSD-compatible nm program.
19512 NM=$lt_NM
19514 # A symbol stripping program
19515 STRIP=$lt_STRIP
19517 # Used to examine libraries when file_magic_cmd begins "file"
19518 MAGIC_CMD=$MAGIC_CMD
19520 # Used on cygwin: DLL creation program.
19521 DLLTOOL="$DLLTOOL"
19523 # Used on cygwin: object dumper.
19524 OBJDUMP="$OBJDUMP"
19526 # Used on cygwin: assembler.
19527 AS="$AS"
19529 # The name of the directory that contains temporary libtool files.
19530 objdir=$objdir
19532 # How to create reloadable object files.
19533 reload_flag=$lt_reload_flag
19534 reload_cmds=$lt_reload_cmds
19536 # How to pass a linker flag through the compiler.
19537 wl=$lt_lt_prog_compiler_wl_GCJ
19539 # Object file suffix (normally "o").
19540 objext="$ac_objext"
19542 # Old archive suffix (normally "a").
19543 libext="$libext"
19545 # Shared library suffix (normally ".so").
19546 shrext_cmds='$shrext_cmds'
19548 # Executable file suffix (normally "").
19549 exeext="$exeext"
19551 # Additional compiler flags for building library objects.
19552 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19553 pic_mode=$pic_mode
19555 # What is the maximum length of a command?
19556 max_cmd_len=$lt_cv_sys_max_cmd_len
19558 # Does compiler simultaneously support -c and -o options?
19559 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19561 # Must we lock files when doing compilation?
19562 need_locks=$lt_need_locks
19564 # Do we need the lib prefix for modules?
19565 need_lib_prefix=$need_lib_prefix
19567 # Do we need a version for libraries?
19568 need_version=$need_version
19570 # Whether dlopen is supported.
19571 dlopen_support=$enable_dlopen
19573 # Whether dlopen of programs is supported.
19574 dlopen_self=$enable_dlopen_self
19576 # Whether dlopen of statically linked programs is supported.
19577 dlopen_self_static=$enable_dlopen_self_static
19579 # Compiler flag to prevent dynamic linking.
19580 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19582 # Compiler flag to turn off builtin functions.
19583 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19585 # Compiler flag to allow reflexive dlopens.
19586 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19588 # Compiler flag to generate shared objects directly from archives.
19589 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19591 # Compiler flag to generate thread-safe objects.
19592 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19594 # Library versioning type.
19595 version_type=$version_type
19597 # Format of library name prefix.
19598 libname_spec=$lt_libname_spec
19600 # List of archive names.  First name is the real one, the rest are links.
19601 # The last name is the one that the linker finds with -lNAME.
19602 library_names_spec=$lt_library_names_spec
19604 # The coded name of the library, if different from the real name.
19605 soname_spec=$lt_soname_spec
19607 # Commands used to build and install an old-style archive.
19608 RANLIB=$lt_RANLIB
19609 old_archive_cmds=$lt_old_archive_cmds_GCJ
19610 old_postinstall_cmds=$lt_old_postinstall_cmds
19611 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19613 # Create an old-style archive from a shared archive.
19614 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19616 # Create a temporary old-style archive to link instead of a shared archive.
19617 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19619 # Commands used to build and install a shared archive.
19620 archive_cmds=$lt_archive_cmds_GCJ
19621 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19622 postinstall_cmds=$lt_postinstall_cmds
19623 postuninstall_cmds=$lt_postuninstall_cmds
19625 # Commands used to build a loadable module (assumed same as above if empty)
19626 module_cmds=$lt_module_cmds_GCJ
19627 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19629 # Commands to strip libraries.
19630 old_striplib=$lt_old_striplib
19631 striplib=$lt_striplib
19633 # Dependencies to place before the objects being linked to create a
19634 # shared library.
19635 predep_objects=$lt_predep_objects_GCJ
19637 # Dependencies to place after the objects being linked to create a
19638 # shared library.
19639 postdep_objects=$lt_postdep_objects_GCJ
19641 # Dependencies to place before the objects being linked to create a
19642 # shared library.
19643 predeps=$lt_predeps_GCJ
19645 # Dependencies to place after the objects being linked to create a
19646 # shared library.
19647 postdeps=$lt_postdeps_GCJ
19649 # The library search path used internally by the compiler when linking
19650 # a shared library.
19651 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19653 # Method to check whether dependent libraries are shared objects.
19654 deplibs_check_method=$lt_deplibs_check_method
19656 # Command to use when deplibs_check_method == file_magic.
19657 file_magic_cmd=$lt_file_magic_cmd
19659 # Flag that allows shared libraries with undefined symbols to be built.
19660 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19662 # Flag that forces no undefined symbols.
19663 no_undefined_flag=$lt_no_undefined_flag_GCJ
19665 # Commands used to finish a libtool library installation in a directory.
19666 finish_cmds=$lt_finish_cmds
19668 # Same as above, but a single script fragment to be evaled but not shown.
19669 finish_eval=$lt_finish_eval
19671 # Take the output of nm and produce a listing of raw symbols and C names.
19672 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19674 # Transform the output of nm in a proper C declaration
19675 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19677 # Transform the output of nm in a C name address pair
19678 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19680 # This is the shared library runtime path variable.
19681 runpath_var=$runpath_var
19683 # This is the shared library path variable.
19684 shlibpath_var=$shlibpath_var
19686 # Is shlibpath searched before the hard-coded library search path?
19687 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19689 # How to hardcode a shared library path into an executable.
19690 hardcode_action=$hardcode_action_GCJ
19692 # Whether we should hardcode library paths into libraries.
19693 hardcode_into_libs=$hardcode_into_libs
19695 # Flag to hardcode \$libdir into a binary during linking.
19696 # This must work even if \$libdir does not exist.
19697 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19699 # If ld is used when linking, flag to hardcode \$libdir into
19700 # a binary during linking. This must work even if \$libdir does
19701 # not exist.
19702 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19704 # Whether we need a single -rpath flag with a separated argument.
19705 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19707 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19708 # resulting binary.
19709 hardcode_direct=$hardcode_direct_GCJ
19711 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19712 # resulting binary.
19713 hardcode_minus_L=$hardcode_minus_L_GCJ
19715 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19716 # the resulting binary.
19717 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19719 # Set to yes if building a shared library automatically hardcodes DIR into the library
19720 # and all subsequent libraries and executables linked against it.
19721 hardcode_automatic=$hardcode_automatic_GCJ
19723 # Variables whose values should be saved in libtool wrapper scripts and
19724 # restored at relink time.
19725 variables_saved_for_relink="$variables_saved_for_relink"
19727 # Whether libtool must link a program against all its dependency libraries.
19728 link_all_deplibs=$link_all_deplibs_GCJ
19730 # Compile-time system search path for libraries
19731 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19733 # Run-time system search path for libraries
19734 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19736 # Fix the shell variable \$srcfile for the compiler.
19737 fix_srcfile_path="$fix_srcfile_path_GCJ"
19739 # Set to yes if exported symbols are required.
19740 always_export_symbols=$always_export_symbols_GCJ
19742 # The commands to list exported symbols.
19743 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19745 # The commands to extract the exported symbol list from a shared archive.
19746 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19748 # Symbols that should not be listed in the preloaded symbols.
19749 exclude_expsyms=$lt_exclude_expsyms_GCJ
19751 # Symbols that must always be exported.
19752 include_expsyms=$lt_include_expsyms_GCJ
19754 # ### END LIBTOOL TAG CONFIG: $tagname
19756 __EOF__
19759 else
19760   # If there is no Makefile yet, we rely on a make rule to execute
19761   # `config.status --recheck' to rerun these tests and create the
19762   # libtool script then.
19763   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19764   if test -f "$ltmain_in"; then
19765     test -f Makefile && make "$ltmain"
19766   fi
19770 ac_ext=c
19771 ac_cpp='$CPP $CPPFLAGS'
19772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19776 CC="$lt_save_CC"
19778         else
19779           tagname=""
19780         fi
19781         ;;
19783       RC)
19784         
19786 # Source file extension for RC test sources.
19787 ac_ext=rc
19789 # Object file extension for compiled RC test sources.
19790 objext=o
19791 objext_RC=$objext
19793 # Code to be used in simple compile tests
19794 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19796 # Code to be used in simple link tests
19797 lt_simple_link_test_code="$lt_simple_compile_test_code"
19799 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19801 # If no C compiler was specified, use CC.
19802 LTCC=${LTCC-"$CC"}
19804 # Allow CC to be a program name with arguments.
19805 compiler=$CC
19808 # save warnings/boilerplate of simple test code
19809 ac_outfile=conftest.$ac_objext
19810 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19811 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19812 _lt_compiler_boilerplate=`cat conftest.err`
19813 $rm conftest*
19815 ac_outfile=conftest.$ac_objext
19816 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19817 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19818 _lt_linker_boilerplate=`cat conftest.err`
19819 $rm conftest*
19822 # Allow CC to be a program name with arguments.
19823 lt_save_CC="$CC"
19824 CC=${RC-"windres"}
19825 compiler=$CC
19826 compiler_RC=$CC
19827 for cc_temp in $compiler""; do
19828   case $cc_temp in
19829     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19830     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19831     \-*) ;;
19832     *) break;;
19833   esac
19834 done
19835 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19837 lt_cv_prog_compiler_c_o_RC=yes
19839 # The else clause should only fire when bootstrapping the
19840 # libtool distribution, otherwise you forgot to ship ltmain.sh
19841 # with your package, and you will get complaints that there are
19842 # no rules to generate ltmain.sh.
19843 if test -f "$ltmain"; then
19844   # See if we are running on zsh, and set the options which allow our commands through
19845   # without removal of \ escapes.
19846   if test -n "${ZSH_VERSION+set}" ; then
19847     setopt NO_GLOB_SUBST
19848   fi
19849   # Now quote all the things that may contain metacharacters while being
19850   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19851   # variables and quote the copies for generation of the libtool script.
19852   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19853     SED SHELL STRIP \
19854     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19855     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19856     deplibs_check_method reload_flag reload_cmds need_locks \
19857     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19858     lt_cv_sys_global_symbol_to_c_name_address \
19859     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19860     old_postinstall_cmds old_postuninstall_cmds \
19861     compiler_RC \
19862     CC_RC \
19863     LD_RC \
19864     lt_prog_compiler_wl_RC \
19865     lt_prog_compiler_pic_RC \
19866     lt_prog_compiler_static_RC \
19867     lt_prog_compiler_no_builtin_flag_RC \
19868     export_dynamic_flag_spec_RC \
19869     thread_safe_flag_spec_RC \
19870     whole_archive_flag_spec_RC \
19871     enable_shared_with_static_runtimes_RC \
19872     old_archive_cmds_RC \
19873     old_archive_from_new_cmds_RC \
19874     predep_objects_RC \
19875     postdep_objects_RC \
19876     predeps_RC \
19877     postdeps_RC \
19878     compiler_lib_search_path_RC \
19879     archive_cmds_RC \
19880     archive_expsym_cmds_RC \
19881     postinstall_cmds_RC \
19882     postuninstall_cmds_RC \
19883     old_archive_from_expsyms_cmds_RC \
19884     allow_undefined_flag_RC \
19885     no_undefined_flag_RC \
19886     export_symbols_cmds_RC \
19887     hardcode_libdir_flag_spec_RC \
19888     hardcode_libdir_flag_spec_ld_RC \
19889     hardcode_libdir_separator_RC \
19890     hardcode_automatic_RC \
19891     module_cmds_RC \
19892     module_expsym_cmds_RC \
19893     lt_cv_prog_compiler_c_o_RC \
19894     exclude_expsyms_RC \
19895     include_expsyms_RC; do
19897     case $var in
19898     old_archive_cmds_RC | \
19899     old_archive_from_new_cmds_RC | \
19900     archive_cmds_RC | \
19901     archive_expsym_cmds_RC | \
19902     module_cmds_RC | \
19903     module_expsym_cmds_RC | \
19904     old_archive_from_expsyms_cmds_RC | \
19905     export_symbols_cmds_RC | \
19906     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19907     postinstall_cmds | postuninstall_cmds | \
19908     old_postinstall_cmds | old_postuninstall_cmds | \
19909     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19910       # Double-quote double-evaled strings.
19911       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19912       ;;
19913     *)
19914       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19915       ;;
19916     esac
19917   done
19919   case $lt_echo in
19920   *'\$0 --fallback-echo"')
19921     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19922     ;;
19923   esac
19925 cfgfile="$ofile"
19927   cat <<__EOF__ >> "$cfgfile"
19928 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19930 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19932 # Shell to use when invoking shell scripts.
19933 SHELL=$lt_SHELL
19935 # Whether or not to build shared libraries.
19936 build_libtool_libs=$enable_shared
19938 # Whether or not to build static libraries.
19939 build_old_libs=$enable_static
19941 # Whether or not to add -lc for building shared libraries.
19942 build_libtool_need_lc=$archive_cmds_need_lc_RC
19944 # Whether or not to disallow shared libs when runtime libs are static
19945 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19947 # Whether or not to optimize for fast installation.
19948 fast_install=$enable_fast_install
19950 # The host system.
19951 host_alias=$host_alias
19952 host=$host
19953 host_os=$host_os
19955 # The build system.
19956 build_alias=$build_alias
19957 build=$build
19958 build_os=$build_os
19960 # An echo program that does not interpret backslashes.
19961 echo=$lt_echo
19963 # The archiver.
19964 AR=$lt_AR
19965 AR_FLAGS=$lt_AR_FLAGS
19967 # A C compiler.
19968 LTCC=$lt_LTCC
19970 # A language-specific compiler.
19971 CC=$lt_compiler_RC
19973 # Is the compiler the GNU C compiler?
19974 with_gcc=$GCC_RC
19976 # An ERE matcher.
19977 EGREP=$lt_EGREP
19979 # The linker used to build libraries.
19980 LD=$lt_LD_RC
19982 # Whether we need hard or soft links.
19983 LN_S=$lt_LN_S
19985 # A BSD-compatible nm program.
19986 NM=$lt_NM
19988 # A symbol stripping program
19989 STRIP=$lt_STRIP
19991 # Used to examine libraries when file_magic_cmd begins "file"
19992 MAGIC_CMD=$MAGIC_CMD
19994 # Used on cygwin: DLL creation program.
19995 DLLTOOL="$DLLTOOL"
19997 # Used on cygwin: object dumper.
19998 OBJDUMP="$OBJDUMP"
20000 # Used on cygwin: assembler.
20001 AS="$AS"
20003 # The name of the directory that contains temporary libtool files.
20004 objdir=$objdir
20006 # How to create reloadable object files.
20007 reload_flag=$lt_reload_flag
20008 reload_cmds=$lt_reload_cmds
20010 # How to pass a linker flag through the compiler.
20011 wl=$lt_lt_prog_compiler_wl_RC
20013 # Object file suffix (normally "o").
20014 objext="$ac_objext"
20016 # Old archive suffix (normally "a").
20017 libext="$libext"
20019 # Shared library suffix (normally ".so").
20020 shrext_cmds='$shrext_cmds'
20022 # Executable file suffix (normally "").
20023 exeext="$exeext"
20025 # Additional compiler flags for building library objects.
20026 pic_flag=$lt_lt_prog_compiler_pic_RC
20027 pic_mode=$pic_mode
20029 # What is the maximum length of a command?
20030 max_cmd_len=$lt_cv_sys_max_cmd_len
20032 # Does compiler simultaneously support -c and -o options?
20033 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20035 # Must we lock files when doing compilation?
20036 need_locks=$lt_need_locks
20038 # Do we need the lib prefix for modules?
20039 need_lib_prefix=$need_lib_prefix
20041 # Do we need a version for libraries?
20042 need_version=$need_version
20044 # Whether dlopen is supported.
20045 dlopen_support=$enable_dlopen
20047 # Whether dlopen of programs is supported.
20048 dlopen_self=$enable_dlopen_self
20050 # Whether dlopen of statically linked programs is supported.
20051 dlopen_self_static=$enable_dlopen_self_static
20053 # Compiler flag to prevent dynamic linking.
20054 link_static_flag=$lt_lt_prog_compiler_static_RC
20056 # Compiler flag to turn off builtin functions.
20057 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20059 # Compiler flag to allow reflexive dlopens.
20060 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20062 # Compiler flag to generate shared objects directly from archives.
20063 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20065 # Compiler flag to generate thread-safe objects.
20066 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20068 # Library versioning type.
20069 version_type=$version_type
20071 # Format of library name prefix.
20072 libname_spec=$lt_libname_spec
20074 # List of archive names.  First name is the real one, the rest are links.
20075 # The last name is the one that the linker finds with -lNAME.
20076 library_names_spec=$lt_library_names_spec
20078 # The coded name of the library, if different from the real name.
20079 soname_spec=$lt_soname_spec
20081 # Commands used to build and install an old-style archive.
20082 RANLIB=$lt_RANLIB
20083 old_archive_cmds=$lt_old_archive_cmds_RC
20084 old_postinstall_cmds=$lt_old_postinstall_cmds
20085 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20087 # Create an old-style archive from a shared archive.
20088 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20090 # Create a temporary old-style archive to link instead of a shared archive.
20091 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20093 # Commands used to build and install a shared archive.
20094 archive_cmds=$lt_archive_cmds_RC
20095 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20096 postinstall_cmds=$lt_postinstall_cmds
20097 postuninstall_cmds=$lt_postuninstall_cmds
20099 # Commands used to build a loadable module (assumed same as above if empty)
20100 module_cmds=$lt_module_cmds_RC
20101 module_expsym_cmds=$lt_module_expsym_cmds_RC
20103 # Commands to strip libraries.
20104 old_striplib=$lt_old_striplib
20105 striplib=$lt_striplib
20107 # Dependencies to place before the objects being linked to create a
20108 # shared library.
20109 predep_objects=$lt_predep_objects_RC
20111 # Dependencies to place after the objects being linked to create a
20112 # shared library.
20113 postdep_objects=$lt_postdep_objects_RC
20115 # Dependencies to place before the objects being linked to create a
20116 # shared library.
20117 predeps=$lt_predeps_RC
20119 # Dependencies to place after the objects being linked to create a
20120 # shared library.
20121 postdeps=$lt_postdeps_RC
20123 # The library search path used internally by the compiler when linking
20124 # a shared library.
20125 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20127 # Method to check whether dependent libraries are shared objects.
20128 deplibs_check_method=$lt_deplibs_check_method
20130 # Command to use when deplibs_check_method == file_magic.
20131 file_magic_cmd=$lt_file_magic_cmd
20133 # Flag that allows shared libraries with undefined symbols to be built.
20134 allow_undefined_flag=$lt_allow_undefined_flag_RC
20136 # Flag that forces no undefined symbols.
20137 no_undefined_flag=$lt_no_undefined_flag_RC
20139 # Commands used to finish a libtool library installation in a directory.
20140 finish_cmds=$lt_finish_cmds
20142 # Same as above, but a single script fragment to be evaled but not shown.
20143 finish_eval=$lt_finish_eval
20145 # Take the output of nm and produce a listing of raw symbols and C names.
20146 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20148 # Transform the output of nm in a proper C declaration
20149 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20151 # Transform the output of nm in a C name address pair
20152 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20154 # This is the shared library runtime path variable.
20155 runpath_var=$runpath_var
20157 # This is the shared library path variable.
20158 shlibpath_var=$shlibpath_var
20160 # Is shlibpath searched before the hard-coded library search path?
20161 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20163 # How to hardcode a shared library path into an executable.
20164 hardcode_action=$hardcode_action_RC
20166 # Whether we should hardcode library paths into libraries.
20167 hardcode_into_libs=$hardcode_into_libs
20169 # Flag to hardcode \$libdir into a binary during linking.
20170 # This must work even if \$libdir does not exist.
20171 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20173 # If ld is used when linking, flag to hardcode \$libdir into
20174 # a binary during linking. This must work even if \$libdir does
20175 # not exist.
20176 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20178 # Whether we need a single -rpath flag with a separated argument.
20179 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20181 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20182 # resulting binary.
20183 hardcode_direct=$hardcode_direct_RC
20185 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20186 # resulting binary.
20187 hardcode_minus_L=$hardcode_minus_L_RC
20189 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20190 # the resulting binary.
20191 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20193 # Set to yes if building a shared library automatically hardcodes DIR into the library
20194 # and all subsequent libraries and executables linked against it.
20195 hardcode_automatic=$hardcode_automatic_RC
20197 # Variables whose values should be saved in libtool wrapper scripts and
20198 # restored at relink time.
20199 variables_saved_for_relink="$variables_saved_for_relink"
20201 # Whether libtool must link a program against all its dependency libraries.
20202 link_all_deplibs=$link_all_deplibs_RC
20204 # Compile-time system search path for libraries
20205 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20207 # Run-time system search path for libraries
20208 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20210 # Fix the shell variable \$srcfile for the compiler.
20211 fix_srcfile_path="$fix_srcfile_path_RC"
20213 # Set to yes if exported symbols are required.
20214 always_export_symbols=$always_export_symbols_RC
20216 # The commands to list exported symbols.
20217 export_symbols_cmds=$lt_export_symbols_cmds_RC
20219 # The commands to extract the exported symbol list from a shared archive.
20220 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20222 # Symbols that should not be listed in the preloaded symbols.
20223 exclude_expsyms=$lt_exclude_expsyms_RC
20225 # Symbols that must always be exported.
20226 include_expsyms=$lt_include_expsyms_RC
20228 # ### END LIBTOOL TAG CONFIG: $tagname
20230 __EOF__
20233 else
20234   # If there is no Makefile yet, we rely on a make rule to execute
20235   # `config.status --recheck' to rerun these tests and create the
20236   # libtool script then.
20237   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20238   if test -f "$ltmain_in"; then
20239     test -f Makefile && make "$ltmain"
20240   fi
20244 ac_ext=c
20245 ac_cpp='$CPP $CPPFLAGS'
20246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20250 CC="$lt_save_CC"
20252         ;;
20254       *)
20255         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20256 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20257    { (exit 1); exit 1; }; }
20258         ;;
20259       esac
20261       # Append the new tag name to the list of available tags.
20262       if test -n "$tagname" ; then
20263       available_tags="$available_tags $tagname"
20264     fi
20265     fi
20266   done
20267   IFS="$lt_save_ifs"
20269   # Now substitute the updated list of available tags.
20270   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20271     mv "${ofile}T" "$ofile"
20272     chmod +x "$ofile"
20273   else
20274     rm -f "${ofile}T"
20275     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20276 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20277    { (exit 1); exit 1; }; }
20278   fi
20283 # This can be used to rebuild libtool when needed
20284 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20286 # Always use our own libtool.
20287 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20289 # Prevent multiple expansion
20301   
20303   
20306   
20307        
20308        
20310 LIBTOOL="$LIBTOOL --silent"
20312 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20313 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20314 if test "${ac_cv_header_stdc+set}" = set; then
20315   echo $ECHO_N "(cached) $ECHO_C" >&6
20316 else
20317   cat >conftest.$ac_ext <<_ACEOF
20318 /* confdefs.h.  */
20319 _ACEOF
20320 cat confdefs.h >>conftest.$ac_ext
20321 cat >>conftest.$ac_ext <<_ACEOF
20322 /* end confdefs.h.  */
20323 #include <stdlib.h>
20324 #include <stdarg.h>
20325 #include <string.h>
20326 #include <float.h>
20329 main ()
20332   ;
20333   return 0;
20335 _ACEOF
20336 rm -f conftest.$ac_objext
20337 if { (ac_try="$ac_compile"
20338 case "(($ac_try" in
20339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20340   *) ac_try_echo=$ac_try;;
20341 esac
20342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20343   (eval "$ac_compile") 2>conftest.er1
20344   ac_status=$?
20345   grep -v '^ *+' conftest.er1 >conftest.err
20346   rm -f conftest.er1
20347   cat conftest.err >&5
20348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349   (exit $ac_status); } && {
20350          test -z "$ac_c_werror_flag" ||
20351          test ! -s conftest.err
20352        } && test -s conftest.$ac_objext; then
20353   ac_cv_header_stdc=yes
20354 else
20355   echo "$as_me: failed program was:" >&5
20356 sed 's/^/| /' conftest.$ac_ext >&5
20358         ac_cv_header_stdc=no
20361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20363 if test $ac_cv_header_stdc = yes; then
20364   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20365   cat >conftest.$ac_ext <<_ACEOF
20366 /* confdefs.h.  */
20367 _ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h.  */
20371 #include <string.h>
20373 _ACEOF
20374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20375   $EGREP "memchr" >/dev/null 2>&1; then
20376   :
20377 else
20378   ac_cv_header_stdc=no
20380 rm -f conftest*
20384 if test $ac_cv_header_stdc = yes; then
20385   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20386   cat >conftest.$ac_ext <<_ACEOF
20387 /* confdefs.h.  */
20388 _ACEOF
20389 cat confdefs.h >>conftest.$ac_ext
20390 cat >>conftest.$ac_ext <<_ACEOF
20391 /* end confdefs.h.  */
20392 #include <stdlib.h>
20394 _ACEOF
20395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20396   $EGREP "free" >/dev/null 2>&1; then
20397   :
20398 else
20399   ac_cv_header_stdc=no
20401 rm -f conftest*
20405 if test $ac_cv_header_stdc = yes; then
20406   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20407   if test "$cross_compiling" = yes; then
20408   :
20409 else
20410   cat >conftest.$ac_ext <<_ACEOF
20411 /* confdefs.h.  */
20412 _ACEOF
20413 cat confdefs.h >>conftest.$ac_ext
20414 cat >>conftest.$ac_ext <<_ACEOF
20415 /* end confdefs.h.  */
20416 #include <ctype.h>
20417 #include <stdlib.h>
20418 #if ((' ' & 0x0FF) == 0x020)
20419 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20420 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20421 #else
20422 # define ISLOWER(c) \
20423                    (('a' <= (c) && (c) <= 'i') \
20424                      || ('j' <= (c) && (c) <= 'r') \
20425                      || ('s' <= (c) && (c) <= 'z'))
20426 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20427 #endif
20429 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20431 main ()
20433   int i;
20434   for (i = 0; i < 256; i++)
20435     if (XOR (islower (i), ISLOWER (i))
20436         || toupper (i) != TOUPPER (i))
20437       return 2;
20438   return 0;
20440 _ACEOF
20441 rm -f conftest$ac_exeext
20442 if { (ac_try="$ac_link"
20443 case "(($ac_try" in
20444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20445   *) ac_try_echo=$ac_try;;
20446 esac
20447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20448   (eval "$ac_link") 2>&5
20449   ac_status=$?
20450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20452   { (case "(($ac_try" in
20453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20454   *) ac_try_echo=$ac_try;;
20455 esac
20456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20457   (eval "$ac_try") 2>&5
20458   ac_status=$?
20459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460   (exit $ac_status); }; }; then
20461   :
20462 else
20463   echo "$as_me: program exited with status $ac_status" >&5
20464 echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20467 ( exit $ac_status )
20468 ac_cv_header_stdc=no
20470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20476 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20477 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20478 if test $ac_cv_header_stdc = yes; then
20479   
20480 cat >>confdefs.h <<\_ACEOF
20481 @%:@define STDC_HEADERS 1
20482 _ACEOF
20487 GAIM_MIN=pidgin_version_min
20488 GAIM_MAX=2.0.0
20492 # tell pkgconfig to look in the same prefix we're installing this to,
20493 # as that's likely where gaim will be found if it's not in the default
20494 # pkgconfig path
20495 PREFIX=$ac_default_prefix
20496 if test "$prefix" != "NONE"; then
20497    PREFIX=$prefix
20500 PKG_CONFIG_PATH="$PKG_CONFIG_PATH":"$PREFIX/lib/pkgconfig"
20501 export PKG_CONFIG_PATH
20503 # debug mode
20504 # Check whether --enable-debug was given.
20505 if test "${enable_debug+set}" = set; then
20506   enableval=$enable_debug; 
20507 else
20508   enable_debug=no
20512 if test "$enable_debug" = yes; then
20513    
20514 cat >>confdefs.h <<\_ACEOF
20515 @%:@define DEBUG 1
20516 _ACEOF
20520 # Check for Pidgin
20523 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20524         if test -n "$ac_tool_prefix"; then
20525   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20526 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20529 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20530   echo $ECHO_N "(cached) $ECHO_C" >&6
20531 else
20532   case $PKG_CONFIG in
20533   [\\/]* | ?:[\\/]*)
20534   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20535   ;;
20536   *)
20537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20538 for as_dir in $PATH
20540   IFS=$as_save_IFS
20541   test -z "$as_dir" && as_dir=.
20542   for ac_exec_ext in '' $ac_executable_extensions; do
20543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20544     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20546     break 2
20547   fi
20548 done
20549 done
20550 IFS=$as_save_IFS
20552   ;;
20553 esac
20555 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20556 if test -n "$PKG_CONFIG"; then
20557   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20558 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20559 else
20560   { echo "$as_me:$LINENO: result: no" >&5
20561 echo "${ECHO_T}no" >&6; }
20566 if test -z "$ac_cv_path_PKG_CONFIG"; then
20567   ac_pt_PKG_CONFIG=$PKG_CONFIG
20568   # Extract the first word of "pkg-config", so it can be a program name with args.
20569 set dummy pkg-config; ac_word=$2
20570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20572 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20573   echo $ECHO_N "(cached) $ECHO_C" >&6
20574 else
20575   case $ac_pt_PKG_CONFIG in
20576   [\\/]* | ?:[\\/]*)
20577   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20578   ;;
20579   *)
20580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20581 for as_dir in $PATH
20583   IFS=$as_save_IFS
20584   test -z "$as_dir" && as_dir=.
20585   for ac_exec_ext in '' $ac_executable_extensions; do
20586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20587     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20589     break 2
20590   fi
20591 done
20592 done
20593 IFS=$as_save_IFS
20595   ;;
20596 esac
20598 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20599 if test -n "$ac_pt_PKG_CONFIG"; then
20600   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20601 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20602 else
20603   { echo "$as_me:$LINENO: result: no" >&5
20604 echo "${ECHO_T}no" >&6; }
20607   if test "x$ac_pt_PKG_CONFIG" = x; then
20608     PKG_CONFIG=""
20609   else
20610     case $cross_compiling:$ac_tool_warned in
20611 yes:)
20612 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20613 whose name does not start with the host triplet.  If you think this
20614 configuration is useful to you, please write to autoconf@gnu.org." >&5
20615 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20616 whose name does not start with the host triplet.  If you think this
20617 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20618 ac_tool_warned=yes ;;
20619 esac
20620     PKG_CONFIG=$ac_pt_PKG_CONFIG
20621   fi
20622 else
20623   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20627 if test -n "$PKG_CONFIG"; then
20628         _pkg_min_version=0.9.0
20629         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20630 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20631         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20632                 { echo "$as_me:$LINENO: result: yes" >&5
20633 echo "${ECHO_T}yes" >&6; }
20634         else
20635                 { echo "$as_me:$LINENO: result: no" >&5
20636 echo "${ECHO_T}no" >&6; }
20637                 PKG_CONFIG=""
20638         fi
20639                 
20642 pkg_failed=no
20643 { echo "$as_me:$LINENO: checking for libpurple" >&5
20644 echo $ECHO_N "checking for libpurple... $ECHO_C" >&6; }
20646 if test -n "$PKG_CONFIG"; then
20647     if test -n "$libpurple_CFLAGS"; then
20648         pkg_cv_libpurple_CFLAGS="$libpurple_CFLAGS"
20649     else
20650         if test -n "$PKG_CONFIG" && \
20651     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pidgin >= 2.0.0\"") >&5
20652   ($PKG_CONFIG --exists --print-errors "pidgin >= 2.0.0") 2>&5
20653   ac_status=$?
20654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655   (exit $ac_status); }; then
20656   pkg_cv_libpurple_CFLAGS=`$PKG_CONFIG --cflags "pidgin >= 2.0.0" 2>/dev/null`
20657 else
20658   pkg_failed=yes
20660     fi
20661 else
20662         pkg_failed=untried
20664 if test -n "$PKG_CONFIG"; then
20665     if test -n "$libpurple_LIBS"; then
20666         pkg_cv_libpurple_LIBS="$libpurple_LIBS"
20667     else
20668         if test -n "$PKG_CONFIG" && \
20669     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pidgin >= 2.0.0\"") >&5
20670   ($PKG_CONFIG --exists --print-errors "pidgin >= 2.0.0") 2>&5
20671   ac_status=$?
20672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673   (exit $ac_status); }; then
20674   pkg_cv_libpurple_LIBS=`$PKG_CONFIG --libs "pidgin >= 2.0.0" 2>/dev/null`
20675 else
20676   pkg_failed=yes
20678     fi
20679 else
20680         pkg_failed=untried
20685 if test $pkg_failed = yes; then
20686         
20687 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20688         _pkg_short_errors_supported=yes
20689 else
20690         _pkg_short_errors_supported=no
20692         if test $_pkg_short_errors_supported = yes; then
20693                 libpurple_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pidgin >= 2.0.0"`
20694         else 
20695                 libpurple_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pidgin >= 2.0.0"`
20696         fi
20697         # Put the nasty error message in config.log where it belongs
20698         echo "$libpurple_PKG_ERRORS" >&5
20700         { { echo "$as_me:$LINENO: error: Package requirements (pidgin >= 2.0.0) were not met:
20702 $libpurple_PKG_ERRORS
20704 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20705 installed software in a non-standard prefix.
20707 Alternatively, you may set the environment variables libpurple_CFLAGS
20708 and libpurple_LIBS to avoid the need to call pkg-config.
20709 See the pkg-config man page for more details.
20710 " >&5
20711 echo "$as_me: error: Package requirements (pidgin >= 2.0.0) were not met:
20713 $libpurple_PKG_ERRORS
20715 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20716 installed software in a non-standard prefix.
20718 Alternatively, you may set the environment variables libpurple_CFLAGS
20719 and libpurple_LIBS to avoid the need to call pkg-config.
20720 See the pkg-config man page for more details.
20721 " >&2;}
20722    { (exit 1); exit 1; }; }
20723 elif test $pkg_failed = untried; then
20724         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20725 is in your PATH or set the PKG_CONFIG environment variable to the full
20726 path to pkg-config.
20728 Alternatively, you may set the environment variables libpurple_CFLAGS
20729 and libpurple_LIBS to avoid the need to call pkg-config.
20730 See the pkg-config man page for more details.
20732 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20733 See \`config.log' for more details." >&5
20734 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20735 is in your PATH or set the PKG_CONFIG environment variable to the full
20736 path to pkg-config.
20738 Alternatively, you may set the environment variables libpurple_CFLAGS
20739 and libpurple_LIBS to avoid the need to call pkg-config.
20740 See the pkg-config man page for more details.
20742 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20743 See \`config.log' for more details." >&2;}
20744    { (exit 1); exit 1; }; }
20745 else
20746         libpurple_CFLAGS=$pkg_cv_libpurple_CFLAGS
20747         libpurple_LIBS=$pkg_cv_libpurple_LIBS
20748         { echo "$as_me:$LINENO: result: yes" >&5
20749 echo "${ECHO_T}yes" >&6; }
20750         
20751         
20752 cat >>confdefs.h <<\_ACEOF
20753 @%:@define HAVE_PIDGIN 1
20754 _ACEOF
20759 PIDGIN_CFLAGS=`$PKG_CONFIG --cflags purple`
20760 PIDGIN_LIBS=`$PKG_CONFIG --libs purple`
20765 { echo "$as_me:$LINENO: checking for inet_aton" >&5
20766 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
20767 if test "${ac_cv_func_inet_aton+set}" = set; then
20768   echo $ECHO_N "(cached) $ECHO_C" >&6
20769 else
20770   cat >conftest.$ac_ext <<_ACEOF
20771 /* confdefs.h.  */
20772 _ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h.  */
20776 /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
20777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20778 #define inet_aton innocuous_inet_aton
20780 /* System header to define __stub macros and hopefully few prototypes,
20781     which can conflict with char inet_aton (); below.
20782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20783     <limits.h> exists even on freestanding compilers.  */
20785 #ifdef __STDC__
20786 # include <limits.h>
20787 #else
20788 # include <assert.h>
20789 #endif
20791 #undef inet_aton
20793 /* Override any GCC internal prototype to avoid an error.
20794    Use char because int might match the return type of a GCC
20795    builtin and then its argument prototype would still apply.  */
20796 #ifdef __cplusplus
20797 extern "C"
20798 #endif
20799 char inet_aton ();
20800 /* The GNU C library defines this for functions which it implements
20801     to always fail with ENOSYS.  Some functions are actually named
20802     something starting with __ and the normal name is an alias.  */
20803 #if defined __stub_inet_aton || defined __stub___inet_aton
20804 choke me
20805 #endif
20808 main ()
20810 return inet_aton ();
20811   ;
20812   return 0;
20814 _ACEOF
20815 rm -f conftest.$ac_objext conftest$ac_exeext
20816 if { (ac_try="$ac_link"
20817 case "(($ac_try" in
20818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20819   *) ac_try_echo=$ac_try;;
20820 esac
20821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20822   (eval "$ac_link") 2>conftest.er1
20823   ac_status=$?
20824   grep -v '^ *+' conftest.er1 >conftest.err
20825   rm -f conftest.er1
20826   cat conftest.err >&5
20827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828   (exit $ac_status); } && {
20829          test -z "$ac_c_werror_flag" ||
20830          test ! -s conftest.err
20831        } && test -s conftest$ac_exeext &&
20832        $as_test_x conftest$ac_exeext; then
20833   ac_cv_func_inet_aton=yes
20834 else
20835   echo "$as_me: failed program was:" >&5
20836 sed 's/^/| /' conftest.$ac_ext >&5
20838         ac_cv_func_inet_aton=no
20841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20842       conftest$ac_exeext conftest.$ac_ext
20844 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
20845 echo "${ECHO_T}$ac_cv_func_inet_aton" >&6; }
20846 if test $ac_cv_func_inet_aton = yes; then
20847   :
20848 else
20849   
20850 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20851 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20852 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20853   echo $ECHO_N "(cached) $ECHO_C" >&6
20854 else
20855   ac_check_lib_save_LIBS=$LIBS
20856 LIBS="-lresolv  $LIBS"
20857 cat >conftest.$ac_ext <<_ACEOF
20858 /* confdefs.h.  */
20859 _ACEOF
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h.  */
20864 /* Override any GCC internal prototype to avoid an error.
20865    Use char because int might match the return type of a GCC
20866    builtin and then its argument prototype would still apply.  */
20867 #ifdef __cplusplus
20868 extern "C"
20869 #endif
20870 char inet_aton ();
20872 main ()
20874 return inet_aton ();
20875   ;
20876   return 0;
20878 _ACEOF
20879 rm -f conftest.$ac_objext conftest$ac_exeext
20880 if { (ac_try="$ac_link"
20881 case "(($ac_try" in
20882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20883   *) ac_try_echo=$ac_try;;
20884 esac
20885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20886   (eval "$ac_link") 2>conftest.er1
20887   ac_status=$?
20888   grep -v '^ *+' conftest.er1 >conftest.err
20889   rm -f conftest.er1
20890   cat conftest.err >&5
20891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892   (exit $ac_status); } && {
20893          test -z "$ac_c_werror_flag" ||
20894          test ! -s conftest.err
20895        } && test -s conftest$ac_exeext &&
20896        $as_test_x conftest$ac_exeext; then
20897   ac_cv_lib_resolv_inet_aton=yes
20898 else
20899   echo "$as_me: failed program was:" >&5
20900 sed 's/^/| /' conftest.$ac_ext >&5
20902         ac_cv_lib_resolv_inet_aton=no
20905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20906       conftest$ac_exeext conftest.$ac_ext
20907 LIBS=$ac_check_lib_save_LIBS
20909 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20910 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20911 if test $ac_cv_lib_resolv_inet_aton = yes; then
20912   cat >>confdefs.h <<_ACEOF
20913 @%:@define HAVE_LIBRESOLV 1
20914 _ACEOF
20916   LIBS="-lresolv $LIBS"
20918 else
20919   { { echo "$as_me:$LINENO: error: inet_aton not found" >&5
20920 echo "$as_me: error: inet_aton not found" >&2;}
20921    { (exit 1); exit 1; }; }
20927 SIPE_LIBA=`$PKG_CONFIG sipe --variable=libarchive`
20930 # Check whether --enable-static-sipe was given.
20931 if test "${enable_static_sipe+set}" = set; then
20932   enableval=$enable_static_sipe; sipe_static="yes"
20933 else
20934   sipe_static="no"
20940 if test $sipe_static = yes; then
20941   SIPE_STATIC_TRUE=
20942   SIPE_STATIC_FALSE='#'
20943 else
20944   SIPE_STATIC_TRUE='#'
20945   SIPE_STATIC_FALSE=
20949 # substitutions and generated files
20950 ac_config_files="$ac_config_files src/config.h Makefile pixmaps/Makefile pixmaps/16/Makefile pixmaps/22/Makefile pixmaps/48/Makefile src/Makefile"
20953 cat >confcache <<\_ACEOF
20954 # This file is a shell script that caches the results of configure
20955 # tests run on this system so they can be shared between configure
20956 # scripts and configure runs, see configure's option --config-cache.
20957 # It is not useful on other systems.  If it contains results you don't
20958 # want to keep, you may remove or edit it.
20960 # config.status only pays attention to the cache file if you give it
20961 # the --recheck option to rerun configure.
20963 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20964 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20965 # following values.
20967 _ACEOF
20969 # The following way of writing the cache mishandles newlines in values,
20970 # but we know of no workaround that is simple, portable, and efficient.
20971 # So, we kill variables containing newlines.
20972 # Ultrix sh set writes to stderr and can't be redirected directly,
20973 # and sets the high bit in the cache file unless we assign to the vars.
20975   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20976     eval ac_val=\$$ac_var
20977     case $ac_val in #(
20978     *${as_nl}*)
20979       case $ac_var in #(
20980       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20981 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20982       esac
20983       case $ac_var in #(
20984       _ | IFS | as_nl) ;; #(
20985       *) $as_unset $ac_var ;;
20986       esac ;;
20987     esac
20988   done
20990   (set) 2>&1 |
20991     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20992     *${as_nl}ac_space=\ *)
20993       # `set' does not quote correctly, so add quotes (double-quote
20994       # substitution turns \\\\ into \\, and sed turns \\ into \).
20995       sed -n \
20996         "s/'/'\\\\''/g;
20997           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20998       ;; #(
20999     *)
21000       # `set' quotes correctly as required by POSIX, so do not add quotes.
21001       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21002       ;;
21003     esac |
21004     sort
21005 ) |
21006   sed '
21007      /^ac_cv_env_/b end
21008      t clear
21009      :clear
21010      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21011      t end
21012      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21013      :end' >>confcache
21014 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21015   if test -w "$cache_file"; then
21016     test "x$cache_file" != "x/dev/null" &&
21017       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21018 echo "$as_me: updating cache $cache_file" >&6;}
21019     cat confcache >$cache_file
21020   else
21021     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21022 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21023   fi
21025 rm -f confcache
21027 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21028 # Let make expand exec_prefix.
21029 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21031 # Transform confdefs.h into DEFS.
21032 # Protect against shell expansion while executing Makefile rules.
21033 # Protect against Makefile macro expansion.
21035 # If the first sed substitution is executed (which looks for macros that
21036 # take arguments), then branch to the quote section.  Otherwise,
21037 # look for a macro that doesn't take arguments.
21038 ac_script='
21039 t clear
21040 :clear
21041 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
21042 t quote
21043 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
21044 t quote
21045 b any
21046 :quote
21047 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21048 s/\[/\\&/g
21049 s/\]/\\&/g
21050 s/\$/$$/g
21052 :any
21054         g
21055         s/^\n//
21056         s/\n/ /g
21057         p
21060 DEFS=`sed -n "$ac_script" confdefs.h`
21063 ac_libobjs=
21064 ac_ltlibobjs=
21065 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
21066   # 1. Remove the extension, and $U if already installed.
21067   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21068   ac_i=`echo "$ac_i" | sed "$ac_script"`
21069   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21070   #    will be set to the directory where LIBOBJS objects are built.
21071   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21072   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21073 done
21074 LIB@&t@OBJS=$ac_libobjs
21076 LTLIBOBJS=$ac_ltlibobjs
21079 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21080   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21081 Usually this means the macro was only invoked conditionally." >&5
21082 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21083 Usually this means the macro was only invoked conditionally." >&2;}
21084    { (exit 1); exit 1; }; }
21086 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21087   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21088 Usually this means the macro was only invoked conditionally." >&5
21089 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21090 Usually this means the macro was only invoked conditionally." >&2;}
21091    { (exit 1); exit 1; }; }
21093 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21094   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21095 Usually this means the macro was only invoked conditionally." >&5
21096 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21097 Usually this means the macro was only invoked conditionally." >&2;}
21098    { (exit 1); exit 1; }; }
21100 if test -z "${SIPE_STATIC_TRUE}" && test -z "${SIPE_STATIC_FALSE}"; then
21101   { { echo "$as_me:$LINENO: error: conditional \"SIPE_STATIC\" was never defined.
21102 Usually this means the macro was only invoked conditionally." >&5
21103 echo "$as_me: error: conditional \"SIPE_STATIC\" was never defined.
21104 Usually this means the macro was only invoked conditionally." >&2;}
21105    { (exit 1); exit 1; }; }
21108 : ${CONFIG_STATUS=./config.status}
21109 ac_clean_files_save=$ac_clean_files
21110 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21111 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21112 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21113 cat >$CONFIG_STATUS <<_ACEOF
21114 #! $SHELL
21115 # Generated by $as_me.
21116 # Run this file to recreate the current configuration.
21117 # Compiler output produced by configure, useful for debugging
21118 # configure, is in config.log if it exists.
21120 debug=false
21121 ac_cs_recheck=false
21122 ac_cs_silent=false
21123 SHELL=\${CONFIG_SHELL-$SHELL}
21124 _ACEOF
21126 cat >>$CONFIG_STATUS <<\_ACEOF
21127 ## --------------------- ##
21128 ## M4sh Initialization.  ##
21129 ## --------------------- ##
21131 # Be more Bourne compatible
21132 DUALCASE=1; export DUALCASE # for MKS sh
21133 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21134   emulate sh
21135   NULLCMD=:
21136   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21137   # is contrary to our usage.  Disable this feature.
21138   alias -g '${1+"$@"}'='"$@"'
21139   setopt NO_GLOB_SUBST
21140 else
21141   case `(set -o) 2>/dev/null` in
21142   *posix*) set -o posix ;;
21143 esac
21150 # PATH needs CR
21151 # Avoid depending upon Character Ranges.
21152 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21153 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21154 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21155 as_cr_digits='0123456789'
21156 as_cr_alnum=$as_cr_Letters$as_cr_digits
21158 # The user is always right.
21159 if test "${PATH_SEPARATOR+set}" != set; then
21160   echo "#! /bin/sh" >conf$$.sh
21161   echo  "exit 0"   >>conf$$.sh
21162   chmod +x conf$$.sh
21163   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21164     PATH_SEPARATOR=';'
21165   else
21166     PATH_SEPARATOR=:
21167   fi
21168   rm -f conf$$.sh
21171 # Support unset when possible.
21172 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21173   as_unset=unset
21174 else
21175   as_unset=false
21179 # IFS
21180 # We need space, tab and new line, in precisely that order.  Quoting is
21181 # there to prevent editors from complaining about space-tab.
21182 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21183 # splitting by setting IFS to empty value.)
21184 as_nl='
21186 IFS=" ""        $as_nl"
21188 # Find who we are.  Look in the path if we contain no directory separator.
21189 case $0 in
21190   *[\\/]* ) as_myself=$0 ;;
21191   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21192 for as_dir in $PATH
21194   IFS=$as_save_IFS
21195   test -z "$as_dir" && as_dir=.
21196   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21197 done
21198 IFS=$as_save_IFS
21200      ;;
21201 esac
21202 # We did not find ourselves, most probably we were run as `sh COMMAND'
21203 # in which case we are not to be found in the path.
21204 if test "x$as_myself" = x; then
21205   as_myself=$0
21207 if test ! -f "$as_myself"; then
21208   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21209   { (exit 1); exit 1; }
21212 # Work around bugs in pre-3.0 UWIN ksh.
21213 for as_var in ENV MAIL MAILPATH
21214 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21215 done
21216 PS1='$ '
21217 PS2='> '
21218 PS4='+ '
21220 # NLS nuisances.
21221 for as_var in \
21222   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21223   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21224   LC_TELEPHONE LC_TIME
21226   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21227     eval $as_var=C; export $as_var
21228   else
21229     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21230   fi
21231 done
21233 # Required to use basename.
21234 if expr a : '\(a\)' >/dev/null 2>&1 &&
21235    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21236   as_expr=expr
21237 else
21238   as_expr=false
21241 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21242   as_basename=basename
21243 else
21244   as_basename=false
21248 # Name of the executable.
21249 as_me=`$as_basename -- "$0" ||
21250 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21251          X"$0" : 'X\(//\)$' \| \
21252          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21253 echo X/"$0" |
21254     sed '/^.*\/\([^/][^/]*\)\/*$/{
21255             s//\1/
21256             q
21257           }
21258           /^X\/\(\/\/\)$/{
21259             s//\1/
21260             q
21261           }
21262           /^X\/\(\/\).*/{
21263             s//\1/
21264             q
21265           }
21266           s/.*/./; q'`
21268 # CDPATH.
21269 $as_unset CDPATH
21273   as_lineno_1=$LINENO
21274   as_lineno_2=$LINENO
21275   test "x$as_lineno_1" != "x$as_lineno_2" &&
21276   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21278   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21279   # uniformly replaced by the line number.  The first 'sed' inserts a
21280   # line-number line after each line using $LINENO; the second 'sed'
21281   # does the real work.  The second script uses 'N' to pair each
21282   # line-number line with the line containing $LINENO, and appends
21283   # trailing '-' during substitution so that $LINENO is not a special
21284   # case at line end.
21285   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21286   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21287   # E. McMahon (1931-1989) for sed's syntax.  :-)
21288   sed -n '
21289     p
21290     /[$]LINENO/=
21291   ' <$as_myself |
21292     sed '
21293       s/[$]LINENO.*/&-/
21294       t lineno
21295       b
21296       :lineno
21297       N
21298       :loop
21299       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21300       t loop
21301       s/-\n.*//
21302     ' >$as_me.lineno &&
21303   chmod +x "$as_me.lineno" ||
21304     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21305    { (exit 1); exit 1; }; }
21307   # Don't try to exec as it changes $[0], causing all sort of problems
21308   # (the dirname of $[0] is not the place where we might find the
21309   # original and so on.  Autoconf is especially sensitive to this).
21310   . "./$as_me.lineno"
21311   # Exit status is that of the last command.
21312   exit
21316 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21317   as_dirname=dirname
21318 else
21319   as_dirname=false
21322 ECHO_C= ECHO_N= ECHO_T=
21323 case `echo -n x` in
21324 -n*)
21325   case `echo 'x\c'` in
21326   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21327   *)   ECHO_C='\c';;
21328   esac;;
21330   ECHO_N='-n';;
21331 esac
21333 if expr a : '\(a\)' >/dev/null 2>&1 &&
21334    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21335   as_expr=expr
21336 else
21337   as_expr=false
21340 rm -f conf$$ conf$$.exe conf$$.file
21341 if test -d conf$$.dir; then
21342   rm -f conf$$.dir/conf$$.file
21343 else
21344   rm -f conf$$.dir
21345   mkdir conf$$.dir
21347 echo >conf$$.file
21348 if ln -s conf$$.file conf$$ 2>/dev/null; then
21349   as_ln_s='ln -s'
21350   # ... but there are two gotchas:
21351   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21352   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21353   # In both cases, we have to default to `cp -p'.
21354   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21355     as_ln_s='cp -p'
21356 elif ln conf$$.file conf$$ 2>/dev/null; then
21357   as_ln_s=ln
21358 else
21359   as_ln_s='cp -p'
21361 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21362 rmdir conf$$.dir 2>/dev/null
21364 if mkdir -p . 2>/dev/null; then
21365   as_mkdir_p=:
21366 else
21367   test -d ./-p && rmdir ./-p
21368   as_mkdir_p=false
21371 if test -x / >/dev/null 2>&1; then
21372   as_test_x='test -x'
21373 else
21374   if ls -dL / >/dev/null 2>&1; then
21375     as_ls_L_option=L
21376   else
21377     as_ls_L_option=
21378   fi
21379   as_test_x='
21380     eval sh -c '\''
21381       if test -d "$1"; then
21382         test -d "$1/.";
21383       else
21384         case $1 in
21385         -*)set "./$1";;
21386         esac;
21387         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21388         ???[sx]*):;;*)false;;esac;fi
21389     '\'' sh
21390   '
21392 as_executable_p=$as_test_x
21394 # Sed expression to map a string onto a valid CPP name.
21395 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21397 # Sed expression to map a string onto a valid variable name.
21398 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21401 exec 6>&1
21403 # Save the log message, to keep $[0] and so on meaningful, and to
21404 # report actual input values of CONFIG_FILES etc. instead of their
21405 # values after options handling.
21406 ac_log="
21407 This file was extended by $as_me, which was
21408 generated by GNU Autoconf 2.61.  Invocation command line was
21410   CONFIG_FILES    = $CONFIG_FILES
21411   CONFIG_HEADERS  = $CONFIG_HEADERS
21412   CONFIG_LINKS    = $CONFIG_LINKS
21413   CONFIG_COMMANDS = $CONFIG_COMMANDS
21414   $ $0 $@
21416 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21419 _ACEOF
21421 cat >>$CONFIG_STATUS <<_ACEOF
21422 # Files that config.status was made for.
21423 config_files="$ac_config_files"
21424 config_commands="$ac_config_commands"
21426 _ACEOF
21428 cat >>$CONFIG_STATUS <<\_ACEOF
21429 ac_cs_usage="\
21430 \`$as_me' instantiates files from templates according to the
21431 current configuration.
21433 Usage: $0 [OPTIONS] [FILE]...
21435   -h, --help       print this help, then exit
21436   -V, --version    print version number and configuration settings, then exit
21437   -q, --quiet      do not print progress messages
21438   -d, --debug      don't remove temporary files
21439       --recheck    update $as_me by reconfiguring in the same conditions
21440   --file=FILE[:TEMPLATE]
21441                    instantiate the configuration file FILE
21443 Configuration files:
21444 $config_files
21446 Configuration commands:
21447 $config_commands
21449 Report bugs to <bug-autoconf@gnu.org>."
21451 _ACEOF
21452 cat >>$CONFIG_STATUS <<_ACEOF
21453 ac_cs_version="\\
21454 config.status
21455 configured by $0, generated by GNU Autoconf 2.61,
21456   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21458 Copyright (C) 2006 Free Software Foundation, Inc.
21459 This config.status script is free software; the Free Software Foundation
21460 gives unlimited permission to copy, distribute and modify it."
21462 ac_pwd='$ac_pwd'
21463 srcdir='$srcdir'
21464 INSTALL='$INSTALL'
21465 _ACEOF
21467 cat >>$CONFIG_STATUS <<\_ACEOF
21468 # If no file are specified by the user, then we need to provide default
21469 # value.  By we need to know if files were specified by the user.
21470 ac_need_defaults=:
21471 while test $# != 0
21473   case $1 in
21474   --*=*)
21475     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21476     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21477     ac_shift=:
21478     ;;
21479   *)
21480     ac_option=$1
21481     ac_optarg=$2
21482     ac_shift=shift
21483     ;;
21484   esac
21486   case $ac_option in
21487   # Handling of the options.
21488   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21489     ac_cs_recheck=: ;;
21490   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21491     echo "$ac_cs_version"; exit ;;
21492   --debug | --debu | --deb | --de | --d | -d )
21493     debug=: ;;
21494   --file | --fil | --fi | --f )
21495     $ac_shift
21496     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21497     ac_need_defaults=false;;
21498   --he | --h |  --help | --hel | -h )
21499     echo "$ac_cs_usage"; exit ;;
21500   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21501   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21502     ac_cs_silent=: ;;
21504   # This is an error.
21505   -*) { echo "$as_me: error: unrecognized option: $1
21506 Try \`$0 --help' for more information." >&2
21507    { (exit 1); exit 1; }; } ;;
21509   *) ac_config_targets="$ac_config_targets $1"
21510      ac_need_defaults=false ;;
21512   esac
21513   shift
21514 done
21516 ac_configure_extra_args=
21518 if $ac_cs_silent; then
21519   exec 6>/dev/null
21520   ac_configure_extra_args="$ac_configure_extra_args --silent"
21523 _ACEOF
21524 cat >>$CONFIG_STATUS <<_ACEOF
21525 if \$ac_cs_recheck; then
21526   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21527   CONFIG_SHELL=$SHELL
21528   export CONFIG_SHELL
21529   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21532 _ACEOF
21533 cat >>$CONFIG_STATUS <<\_ACEOF
21534 exec 5>>config.log
21536   echo
21537   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
21538 @%:@@%:@ Running $as_me. @%:@@%:@
21539 _ASBOX
21540   echo "$ac_log"
21541 } >&5
21543 _ACEOF
21544 cat >>$CONFIG_STATUS <<_ACEOF
21546 # INIT-COMMANDS
21548 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21550 _ACEOF
21552 cat >>$CONFIG_STATUS <<\_ACEOF
21554 # Handling of arguments.
21555 for ac_config_target in $ac_config_targets
21557   case $ac_config_target in
21558     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21559     "src/config.h") CONFIG_FILES="$CONFIG_FILES src/config.h" ;;
21560     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21561     "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
21562     "pixmaps/16/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/16/Makefile" ;;
21563     "pixmaps/22/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/22/Makefile" ;;
21564     "pixmaps/48/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/48/Makefile" ;;
21565     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21567   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21568 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21569    { (exit 1); exit 1; }; };;
21570   esac
21571 done
21574 # If the user did not use the arguments to specify the items to instantiate,
21575 # then the envvar interface is used.  Set only those that are not.
21576 # We use the long form for the default assignment because of an extremely
21577 # bizarre bug on SunOS 4.1.3.
21578 if $ac_need_defaults; then
21579   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21580   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21583 # Have a temporary directory for convenience.  Make it in the build tree
21584 # simply because there is no reason against having it here, and in addition,
21585 # creating and moving files from /tmp can sometimes cause problems.
21586 # Hook for its removal unless debugging.
21587 # Note that there is a small window in which the directory will not be cleaned:
21588 # after its creation but before its name has been assigned to `$tmp'.
21589 $debug ||
21591   tmp=
21592   trap 'exit_status=$?
21593   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21594 ' 0
21595   trap '{ (exit 1); exit 1; }' 1 2 13 15
21597 # Create a (secure) tmp directory for tmp files.
21600   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21601   test -n "$tmp" && test -d "$tmp"
21602 }  ||
21604   tmp=./conf$$-$RANDOM
21605   (umask 077 && mkdir "$tmp")
21606 } ||
21608    echo "$me: cannot create a temporary directory in ." >&2
21609    { (exit 1); exit 1; }
21613 # Set up the sed scripts for CONFIG_FILES section.
21616 # No need to generate the scripts if there are no CONFIG_FILES.
21617 # This happens for instance when ./config.status config.h
21618 if test -n "$CONFIG_FILES"; then
21620 _ACEOF
21624 ac_delim='%!_!# '
21625 for ac_last_try in false false false false false :; do
21626   cat >conf$$subs.sed <<_ACEOF
21627 SHELL!$SHELL$ac_delim
21628 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21629 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21630 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21631 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21632 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21633 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21634 exec_prefix!$exec_prefix$ac_delim
21635 prefix!$prefix$ac_delim
21636 program_transform_name!$program_transform_name$ac_delim
21637 bindir!$bindir$ac_delim
21638 sbindir!$sbindir$ac_delim
21639 libexecdir!$libexecdir$ac_delim
21640 datarootdir!$datarootdir$ac_delim
21641 datadir!$datadir$ac_delim
21642 sysconfdir!$sysconfdir$ac_delim
21643 sharedstatedir!$sharedstatedir$ac_delim
21644 localstatedir!$localstatedir$ac_delim
21645 includedir!$includedir$ac_delim
21646 oldincludedir!$oldincludedir$ac_delim
21647 docdir!$docdir$ac_delim
21648 infodir!$infodir$ac_delim
21649 htmldir!$htmldir$ac_delim
21650 dvidir!$dvidir$ac_delim
21651 pdfdir!$pdfdir$ac_delim
21652 psdir!$psdir$ac_delim
21653 libdir!$libdir$ac_delim
21654 localedir!$localedir$ac_delim
21655 mandir!$mandir$ac_delim
21656 DEFS!$DEFS$ac_delim
21657 ECHO_C!$ECHO_C$ac_delim
21658 ECHO_N!$ECHO_N$ac_delim
21659 ECHO_T!$ECHO_T$ac_delim
21660 LIBS!$LIBS$ac_delim
21661 build_alias!$build_alias$ac_delim
21662 host_alias!$host_alias$ac_delim
21663 target_alias!$target_alias$ac_delim
21664 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21665 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21666 INSTALL_DATA!$INSTALL_DATA$ac_delim
21667 CYGPATH_W!$CYGPATH_W$ac_delim
21668 PACKAGE!$PACKAGE$ac_delim
21669 VERSION!$VERSION$ac_delim
21670 ACLOCAL!$ACLOCAL$ac_delim
21671 AUTOCONF!$AUTOCONF$ac_delim
21672 AUTOMAKE!$AUTOMAKE$ac_delim
21673 AUTOHEADER!$AUTOHEADER$ac_delim
21674 MAKEINFO!$MAKEINFO$ac_delim
21675 install_sh!$install_sh$ac_delim
21676 STRIP!$STRIP$ac_delim
21677 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21678 mkdir_p!$mkdir_p$ac_delim
21679 AWK!$AWK$ac_delim
21680 SET_MAKE!$SET_MAKE$ac_delim
21681 am__leading_dot!$am__leading_dot$ac_delim
21682 AMTAR!$AMTAR$ac_delim
21683 am__tar!$am__tar$ac_delim
21684 am__untar!$am__untar$ac_delim
21685 CC!$CC$ac_delim
21686 CFLAGS!$CFLAGS$ac_delim
21687 LDFLAGS!$LDFLAGS$ac_delim
21688 CPPFLAGS!$CPPFLAGS$ac_delim
21689 ac_ct_CC!$ac_ct_CC$ac_delim
21690 EXEEXT!$EXEEXT$ac_delim
21691 OBJEXT!$OBJEXT$ac_delim
21692 DEPDIR!$DEPDIR$ac_delim
21693 am__include!$am__include$ac_delim
21694 am__quote!$am__quote$ac_delim
21695 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21696 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21697 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21698 CCDEPMODE!$CCDEPMODE$ac_delim
21699 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21700 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21701 build!$build$ac_delim
21702 build_cpu!$build_cpu$ac_delim
21703 build_vendor!$build_vendor$ac_delim
21704 build_os!$build_os$ac_delim
21705 host!$host$ac_delim
21706 host_cpu!$host_cpu$ac_delim
21707 host_vendor!$host_vendor$ac_delim
21708 host_os!$host_os$ac_delim
21709 GREP!$GREP$ac_delim
21710 EGREP!$EGREP$ac_delim
21711 LN_S!$LN_S$ac_delim
21712 ECHO!$ECHO$ac_delim
21713 AR!$AR$ac_delim
21714 RANLIB!$RANLIB$ac_delim
21715 CPP!$CPP$ac_delim
21716 CXX!$CXX$ac_delim
21717 CXXFLAGS!$CXXFLAGS$ac_delim
21718 ac_ct_CXX!$ac_ct_CXX$ac_delim
21719 CXXDEPMODE!$CXXDEPMODE$ac_delim
21720 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21721 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21722 CXXCPP!$CXXCPP$ac_delim
21723 F77!$F77$ac_delim
21724 _ACEOF
21726   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21727     break
21728   elif $ac_last_try; then
21729     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21730 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21731    { (exit 1); exit 1; }; }
21732   else
21733     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21734   fi
21735 done
21737 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21738 if test -n "$ac_eof"; then
21739   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21740   ac_eof=`expr $ac_eof + 1`
21743 cat >>$CONFIG_STATUS <<_ACEOF
21744 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21745 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21746 _ACEOF
21747 sed '
21748 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21749 s/^/s,@/; s/!/@,|#_!!_#|/
21751 t n
21752 s/'"$ac_delim"'$/,g/; t
21753 s/$/\\/; p
21754 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21755 ' >>$CONFIG_STATUS <conf$$subs.sed
21756 rm -f conf$$subs.sed
21757 cat >>$CONFIG_STATUS <<_ACEOF
21758 CEOF$ac_eof
21759 _ACEOF
21762 ac_delim='%!_!# '
21763 for ac_last_try in false false false false false :; do
21764   cat >conf$$subs.sed <<_ACEOF
21765 FFLAGS!$FFLAGS$ac_delim
21766 ac_ct_F77!$ac_ct_F77$ac_delim
21767 LIBTOOL!$LIBTOOL$ac_delim
21768 PIDGIN_MIN!$PIDGIN_MIN$ac_delim
21769 PIDGIN_MAX!$PIDGIN_MAX$ac_delim
21770 PKG_CONFIG!$PKG_CONFIG$ac_delim
21771 libpurple_CFLAGS!$libpurple_CFLAGS$ac_delim
21772 libpurple_LIBS!$libpurple_LIBS$ac_delim
21773 PIDGIN_CFLAGS!$PIDGIN_CFLAGS$ac_delim
21774 PIDGIN_LIBS!$PIDGIN_LIBS$ac_delim
21775 SIPE_LIBA!$SIPE_LIBA$ac_delim
21776 SIPE_STATIC_TRUE!$SIPE_STATIC_TRUE$ac_delim
21777 SIPE_STATIC_FALSE!$SIPE_STATIC_FALSE$ac_delim
21778 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
21779 LTLIBOBJS!$LTLIBOBJS$ac_delim
21780 _ACEOF
21782   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
21783     break
21784   elif $ac_last_try; then
21785     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21786 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21787    { (exit 1); exit 1; }; }
21788   else
21789     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21790   fi
21791 done
21793 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21794 if test -n "$ac_eof"; then
21795   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21796   ac_eof=`expr $ac_eof + 1`
21799 cat >>$CONFIG_STATUS <<_ACEOF
21800 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21801 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21802 _ACEOF
21803 sed '
21804 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21805 s/^/s,@/; s/!/@,|#_!!_#|/
21807 t n
21808 s/'"$ac_delim"'$/,g/; t
21809 s/$/\\/; p
21810 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21811 ' >>$CONFIG_STATUS <conf$$subs.sed
21812 rm -f conf$$subs.sed
21813 cat >>$CONFIG_STATUS <<_ACEOF
21814 :end
21815 s/|#_!!_#|//g
21816 CEOF$ac_eof
21817 _ACEOF
21820 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21821 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21822 # trailing colons and then remove the whole line if VPATH becomes empty
21823 # (actually we leave an empty line to preserve line numbers).
21824 if test "x$srcdir" = x.; then
21825   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21826 s/:*\$(srcdir):*/:/
21827 s/:*\${srcdir}:*/:/
21828 s/:*@srcdir@:*/:/
21829 s/^\([^=]*=[     ]*\):*/\1/
21830 s/:*$//
21831 s/^[^=]*=[       ]*$//
21835 cat >>$CONFIG_STATUS <<\_ACEOF
21836 fi # test -n "$CONFIG_FILES"
21839 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
21841   case $ac_tag in
21842   :[FHLC]) ac_mode=$ac_tag; continue;;
21843   esac
21844   case $ac_mode$ac_tag in
21845   :[FHL]*:*);;
21846   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21847 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21848    { (exit 1); exit 1; }; };;
21849   :[FH]-) ac_tag=-:-;;
21850   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21851   esac
21852   ac_save_IFS=$IFS
21853   IFS=:
21854   set x $ac_tag
21855   IFS=$ac_save_IFS
21856   shift
21857   ac_file=$1
21858   shift
21860   case $ac_mode in
21861   :L) ac_source=$1;;
21862   :[FH])
21863     ac_file_inputs=
21864     for ac_f
21865     do
21866       case $ac_f in
21867       -) ac_f="$tmp/stdin";;
21868       *) # Look for the file first in the build tree, then in the source tree
21869          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21870          # because $ac_f cannot contain `:'.
21871          test -f "$ac_f" ||
21872            case $ac_f in
21873            [\\/$]*) false;;
21874            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21875            esac ||
21876            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21877 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21878    { (exit 1); exit 1; }; };;
21879       esac
21880       ac_file_inputs="$ac_file_inputs $ac_f"
21881     done
21883     # Let's still pretend it is `configure' which instantiates (i.e., don't
21884     # use $as_me), people would be surprised to read:
21885     #    /* config.h.  Generated by config.status.  */
21886     configure_input="Generated from "`IFS=:
21887           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21888     if test x"$ac_file" != x-; then
21889       configure_input="$ac_file.  $configure_input"
21890       { echo "$as_me:$LINENO: creating $ac_file" >&5
21891 echo "$as_me: creating $ac_file" >&6;}
21892     fi
21894     case $ac_tag in
21895     *:-:* | *:-) cat >"$tmp/stdin";;
21896     esac
21897     ;;
21898   esac
21900   ac_dir=`$as_dirname -- "$ac_file" ||
21901 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21902          X"$ac_file" : 'X\(//\)[^/]' \| \
21903          X"$ac_file" : 'X\(//\)$' \| \
21904          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21905 echo X"$ac_file" |
21906     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21907             s//\1/
21908             q
21909           }
21910           /^X\(\/\/\)[^/].*/{
21911             s//\1/
21912             q
21913           }
21914           /^X\(\/\/\)$/{
21915             s//\1/
21916             q
21917           }
21918           /^X\(\/\).*/{
21919             s//\1/
21920             q
21921           }
21922           s/.*/./; q'`
21923   { as_dir="$ac_dir"
21924   case $as_dir in #(
21925   -*) as_dir=./$as_dir;;
21926   esac
21927   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21928     as_dirs=
21929     while :; do
21930       case $as_dir in #(
21931       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21932       *) as_qdir=$as_dir;;
21933       esac
21934       as_dirs="'$as_qdir' $as_dirs"
21935       as_dir=`$as_dirname -- "$as_dir" ||
21936 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21937          X"$as_dir" : 'X\(//\)[^/]' \| \
21938          X"$as_dir" : 'X\(//\)$' \| \
21939          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21940 echo X"$as_dir" |
21941     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21942             s//\1/
21943             q
21944           }
21945           /^X\(\/\/\)[^/].*/{
21946             s//\1/
21947             q
21948           }
21949           /^X\(\/\/\)$/{
21950             s//\1/
21951             q
21952           }
21953           /^X\(\/\).*/{
21954             s//\1/
21955             q
21956           }
21957           s/.*/./; q'`
21958       test -d "$as_dir" && break
21959     done
21960     test -z "$as_dirs" || eval "mkdir $as_dirs"
21961   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21962 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21963    { (exit 1); exit 1; }; }; }
21964   ac_builddir=.
21966 case "$ac_dir" in
21967 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21969   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21970   # A ".." for each directory in $ac_dir_suffix.
21971   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21972   case $ac_top_builddir_sub in
21973   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21974   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21975   esac ;;
21976 esac
21977 ac_abs_top_builddir=$ac_pwd
21978 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21979 # for backward compatibility:
21980 ac_top_builddir=$ac_top_build_prefix
21982 case $srcdir in
21983   .)  # We are building in place.
21984     ac_srcdir=.
21985     ac_top_srcdir=$ac_top_builddir_sub
21986     ac_abs_top_srcdir=$ac_pwd ;;
21987   [\\/]* | ?:[\\/]* )  # Absolute name.
21988     ac_srcdir=$srcdir$ac_dir_suffix;
21989     ac_top_srcdir=$srcdir
21990     ac_abs_top_srcdir=$srcdir ;;
21991   *) # Relative name.
21992     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21993     ac_top_srcdir=$ac_top_build_prefix$srcdir
21994     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21995 esac
21996 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21999   case $ac_mode in
22000   :F)
22001   #
22002   # CONFIG_FILE
22003   #
22005   case $INSTALL in
22006   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22007   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22008   esac
22009 _ACEOF
22011 cat >>$CONFIG_STATUS <<\_ACEOF
22012 # If the template does not know about datarootdir, expand it.
22013 # FIXME: This hack should be removed a few years after 2.60.
22014 ac_datarootdir_hack=; ac_datarootdir_seen=
22016 case `sed -n '/datarootdir/ {
22017   p
22018   q
22020 /@datadir@/p
22021 /@docdir@/p
22022 /@infodir@/p
22023 /@localedir@/p
22024 /@mandir@/p
22025 ' $ac_file_inputs` in
22026 *datarootdir*) ac_datarootdir_seen=yes;;
22027 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22028   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22029 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22030 _ACEOF
22031 cat >>$CONFIG_STATUS <<_ACEOF
22032   ac_datarootdir_hack='
22033   s&@datadir@&$datadir&g
22034   s&@docdir@&$docdir&g
22035   s&@infodir@&$infodir&g
22036   s&@localedir@&$localedir&g
22037   s&@mandir@&$mandir&g
22038     s&\\\${datarootdir}&$datarootdir&g' ;;
22039 esac
22040 _ACEOF
22042 # Neutralize VPATH when `$srcdir' = `.'.
22043 # Shell code in configure.ac might set extrasub.
22044 # FIXME: do we really want to maintain this feature?
22045 cat >>$CONFIG_STATUS <<_ACEOF
22046   sed "$ac_vpsub
22047 $extrasub
22048 _ACEOF
22049 cat >>$CONFIG_STATUS <<\_ACEOF
22051 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22052 s&@configure_input@&$configure_input&;t t
22053 s&@top_builddir@&$ac_top_builddir_sub&;t t
22054 s&@srcdir@&$ac_srcdir&;t t
22055 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22056 s&@top_srcdir@&$ac_top_srcdir&;t t
22057 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22058 s&@builddir@&$ac_builddir&;t t
22059 s&@abs_builddir@&$ac_abs_builddir&;t t
22060 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22061 s&@INSTALL@&$ac_INSTALL&;t t
22062 $ac_datarootdir_hack
22063 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22065 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22066   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22067   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22068   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22069 which seems to be undefined.  Please make sure it is defined." >&5
22070 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22071 which seems to be undefined.  Please make sure it is defined." >&2;}
22073   rm -f "$tmp/stdin"
22074   case $ac_file in
22075   -) cat "$tmp/out"; rm -f "$tmp/out";;
22076   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22077   esac
22078  ;;
22079   
22080   
22081   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22082 echo "$as_me: executing $ac_file commands" >&6;}
22083  ;;
22084   esac
22087   case $ac_file$ac_mode in
22088     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22089   # Strip MF so we end up with the name of the file.
22090   mf=`echo "$mf" | sed -e 's/:.*$//'`
22091   # Check whether this is an Automake generated Makefile or not.
22092   # We used to match only the files named `Makefile.in', but
22093   # some people rename them; so instead we look at the file content.
22094   # Grep'ing the first line is not enough: some people post-process
22095   # each Makefile.in and add a new line on top of each file to say so.
22096   # So let's grep whole file.
22097   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22098     dirpart=`$as_dirname -- "$mf" ||
22099 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22100          X"$mf" : 'X\(//\)[^/]' \| \
22101          X"$mf" : 'X\(//\)$' \| \
22102          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22103 echo X"$mf" |
22104     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22105             s//\1/
22106             q
22107           }
22108           /^X\(\/\/\)[^/].*/{
22109             s//\1/
22110             q
22111           }
22112           /^X\(\/\/\)$/{
22113             s//\1/
22114             q
22115           }
22116           /^X\(\/\).*/{
22117             s//\1/
22118             q
22119           }
22120           s/.*/./; q'`
22121   else
22122     continue
22123   fi
22124   # Extract the definition of DEPDIR, am__include, and am__quote
22125   # from the Makefile without running `make'.
22126   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22127   test -z "$DEPDIR" && continue
22128   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22129   test -z "am__include" && continue
22130   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22131   # When using ansi2knr, U may be empty or an underscore; expand it
22132   U=`sed -n 's/^U = //p' < "$mf"`
22133   # Find all dependency output files, they are included files with
22134   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22135   # simplest approach to changing $(DEPDIR) to its actual value in the
22136   # expansion.
22137   for file in `sed -n "
22138     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22139        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22140     # Make sure the directory exists.
22141     test -f "$dirpart/$file" && continue
22142     fdir=`$as_dirname -- "$file" ||
22143 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22144          X"$file" : 'X\(//\)[^/]' \| \
22145          X"$file" : 'X\(//\)$' \| \
22146          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22147 echo X"$file" |
22148     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22149             s//\1/
22150             q
22151           }
22152           /^X\(\/\/\)[^/].*/{
22153             s//\1/
22154             q
22155           }
22156           /^X\(\/\/\)$/{
22157             s//\1/
22158             q
22159           }
22160           /^X\(\/\).*/{
22161             s//\1/
22162             q
22163           }
22164           s/.*/./; q'`
22165     { as_dir=$dirpart/$fdir
22166   case $as_dir in #(
22167   -*) as_dir=./$as_dir;;
22168   esac
22169   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22170     as_dirs=
22171     while :; do
22172       case $as_dir in #(
22173       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22174       *) as_qdir=$as_dir;;
22175       esac
22176       as_dirs="'$as_qdir' $as_dirs"
22177       as_dir=`$as_dirname -- "$as_dir" ||
22178 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22179          X"$as_dir" : 'X\(//\)[^/]' \| \
22180          X"$as_dir" : 'X\(//\)$' \| \
22181          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22182 echo X"$as_dir" |
22183     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22184             s//\1/
22185             q
22186           }
22187           /^X\(\/\/\)[^/].*/{
22188             s//\1/
22189             q
22190           }
22191           /^X\(\/\/\)$/{
22192             s//\1/
22193             q
22194           }
22195           /^X\(\/\).*/{
22196             s//\1/
22197             q
22198           }
22199           s/.*/./; q'`
22200       test -d "$as_dir" && break
22201     done
22202     test -z "$as_dirs" || eval "mkdir $as_dirs"
22203   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22204 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22205    { (exit 1); exit 1; }; }; }
22206     # echo "creating $dirpart/$file"
22207     echo '# dummy' > "$dirpart/$file"
22208   done
22209 done
22210  ;;
22212   esac
22213 done # for ac_tag
22216 { (exit 0); exit 0; }
22217 _ACEOF
22218 chmod +x $CONFIG_STATUS
22219 ac_clean_files=$ac_clean_files_save
22222 # configure is writing to config.log, and then calls config.status.
22223 # config.status does its own redirection, appending to config.log.
22224 # Unfortunately, on DOS this fails, as config.log is still kept open
22225 # by configure, so config.status won't be able to write to it; its
22226 # output is simply discarded.  So we exec the FD to /dev/null,
22227 # effectively closing config.log, so it can be properly (re)opened and
22228 # appended to by config.status.  When coming back to configure, we
22229 # need to make the FD available again.
22230 if test "$no_create" != yes; then
22231   ac_cs_success=:
22232   ac_config_status_args=
22233   test "$silent" = yes &&
22234     ac_config_status_args="$ac_config_status_args --quiet"
22235   exec 5>/dev/null
22236   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22237   exec 5>>config.log
22238   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22239   # would make configure fail if this is the last instruction.
22240   $ac_cs_success || { (exit 1); exit 1; }
22245 echo
22246 echo -n "Simple Exchange linking mode... : "
22247 if test "$sipe_static" = "yes" ; then
22248    echo "static"
22249    echo "Simple Exchange library...      : $SIPE_LIBA"
22250 else
22251    echo "dynamic"
22254 echo
22255 echo configure complete, now run \`make\`
22256 echo
22258 # The End.