Fixed compile errors caused by combining plugins
[gst-davinci.git] / ti_plugins / davinci / autom4te.cache / output.1
blob946122e2498dcafab39573f92958e1cd95258be4
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 GST_PLUGIN_VERSION
807 GST_PLUGIN_VERSION_RELEASE
808 GST_PLUGIN_VERSION_MAJOR
809 GST_PLUGIN_VERSION_MINOR
810 GST_PLUGIN_VERSION_MICRO
811 GST_PLUGIN_VERSION_NANO
812 PACKAGE
813 VERSION
814 MAINTAINER_MODE_TRUE
815 MAINTAINER_MODE_FALSE
816 MAINT
817 INSTALL_PROGRAM
818 INSTALL_SCRIPT
819 INSTALL_DATA
820 am__isrc
821 CYGPATH_W
822 ACLOCAL
823 AUTOCONF
824 AUTOMAKE
825 AUTOHEADER
826 MAKEINFO
827 install_sh
828 STRIP
829 INSTALL_STRIP_PROGRAM
830 mkdir_p
832 SET_MAKE
833 am__leading_dot
834 AMTAR
835 am__tar
836 am__untar
837 ACLOCAL_AMFLAGS
839 CFLAGS
840 LDFLAGS
841 CPPFLAGS
842 ac_ct_CC
843 EXEEXT
844 OBJEXT
845 DEPDIR
846 am__include
847 am__quote
848 AMDEP_TRUE
849 AMDEP_FALSE
850 AMDEPBACKSLASH
851 CCDEPMODE
852 am__fastdepCC_TRUE
853 am__fastdepCC_FALSE
854 build
855 build_cpu
856 build_vendor
857 build_os
858 host
859 host_cpu
860 host_vendor
861 host_os
863 GREP
864 EGREP
865 LN_S
866 ECHO
868 RANLIB
869 DSYMUTIL
870 NMEDIT
873 CXXFLAGS
874 ac_ct_CXX
875 CXXDEPMODE
876 am__fastdepCXX_TRUE
877 am__fastdepCXX_FALSE
878 CXXCPP
880 FFLAGS
881 ac_ct_F77
882 LIBTOOL
883 HAVE_PKGCONFIG
884 PKG_CONFIG
885 GST_CFLAGS
886 GST_LIBS
887 GST_BASE_CFLAGS
888 GST_BASE_LIBS
889 GST_LIB_LDFLAGS
890 GST_ALL_LDFLAGS
891 GST_LT_LDFLAGS
892 GST_MAJORMINOR
893 plugindir
894 GST_PLUGIN_LDFLAGS
895 LIB@&t@OBJS
896 LTLIBOBJS'
897 ac_subst_files=''
898       ac_precious_vars='build_alias
899 host_alias
900 target_alias
902 CFLAGS
903 LDFLAGS
904 LIBS
905 CPPFLAGS
908 CXXFLAGS
910 CXXCPP
912 FFLAGS'
915 # Initialize some variables set by options.
916 ac_init_help=
917 ac_init_version=false
918 # The variables have the same names as the options, with
919 # dashes changed to underlines.
920 cache_file=/dev/null
921 exec_prefix=NONE
922 no_create=
923 no_recursion=
924 prefix=NONE
925 program_prefix=NONE
926 program_suffix=NONE
927 program_transform_name=s,x,x,
928 silent=
929 site=
930 srcdir=
931 verbose=
932 x_includes=NONE
933 x_libraries=NONE
935 # Installation directory options.
936 # These are left unexpanded so users can "make install exec_prefix=/foo"
937 # and all the variables that are supposed to be based on exec_prefix
938 # by default will actually change.
939 # Use braces instead of parens because sh, perl, etc. also accept them.
940 # (The list follows the same order as the GNU Coding Standards.)
941 bindir='${exec_prefix}/bin'
942 sbindir='${exec_prefix}/sbin'
943 libexecdir='${exec_prefix}/libexec'
944 datarootdir='${prefix}/share'
945 datadir='${datarootdir}'
946 sysconfdir='${prefix}/etc'
947 sharedstatedir='${prefix}/com'
948 localstatedir='${prefix}/var'
949 includedir='${prefix}/include'
950 oldincludedir='/usr/include'
951 docdir='${datarootdir}/doc/${PACKAGE}'
952 infodir='${datarootdir}/info'
953 htmldir='${docdir}'
954 dvidir='${docdir}'
955 pdfdir='${docdir}'
956 psdir='${docdir}'
957 libdir='${exec_prefix}/lib'
958 localedir='${datarootdir}/locale'
959 mandir='${datarootdir}/man'
961 ac_prev=
962 ac_dashdash=
963 for ac_option
965   # If the previous option needs an argument, assign it.
966   if test -n "$ac_prev"; then
967     eval $ac_prev=\$ac_option
968     ac_prev=
969     continue
970   fi
972   case $ac_option in
973   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
974   *)    ac_optarg=yes ;;
975   esac
977   # Accept the important Cygnus configure options, so we can diagnose typos.
979   case $ac_dashdash$ac_option in
980   --)
981     ac_dashdash=yes ;;
983   -bindir | --bindir | --bindi | --bind | --bin | --bi)
984     ac_prev=bindir ;;
985   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986     bindir=$ac_optarg ;;
988   -build | --build | --buil | --bui | --bu)
989     ac_prev=build_alias ;;
990   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
991     build_alias=$ac_optarg ;;
993   -cache-file | --cache-file | --cache-fil | --cache-fi \
994   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995     ac_prev=cache_file ;;
996   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
998     cache_file=$ac_optarg ;;
1000   --config-cache | -C)
1001     cache_file=config.cache ;;
1003   -datadir | --datadir | --datadi | --datad)
1004     ac_prev=datadir ;;
1005   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1006     datadir=$ac_optarg ;;
1008   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009   | --dataroo | --dataro | --datar)
1010     ac_prev=datarootdir ;;
1011   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013     datarootdir=$ac_optarg ;;
1015   -disable-* | --disable-*)
1016     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017     # Reject names that are not valid shell variable names.
1018     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1019       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020    { (exit 1); exit 1; }; }
1021     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1022     eval enable_$ac_feature=no ;;
1024   -docdir | --docdir | --docdi | --doc | --do)
1025     ac_prev=docdir ;;
1026   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027     docdir=$ac_optarg ;;
1029   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030     ac_prev=dvidir ;;
1031   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032     dvidir=$ac_optarg ;;
1034   -enable-* | --enable-*)
1035     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036     # Reject names that are not valid shell variable names.
1037     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1038       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1039    { (exit 1); exit 1; }; }
1040     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1041     eval enable_$ac_feature=\$ac_optarg ;;
1043   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1044   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1045   | --exec | --exe | --ex)
1046     ac_prev=exec_prefix ;;
1047   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1048   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1049   | --exec=* | --exe=* | --ex=*)
1050     exec_prefix=$ac_optarg ;;
1052   -gas | --gas | --ga | --g)
1053     # Obsolete; use --with-gas.
1054     with_gas=yes ;;
1056   -help | --help | --hel | --he | -h)
1057     ac_init_help=long ;;
1058   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1059     ac_init_help=recursive ;;
1060   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1061     ac_init_help=short ;;
1063   -host | --host | --hos | --ho)
1064     ac_prev=host_alias ;;
1065   -host=* | --host=* | --hos=* | --ho=*)
1066     host_alias=$ac_optarg ;;
1068   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1069     ac_prev=htmldir ;;
1070   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1071   | --ht=*)
1072     htmldir=$ac_optarg ;;
1074   -includedir | --includedir | --includedi | --included | --include \
1075   | --includ | --inclu | --incl | --inc)
1076     ac_prev=includedir ;;
1077   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1078   | --includ=* | --inclu=* | --incl=* | --inc=*)
1079     includedir=$ac_optarg ;;
1081   -infodir | --infodir | --infodi | --infod | --info | --inf)
1082     ac_prev=infodir ;;
1083   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1084     infodir=$ac_optarg ;;
1086   -libdir | --libdir | --libdi | --libd)
1087     ac_prev=libdir ;;
1088   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1089     libdir=$ac_optarg ;;
1091   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1092   | --libexe | --libex | --libe)
1093     ac_prev=libexecdir ;;
1094   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1095   | --libexe=* | --libex=* | --libe=*)
1096     libexecdir=$ac_optarg ;;
1098   -localedir | --localedir | --localedi | --localed | --locale)
1099     ac_prev=localedir ;;
1100   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1101     localedir=$ac_optarg ;;
1103   -localstatedir | --localstatedir | --localstatedi | --localstated \
1104   | --localstate | --localstat | --localsta | --localst | --locals)
1105     ac_prev=localstatedir ;;
1106   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1107   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1108     localstatedir=$ac_optarg ;;
1110   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1111     ac_prev=mandir ;;
1112   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1113     mandir=$ac_optarg ;;
1115   -nfp | --nfp | --nf)
1116     # Obsolete; use --without-fp.
1117     with_fp=no ;;
1119   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1120   | --no-cr | --no-c | -n)
1121     no_create=yes ;;
1123   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1124   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1125     no_recursion=yes ;;
1127   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1128   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1129   | --oldin | --oldi | --old | --ol | --o)
1130     ac_prev=oldincludedir ;;
1131   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1132   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1133   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1134     oldincludedir=$ac_optarg ;;
1136   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1137     ac_prev=prefix ;;
1138   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1139     prefix=$ac_optarg ;;
1141   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1142   | --program-pre | --program-pr | --program-p)
1143     ac_prev=program_prefix ;;
1144   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1145   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1146     program_prefix=$ac_optarg ;;
1148   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1149   | --program-suf | --program-su | --program-s)
1150     ac_prev=program_suffix ;;
1151   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1152   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1153     program_suffix=$ac_optarg ;;
1155   -program-transform-name | --program-transform-name \
1156   | --program-transform-nam | --program-transform-na \
1157   | --program-transform-n | --program-transform- \
1158   | --program-transform | --program-transfor \
1159   | --program-transfo | --program-transf \
1160   | --program-trans | --program-tran \
1161   | --progr-tra | --program-tr | --program-t)
1162     ac_prev=program_transform_name ;;
1163   -program-transform-name=* | --program-transform-name=* \
1164   | --program-transform-nam=* | --program-transform-na=* \
1165   | --program-transform-n=* | --program-transform-=* \
1166   | --program-transform=* | --program-transfor=* \
1167   | --program-transfo=* | --program-transf=* \
1168   | --program-trans=* | --program-tran=* \
1169   | --progr-tra=* | --program-tr=* | --program-t=*)
1170     program_transform_name=$ac_optarg ;;
1172   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1173     ac_prev=pdfdir ;;
1174   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1175     pdfdir=$ac_optarg ;;
1177   -psdir | --psdir | --psdi | --psd | --ps)
1178     ac_prev=psdir ;;
1179   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1180     psdir=$ac_optarg ;;
1182   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1183   | -silent | --silent | --silen | --sile | --sil)
1184     silent=yes ;;
1186   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1187     ac_prev=sbindir ;;
1188   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1189   | --sbi=* | --sb=*)
1190     sbindir=$ac_optarg ;;
1192   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1193   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1194   | --sharedst | --shareds | --shared | --share | --shar \
1195   | --sha | --sh)
1196     ac_prev=sharedstatedir ;;
1197   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1198   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1199   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1200   | --sha=* | --sh=*)
1201     sharedstatedir=$ac_optarg ;;
1203   -site | --site | --sit)
1204     ac_prev=site ;;
1205   -site=* | --site=* | --sit=*)
1206     site=$ac_optarg ;;
1208   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1209     ac_prev=srcdir ;;
1210   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1211     srcdir=$ac_optarg ;;
1213   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1214   | --syscon | --sysco | --sysc | --sys | --sy)
1215     ac_prev=sysconfdir ;;
1216   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1217   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1218     sysconfdir=$ac_optarg ;;
1220   -target | --target | --targe | --targ | --tar | --ta | --t)
1221     ac_prev=target_alias ;;
1222   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1223     target_alias=$ac_optarg ;;
1225   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1226     verbose=yes ;;
1228   -version | --version | --versio | --versi | --vers | -V)
1229     ac_init_version=: ;;
1231   -with-* | --with-*)
1232     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1233     # Reject names that are not valid shell variable names.
1234     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235       { echo "$as_me: error: invalid package name: $ac_package" >&2
1236    { (exit 1); exit 1; }; }
1237     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1238     eval with_$ac_package=\$ac_optarg ;;
1240   -without-* | --without-*)
1241     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1242     # Reject names that are not valid shell variable names.
1243     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244       { echo "$as_me: error: invalid package name: $ac_package" >&2
1245    { (exit 1); exit 1; }; }
1246     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1247     eval with_$ac_package=no ;;
1249   --x)
1250     # Obsolete; use --with-x.
1251     with_x=yes ;;
1253   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254   | --x-incl | --x-inc | --x-in | --x-i)
1255     ac_prev=x_includes ;;
1256   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1258     x_includes=$ac_optarg ;;
1260   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262     ac_prev=x_libraries ;;
1263   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1265     x_libraries=$ac_optarg ;;
1267   -*) { echo "$as_me: error: unrecognized option: $ac_option
1268 Try \`$0 --help' for more information." >&2
1269    { (exit 1); exit 1; }; }
1270     ;;
1272   *=*)
1273     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274     # Reject names that are not valid shell variable names.
1275     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1276       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1277    { (exit 1); exit 1; }; }
1278     eval $ac_envvar=\$ac_optarg
1279     export $ac_envvar ;;
1281   *)
1282     # FIXME: should be removed in autoconf 3.0.
1283     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1287     ;;
1289   esac
1290 done
1292 if test -n "$ac_prev"; then
1293   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294   { echo "$as_me: error: missing argument to $ac_option" >&2
1295    { (exit 1); exit 1; }; }
1298 # Be sure to have absolute directory names.
1299 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300                 datadir sysconfdir sharedstatedir localstatedir includedir \
1301                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302                 libdir localedir mandir
1304   eval ac_val=\$$ac_var
1305   case $ac_val in
1306     [\\/$]* | ?:[\\/]* )  continue;;
1307     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308   esac
1309   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1310    { (exit 1); exit 1; }; }
1311 done
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1316 build=$build_alias
1317 host=$host_alias
1318 target=$target_alias
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x; then
1322   if test "x$build_alias" = x; then
1323     cross_compiling=maybe
1324     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1325     If a cross compiler is detected then cross compile mode will be used." >&2
1326   elif test "x$build_alias" != "x$host_alias"; then
1327     cross_compiling=yes
1328   fi
1331 ac_tool_prefix=
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334 test "$silent" = yes && exec 6>/dev/null
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340   { echo "$as_me: error: Working directory cannot be determined" >&2
1341    { (exit 1); exit 1; }; }
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343   { echo "$as_me: error: pwd does not report name of working directory" >&2
1344    { (exit 1); exit 1; }; }
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349   ac_srcdir_defaulted=yes
1350   # Try the directory containing this script, then the parent directory.
1351   ac_confdir=`$as_dirname -- "$0" ||
1352 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353          X"$0" : 'X\(//\)[^/]' \| \
1354          X"$0" : 'X\(//\)$' \| \
1355          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1356 echo X"$0" |
1357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358             s//\1/
1359             q
1360           }
1361           /^X\(\/\/\)[^/].*/{
1362             s//\1/
1363             q
1364           }
1365           /^X\(\/\/\)$/{
1366             s//\1/
1367             q
1368           }
1369           /^X\(\/\).*/{
1370             s//\1/
1371             q
1372           }
1373           s/.*/./; q'`
1374   srcdir=$ac_confdir
1375   if test ! -r "$srcdir/$ac_unique_file"; then
1376     srcdir=..
1377   fi
1378 else
1379   ac_srcdir_defaulted=no
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1384    { (exit 1); exit 1; }; }
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 ac_abs_confdir=`(
1388         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1389    { (exit 1); exit 1; }; }
1390         pwd)`
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393   srcdir=.
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1398 case $srcdir in
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 esac
1401 for ac_var in $ac_precious_vars; do
1402   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403   eval ac_env_${ac_var}_value=\$${ac_var}
1404   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 done
1409 # Report the --help message.
1411 if test "$ac_init_help" = "long"; then
1412   # Omit some internal or obsolete options to make the list less imposing.
1413   # This message is too long to be a string in the A/UX 3.1 sh.
1414   cat <<_ACEOF
1415 \`configure' configures this package to adapt to many kinds of systems.
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE.  See below for descriptions of some of the useful variables.
1422 Defaults for the options are specified in brackets.
1424 Configuration:
1425   -h, --help              display this help and exit
1426       --help=short        display options specific to this package
1427       --help=recursive    display the short help of all the included packages
1428   -V, --version           display version information and exit
1429   -q, --quiet, --silent   do not print \`checking...' messages
1430       --cache-file=FILE   cache test results in FILE [disabled]
1431   -C, --config-cache      alias for \`--cache-file=config.cache'
1432   -n, --no-create         do not create output files
1433       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1435 Installation directories:
1436   --prefix=PREFIX         install architecture-independent files in PREFIX
1437                           [$ac_default_prefix]
1438   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1439                           [PREFIX]
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1446 For better control, use the options below.
1448 Fine tuning of the installation directories:
1449   --bindir=DIR           user executables [EPREFIX/bin]
1450   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1451   --libexecdir=DIR       program executables [EPREFIX/libexec]
1452   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1453   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1454   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1455   --libdir=DIR           object code libraries [EPREFIX/lib]
1456   --includedir=DIR       C header files [PREFIX/include]
1457   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1458   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1459   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1460   --infodir=DIR          info documentation [DATAROOTDIR/info]
1461   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1462   --mandir=DIR           man documentation [DATAROOTDIR/man]
1463   --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1464   --htmldir=DIR          html documentation [DOCDIR]
1465   --dvidir=DIR           dvi documentation [DOCDIR]
1466   --pdfdir=DIR           pdf documentation [DOCDIR]
1467   --psdir=DIR            ps documentation [DOCDIR]
1468 _ACEOF
1470   cat <<\_ACEOF
1472 Program names:
1473   --program-prefix=PREFIX            prepend PREFIX to installed program names
1474   --program-suffix=SUFFIX            append SUFFIX to installed program names
1475   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1477 System types:
1478   --build=BUILD     configure for building on BUILD [guessed]
1479   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1480 _ACEOF
1483 if test -n "$ac_init_help"; then
1485   cat <<\_ACEOF
1487 Optional Features:
1488   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1489   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1490   --enable-maintainer-mode  enable make rules and dependencies not useful
1491                           (and sometimes confusing) to the casual installer
1492   --disable-dependency-tracking  speeds up one-time build
1493   --enable-dependency-tracking   do not reject slow dependency extractors
1494   --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1495   --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1496   --enable-fast-install@<:@=PKGS@:>@ 
1497                           optimize for fast installation @<:@default=yes@:>@
1498   --disable-libtool-lock  avoid locking (might break parallel builds)
1500 Optional Packages:
1501   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1502   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1503   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1504   --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1505                           both@:>@
1506   --with-tags@<:@=TAGS@:>@      include additional configurations @<:@automatic@:>@
1508 Some influential environment variables:
1509   CC          C compiler command
1510   CFLAGS      C compiler flags
1511   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1512               nonstandard directory <lib dir>
1513   LIBS        libraries to pass to the linker, e.g. -l<library>
1514   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1515               you have headers in a nonstandard directory <include dir>
1516   CPP         C preprocessor
1517   CXX         C++ compiler command
1518   CXXFLAGS    C++ compiler flags
1519   CXXCPP      C++ preprocessor
1520   F77         Fortran 77 compiler command
1521   FFLAGS      Fortran 77 compiler flags
1523 Use these variables to override the choices made by `configure' or to help
1524 it to find libraries and programs with nonstandard names/locations.
1526 _ACEOF
1527 ac_status=$?
1530 if test "$ac_init_help" = "recursive"; then
1531   # If there are subdirs, report their specific --help.
1532   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533     test -d "$ac_dir" || continue
1534     ac_builddir=.
1536 case "$ac_dir" in
1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1540   # A ".." for each directory in $ac_dir_suffix.
1541   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1542   case $ac_top_builddir_sub in
1543   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545   esac ;;
1546 esac
1547 ac_abs_top_builddir=$ac_pwd
1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549 # for backward compatibility:
1550 ac_top_builddir=$ac_top_build_prefix
1552 case $srcdir in
1553   .)  # We are building in place.
1554     ac_srcdir=.
1555     ac_top_srcdir=$ac_top_builddir_sub
1556     ac_abs_top_srcdir=$ac_pwd ;;
1557   [\\/]* | ?:[\\/]* )  # Absolute name.
1558     ac_srcdir=$srcdir$ac_dir_suffix;
1559     ac_top_srcdir=$srcdir
1560     ac_abs_top_srcdir=$srcdir ;;
1561   *) # Relative name.
1562     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563     ac_top_srcdir=$ac_top_build_prefix$srcdir
1564     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565 esac
1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568     cd "$ac_dir" || { ac_status=$?; continue; }
1569     # Check for guested configure.
1570     if test -f "$ac_srcdir/configure.gnu"; then
1571       echo &&
1572       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573     elif test -f "$ac_srcdir/configure"; then
1574       echo &&
1575       $SHELL "$ac_srcdir/configure" --help=recursive
1576     else
1577       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578     fi || ac_status=$?
1579     cd "$ac_pwd" || { ac_status=$?; break; }
1580   done
1583 test -n "$ac_init_help" && exit $ac_status
1584 if $ac_init_version; then
1585   cat <<\_ACEOF
1586 configure
1587 generated by GNU Autoconf 2.61
1589 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1590 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1591 This configure script is free software; the Free Software Foundation
1592 gives unlimited permission to copy, distribute and modify it.
1593 _ACEOF
1594   exit
1596 cat >config.log <<_ACEOF
1597 This file contains any messages produced by compilers while
1598 running configure, to aid debugging if configure makes a mistake.
1600 It was created by $as_me, which was
1601 generated by GNU Autoconf 2.61.  Invocation command line was
1603   $ $0 $@
1605 _ACEOF
1606 exec 5>>config.log
1608 cat <<_ASUNAME
1609 @%:@@%:@ --------- @%:@@%:@
1610 @%:@@%:@ Platform. @%:@@%:@
1611 @%:@@%:@ --------- @%:@@%:@
1613 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1614 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1615 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1616 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1617 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1619 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1620 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1622 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1623 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1624 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1625 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1626 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1627 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1628 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1630 _ASUNAME
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 for as_dir in $PATH
1635   IFS=$as_save_IFS
1636   test -z "$as_dir" && as_dir=.
1637   echo "PATH: $as_dir"
1638 done
1639 IFS=$as_save_IFS
1641 } >&5
1643 cat >&5 <<_ACEOF
1646 @%:@@%:@ ----------- @%:@@%:@
1647 @%:@@%:@ Core tests. @%:@@%:@
1648 @%:@@%:@ ----------- @%:@@%:@
1650 _ACEOF
1653 # Keep a trace of the command line.
1654 # Strip out --no-create and --no-recursion so they do not pile up.
1655 # Strip out --silent because we don't want to record it for future runs.
1656 # Also quote any args containing shell meta-characters.
1657 # Make two passes to allow for proper duplicate-argument suppression.
1658 ac_configure_args=
1659 ac_configure_args0=
1660 ac_configure_args1=
1661 ac_must_keep_next=false
1662 for ac_pass in 1 2
1664   for ac_arg
1665   do
1666     case $ac_arg in
1667     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1668     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1669     | -silent | --silent | --silen | --sile | --sil)
1670       continue ;;
1671     *\'*)
1672       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1673     esac
1674     case $ac_pass in
1675     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1676     2)
1677       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1678       if test $ac_must_keep_next = true; then
1679         ac_must_keep_next=false # Got value, back to normal.
1680       else
1681         case $ac_arg in
1682           *=* | --config-cache | -C | -disable-* | --disable-* \
1683           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1684           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1685           | -with-* | --with-* | -without-* | --without-* | --x)
1686             case "$ac_configure_args0 " in
1687               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1688             esac
1689             ;;
1690           -* ) ac_must_keep_next=true ;;
1691         esac
1692       fi
1693       ac_configure_args="$ac_configure_args '$ac_arg'"
1694       ;;
1695     esac
1696   done
1697 done
1698 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1699 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1701 # When interrupted or exit'd, cleanup temporary files, and complete
1702 # config.log.  We remove comments because anyway the quotes in there
1703 # would cause problems or look ugly.
1704 # WARNING: Use '\'' to represent an apostrophe within the trap.
1705 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1706 trap 'exit_status=$?
1707   # Save into config.log some information that might help in debugging.
1708   {
1709     echo
1711     cat <<\_ASBOX
1712 @%:@@%:@ ---------------- @%:@@%:@
1713 @%:@@%:@ Cache variables. @%:@@%:@
1714 @%:@@%:@ ---------------- @%:@@%:@
1715 _ASBOX
1716     echo
1717     # The following way of writing the cache mishandles newlines in values,
1719   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1720     eval ac_val=\$$ac_var
1721     case $ac_val in #(
1722     *${as_nl}*)
1723       case $ac_var in #(
1724       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1725 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1726       esac
1727       case $ac_var in #(
1728       _ | IFS | as_nl) ;; #(
1729       *) $as_unset $ac_var ;;
1730       esac ;;
1731     esac
1732   done
1733   (set) 2>&1 |
1734     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1735     *${as_nl}ac_space=\ *)
1736       sed -n \
1737         "s/'\''/'\''\\\\'\'''\''/g;
1738           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1739       ;; #(
1740     *)
1741       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1742       ;;
1743     esac |
1744     sort
1746     echo
1748     cat <<\_ASBOX
1749 @%:@@%:@ ----------------- @%:@@%:@
1750 @%:@@%:@ Output variables. @%:@@%:@
1751 @%:@@%:@ ----------------- @%:@@%:@
1752 _ASBOX
1753     echo
1754     for ac_var in $ac_subst_vars
1755     do
1756       eval ac_val=\$$ac_var
1757       case $ac_val in
1758       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759       esac
1760       echo "$ac_var='\''$ac_val'\''"
1761     done | sort
1762     echo
1764     if test -n "$ac_subst_files"; then
1765       cat <<\_ASBOX
1766 @%:@@%:@ ------------------- @%:@@%:@
1767 @%:@@%:@ File substitutions. @%:@@%:@
1768 @%:@@%:@ ------------------- @%:@@%:@
1769 _ASBOX
1770       echo
1771       for ac_var in $ac_subst_files
1772       do
1773         eval ac_val=\$$ac_var
1774         case $ac_val in
1775         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1776         esac
1777         echo "$ac_var='\''$ac_val'\''"
1778       done | sort
1779       echo
1780     fi
1782     if test -s confdefs.h; then
1783       cat <<\_ASBOX
1784 @%:@@%:@ ----------- @%:@@%:@
1785 @%:@@%:@ confdefs.h. @%:@@%:@
1786 @%:@@%:@ ----------- @%:@@%:@
1787 _ASBOX
1788       echo
1789       cat confdefs.h
1790       echo
1791     fi
1792     test "$ac_signal" != 0 &&
1793       echo "$as_me: caught signal $ac_signal"
1794     echo "$as_me: exit $exit_status"
1795   } >&5
1796   rm -f core *.core core.conftest.* &&
1797     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1798     exit $exit_status
1799 ' 0
1800 for ac_signal in 1 2 13 15; do
1801   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1802 done
1803 ac_signal=0
1805 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1806 rm -f -r conftest* confdefs.h
1808 # Predefined preprocessor variables.
1810 cat >>confdefs.h <<_ACEOF
1811 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1812 _ACEOF
1815 cat >>confdefs.h <<_ACEOF
1816 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1817 _ACEOF
1820 cat >>confdefs.h <<_ACEOF
1821 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1822 _ACEOF
1825 cat >>confdefs.h <<_ACEOF
1826 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1827 _ACEOF
1830 cat >>confdefs.h <<_ACEOF
1831 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1832 _ACEOF
1835 # Let the site file select an alternate cache file if it wants to.
1836 # Prefer explicitly selected file to automatically selected ones.
1837 if test -n "$CONFIG_SITE"; then
1838   set x "$CONFIG_SITE"
1839 elif test "x$prefix" != xNONE; then
1840   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1841 else
1842   set x "$ac_default_prefix/share/config.site" \
1843         "$ac_default_prefix/etc/config.site"
1845 shift
1846 for ac_site_file
1848   if test -r "$ac_site_file"; then
1849     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1850 echo "$as_me: loading site script $ac_site_file" >&6;}
1851     sed 's/^/| /' "$ac_site_file" >&5
1852     . "$ac_site_file"
1853   fi
1854 done
1856 if test -r "$cache_file"; then
1857   # Some versions of bash will fail to source /dev/null (special
1858   # files actually), so we avoid doing that.
1859   if test -f "$cache_file"; then
1860     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1861 echo "$as_me: loading cache $cache_file" >&6;}
1862     case $cache_file in
1863       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1864       *)                      . "./$cache_file";;
1865     esac
1866   fi
1867 else
1868   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1869 echo "$as_me: creating cache $cache_file" >&6;}
1870   >$cache_file
1873 # Check that the precious variables saved in the cache have kept the same
1874 # value.
1875 ac_cache_corrupted=false
1876 for ac_var in $ac_precious_vars; do
1877   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1878   eval ac_new_set=\$ac_env_${ac_var}_set
1879   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1880   eval ac_new_val=\$ac_env_${ac_var}_value
1881   case $ac_old_set,$ac_new_set in
1882     set,)
1883       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1884 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1885       ac_cache_corrupted=: ;;
1886     ,set)
1887       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1888 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1889       ac_cache_corrupted=: ;;
1890     ,);;
1891     *)
1892       if test "x$ac_old_val" != "x$ac_new_val"; then
1893         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1894 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1895         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1896 echo "$as_me:   former value:  $ac_old_val" >&2;}
1897         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1898 echo "$as_me:   current value: $ac_new_val" >&2;}
1899         ac_cache_corrupted=:
1900       fi;;
1901   esac
1902   # Pass precious variables to config.status.
1903   if test "$ac_new_set" = set; then
1904     case $ac_new_val in
1905     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1906     *) ac_arg=$ac_var=$ac_new_val ;;
1907     esac
1908     case " $ac_configure_args " in
1909       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1910       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1911     esac
1912   fi
1913 done
1914 if $ac_cache_corrupted; then
1915   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1916 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1917   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1918 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1919    { (exit 1); exit 1; }; }
1938 ac_ext=c
1939 ac_cpp='$CPP $CPPFLAGS'
1940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1947   PACKAGE=gst-davinci
1948   GST_PLUGIN_VERSION_MAJOR=0
1949   GST_PLUGIN_VERSION_MINOR=9
1950   GST_PLUGIN_VERSION_MICRO=7
1951   NANO=0
1952   GST_PLUGIN_VERSION_NANO=$NANO
1953   if test "x$NANO" = "x" || test "x$NANO" = "x0";
1954   then
1955       { echo "$as_me:$LINENO: configuring gst-davinci for release" >&5
1956 echo "$as_me: configuring gst-davinci for release" >&6;}
1957       VERSION=0.9.7
1958       GST_PLUGIN_VERSION_RELEASE=1
1959             GST_PLUGIN_TRUNK="no"
1960   else
1961       { echo "$as_me:$LINENO: configuring gst-davinci for development with nano $NANO" >&5
1962 echo "$as_me: configuring gst-davinci for development with nano $NANO" >&6;}
1963       VERSION=0.9.7.$NANO
1964       GST_PLUGIN_VERSION_RELEASE=`date +%Y%m%d_%H%M%S`
1965             GST_PLUGIN_TRUNK="yes"
1966   fi
1968   GST_PLUGIN_VERSION=$VERSION
1969   
1970 cat >>confdefs.h <<_ACEOF
1971 @%:@define GST_PLUGIN_VERSION "$GST_PLUGIN_VERSION"
1972 _ACEOF
1974   
1975   
1976 cat >>confdefs.h <<_ACEOF
1977 @%:@define GST_PLUGIN_VERSION_RELEASE "$GST_PLUGIN_VERSION_RELEASE"
1978 _ACEOF
1980   
1982   
1983   
1984   
1985   
1986   
1987 cat >>confdefs.h <<_ACEOF
1988 @%:@define PACKAGE "$PACKAGE"
1989 _ACEOF
1991   
1992   
1993 cat >>confdefs.h <<_ACEOF
1994 @%:@define VERSION "$VERSION"
1995 _ACEOF
1997   
2000 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2001 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2002     # Check whether --enable-maintainer-mode was given.
2003 if test "${enable_maintainer_mode+set}" = set; then
2004   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2005 else
2006   USE_MAINTAINER_MODE=no
2009   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2010 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2011    if test $USE_MAINTAINER_MODE = yes; then
2012   MAINTAINER_MODE_TRUE=
2013   MAINTAINER_MODE_FALSE='#'
2014 else
2015   MAINTAINER_MODE_TRUE='#'
2016   MAINTAINER_MODE_FALSE=
2019   MAINT=$MAINTAINER_MODE_TRUE
2020   
2023 am__api_version='1.10'
2025 ac_aux_dir=
2026 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2027   if test -f "$ac_dir/install-sh"; then
2028     ac_aux_dir=$ac_dir
2029     ac_install_sh="$ac_aux_dir/install-sh -c"
2030     break
2031   elif test -f "$ac_dir/install.sh"; then
2032     ac_aux_dir=$ac_dir
2033     ac_install_sh="$ac_aux_dir/install.sh -c"
2034     break
2035   elif test -f "$ac_dir/shtool"; then
2036     ac_aux_dir=$ac_dir
2037     ac_install_sh="$ac_aux_dir/shtool install -c"
2038     break
2039   fi
2040 done
2041 if test -z "$ac_aux_dir"; then
2042   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2043 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2044    { (exit 1); exit 1; }; }
2047 # These three variables are undocumented and unsupported,
2048 # and are intended to be withdrawn in a future Autoconf release.
2049 # They can cause serious problems if a builder's source tree is in a directory
2050 # whose full name contains unusual characters.
2051 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2052 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2053 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2056 # Find a good install program.  We prefer a C program (faster),
2057 # so one script is as good as another.  But avoid the broken or
2058 # incompatible versions:
2059 # SysV /etc/install, /usr/sbin/install
2060 # SunOS /usr/etc/install
2061 # IRIX /sbin/install
2062 # AIX /bin/install
2063 # AmigaOS /C/install, which installs bootblocks on floppy discs
2064 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2065 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2066 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2067 # OS/2's system install, which has a completely different semantic
2068 # ./install, which can be erroneously created by make from ./install.sh.
2069 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2070 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2071 if test -z "$INSTALL"; then
2072 if test "${ac_cv_path_install+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 for as_dir in $PATH
2078   IFS=$as_save_IFS
2079   test -z "$as_dir" && as_dir=.
2080   # Account for people who put trailing slashes in PATH elements.
2081 case $as_dir/ in
2082   ./ | .// | /cC/* | \
2083   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2084   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2085   /usr/ucb/* ) ;;
2086   *)
2087     # OSF1 and SCO ODT 3.0 have their own names for install.
2088     # Don't use installbsd from OSF since it installs stuff as root
2089     # by default.
2090     for ac_prog in ginstall scoinst install; do
2091       for ac_exec_ext in '' $ac_executable_extensions; do
2092         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2093           if test $ac_prog = install &&
2094             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2095             # AIX install.  It has an incompatible calling convention.
2096             :
2097           elif test $ac_prog = install &&
2098             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2099             # program-specific install script used by HP pwplus--don't use.
2100             :
2101           else
2102             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2103             break 3
2104           fi
2105         fi
2106       done
2107     done
2108     ;;
2109 esac
2110 done
2111 IFS=$as_save_IFS
2115   if test "${ac_cv_path_install+set}" = set; then
2116     INSTALL=$ac_cv_path_install
2117   else
2118     # As a last resort, use the slow shell script.  Don't cache a
2119     # value for INSTALL within a source directory, because that will
2120     # break other packages using the cache if that directory is
2121     # removed, or if the value is a relative name.
2122     INSTALL=$ac_install_sh
2123   fi
2125 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2126 echo "${ECHO_T}$INSTALL" >&6; }
2128 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2129 # It thinks the first close brace ends the variable substitution.
2130 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2132 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2134 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2136 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2137 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2138 # Just in case
2139 sleep 1
2140 echo timestamp > conftest.file
2141 # Do `set' in a subshell so we don't clobber the current shell's
2142 # arguments.  Must try -L first in case configure is actually a
2143 # symlink; some systems play weird games with the mod time of symlinks
2144 # (eg FreeBSD returns the mod time of the symlink's containing
2145 # directory).
2146 if (
2147    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2148    if test "$*" = "X"; then
2149       # -L didn't work.
2150       set X `ls -t $srcdir/configure conftest.file`
2151    fi
2152    rm -f conftest.file
2153    if test "$*" != "X $srcdir/configure conftest.file" \
2154       && test "$*" != "X conftest.file $srcdir/configure"; then
2156       # If neither matched, then we have a broken ls.  This can happen
2157       # if, for instance, CONFIG_SHELL is bash and it inherits a
2158       # broken ls alias from the environment.  This has actually
2159       # happened.  Such a system could not be considered "sane".
2160       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2161 alias in your environment" >&5
2162 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2163 alias in your environment" >&2;}
2164    { (exit 1); exit 1; }; }
2165    fi
2167    test "$2" = conftest.file
2168    )
2169 then
2170    # Ok.
2171    :
2172 else
2173    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2174 Check your system clock" >&5
2175 echo "$as_me: error: newly created file is older than distributed files!
2176 Check your system clock" >&2;}
2177    { (exit 1); exit 1; }; }
2179 { echo "$as_me:$LINENO: result: yes" >&5
2180 echo "${ECHO_T}yes" >&6; }
2181 test "$program_prefix" != NONE &&
2182   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2183 # Use a double $ so make ignores it.
2184 test "$program_suffix" != NONE &&
2185   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2186 # Double any \ or $.  echo might interpret backslashes.
2187 # By default was `s,x,x', remove it if useless.
2188 cat <<\_ACEOF >conftest.sed
2189 s/[\\$]/&&/g;s/;s,x,x,$//
2190 _ACEOF
2191 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2192 rm -f conftest.sed
2194 # expand $ac_aux_dir to an absolute path
2195 am_aux_dir=`cd $ac_aux_dir && pwd`
2197 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2198 # Use eval to expand $SHELL
2199 if eval "$MISSING --run true"; then
2200   am_missing_run="$MISSING --run "
2201 else
2202   am_missing_run=
2203   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2204 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2207 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2208 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2209 if test -z "$MKDIR_P"; then
2210   if test "${ac_cv_path_mkdir+set}" = set; then
2211   echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2216   IFS=$as_save_IFS
2217   test -z "$as_dir" && as_dir=.
2218   for ac_prog in mkdir gmkdir; do
2219          for ac_exec_ext in '' $ac_executable_extensions; do
2220            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2221            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2222              'mkdir (GNU coreutils) '* | \
2223              'mkdir (coreutils) '* | \
2224              'mkdir (fileutils) '4.1*)
2225                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2226                break 3;;
2227            esac
2228          done
2229        done
2230 done
2231 IFS=$as_save_IFS
2235   if test "${ac_cv_path_mkdir+set}" = set; then
2236     MKDIR_P="$ac_cv_path_mkdir -p"
2237   else
2238     # As a last resort, use the slow shell script.  Don't cache a
2239     # value for MKDIR_P within a source directory, because that will
2240     # break other packages using the cache if that directory is
2241     # removed, or if the value is a relative name.
2242     test -d ./--version && rmdir ./--version
2243     MKDIR_P="$ac_install_sh -d"
2244   fi
2246 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2247 echo "${ECHO_T}$MKDIR_P" >&6; }
2249 mkdir_p="$MKDIR_P"
2250 case $mkdir_p in
2251   [\\/$]* | ?:[\\/]*) ;;
2252   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2253 esac
2255 for ac_prog in gawk mawk nawk awk
2257   # Extract the first word of "$ac_prog", so it can be a program name with args.
2258 set dummy $ac_prog; ac_word=$2
2259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2261 if test "${ac_cv_prog_AWK+set}" = set; then
2262   echo $ECHO_N "(cached) $ECHO_C" >&6
2263 else
2264   if test -n "$AWK"; then
2265   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2266 else
2267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 for as_dir in $PATH
2270   IFS=$as_save_IFS
2271   test -z "$as_dir" && as_dir=.
2272   for ac_exec_ext in '' $ac_executable_extensions; do
2273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2274     ac_cv_prog_AWK="$ac_prog"
2275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2276     break 2
2277   fi
2278 done
2279 done
2280 IFS=$as_save_IFS
2284 AWK=$ac_cv_prog_AWK
2285 if test -n "$AWK"; then
2286   { echo "$as_me:$LINENO: result: $AWK" >&5
2287 echo "${ECHO_T}$AWK" >&6; }
2288 else
2289   { echo "$as_me:$LINENO: result: no" >&5
2290 echo "${ECHO_T}no" >&6; }
2294   test -n "$AWK" && break
2295 done
2297 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2298 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2299 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2300 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2301   echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303   cat >conftest.make <<\_ACEOF
2304 SHELL = /bin/sh
2305 all:
2306         @echo '@@@%%%=$(MAKE)=@@@%%%'
2307 _ACEOF
2308 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2309 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2310   *@@@%%%=?*=@@@%%%*)
2311     eval ac_cv_prog_make_${ac_make}_set=yes;;
2312   *)
2313     eval ac_cv_prog_make_${ac_make}_set=no;;
2314 esac
2315 rm -f conftest.make
2317 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2318   { echo "$as_me:$LINENO: result: yes" >&5
2319 echo "${ECHO_T}yes" >&6; }
2320   SET_MAKE=
2321 else
2322   { echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6; }
2324   SET_MAKE="MAKE=${MAKE-make}"
2327 rm -rf .tst 2>/dev/null
2328 mkdir .tst 2>/dev/null
2329 if test -d .tst; then
2330   am__leading_dot=.
2331 else
2332   am__leading_dot=_
2334 rmdir .tst 2>/dev/null
2336 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2337   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2338   # is not polluted with repeated "-I."
2339   am__isrc=' -I$(srcdir)'
2340   # test to see if srcdir already configured
2341   if test -f $srcdir/config.status; then
2342     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2343 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2344    { (exit 1); exit 1; }; }
2345   fi
2348 # test whether we have cygpath
2349 if test -z "$CYGPATH_W"; then
2350   if (cygpath --version) >/dev/null 2>/dev/null; then
2351     CYGPATH_W='cygpath -w'
2352   else
2353     CYGPATH_W=echo
2354   fi
2358 # Define the identity of the package.
2359  PACKAGE=$PACKAGE
2360  VERSION=$VERSION
2363 cat >>confdefs.h <<_ACEOF
2364 @%:@define PACKAGE "$PACKAGE"
2365 _ACEOF
2368 cat >>confdefs.h <<_ACEOF
2369 @%:@define VERSION "$VERSION"
2370 _ACEOF
2372 # Some tools Automake needs.
2374 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2377 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2380 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2383 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2386 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2388 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2390 # Installed binaries are usually stripped using `strip' when the user
2391 # run `make install-strip'.  However `strip' might not be the right
2392 # tool to use in cross-compilation environments, therefore Automake
2393 # will honor the `STRIP' environment variable to overrule this program.
2394 if test "$cross_compiling" != no; then
2395   if test -n "$ac_tool_prefix"; then
2396   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2397 set dummy ${ac_tool_prefix}strip; ac_word=$2
2398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2400 if test "${ac_cv_prog_STRIP+set}" = set; then
2401   echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2403   if test -n "$STRIP"; then
2404   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2405 else
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2409   IFS=$as_save_IFS
2410   test -z "$as_dir" && as_dir=.
2411   for ac_exec_ext in '' $ac_executable_extensions; do
2412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2413     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415     break 2
2416   fi
2417 done
2418 done
2419 IFS=$as_save_IFS
2423 STRIP=$ac_cv_prog_STRIP
2424 if test -n "$STRIP"; then
2425   { echo "$as_me:$LINENO: result: $STRIP" >&5
2426 echo "${ECHO_T}$STRIP" >&6; }
2427 else
2428   { echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6; }
2434 if test -z "$ac_cv_prog_STRIP"; then
2435   ac_ct_STRIP=$STRIP
2436   # Extract the first word of "strip", so it can be a program name with args.
2437 set dummy strip; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2441   echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443   if test -n "$ac_ct_STRIP"; then
2444   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2445 else
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2449   IFS=$as_save_IFS
2450   test -z "$as_dir" && as_dir=.
2451   for ac_exec_ext in '' $ac_executable_extensions; do
2452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2453     ac_cv_prog_ac_ct_STRIP="strip"
2454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455     break 2
2456   fi
2457 done
2458 done
2459 IFS=$as_save_IFS
2463 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2464 if test -n "$ac_ct_STRIP"; then
2465   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2466 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2467 else
2468   { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2472   if test "x$ac_ct_STRIP" = x; then
2473     STRIP=":"
2474   else
2475     case $cross_compiling:$ac_tool_warned in
2476 yes:)
2477 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2478 whose name does not start with the host triplet.  If you think this
2479 configuration is useful to you, please write to autoconf@gnu.org." >&5
2480 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2481 whose name does not start with the host triplet.  If you think this
2482 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2483 ac_tool_warned=yes ;;
2484 esac
2485     STRIP=$ac_ct_STRIP
2486   fi
2487 else
2488   STRIP="$ac_cv_prog_STRIP"
2492 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2494 # We need awk for the "check" target.  The system "awk" is bad on
2495 # some platforms.
2496 # Always define AMTAR for backward compatibility.
2498 AMTAR=${AMTAR-"${am_missing_run}tar"}
2500 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2507 ac_config_headers="$ac_config_headers config.h"
2510 ACLOCAL_AMFLAGS="-I m4"
2513 ac_ext=c
2514 ac_cpp='$CPP $CPPFLAGS'
2515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2518 if test -n "$ac_tool_prefix"; then
2519   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2520 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2523 if test "${ac_cv_prog_CC+set}" = set; then
2524   echo $ECHO_N "(cached) $ECHO_C" >&6
2525 else
2526   if test -n "$CC"; then
2527   ac_cv_prog_CC="$CC" # Let the user override the test.
2528 else
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH
2532   IFS=$as_save_IFS
2533   test -z "$as_dir" && as_dir=.
2534   for ac_exec_ext in '' $ac_executable_extensions; do
2535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2536     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538     break 2
2539   fi
2540 done
2541 done
2542 IFS=$as_save_IFS
2546 CC=$ac_cv_prog_CC
2547 if test -n "$CC"; then
2548   { echo "$as_me:$LINENO: result: $CC" >&5
2549 echo "${ECHO_T}$CC" >&6; }
2550 else
2551   { echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6; }
2557 if test -z "$ac_cv_prog_CC"; then
2558   ac_ct_CC=$CC
2559   # Extract the first word of "gcc", so it can be a program name with args.
2560 set dummy gcc; ac_word=$2
2561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2563 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2564   echo $ECHO_N "(cached) $ECHO_C" >&6
2565 else
2566   if test -n "$ac_ct_CC"; then
2567   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2568 else
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 for as_dir in $PATH
2572   IFS=$as_save_IFS
2573   test -z "$as_dir" && as_dir=.
2574   for ac_exec_ext in '' $ac_executable_extensions; do
2575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2576     ac_cv_prog_ac_ct_CC="gcc"
2577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578     break 2
2579   fi
2580 done
2581 done
2582 IFS=$as_save_IFS
2586 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2587 if test -n "$ac_ct_CC"; then
2588   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2589 echo "${ECHO_T}$ac_ct_CC" >&6; }
2590 else
2591   { echo "$as_me:$LINENO: result: no" >&5
2592 echo "${ECHO_T}no" >&6; }
2595   if test "x$ac_ct_CC" = x; then
2596     CC=""
2597   else
2598     case $cross_compiling:$ac_tool_warned in
2599 yes:)
2600 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2601 whose name does not start with the host triplet.  If you think this
2602 configuration is useful to you, please write to autoconf@gnu.org." >&5
2603 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2604 whose name does not start with the host triplet.  If you think this
2605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2606 ac_tool_warned=yes ;;
2607 esac
2608     CC=$ac_ct_CC
2609   fi
2610 else
2611   CC="$ac_cv_prog_CC"
2614 if test -z "$CC"; then
2615           if test -n "$ac_tool_prefix"; then
2616     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2617 set dummy ${ac_tool_prefix}cc; ac_word=$2
2618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2620 if test "${ac_cv_prog_CC+set}" = set; then
2621   echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623   if test -n "$CC"; then
2624   ac_cv_prog_CC="$CC" # Let the user override the test.
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2629   IFS=$as_save_IFS
2630   test -z "$as_dir" && as_dir=.
2631   for ac_exec_ext in '' $ac_executable_extensions; do
2632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633     ac_cv_prog_CC="${ac_tool_prefix}cc"
2634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635     break 2
2636   fi
2637 done
2638 done
2639 IFS=$as_save_IFS
2643 CC=$ac_cv_prog_CC
2644 if test -n "$CC"; then
2645   { echo "$as_me:$LINENO: result: $CC" >&5
2646 echo "${ECHO_T}$CC" >&6; }
2647 else
2648   { echo "$as_me:$LINENO: result: no" >&5
2649 echo "${ECHO_T}no" >&6; }
2653   fi
2655 if test -z "$CC"; then
2656   # Extract the first word of "cc", so it can be a program name with args.
2657 set dummy cc; ac_word=$2
2658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2660 if test "${ac_cv_prog_CC+set}" = set; then
2661   echo $ECHO_N "(cached) $ECHO_C" >&6
2662 else
2663   if test -n "$CC"; then
2664   ac_cv_prog_CC="$CC" # Let the user override the test.
2665 else
2666   ac_prog_rejected=no
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2670   IFS=$as_save_IFS
2671   test -z "$as_dir" && as_dir=.
2672   for ac_exec_ext in '' $ac_executable_extensions; do
2673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2674     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2675        ac_prog_rejected=yes
2676        continue
2677      fi
2678     ac_cv_prog_CC="cc"
2679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2680     break 2
2681   fi
2682 done
2683 done
2684 IFS=$as_save_IFS
2686 if test $ac_prog_rejected = yes; then
2687   # We found a bogon in the path, so make sure we never use it.
2688   set dummy $ac_cv_prog_CC
2689   shift
2690   if test $@%:@ != 0; then
2691     # We chose a different compiler from the bogus one.
2692     # However, it has the same basename, so the bogon will be chosen
2693     # first if we set CC to just the basename; use the full file name.
2694     shift
2695     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2696   fi
2700 CC=$ac_cv_prog_CC
2701 if test -n "$CC"; then
2702   { echo "$as_me:$LINENO: result: $CC" >&5
2703 echo "${ECHO_T}$CC" >&6; }
2704 else
2705   { echo "$as_me:$LINENO: result: no" >&5
2706 echo "${ECHO_T}no" >&6; }
2711 if test -z "$CC"; then
2712   if test -n "$ac_tool_prefix"; then
2713   for ac_prog in cl.exe
2714   do
2715     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2716 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2719 if test "${ac_cv_prog_CC+set}" = set; then
2720   echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722   if test -n "$CC"; then
2723   ac_cv_prog_CC="$CC" # Let the user override the test.
2724 else
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2728   IFS=$as_save_IFS
2729   test -z "$as_dir" && as_dir=.
2730   for ac_exec_ext in '' $ac_executable_extensions; do
2731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2734     break 2
2735   fi
2736 done
2737 done
2738 IFS=$as_save_IFS
2742 CC=$ac_cv_prog_CC
2743 if test -n "$CC"; then
2744   { echo "$as_me:$LINENO: result: $CC" >&5
2745 echo "${ECHO_T}$CC" >&6; }
2746 else
2747   { echo "$as_me:$LINENO: result: no" >&5
2748 echo "${ECHO_T}no" >&6; }
2752     test -n "$CC" && break
2753   done
2755 if test -z "$CC"; then
2756   ac_ct_CC=$CC
2757   for ac_prog in cl.exe
2759   # Extract the first word of "$ac_prog", so it can be a program name with args.
2760 set dummy $ac_prog; ac_word=$2
2761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2763 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2764   echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766   if test -n "$ac_ct_CC"; then
2767   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2768 else
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2772   IFS=$as_save_IFS
2773   test -z "$as_dir" && as_dir=.
2774   for ac_exec_ext in '' $ac_executable_extensions; do
2775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776     ac_cv_prog_ac_ct_CC="$ac_prog"
2777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778     break 2
2779   fi
2780 done
2781 done
2782 IFS=$as_save_IFS
2786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2787 if test -n "$ac_ct_CC"; then
2788   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2789 echo "${ECHO_T}$ac_ct_CC" >&6; }
2790 else
2791   { echo "$as_me:$LINENO: result: no" >&5
2792 echo "${ECHO_T}no" >&6; }
2796   test -n "$ac_ct_CC" && break
2797 done
2799   if test "x$ac_ct_CC" = x; then
2800     CC=""
2801   else
2802     case $cross_compiling:$ac_tool_warned in
2803 yes:)
2804 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2805 whose name does not start with the host triplet.  If you think this
2806 configuration is useful to you, please write to autoconf@gnu.org." >&5
2807 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2808 whose name does not start with the host triplet.  If you think this
2809 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2810 ac_tool_warned=yes ;;
2811 esac
2812     CC=$ac_ct_CC
2813   fi
2819 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2820 See \`config.log' for more details." >&5
2821 echo "$as_me: error: no acceptable C compiler found in \$PATH
2822 See \`config.log' for more details." >&2;}
2823    { (exit 1); exit 1; }; }
2825 # Provide some information about the compiler.
2826 echo "$as_me:$LINENO: checking for C compiler version" >&5
2827 ac_compiler=`set X $ac_compile; echo $2`
2828 { (ac_try="$ac_compiler --version >&5"
2829 case "(($ac_try" in
2830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831   *) ac_try_echo=$ac_try;;
2832 esac
2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834   (eval "$ac_compiler --version >&5") 2>&5
2835   ac_status=$?
2836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837   (exit $ac_status); }
2838 { (ac_try="$ac_compiler -v >&5"
2839 case "(($ac_try" in
2840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841   *) ac_try_echo=$ac_try;;
2842 esac
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844   (eval "$ac_compiler -v >&5") 2>&5
2845   ac_status=$?
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); }
2848 { (ac_try="$ac_compiler -V >&5"
2849 case "(($ac_try" in
2850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851   *) ac_try_echo=$ac_try;;
2852 esac
2853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854   (eval "$ac_compiler -V >&5") 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); }
2859 cat >conftest.$ac_ext <<_ACEOF
2860 /* confdefs.h.  */
2861 _ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h.  */
2867 main ()
2870   ;
2871   return 0;
2873 _ACEOF
2874 ac_clean_files_save=$ac_clean_files
2875 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2876 # Try to create an executable without -o first, disregard a.out.
2877 # It will help us diagnose broken compilers, and finding out an intuition
2878 # of exeext.
2879 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2880 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2881 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2883 # List of possible output files, starting from the most likely.
2884 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2885 # only as a last resort.  b.out is created by i960 compilers.
2886 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2888 # The IRIX 6 linker writes into existing files which may not be
2889 # executable, retaining their permissions.  Remove them first so a
2890 # subsequent execution test works.
2891 ac_rmfiles=
2892 for ac_file in $ac_files
2894   case $ac_file in
2895     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2896     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2897   esac
2898 done
2899 rm -f $ac_rmfiles
2901 if { (ac_try="$ac_link_default"
2902 case "(($ac_try" in
2903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904   *) ac_try_echo=$ac_try;;
2905 esac
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907   (eval "$ac_link_default") 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); }; then
2911   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2912 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2913 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2914 # so that the user can short-circuit this test for compilers unknown to
2915 # Autoconf.
2916 for ac_file in $ac_files ''
2918   test -f "$ac_file" || continue
2919   case $ac_file in
2920     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2921         ;;
2922     [ab].out )
2923         # We found the default executable, but exeext='' is most
2924         # certainly right.
2925         break;;
2926     *.* )
2927         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2928         then :; else
2929            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2930         fi
2931         # We set ac_cv_exeext here because the later test for it is not
2932         # safe: cross compilers may not add the suffix if given an `-o'
2933         # argument, so we may need to know it at that point already.
2934         # Even if this section looks crufty: it has the advantage of
2935         # actually working.
2936         break;;
2937     * )
2938         break;;
2939   esac
2940 done
2941 test "$ac_cv_exeext" = no && ac_cv_exeext=
2943 else
2944   ac_file=''
2947 { echo "$as_me:$LINENO: result: $ac_file" >&5
2948 echo "${ECHO_T}$ac_file" >&6; }
2949 if test -z "$ac_file"; then
2950   echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2953 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2954 See \`config.log' for more details." >&5
2955 echo "$as_me: error: C compiler cannot create executables
2956 See \`config.log' for more details." >&2;}
2957    { (exit 77); exit 77; }; }
2960 ac_exeext=$ac_cv_exeext
2962 # Check that the compiler produces executables we can run.  If not, either
2963 # the compiler is broken, or we cross compile.
2964 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2965 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2966 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2967 # If not cross compiling, check that we can run a simple program.
2968 if test "$cross_compiling" != yes; then
2969   if { ac_try='./$ac_file'
2970   { (case "(($ac_try" in
2971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972   *) ac_try_echo=$ac_try;;
2973 esac
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975   (eval "$ac_try") 2>&5
2976   ac_status=$?
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); }; }; then
2979     cross_compiling=no
2980   else
2981     if test "$cross_compiling" = maybe; then
2982         cross_compiling=yes
2983     else
2984         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2985 If you meant to cross compile, use \`--host'.
2986 See \`config.log' for more details." >&5
2987 echo "$as_me: error: cannot run C compiled programs.
2988 If you meant to cross compile, use \`--host'.
2989 See \`config.log' for more details." >&2;}
2990    { (exit 1); exit 1; }; }
2991     fi
2992   fi
2994 { echo "$as_me:$LINENO: result: yes" >&5
2995 echo "${ECHO_T}yes" >&6; }
2997 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2998 ac_clean_files=$ac_clean_files_save
2999 # Check that the compiler produces executables we can run.  If not, either
3000 # the compiler is broken, or we cross compile.
3001 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3002 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3003 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3004 echo "${ECHO_T}$cross_compiling" >&6; }
3006 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3007 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3008 if { (ac_try="$ac_link"
3009 case "(($ac_try" in
3010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011   *) ac_try_echo=$ac_try;;
3012 esac
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014   (eval "$ac_link") 2>&5
3015   ac_status=$?
3016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017   (exit $ac_status); }; then
3018   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3019 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3020 # work properly (i.e., refer to `conftest.exe'), while it won't with
3021 # `rm'.
3022 for ac_file in conftest.exe conftest conftest.*; do
3023   test -f "$ac_file" || continue
3024   case $ac_file in
3025     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3026     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3027           break;;
3028     * ) break;;
3029   esac
3030 done
3031 else
3032   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3033 See \`config.log' for more details." >&5
3034 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3035 See \`config.log' for more details." >&2;}
3036    { (exit 1); exit 1; }; }
3039 rm -f conftest$ac_cv_exeext
3040 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3041 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3043 rm -f conftest.$ac_ext
3044 EXEEXT=$ac_cv_exeext
3045 ac_exeext=$EXEEXT
3046 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3047 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3048 if test "${ac_cv_objext+set}" = set; then
3049   echo $ECHO_N "(cached) $ECHO_C" >&6
3050 else
3051   cat >conftest.$ac_ext <<_ACEOF
3052 /* confdefs.h.  */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h.  */
3059 main ()
3062   ;
3063   return 0;
3065 _ACEOF
3066 rm -f conftest.o conftest.obj
3067 if { (ac_try="$ac_compile"
3068 case "(($ac_try" in
3069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070   *) ac_try_echo=$ac_try;;
3071 esac
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073   (eval "$ac_compile") 2>&5
3074   ac_status=$?
3075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076   (exit $ac_status); }; then
3077   for ac_file in conftest.o conftest.obj conftest.*; do
3078   test -f "$ac_file" || continue;
3079   case $ac_file in
3080     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3081     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3082        break;;
3083   esac
3084 done
3085 else
3086   echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3089 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3090 See \`config.log' for more details." >&5
3091 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3092 See \`config.log' for more details." >&2;}
3093    { (exit 1); exit 1; }; }
3096 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3098 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3099 echo "${ECHO_T}$ac_cv_objext" >&6; }
3100 OBJEXT=$ac_cv_objext
3101 ac_objext=$OBJEXT
3102 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3103 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3104 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3105   echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107   cat >conftest.$ac_ext <<_ACEOF
3108 /* confdefs.h.  */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h.  */
3115 main ()
3117 #ifndef __GNUC__
3118        choke me
3119 #endif
3121   ;
3122   return 0;
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3127 case "(($ac_try" in
3128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129   *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132   (eval "$ac_compile") 2>conftest.er1
3133   ac_status=$?
3134   grep -v '^ *+' conftest.er1 >conftest.err
3135   rm -f conftest.er1
3136   cat conftest.err >&5
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); } && {
3139          test -z "$ac_c_werror_flag" ||
3140          test ! -s conftest.err
3141        } && test -s conftest.$ac_objext; then
3142   ac_compiler_gnu=yes
3143 else
3144   echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3147         ac_compiler_gnu=no
3150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3151 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3154 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3155 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3156 GCC=`test $ac_compiler_gnu = yes && echo yes`
3157 ac_test_CFLAGS=${CFLAGS+set}
3158 ac_save_CFLAGS=$CFLAGS
3159 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3160 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3161 if test "${ac_cv_prog_cc_g+set}" = set; then
3162   echo $ECHO_N "(cached) $ECHO_C" >&6
3163 else
3164   ac_save_c_werror_flag=$ac_c_werror_flag
3165    ac_c_werror_flag=yes
3166    ac_cv_prog_cc_g=no
3167    CFLAGS="-g"
3168    cat >conftest.$ac_ext <<_ACEOF
3169 /* confdefs.h.  */
3170 _ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h.  */
3176 main ()
3179   ;
3180   return 0;
3182 _ACEOF
3183 rm -f conftest.$ac_objext
3184 if { (ac_try="$ac_compile"
3185 case "(($ac_try" in
3186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187   *) ac_try_echo=$ac_try;;
3188 esac
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190   (eval "$ac_compile") 2>conftest.er1
3191   ac_status=$?
3192   grep -v '^ *+' conftest.er1 >conftest.err
3193   rm -f conftest.er1
3194   cat conftest.err >&5
3195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196   (exit $ac_status); } && {
3197          test -z "$ac_c_werror_flag" ||
3198          test ! -s conftest.err
3199        } && test -s conftest.$ac_objext; then
3200   ac_cv_prog_cc_g=yes
3201 else
3202   echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3205         CFLAGS=""
3206       cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h.  */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h.  */
3214 main ()
3217   ;
3218   return 0;
3220 _ACEOF
3221 rm -f conftest.$ac_objext
3222 if { (ac_try="$ac_compile"
3223 case "(($ac_try" in
3224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225   *) ac_try_echo=$ac_try;;
3226 esac
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228   (eval "$ac_compile") 2>conftest.er1
3229   ac_status=$?
3230   grep -v '^ *+' conftest.er1 >conftest.err
3231   rm -f conftest.er1
3232   cat conftest.err >&5
3233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234   (exit $ac_status); } && {
3235          test -z "$ac_c_werror_flag" ||
3236          test ! -s conftest.err
3237        } && test -s conftest.$ac_objext; then
3238   :
3239 else
3240   echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3243         ac_c_werror_flag=$ac_save_c_werror_flag
3244          CFLAGS="-g"
3245          cat >conftest.$ac_ext <<_ACEOF
3246 /* confdefs.h.  */
3247 _ACEOF
3248 cat confdefs.h >>conftest.$ac_ext
3249 cat >>conftest.$ac_ext <<_ACEOF
3250 /* end confdefs.h.  */
3253 main ()
3256   ;
3257   return 0;
3259 _ACEOF
3260 rm -f conftest.$ac_objext
3261 if { (ac_try="$ac_compile"
3262 case "(($ac_try" in
3263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264   *) ac_try_echo=$ac_try;;
3265 esac
3266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3267   (eval "$ac_compile") 2>conftest.er1
3268   ac_status=$?
3269   grep -v '^ *+' conftest.er1 >conftest.err
3270   rm -f conftest.er1
3271   cat conftest.err >&5
3272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273   (exit $ac_status); } && {
3274          test -z "$ac_c_werror_flag" ||
3275          test ! -s conftest.err
3276        } && test -s conftest.$ac_objext; then
3277   ac_cv_prog_cc_g=yes
3278 else
3279   echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3282         
3285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292    ac_c_werror_flag=$ac_save_c_werror_flag
3294 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3295 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3296 if test "$ac_test_CFLAGS" = set; then
3297   CFLAGS=$ac_save_CFLAGS
3298 elif test $ac_cv_prog_cc_g = yes; then
3299   if test "$GCC" = yes; then
3300     CFLAGS="-g -O2"
3301   else
3302     CFLAGS="-g"
3303   fi
3304 else
3305   if test "$GCC" = yes; then
3306     CFLAGS="-O2"
3307   else
3308     CFLAGS=
3309   fi
3311 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3312 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3313 if test "${ac_cv_prog_cc_c89+set}" = set; then
3314   echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316   ac_cv_prog_cc_c89=no
3317 ac_save_CC=$CC
3318 cat >conftest.$ac_ext <<_ACEOF
3319 /* confdefs.h.  */
3320 _ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h.  */
3324 #include <stdarg.h>
3325 #include <stdio.h>
3326 #include <sys/types.h>
3327 #include <sys/stat.h>
3328 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3329 struct buf { int x; };
3330 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3331 static char *e (p, i)
3332      char **p;
3333      int i;
3335   return p[i];
3337 static char *f (char * (*g) (char **, int), char **p, ...)
3339   char *s;
3340   va_list v;
3341   va_start (v,p);
3342   s = g (p, va_arg (v,int));
3343   va_end (v);
3344   return s;
3347 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3348    function prototypes and stuff, but not '\xHH' hex character constants.
3349    These don't provoke an error unfortunately, instead are silently treated
3350    as 'x'.  The following induces an error, until -std is added to get
3351    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3352    array size at least.  It's necessary to write '\x00'==0 to get something
3353    that's true only with -std.  */
3354 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3356 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3357    inside strings and character constants.  */
3358 #define FOO(x) 'x'
3359 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3361 int test (int i, double x);
3362 struct s1 {int (*f) (int a);};
3363 struct s2 {int (*f) (double a);};
3364 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3365 int argc;
3366 char **argv;
3368 main ()
3370 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3371   ;
3372   return 0;
3374 _ACEOF
3375 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3376         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3378   CC="$ac_save_CC $ac_arg"
3379   rm -f conftest.$ac_objext
3380 if { (ac_try="$ac_compile"
3381 case "(($ac_try" in
3382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383   *) ac_try_echo=$ac_try;;
3384 esac
3385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386   (eval "$ac_compile") 2>conftest.er1
3387   ac_status=$?
3388   grep -v '^ *+' conftest.er1 >conftest.err
3389   rm -f conftest.er1
3390   cat conftest.err >&5
3391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392   (exit $ac_status); } && {
3393          test -z "$ac_c_werror_flag" ||
3394          test ! -s conftest.err
3395        } && test -s conftest.$ac_objext; then
3396   ac_cv_prog_cc_c89=$ac_arg
3397 else
3398   echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3401         
3404 rm -f core conftest.err conftest.$ac_objext 
3405   test "x$ac_cv_prog_cc_c89" != "xno" && break
3406 done
3407 rm -f conftest.$ac_ext
3408 CC=$ac_save_CC
3411 # AC_CACHE_VAL
3412 case "x$ac_cv_prog_cc_c89" in
3413   x)
3414     { echo "$as_me:$LINENO: result: none needed" >&5
3415 echo "${ECHO_T}none needed" >&6; } ;;
3416   xno)
3417     { echo "$as_me:$LINENO: result: unsupported" >&5
3418 echo "${ECHO_T}unsupported" >&6; } ;;
3419   *)
3420     CC="$CC $ac_cv_prog_cc_c89"
3421     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3422 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3423 esac
3426 ac_ext=c
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 DEPDIR="${am__leading_dot}deps"
3433 ac_config_commands="$ac_config_commands depfiles"
3436 am_make=${MAKE-make}
3437 cat > confinc << 'END'
3438 am__doit:
3439         @echo done
3440 .PHONY: am__doit
3442 # If we don't find an include directive, just comment out the code.
3443 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3444 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3445 am__include="#"
3446 am__quote=
3447 _am_result=none
3448 # First try GNU make style include.
3449 echo "include confinc" > confmf
3450 # We grep out `Entering directory' and `Leaving directory'
3451 # messages which can occur if `w' ends up in MAKEFLAGS.
3452 # In particular we don't look at `^make:' because GNU make might
3453 # be invoked under some other name (usually "gmake"), in which
3454 # case it prints its new name instead of `make'.
3455 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3456    am__include=include
3457    am__quote=
3458    _am_result=GNU
3460 # Now try BSD make style include.
3461 if test "$am__include" = "#"; then
3462    echo '.include "confinc"' > confmf
3463    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3464       am__include=.include
3465       am__quote="\""
3466       _am_result=BSD
3467    fi
3471 { echo "$as_me:$LINENO: result: $_am_result" >&5
3472 echo "${ECHO_T}$_am_result" >&6; }
3473 rm -f confinc confmf
3475 # Check whether --enable-dependency-tracking was given.
3476 if test "${enable_dependency_tracking+set}" = set; then
3477   enableval=$enable_dependency_tracking; 
3480 if test "x$enable_dependency_tracking" != xno; then
3481   am_depcomp="$ac_aux_dir/depcomp"
3482   AMDEPBACKSLASH='\'
3484  if test "x$enable_dependency_tracking" != xno; then
3485   AMDEP_TRUE=
3486   AMDEP_FALSE='#'
3487 else
3488   AMDEP_TRUE='#'
3489   AMDEP_FALSE=
3494 depcc="$CC"   am_compiler_list=
3496 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3497 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3498 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3499   echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3502   # We make a subdir and do the tests there.  Otherwise we can end up
3503   # making bogus files that we don't know about and never remove.  For
3504   # instance it was reported that on HP-UX the gcc test will end up
3505   # making a dummy file named `D' -- because `-MD' means `put the output
3506   # in D'.
3507   mkdir conftest.dir
3508   # Copy depcomp to subdir because otherwise we won't find it if we're
3509   # using a relative directory.
3510   cp "$am_depcomp" conftest.dir
3511   cd conftest.dir
3512   # We will build objects and dependencies in a subdirectory because
3513   # it helps to detect inapplicable dependency modes.  For instance
3514   # both Tru64's cc and ICC support -MD to output dependencies as a
3515   # side effect of compilation, but ICC will put the dependencies in
3516   # the current directory while Tru64 will put them in the object
3517   # directory.
3518   mkdir sub
3520   am_cv_CC_dependencies_compiler_type=none
3521   if test "$am_compiler_list" = ""; then
3522      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3523   fi
3524   for depmode in $am_compiler_list; do
3525     # Setup a source with many dependencies, because some compilers
3526     # like to wrap large dependency lists on column 80 (with \), and
3527     # we should not choose a depcomp mode which is confused by this.
3528     #
3529     # We need to recreate these files for each test, as the compiler may
3530     # overwrite some of them when testing with obscure command lines.
3531     # This happens at least with the AIX C compiler.
3532     : > sub/conftest.c
3533     for i in 1 2 3 4 5 6; do
3534       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3535       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3536       # Solaris 8's {/usr,}/bin/sh.
3537       touch sub/conftst$i.h
3538     done
3539     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3541     case $depmode in
3542     nosideeffect)
3543       # after this tag, mechanisms are not by side-effect, so they'll
3544       # only be used when explicitly requested
3545       if test "x$enable_dependency_tracking" = xyes; then
3546         continue
3547       else
3548         break
3549       fi
3550       ;;
3551     none) break ;;
3552     esac
3553     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3554     # mode.  It turns out that the SunPro C++ compiler does not properly
3555     # handle `-M -o', and we need to detect this.
3556     if depmode=$depmode \
3557        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3558        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3559        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3560          >/dev/null 2>conftest.err &&
3561        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3562        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3563        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3564        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3565       # icc doesn't choke on unknown options, it will just issue warnings
3566       # or remarks (even with -Werror).  So we grep stderr for any message
3567       # that says an option was ignored or not supported.
3568       # When given -MP, icc 7.0 and 7.1 complain thusly:
3569       #   icc: Command line warning: ignoring option '-M'; no argument required
3570       # The diagnosis changed in icc 8.0:
3571       #   icc: Command line remark: option '-MP' not supported
3572       if (grep 'ignoring option' conftest.err ||
3573           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3574         am_cv_CC_dependencies_compiler_type=$depmode
3575         break
3576       fi
3577     fi
3578   done
3580   cd ..
3581   rm -rf conftest.dir
3582 else
3583   am_cv_CC_dependencies_compiler_type=none
3587 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3588 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3589 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3591  if 
3592   test "x$enable_dependency_tracking" != xno \
3593   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3594   am__fastdepCC_TRUE=
3595   am__fastdepCC_FALSE='#'
3596 else
3597   am__fastdepCC_TRUE='#'
3598   am__fastdepCC_FALSE=
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-static was given.
3627 if test "${enable_static+set}" = set; then
3628   enableval=$enable_static; p=${PACKAGE-default}
3629     case $enableval in
3630     yes) enable_static=yes ;;
3631     no) enable_static=no ;;
3632     *)
3633      enable_static=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_static=yes
3640         fi
3641       done
3642       IFS="$lt_save_ifs"
3643       ;;
3644     esac
3645 else
3646   enable_static=yes
3650 # Check whether --enable-fast-install was given.
3651 if test "${enable_fast_install+set}" = set; then
3652   enableval=$enable_fast_install; p=${PACKAGE-default}
3653     case $enableval in
3654     yes) enable_fast_install=yes ;;
3655     no) enable_fast_install=no ;;
3656     *)
3657       enable_fast_install=no
3658       # Look at the argument we got.  We use all the common list separators.
3659       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3660       for pkg in $enableval; do
3661         IFS="$lt_save_ifs"
3662         if test "X$pkg" = "X$p"; then
3663           enable_fast_install=yes
3664         fi
3665       done
3666       IFS="$lt_save_ifs"
3667       ;;
3668     esac
3669 else
3670   enable_fast_install=yes
3674 # Make sure we can run config.sub.
3675 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3676   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3677 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3678    { (exit 1); exit 1; }; }
3680 { echo "$as_me:$LINENO: checking build system type" >&5
3681 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3682 if test "${ac_cv_build+set}" = set; then
3683   echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685   ac_build_alias=$build_alias
3686 test "x$ac_build_alias" = x &&
3687   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3688 test "x$ac_build_alias" = x &&
3689   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3690 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3691    { (exit 1); exit 1; }; }
3692 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3693   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3694 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3695    { (exit 1); exit 1; }; }
3698 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3699 echo "${ECHO_T}$ac_cv_build" >&6; }
3700 case $ac_cv_build in
3701 *-*-*) ;;
3702 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3703 echo "$as_me: error: invalid value of canonical build" >&2;}
3704    { (exit 1); exit 1; }; };;
3705 esac
3706 build=$ac_cv_build
3707 ac_save_IFS=$IFS; IFS='-'
3708 set x $ac_cv_build
3709 shift
3710 build_cpu=$1
3711 build_vendor=$2
3712 shift; shift
3713 # Remember, the first character of IFS is used to create $*,
3714 # except with old shells:
3715 build_os=$*
3716 IFS=$ac_save_IFS
3717 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3720 { echo "$as_me:$LINENO: checking host system type" >&5
3721 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3722 if test "${ac_cv_host+set}" = set; then
3723   echo $ECHO_N "(cached) $ECHO_C" >&6
3724 else
3725   if test "x$host_alias" = x; then
3726   ac_cv_host=$ac_cv_build
3727 else
3728   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3729     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3730 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3731    { (exit 1); exit 1; }; }
3735 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3736 echo "${ECHO_T}$ac_cv_host" >&6; }
3737 case $ac_cv_host in
3738 *-*-*) ;;
3739 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3740 echo "$as_me: error: invalid value of canonical host" >&2;}
3741    { (exit 1); exit 1; }; };;
3742 esac
3743 host=$ac_cv_host
3744 ac_save_IFS=$IFS; IFS='-'
3745 set x $ac_cv_host
3746 shift
3747 host_cpu=$1
3748 host_vendor=$2
3749 shift; shift
3750 # Remember, the first character of IFS is used to create $*,
3751 # except with old shells:
3752 host_os=$*
3753 IFS=$ac_save_IFS
3754 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3757 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3758 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3759 if test "${lt_cv_path_SED+set}" = set; then
3760   echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762   # Loop through the user's path and test for sed and gsed.
3763 # Then use that list of sed's as ones to test for truncation.
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3767   IFS=$as_save_IFS
3768   test -z "$as_dir" && as_dir=.
3769   for lt_ac_prog in sed gsed; do
3770     for ac_exec_ext in '' $ac_executable_extensions; do
3771       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3772         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3773       fi
3774     done
3775   done
3776 done
3777 IFS=$as_save_IFS
3778 lt_ac_max=0
3779 lt_ac_count=0
3780 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3781 # along with /bin/sed that truncates output.
3782 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3783   test ! -f $lt_ac_sed && continue
3784   cat /dev/null > conftest.in
3785   lt_ac_count=0
3786   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3787   # Check for GNU sed and select it if it is found.
3788   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3789     lt_cv_path_SED=$lt_ac_sed
3790     break
3791   fi
3792   while true; do
3793     cat conftest.in conftest.in >conftest.tmp
3794     mv conftest.tmp conftest.in
3795     cp conftest.in conftest.nl
3796     echo >>conftest.nl
3797     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3798     cmp -s conftest.out conftest.nl || break
3799     # 10000 chars as input seems more than enough
3800     test $lt_ac_count -gt 10 && break
3801     lt_ac_count=`expr $lt_ac_count + 1`
3802     if test $lt_ac_count -gt $lt_ac_max; then
3803       lt_ac_max=$lt_ac_count
3804       lt_cv_path_SED=$lt_ac_sed
3805     fi
3806   done
3807 done
3811 SED=$lt_cv_path_SED
3813 { echo "$as_me:$LINENO: result: $SED" >&5
3814 echo "${ECHO_T}$SED" >&6; }
3816 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3817 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3818 if test "${ac_cv_path_GREP+set}" = set; then
3819   echo $ECHO_N "(cached) $ECHO_C" >&6
3820 else
3821   # Extract the first word of "grep ggrep" to use in msg output
3822 if test -z "$GREP"; then
3823 set dummy grep ggrep; ac_prog_name=$2
3824 if test "${ac_cv_path_GREP+set}" = set; then
3825   echo $ECHO_N "(cached) $ECHO_C" >&6
3826 else
3827   ac_path_GREP_found=false
3828 # Loop through the user's path and test for each of PROGNAME-LIST
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3832   IFS=$as_save_IFS
3833   test -z "$as_dir" && as_dir=.
3834   for ac_prog in grep ggrep; do
3835   for ac_exec_ext in '' $ac_executable_extensions; do
3836     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3837     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3838     # Check for GNU ac_path_GREP and select it if it is found.
3839   # Check for GNU $ac_path_GREP
3840 case `"$ac_path_GREP" --version 2>&1` in
3841 *GNU*)
3842   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3844   ac_count=0
3845   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3846   while :
3847   do
3848     cat "conftest.in" "conftest.in" >"conftest.tmp"
3849     mv "conftest.tmp" "conftest.in"
3850     cp "conftest.in" "conftest.nl"
3851     echo 'GREP' >> "conftest.nl"
3852     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3853     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3854     ac_count=`expr $ac_count + 1`
3855     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3856       # Best one so far, save it but keep looking for a better one
3857       ac_cv_path_GREP="$ac_path_GREP"
3858       ac_path_GREP_max=$ac_count
3859     fi
3860     # 10*(2^10) chars as input seems more than enough
3861     test $ac_count -gt 10 && break
3862   done
3863   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3864 esac
3867     $ac_path_GREP_found && break 3
3868   done
3869 done
3871 done
3872 IFS=$as_save_IFS
3877 GREP="$ac_cv_path_GREP"
3878 if test -z "$GREP"; then
3879   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3880 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3881    { (exit 1); exit 1; }; }
3884 else
3885   ac_cv_path_GREP=$GREP
3890 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3891 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3892  GREP="$ac_cv_path_GREP"
3895 { echo "$as_me:$LINENO: checking for egrep" >&5
3896 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3897 if test "${ac_cv_path_EGREP+set}" = set; then
3898   echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3901    then ac_cv_path_EGREP="$GREP -E"
3902    else
3903      # Extract the first word of "egrep" to use in msg output
3904 if test -z "$EGREP"; then
3905 set dummy egrep; ac_prog_name=$2
3906 if test "${ac_cv_path_EGREP+set}" = set; then
3907   echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909   ac_path_EGREP_found=false
3910 # Loop through the user's path and test for each of PROGNAME-LIST
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3914   IFS=$as_save_IFS
3915   test -z "$as_dir" && as_dir=.
3916   for ac_prog in egrep; do
3917   for ac_exec_ext in '' $ac_executable_extensions; do
3918     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3919     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3920     # Check for GNU ac_path_EGREP and select it if it is found.
3921   # Check for GNU $ac_path_EGREP
3922 case `"$ac_path_EGREP" --version 2>&1` in
3923 *GNU*)
3924   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3926   ac_count=0
3927   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3928   while :
3929   do
3930     cat "conftest.in" "conftest.in" >"conftest.tmp"
3931     mv "conftest.tmp" "conftest.in"
3932     cp "conftest.in" "conftest.nl"
3933     echo 'EGREP' >> "conftest.nl"
3934     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3935     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3936     ac_count=`expr $ac_count + 1`
3937     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3938       # Best one so far, save it but keep looking for a better one
3939       ac_cv_path_EGREP="$ac_path_EGREP"
3940       ac_path_EGREP_max=$ac_count
3941     fi
3942     # 10*(2^10) chars as input seems more than enough
3943     test $ac_count -gt 10 && break
3944   done
3945   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3946 esac
3949     $ac_path_EGREP_found && break 3
3950   done
3951 done
3953 done
3954 IFS=$as_save_IFS
3959 EGREP="$ac_cv_path_EGREP"
3960 if test -z "$EGREP"; then
3961   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3962 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3963    { (exit 1); exit 1; }; }
3966 else
3967   ac_cv_path_EGREP=$EGREP
3971    fi
3973 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3974 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3975  EGREP="$ac_cv_path_EGREP"
3979 # Check whether --with-gnu-ld was given.
3980 if test "${with_gnu_ld+set}" = set; then
3981   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3982 else
3983   with_gnu_ld=no
3986 ac_prog=ld
3987 if test "$GCC" = yes; then
3988   # Check if gcc -print-prog-name=ld gives a path.
3989   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3990 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3991   case $host in
3992   *-*-mingw*)
3993     # gcc leaves a trailing carriage return which upsets mingw
3994     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3995   *)
3996     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3997   esac
3998   case $ac_prog in
3999     # Accept absolute paths.
4000     [\\/]* | ?:[\\/]*)
4001       re_direlt='/[^/][^/]*/\.\./'
4002       # Canonicalize the pathname of ld
4003       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4004       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4005         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4006       done
4007       test -z "$LD" && LD="$ac_prog"
4008       ;;
4009   "")
4010     # If it fails, then pretend we aren't using GCC.
4011     ac_prog=ld
4012     ;;
4013   *)
4014     # If it is relative, then search for the first ld in PATH.
4015     with_gnu_ld=unknown
4016     ;;
4017   esac
4018 elif test "$with_gnu_ld" = yes; then
4019   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4020 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4021 else
4022   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4023 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4025 if test "${lt_cv_path_LD+set}" = set; then
4026   echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028   if test -z "$LD"; then
4029   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4030   for ac_dir in $PATH; do
4031     IFS="$lt_save_ifs"
4032     test -z "$ac_dir" && ac_dir=.
4033     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4034       lt_cv_path_LD="$ac_dir/$ac_prog"
4035       # Check to see if the program is GNU ld.  I'd rather use --version,
4036       # but apparently some variants of GNU ld only accept -v.
4037       # Break only if it was the GNU/non-GNU ld that we prefer.
4038       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4039       *GNU* | *'with BFD'*)
4040         test "$with_gnu_ld" != no && break
4041         ;;
4042       *)
4043         test "$with_gnu_ld" != yes && break
4044         ;;
4045       esac
4046     fi
4047   done
4048   IFS="$lt_save_ifs"
4049 else
4050   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4054 LD="$lt_cv_path_LD"
4055 if test -n "$LD"; then
4056   { echo "$as_me:$LINENO: result: $LD" >&5
4057 echo "${ECHO_T}$LD" >&6; }
4058 else
4059   { echo "$as_me:$LINENO: result: no" >&5
4060 echo "${ECHO_T}no" >&6; }
4062 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4063 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4064    { (exit 1); exit 1; }; }
4065 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4066 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4067 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4068   echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4071 case `$LD -v 2>&1 </dev/null` in
4072 *GNU* | *'with BFD'*)
4073   lt_cv_prog_gnu_ld=yes
4074   ;;
4076   lt_cv_prog_gnu_ld=no
4077   ;;
4078 esac
4080 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4081 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4082 with_gnu_ld=$lt_cv_prog_gnu_ld
4085 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4086 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4087 if test "${lt_cv_ld_reload_flag+set}" = set; then
4088   echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090   lt_cv_ld_reload_flag='-r'
4092 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4093 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4094 reload_flag=$lt_cv_ld_reload_flag
4095 case $reload_flag in
4096 "" | " "*) ;;
4097 *) reload_flag=" $reload_flag" ;;
4098 esac
4099 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4100 case $host_os in
4101   darwin*)
4102     if test "$GCC" = yes; then
4103       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4104     else
4105       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4106     fi
4107     ;;
4108 esac
4110 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4111 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4112 if test "${lt_cv_path_NM+set}" = set; then
4113   echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115   if test -n "$NM"; then
4116   # Let the user override the test.
4117   lt_cv_path_NM="$NM"
4118 else
4119   lt_nm_to_check="${ac_tool_prefix}nm"
4120   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4121     lt_nm_to_check="$lt_nm_to_check nm"
4122   fi
4123   for lt_tmp_nm in $lt_nm_to_check; do
4124     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4125     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4126       IFS="$lt_save_ifs"
4127       test -z "$ac_dir" && ac_dir=.
4128       tmp_nm="$ac_dir/$lt_tmp_nm"
4129       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4130         # Check to see if the nm accepts a BSD-compat flag.
4131         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4132         #   nm: unknown option "B" ignored
4133         # Tru64's nm complains that /dev/null is an invalid object file
4134         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4135         */dev/null* | *'Invalid file or object type'*)
4136           lt_cv_path_NM="$tmp_nm -B"
4137           break
4138           ;;
4139         *)
4140           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4141           */dev/null*)
4142             lt_cv_path_NM="$tmp_nm -p"
4143             break
4144             ;;
4145           *)
4146             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4147             continue # so that we can try to find one that supports BSD flags
4148             ;;
4149           esac
4150           ;;
4151         esac
4152       fi
4153     done
4154     IFS="$lt_save_ifs"
4155   done
4156   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4159 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4160 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4161 NM="$lt_cv_path_NM"
4163 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4164 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4165 LN_S=$as_ln_s
4166 if test "$LN_S" = "ln -s"; then
4167   { echo "$as_me:$LINENO: result: yes" >&5
4168 echo "${ECHO_T}yes" >&6; }
4169 else
4170   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4171 echo "${ECHO_T}no, using $LN_S" >&6; }
4174 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4175 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4176 if test "${lt_cv_deplibs_check_method+set}" = set; then
4177   echo $ECHO_N "(cached) $ECHO_C" >&6
4178 else
4179   lt_cv_file_magic_cmd='$MAGIC_CMD'
4180 lt_cv_file_magic_test_file=
4181 lt_cv_deplibs_check_method='unknown'
4182 # Need to set the preceding variable on all platforms that support
4183 # interlibrary dependencies.
4184 # 'none' -- dependencies not supported.
4185 # `unknown' -- same as none, but documents that we really don't know.
4186 # 'pass_all' -- all dependencies passed with no checks.
4187 # 'test_compile' -- check by making test program.
4188 # 'file_magic [[regex]]' -- check by looking for files in library path
4189 # which responds to the $file_magic_cmd with a given extended regex.
4190 # If you have `file' or equivalent on your system and you're not sure
4191 # whether `pass_all' will *always* work, you probably want this one.
4193 case $host_os in
4194 aix[4-9]*)
4195   lt_cv_deplibs_check_method=pass_all
4196   ;;
4198 beos*)
4199   lt_cv_deplibs_check_method=pass_all
4200   ;;
4202 bsdi[45]*)
4203   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4204   lt_cv_file_magic_cmd='/usr/bin/file -L'
4205   lt_cv_file_magic_test_file=/shlib/libc.so
4206   ;;
4208 cygwin*)
4209   # func_win32_libid is a shell function defined in ltmain.sh
4210   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4211   lt_cv_file_magic_cmd='func_win32_libid'
4212   ;;
4214 mingw* | pw32*)
4215   # Base MSYS/MinGW do not provide the 'file' command needed by
4216   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4217   # unless we find 'file', for example because we are cross-compiling.
4218   if ( file / ) >/dev/null 2>&1; then
4219     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4220     lt_cv_file_magic_cmd='func_win32_libid'
4221   else
4222     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4223     lt_cv_file_magic_cmd='$OBJDUMP -f'
4224   fi
4225   ;;
4227 darwin* | rhapsody*)
4228   lt_cv_deplibs_check_method=pass_all
4229   ;;
4231 freebsd* | dragonfly*)
4232   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4233     case $host_cpu in
4234     i*86 )
4235       # Not sure whether the presence of OpenBSD here was a mistake.
4236       # Let's accept both of them until this is cleared up.
4237       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4238       lt_cv_file_magic_cmd=/usr/bin/file
4239       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4240       ;;
4241     esac
4242   else
4243     lt_cv_deplibs_check_method=pass_all
4244   fi
4245   ;;
4247 gnu*)
4248   lt_cv_deplibs_check_method=pass_all
4249   ;;
4251 hpux10.20* | hpux11*)
4252   lt_cv_file_magic_cmd=/usr/bin/file
4253   case $host_cpu in
4254   ia64*)
4255     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4256     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4257     ;;
4258   hppa*64*)
4259     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]'
4260     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4261     ;;
4262   *)
4263     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4264     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4265     ;;
4266   esac
4267   ;;
4269 interix[3-9]*)
4270   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4271   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4272   ;;
4274 irix5* | irix6* | nonstopux*)
4275   case $LD in
4276   *-32|*"-32 ") libmagic=32-bit;;
4277   *-n32|*"-n32 ") libmagic=N32;;
4278   *-64|*"-64 ") libmagic=64-bit;;
4279   *) libmagic=never-match;;
4280   esac
4281   lt_cv_deplibs_check_method=pass_all
4282   ;;
4284 # This must be Linux ELF.
4285 linux* | k*bsd*-gnu)
4286   lt_cv_deplibs_check_method=pass_all
4287   ;;
4289 netbsd* | netbsdelf*-gnu)
4290   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4291     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4292   else
4293     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4294   fi
4295   ;;
4297 newos6*)
4298   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4299   lt_cv_file_magic_cmd=/usr/bin/file
4300   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4301   ;;
4303 nto-qnx*)
4304   lt_cv_deplibs_check_method=unknown
4305   ;;
4307 openbsd*)
4308   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4309     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4310   else
4311     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4312   fi
4313   ;;
4315 osf3* | osf4* | osf5*)
4316   lt_cv_deplibs_check_method=pass_all
4317   ;;
4319 rdos*)
4320   lt_cv_deplibs_check_method=pass_all
4321   ;;
4323 solaris*)
4324   lt_cv_deplibs_check_method=pass_all
4325   ;;
4327 sysv4 | sysv4.3*)
4328   case $host_vendor in
4329   motorola)
4330     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]'
4331     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4332     ;;
4333   ncr)
4334     lt_cv_deplibs_check_method=pass_all
4335     ;;
4336   sequent)
4337     lt_cv_file_magic_cmd='/bin/file'
4338     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4339     ;;
4340   sni)
4341     lt_cv_file_magic_cmd='/bin/file'
4342     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4343     lt_cv_file_magic_test_file=/lib/libc.so
4344     ;;
4345   siemens)
4346     lt_cv_deplibs_check_method=pass_all
4347     ;;
4348   pc)
4349     lt_cv_deplibs_check_method=pass_all
4350     ;;
4351   esac
4352   ;;
4354 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4355   lt_cv_deplibs_check_method=pass_all
4356   ;;
4357 esac
4360 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4361 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4362 file_magic_cmd=$lt_cv_file_magic_cmd
4363 deplibs_check_method=$lt_cv_deplibs_check_method
4364 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4369 # If no C compiler was specified, use CC.
4370 LTCC=${LTCC-"$CC"}
4372 # If no C compiler flags were specified, use CFLAGS.
4373 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4375 # Allow CC to be a program name with arguments.
4376 compiler=$CC
4379 # Check whether --enable-libtool-lock was given.
4380 if test "${enable_libtool_lock+set}" = set; then
4381   enableval=$enable_libtool_lock; 
4384 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4386 # Some flags need to be propagated to the compiler or linker for good
4387 # libtool support.
4388 case $host in
4389 ia64-*-hpux*)
4390   # Find out which ABI we are using.
4391   echo 'int i;' > conftest.$ac_ext
4392   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4393   (eval $ac_compile) 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); }; then
4397     case `/usr/bin/file conftest.$ac_objext` in
4398     *ELF-32*)
4399       HPUX_IA64_MODE="32"
4400       ;;
4401     *ELF-64*)
4402       HPUX_IA64_MODE="64"
4403       ;;
4404     esac
4405   fi
4406   rm -rf conftest*
4407   ;;
4408 *-*-irix6*)
4409   # Find out which ABI we are using.
4410   echo '#line __oline__ "configure"' > conftest.$ac_ext
4411   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412   (eval $ac_compile) 2>&5
4413   ac_status=$?
4414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415   (exit $ac_status); }; then
4416    if test "$lt_cv_prog_gnu_ld" = yes; then
4417     case `/usr/bin/file conftest.$ac_objext` in
4418     *32-bit*)
4419       LD="${LD-ld} -melf32bsmip"
4420       ;;
4421     *N32*)
4422       LD="${LD-ld} -melf32bmipn32"
4423       ;;
4424     *64-bit*)
4425       LD="${LD-ld} -melf64bmip"
4426       ;;
4427     esac
4428    else
4429     case `/usr/bin/file conftest.$ac_objext` in
4430     *32-bit*)
4431       LD="${LD-ld} -32"
4432       ;;
4433     *N32*)
4434       LD="${LD-ld} -n32"
4435       ;;
4436     *64-bit*)
4437       LD="${LD-ld} -64"
4438       ;;
4439     esac
4440    fi
4441   fi
4442   rm -rf conftest*
4443   ;;
4445 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4446 s390*-*linux*|sparc*-*linux*)
4447   # Find out which ABI we are using.
4448   echo 'int i;' > conftest.$ac_ext
4449   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450   (eval $ac_compile) 2>&5
4451   ac_status=$?
4452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453   (exit $ac_status); }; then
4454     case `/usr/bin/file conftest.o` in
4455     *32-bit*)
4456       case $host in
4457         x86_64-*kfreebsd*-gnu)
4458           LD="${LD-ld} -m elf_i386_fbsd"
4459           ;;
4460         x86_64-*linux*)
4461           LD="${LD-ld} -m elf_i386"
4462           ;;
4463         ppc64-*linux*|powerpc64-*linux*)
4464           LD="${LD-ld} -m elf32ppclinux"
4465           ;;
4466         s390x-*linux*)
4467           LD="${LD-ld} -m elf_s390"
4468           ;;
4469         sparc64-*linux*)
4470           LD="${LD-ld} -m elf32_sparc"
4471           ;;
4472       esac
4473       ;;
4474     *64-bit*)
4475       case $host in
4476         x86_64-*kfreebsd*-gnu)
4477           LD="${LD-ld} -m elf_x86_64_fbsd"
4478           ;;
4479         x86_64-*linux*)
4480           LD="${LD-ld} -m elf_x86_64"
4481           ;;
4482         ppc*-*linux*|powerpc*-*linux*)
4483           LD="${LD-ld} -m elf64ppc"
4484           ;;
4485         s390*-*linux*)
4486           LD="${LD-ld} -m elf64_s390"
4487           ;;
4488         sparc*-*linux*)
4489           LD="${LD-ld} -m elf64_sparc"
4490           ;;
4491       esac
4492       ;;
4493     esac
4494   fi
4495   rm -rf conftest*
4496   ;;
4498 *-*-sco3.2v5*)
4499   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4500   SAVE_CFLAGS="$CFLAGS"
4501   CFLAGS="$CFLAGS -belf"
4502   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4503 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4504 if test "${lt_cv_cc_needs_belf+set}" = set; then
4505   echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507   ac_ext=c
4508 ac_cpp='$CPP $CPPFLAGS'
4509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4513      cat >conftest.$ac_ext <<_ACEOF
4514 /* confdefs.h.  */
4515 _ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h.  */
4521 main ()
4524   ;
4525   return 0;
4527 _ACEOF
4528 rm -f conftest.$ac_objext conftest$ac_exeext
4529 if { (ac_try="$ac_link"
4530 case "(($ac_try" in
4531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532   *) ac_try_echo=$ac_try;;
4533 esac
4534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4535   (eval "$ac_link") 2>conftest.er1
4536   ac_status=$?
4537   grep -v '^ *+' conftest.er1 >conftest.err
4538   rm -f conftest.er1
4539   cat conftest.err >&5
4540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541   (exit $ac_status); } && {
4542          test -z "$ac_c_werror_flag" ||
4543          test ! -s conftest.err
4544        } && test -s conftest$ac_exeext &&
4545        $as_test_x conftest$ac_exeext; then
4546   lt_cv_cc_needs_belf=yes
4547 else
4548   echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4551         lt_cv_cc_needs_belf=no
4554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4555       conftest$ac_exeext conftest.$ac_ext
4556      ac_ext=c
4557 ac_cpp='$CPP $CPPFLAGS'
4558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4563 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4564 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4565   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4566     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4567     CFLAGS="$SAVE_CFLAGS"
4568   fi
4569   ;;
4570 sparc*-*solaris*)
4571   # Find out which ABI we are using.
4572   echo 'int i;' > conftest.$ac_ext
4573   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4574   (eval $ac_compile) 2>&5
4575   ac_status=$?
4576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577   (exit $ac_status); }; then
4578     case `/usr/bin/file conftest.o` in
4579     *64-bit*)
4580       case $lt_cv_prog_gnu_ld in
4581       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4582       *)
4583         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4584           LD="${LD-ld} -64"
4585         fi
4586         ;;
4587       esac
4588       ;;
4589     esac
4590   fi
4591   rm -rf conftest*
4592   ;;
4595 esac
4597 need_locks="$enable_libtool_lock"
4600 ac_ext=c
4601 ac_cpp='$CPP $CPPFLAGS'
4602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4605 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4606 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4607 # On Suns, sometimes $CPP names a directory.
4608 if test -n "$CPP" && test -d "$CPP"; then
4609   CPP=
4611 if test -z "$CPP"; then
4612   if test "${ac_cv_prog_CPP+set}" = set; then
4613   echo $ECHO_N "(cached) $ECHO_C" >&6
4614 else
4615       # Double quotes because CPP needs to be expanded
4616     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4617     do
4618       ac_preproc_ok=false
4619 for ac_c_preproc_warn_flag in '' yes
4621   # Use a header file that comes with gcc, so configuring glibc
4622   # with a fresh cross-compiler works.
4623   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4624   # <limits.h> exists even on freestanding compilers.
4625   # On the NeXT, cc -E runs the code through the compiler's parser,
4626   # not just through cpp. "Syntax error" is here to catch this case.
4627   cat >conftest.$ac_ext <<_ACEOF
4628 /* confdefs.h.  */
4629 _ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h.  */
4633 @%:@ifdef __STDC__
4634 @%:@ include <limits.h>
4635 @%:@else
4636 @%:@ include <assert.h>
4637 @%:@endif
4638                      Syntax error
4639 _ACEOF
4640 if { (ac_try="$ac_cpp conftest.$ac_ext"
4641 case "(($ac_try" in
4642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643   *) ac_try_echo=$ac_try;;
4644 esac
4645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4646   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4647   ac_status=$?
4648   grep -v '^ *+' conftest.er1 >conftest.err
4649   rm -f conftest.er1
4650   cat conftest.err >&5
4651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652   (exit $ac_status); } >/dev/null && {
4653          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4654          test ! -s conftest.err
4655        }; then
4656   :
4657 else
4658   echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4661   # Broken: fails on valid input.
4662 continue
4665 rm -f conftest.err conftest.$ac_ext
4667   # OK, works on sane cases.  Now check whether nonexistent headers
4668   # can be detected and how.
4669   cat >conftest.$ac_ext <<_ACEOF
4670 /* confdefs.h.  */
4671 _ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h.  */
4675 @%:@include <ac_nonexistent.h>
4676 _ACEOF
4677 if { (ac_try="$ac_cpp conftest.$ac_ext"
4678 case "(($ac_try" in
4679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680   *) ac_try_echo=$ac_try;;
4681 esac
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4684   ac_status=$?
4685   grep -v '^ *+' conftest.er1 >conftest.err
4686   rm -f conftest.er1
4687   cat conftest.err >&5
4688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689   (exit $ac_status); } >/dev/null && {
4690          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4691          test ! -s conftest.err
4692        }; then
4693   # Broken: success on invalid input.
4694 continue
4695 else
4696   echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4699   # Passes both tests.
4700 ac_preproc_ok=:
4701 break
4704 rm -f conftest.err conftest.$ac_ext
4706 done
4707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4708 rm -f conftest.err conftest.$ac_ext
4709 if $ac_preproc_ok; then
4710   break
4713     done
4714     ac_cv_prog_CPP=$CPP
4715   
4717   CPP=$ac_cv_prog_CPP
4718 else
4719   ac_cv_prog_CPP=$CPP
4721 { echo "$as_me:$LINENO: result: $CPP" >&5
4722 echo "${ECHO_T}$CPP" >&6; }
4723 ac_preproc_ok=false
4724 for ac_c_preproc_warn_flag in '' yes
4726   # Use a header file that comes with gcc, so configuring glibc
4727   # with a fresh cross-compiler works.
4728   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4729   # <limits.h> exists even on freestanding compilers.
4730   # On the NeXT, cc -E runs the code through the compiler's parser,
4731   # not just through cpp. "Syntax error" is here to catch this case.
4732   cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h.  */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h.  */
4738 @%:@ifdef __STDC__
4739 @%:@ include <limits.h>
4740 @%:@else
4741 @%:@ include <assert.h>
4742 @%:@endif
4743                      Syntax error
4744 _ACEOF
4745 if { (ac_try="$ac_cpp conftest.$ac_ext"
4746 case "(($ac_try" in
4747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748   *) ac_try_echo=$ac_try;;
4749 esac
4750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4752   ac_status=$?
4753   grep -v '^ *+' conftest.er1 >conftest.err
4754   rm -f conftest.er1
4755   cat conftest.err >&5
4756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); } >/dev/null && {
4758          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4759          test ! -s conftest.err
4760        }; then
4761   :
4762 else
4763   echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4766   # Broken: fails on valid input.
4767 continue
4770 rm -f conftest.err conftest.$ac_ext
4772   # OK, works on sane cases.  Now check whether nonexistent headers
4773   # can be detected and how.
4774   cat >conftest.$ac_ext <<_ACEOF
4775 /* confdefs.h.  */
4776 _ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h.  */
4780 @%:@include <ac_nonexistent.h>
4781 _ACEOF
4782 if { (ac_try="$ac_cpp conftest.$ac_ext"
4783 case "(($ac_try" in
4784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4785   *) ac_try_echo=$ac_try;;
4786 esac
4787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4788   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4789   ac_status=$?
4790   grep -v '^ *+' conftest.er1 >conftest.err
4791   rm -f conftest.er1
4792   cat conftest.err >&5
4793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794   (exit $ac_status); } >/dev/null && {
4795          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4796          test ! -s conftest.err
4797        }; then
4798   # Broken: success on invalid input.
4799 continue
4800 else
4801   echo "$as_me: failed program was:" >&5
4802 sed 's/^/| /' conftest.$ac_ext >&5
4804   # Passes both tests.
4805 ac_preproc_ok=:
4806 break
4809 rm -f conftest.err conftest.$ac_ext
4811 done
4812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4813 rm -f conftest.err conftest.$ac_ext
4814 if $ac_preproc_ok; then
4815   :
4816 else
4817   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4818 See \`config.log' for more details." >&5
4819 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4820 See \`config.log' for more details." >&2;}
4821    { (exit 1); exit 1; }; }
4824 ac_ext=c
4825 ac_cpp='$CPP $CPPFLAGS'
4826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4831 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4832 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4833 if test "${ac_cv_header_stdc+set}" = set; then
4834   echo $ECHO_N "(cached) $ECHO_C" >&6
4835 else
4836   cat >conftest.$ac_ext <<_ACEOF
4837 /* confdefs.h.  */
4838 _ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h.  */
4842 #include <stdlib.h>
4843 #include <stdarg.h>
4844 #include <string.h>
4845 #include <float.h>
4848 main ()
4851   ;
4852   return 0;
4854 _ACEOF
4855 rm -f conftest.$ac_objext
4856 if { (ac_try="$ac_compile"
4857 case "(($ac_try" in
4858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859   *) ac_try_echo=$ac_try;;
4860 esac
4861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4862   (eval "$ac_compile") 2>conftest.er1
4863   ac_status=$?
4864   grep -v '^ *+' conftest.er1 >conftest.err
4865   rm -f conftest.er1
4866   cat conftest.err >&5
4867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868   (exit $ac_status); } && {
4869          test -z "$ac_c_werror_flag" ||
4870          test ! -s conftest.err
4871        } && test -s conftest.$ac_objext; then
4872   ac_cv_header_stdc=yes
4873 else
4874   echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4877         ac_cv_header_stdc=no
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 if test $ac_cv_header_stdc = yes; then
4883   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4884   cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h.  */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h.  */
4890 #include <string.h>
4892 _ACEOF
4893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4894   $EGREP "memchr" >/dev/null 2>&1; then
4895   :
4896 else
4897   ac_cv_header_stdc=no
4899 rm -f conftest*
4903 if test $ac_cv_header_stdc = yes; then
4904   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4905   cat >conftest.$ac_ext <<_ACEOF
4906 /* confdefs.h.  */
4907 _ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h.  */
4911 #include <stdlib.h>
4913 _ACEOF
4914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4915   $EGREP "free" >/dev/null 2>&1; then
4916   :
4917 else
4918   ac_cv_header_stdc=no
4920 rm -f conftest*
4924 if test $ac_cv_header_stdc = yes; then
4925   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4926   if test "$cross_compiling" = yes; then
4927   :
4928 else
4929   cat >conftest.$ac_ext <<_ACEOF
4930 /* confdefs.h.  */
4931 _ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h.  */
4935 #include <ctype.h>
4936 #include <stdlib.h>
4937 #if ((' ' & 0x0FF) == 0x020)
4938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4940 #else
4941 # define ISLOWER(c) \
4942                    (('a' <= (c) && (c) <= 'i') \
4943                      || ('j' <= (c) && (c) <= 'r') \
4944                      || ('s' <= (c) && (c) <= 'z'))
4945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4946 #endif
4948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4950 main ()
4952   int i;
4953   for (i = 0; i < 256; i++)
4954     if (XOR (islower (i), ISLOWER (i))
4955         || toupper (i) != TOUPPER (i))
4956       return 2;
4957   return 0;
4959 _ACEOF
4960 rm -f conftest$ac_exeext
4961 if { (ac_try="$ac_link"
4962 case "(($ac_try" in
4963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964   *) ac_try_echo=$ac_try;;
4965 esac
4966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4967   (eval "$ac_link") 2>&5
4968   ac_status=$?
4969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4971   { (case "(($ac_try" in
4972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973   *) ac_try_echo=$ac_try;;
4974 esac
4975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976   (eval "$ac_try") 2>&5
4977   ac_status=$?
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); }; }; then
4980   :
4981 else
4982   echo "$as_me: program exited with status $ac_status" >&5
4983 echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4986 ( exit $ac_status )
4987 ac_cv_header_stdc=no
4989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4995 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4996 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4997 if test $ac_cv_header_stdc = yes; then
4998   
4999 cat >>confdefs.h <<\_ACEOF
5000 @%:@define STDC_HEADERS 1
5001 _ACEOF
5005 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5015 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5016                   inttypes.h stdint.h unistd.h
5018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5022   echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024   cat >conftest.$ac_ext <<_ACEOF
5025 /* confdefs.h.  */
5026 _ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h.  */
5030 $ac_includes_default
5032 @%:@include <$ac_header>
5033 _ACEOF
5034 rm -f conftest.$ac_objext
5035 if { (ac_try="$ac_compile"
5036 case "(($ac_try" in
5037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038   *) ac_try_echo=$ac_try;;
5039 esac
5040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041   (eval "$ac_compile") 2>conftest.er1
5042   ac_status=$?
5043   grep -v '^ *+' conftest.er1 >conftest.err
5044   rm -f conftest.er1
5045   cat conftest.err >&5
5046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047   (exit $ac_status); } && {
5048          test -z "$ac_c_werror_flag" ||
5049          test ! -s conftest.err
5050        } && test -s conftest.$ac_objext; then
5051   eval "$as_ac_Header=yes"
5052 else
5053   echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5056         eval "$as_ac_Header=no"
5059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5061 ac_res=`eval echo '${'$as_ac_Header'}'`
5062                { echo "$as_me:$LINENO: result: $ac_res" >&5
5063 echo "${ECHO_T}$ac_res" >&6; }
5064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5065   cat >>confdefs.h <<_ACEOF
5066 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5067 _ACEOF
5071 done
5075 for ac_header in dlfcn.h
5077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5079   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5082   echo $ECHO_N "(cached) $ECHO_C" >&6
5084 ac_res=`eval echo '${'$as_ac_Header'}'`
5085                { echo "$as_me:$LINENO: result: $ac_res" >&5
5086 echo "${ECHO_T}$ac_res" >&6; }
5087 else
5088   # Is the header compilable?
5089 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5091 cat >conftest.$ac_ext <<_ACEOF
5092 /* confdefs.h.  */
5093 _ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h.  */
5097 $ac_includes_default
5098 @%:@include <$ac_header>
5099 _ACEOF
5100 rm -f conftest.$ac_objext
5101 if { (ac_try="$ac_compile"
5102 case "(($ac_try" in
5103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104   *) ac_try_echo=$ac_try;;
5105 esac
5106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5107   (eval "$ac_compile") 2>conftest.er1
5108   ac_status=$?
5109   grep -v '^ *+' conftest.er1 >conftest.err
5110   rm -f conftest.er1
5111   cat conftest.err >&5
5112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113   (exit $ac_status); } && {
5114          test -z "$ac_c_werror_flag" ||
5115          test ! -s conftest.err
5116        } && test -s conftest.$ac_objext; then
5117   ac_header_compiler=yes
5118 else
5119   echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5122         ac_header_compiler=no
5125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5127 echo "${ECHO_T}$ac_header_compiler" >&6; }
5129 # Is the header present?
5130 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5132 cat >conftest.$ac_ext <<_ACEOF
5133 /* confdefs.h.  */
5134 _ACEOF
5135 cat confdefs.h >>conftest.$ac_ext
5136 cat >>conftest.$ac_ext <<_ACEOF
5137 /* end confdefs.h.  */
5138 @%:@include <$ac_header>
5139 _ACEOF
5140 if { (ac_try="$ac_cpp conftest.$ac_ext"
5141 case "(($ac_try" in
5142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143   *) ac_try_echo=$ac_try;;
5144 esac
5145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5147   ac_status=$?
5148   grep -v '^ *+' conftest.er1 >conftest.err
5149   rm -f conftest.er1
5150   cat conftest.err >&5
5151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152   (exit $ac_status); } >/dev/null && {
5153          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5154          test ! -s conftest.err
5155        }; then
5156   ac_header_preproc=yes
5157 else
5158   echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5161   ac_header_preproc=no
5164 rm -f conftest.err conftest.$ac_ext
5165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5166 echo "${ECHO_T}$ac_header_preproc" >&6; }
5168 # So?  What about this header?
5169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5170   yes:no: )
5171     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5173     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5175     ac_header_preproc=yes
5176     ;;
5177   no:yes:* )
5178     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5180     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5181 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5182     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5184     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5185 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5188     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5190     
5191     ;;
5192 esac
5193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5196   echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198   eval "$as_ac_Header=\$ac_header_preproc"
5200 ac_res=`eval echo '${'$as_ac_Header'}'`
5201                { echo "$as_me:$LINENO: result: $ac_res" >&5
5202 echo "${ECHO_T}$ac_res" >&6; }
5205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5206   cat >>confdefs.h <<_ACEOF
5207 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5208 _ACEOF
5212 done
5214 ac_ext=cpp
5215 ac_cpp='$CXXCPP $CPPFLAGS'
5216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5219 if test -z "$CXX"; then
5220   if test -n "$CCC"; then
5221     CXX=$CCC
5222   else
5223     if test -n "$ac_tool_prefix"; then
5224   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5225   do
5226     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5230 if test "${ac_cv_prog_CXX+set}" = set; then
5231   echo $ECHO_N "(cached) $ECHO_C" >&6
5232 else
5233   if test -n "$CXX"; then
5234   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5235 else
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH
5239   IFS=$as_save_IFS
5240   test -z "$as_dir" && as_dir=.
5241   for ac_exec_ext in '' $ac_executable_extensions; do
5242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245     break 2
5246   fi
5247 done
5248 done
5249 IFS=$as_save_IFS
5253 CXX=$ac_cv_prog_CXX
5254 if test -n "$CXX"; then
5255   { echo "$as_me:$LINENO: result: $CXX" >&5
5256 echo "${ECHO_T}$CXX" >&6; }
5257 else
5258   { echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6; }
5263     test -n "$CXX" && break
5264   done
5266 if test -z "$CXX"; then
5267   ac_ct_CXX=$CXX
5268   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5270   # Extract the first word of "$ac_prog", so it can be a program name with args.
5271 set dummy $ac_prog; ac_word=$2
5272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5274 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5275   echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277   if test -n "$ac_ct_CXX"; then
5278   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5279 else
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 for as_dir in $PATH
5283   IFS=$as_save_IFS
5284   test -z "$as_dir" && as_dir=.
5285   for ac_exec_ext in '' $ac_executable_extensions; do
5286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5287     ac_cv_prog_ac_ct_CXX="$ac_prog"
5288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5289     break 2
5290   fi
5291 done
5292 done
5293 IFS=$as_save_IFS
5297 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5298 if test -n "$ac_ct_CXX"; then
5299   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5300 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5301 else
5302   { echo "$as_me:$LINENO: result: no" >&5
5303 echo "${ECHO_T}no" >&6; }
5307   test -n "$ac_ct_CXX" && break
5308 done
5310   if test "x$ac_ct_CXX" = x; then
5311     CXX="g++"
5312   else
5313     case $cross_compiling:$ac_tool_warned in
5314 yes:)
5315 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5316 whose name does not start with the host triplet.  If you think this
5317 configuration is useful to you, please write to autoconf@gnu.org." >&5
5318 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5319 whose name does not start with the host triplet.  If you think this
5320 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5321 ac_tool_warned=yes ;;
5322 esac
5323     CXX=$ac_ct_CXX
5324   fi
5327   fi
5329 # Provide some information about the compiler.
5330 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5331 ac_compiler=`set X $ac_compile; echo $2`
5332 { (ac_try="$ac_compiler --version >&5"
5333 case "(($ac_try" in
5334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335   *) ac_try_echo=$ac_try;;
5336 esac
5337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338   (eval "$ac_compiler --version >&5") 2>&5
5339   ac_status=$?
5340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341   (exit $ac_status); }
5342 { (ac_try="$ac_compiler -v >&5"
5343 case "(($ac_try" in
5344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345   *) ac_try_echo=$ac_try;;
5346 esac
5347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348   (eval "$ac_compiler -v >&5") 2>&5
5349   ac_status=$?
5350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351   (exit $ac_status); }
5352 { (ac_try="$ac_compiler -V >&5"
5353 case "(($ac_try" in
5354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355   *) ac_try_echo=$ac_try;;
5356 esac
5357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358   (eval "$ac_compiler -V >&5") 2>&5
5359   ac_status=$?
5360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361   (exit $ac_status); }
5363 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5364 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5365 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5366   echo $ECHO_N "(cached) $ECHO_C" >&6
5367 else
5368   cat >conftest.$ac_ext <<_ACEOF
5369 /* confdefs.h.  */
5370 _ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h.  */
5376 main ()
5378 #ifndef __GNUC__
5379        choke me
5380 #endif
5382   ;
5383   return 0;
5385 _ACEOF
5386 rm -f conftest.$ac_objext
5387 if { (ac_try="$ac_compile"
5388 case "(($ac_try" in
5389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390   *) ac_try_echo=$ac_try;;
5391 esac
5392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393   (eval "$ac_compile") 2>conftest.er1
5394   ac_status=$?
5395   grep -v '^ *+' conftest.er1 >conftest.err
5396   rm -f conftest.er1
5397   cat conftest.err >&5
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); } && {
5400          test -z "$ac_cxx_werror_flag" ||
5401          test ! -s conftest.err
5402        } && test -s conftest.$ac_objext; then
5403   ac_compiler_gnu=yes
5404 else
5405   echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5408         ac_compiler_gnu=no
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5412 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5415 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5416 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5417 GXX=`test $ac_compiler_gnu = yes && echo yes`
5418 ac_test_CXXFLAGS=${CXXFLAGS+set}
5419 ac_save_CXXFLAGS=$CXXFLAGS
5420 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5421 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5422 if test "${ac_cv_prog_cxx_g+set}" = set; then
5423   echo $ECHO_N "(cached) $ECHO_C" >&6
5424 else
5425   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5426    ac_cxx_werror_flag=yes
5427    ac_cv_prog_cxx_g=no
5428    CXXFLAGS="-g"
5429    cat >conftest.$ac_ext <<_ACEOF
5430 /* confdefs.h.  */
5431 _ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h.  */
5437 main ()
5440   ;
5441   return 0;
5443 _ACEOF
5444 rm -f conftest.$ac_objext
5445 if { (ac_try="$ac_compile"
5446 case "(($ac_try" in
5447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448   *) ac_try_echo=$ac_try;;
5449 esac
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451   (eval "$ac_compile") 2>conftest.er1
5452   ac_status=$?
5453   grep -v '^ *+' conftest.er1 >conftest.err
5454   rm -f conftest.er1
5455   cat conftest.err >&5
5456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457   (exit $ac_status); } && {
5458          test -z "$ac_cxx_werror_flag" ||
5459          test ! -s conftest.err
5460        } && test -s conftest.$ac_objext; then
5461   ac_cv_prog_cxx_g=yes
5462 else
5463   echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5466         CXXFLAGS=""
5467       cat >conftest.$ac_ext <<_ACEOF
5468 /* confdefs.h.  */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h.  */
5475 main ()
5478   ;
5479   return 0;
5481 _ACEOF
5482 rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5484 case "(($ac_try" in
5485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486   *) ac_try_echo=$ac_try;;
5487 esac
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489   (eval "$ac_compile") 2>conftest.er1
5490   ac_status=$?
5491   grep -v '^ *+' conftest.er1 >conftest.err
5492   rm -f conftest.er1
5493   cat conftest.err >&5
5494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495   (exit $ac_status); } && {
5496          test -z "$ac_cxx_werror_flag" ||
5497          test ! -s conftest.err
5498        } && test -s conftest.$ac_objext; then
5499   :
5500 else
5501   echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5504         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5505          CXXFLAGS="-g"
5506          cat >conftest.$ac_ext <<_ACEOF
5507 /* confdefs.h.  */
5508 _ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h.  */
5514 main ()
5517   ;
5518   return 0;
5520 _ACEOF
5521 rm -f conftest.$ac_objext
5522 if { (ac_try="$ac_compile"
5523 case "(($ac_try" in
5524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525   *) ac_try_echo=$ac_try;;
5526 esac
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528   (eval "$ac_compile") 2>conftest.er1
5529   ac_status=$?
5530   grep -v '^ *+' conftest.er1 >conftest.err
5531   rm -f conftest.er1
5532   cat conftest.err >&5
5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); } && {
5535          test -z "$ac_cxx_werror_flag" ||
5536          test ! -s conftest.err
5537        } && test -s conftest.$ac_objext; then
5538   ac_cv_prog_cxx_g=yes
5539 else
5540   echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543         
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5555 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5556 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5557 if test "$ac_test_CXXFLAGS" = set; then
5558   CXXFLAGS=$ac_save_CXXFLAGS
5559 elif test $ac_cv_prog_cxx_g = yes; then
5560   if test "$GXX" = yes; then
5561     CXXFLAGS="-g -O2"
5562   else
5563     CXXFLAGS="-g"
5564   fi
5565 else
5566   if test "$GXX" = yes; then
5567     CXXFLAGS="-O2"
5568   else
5569     CXXFLAGS=
5570   fi
5572 ac_ext=cpp
5573 ac_cpp='$CXXCPP $CPPFLAGS'
5574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5578 depcc="$CXX"  am_compiler_list=
5580 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5581 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5582 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5583   echo $ECHO_N "(cached) $ECHO_C" >&6
5584 else
5585   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5586   # We make a subdir and do the tests there.  Otherwise we can end up
5587   # making bogus files that we don't know about and never remove.  For
5588   # instance it was reported that on HP-UX the gcc test will end up
5589   # making a dummy file named `D' -- because `-MD' means `put the output
5590   # in D'.
5591   mkdir conftest.dir
5592   # Copy depcomp to subdir because otherwise we won't find it if we're
5593   # using a relative directory.
5594   cp "$am_depcomp" conftest.dir
5595   cd conftest.dir
5596   # We will build objects and dependencies in a subdirectory because
5597   # it helps to detect inapplicable dependency modes.  For instance
5598   # both Tru64's cc and ICC support -MD to output dependencies as a
5599   # side effect of compilation, but ICC will put the dependencies in
5600   # the current directory while Tru64 will put them in the object
5601   # directory.
5602   mkdir sub
5604   am_cv_CXX_dependencies_compiler_type=none
5605   if test "$am_compiler_list" = ""; then
5606      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5607   fi
5608   for depmode in $am_compiler_list; do
5609     # Setup a source with many dependencies, because some compilers
5610     # like to wrap large dependency lists on column 80 (with \), and
5611     # we should not choose a depcomp mode which is confused by this.
5612     #
5613     # We need to recreate these files for each test, as the compiler may
5614     # overwrite some of them when testing with obscure command lines.
5615     # This happens at least with the AIX C compiler.
5616     : > sub/conftest.c
5617     for i in 1 2 3 4 5 6; do
5618       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5619       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5620       # Solaris 8's {/usr,}/bin/sh.
5621       touch sub/conftst$i.h
5622     done
5623     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5625     case $depmode in
5626     nosideeffect)
5627       # after this tag, mechanisms are not by side-effect, so they'll
5628       # only be used when explicitly requested
5629       if test "x$enable_dependency_tracking" = xyes; then
5630         continue
5631       else
5632         break
5633       fi
5634       ;;
5635     none) break ;;
5636     esac
5637     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5638     # mode.  It turns out that the SunPro C++ compiler does not properly
5639     # handle `-M -o', and we need to detect this.
5640     if depmode=$depmode \
5641        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5642        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5643        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5644          >/dev/null 2>conftest.err &&
5645        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5646        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5647        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5648        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5649       # icc doesn't choke on unknown options, it will just issue warnings
5650       # or remarks (even with -Werror).  So we grep stderr for any message
5651       # that says an option was ignored or not supported.
5652       # When given -MP, icc 7.0 and 7.1 complain thusly:
5653       #   icc: Command line warning: ignoring option '-M'; no argument required
5654       # The diagnosis changed in icc 8.0:
5655       #   icc: Command line remark: option '-MP' not supported
5656       if (grep 'ignoring option' conftest.err ||
5657           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5658         am_cv_CXX_dependencies_compiler_type=$depmode
5659         break
5660       fi
5661     fi
5662   done
5664   cd ..
5665   rm -rf conftest.dir
5666 else
5667   am_cv_CXX_dependencies_compiler_type=none
5671 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5672 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5673 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5675  if 
5676   test "x$enable_dependency_tracking" != xno \
5677   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5678   am__fastdepCXX_TRUE=
5679   am__fastdepCXX_FALSE='#'
5680 else
5681   am__fastdepCXX_TRUE='#'
5682   am__fastdepCXX_FALSE=
5688 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5689     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5690     (test "X$CXX" != "Xg++"))) ; then
5691   ac_ext=cpp
5692 ac_cpp='$CXXCPP $CPPFLAGS'
5693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5696 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5697 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5698 if test -z "$CXXCPP"; then
5699   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5700   echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702       # Double quotes because CXXCPP needs to be expanded
5703     for CXXCPP in "$CXX -E" "/lib/cpp"
5704     do
5705       ac_preproc_ok=false
5706 for ac_cxx_preproc_warn_flag in '' yes
5708   # Use a header file that comes with gcc, so configuring glibc
5709   # with a fresh cross-compiler works.
5710   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5711   # <limits.h> exists even on freestanding compilers.
5712   # On the NeXT, cc -E runs the code through the compiler's parser,
5713   # not just through cpp. "Syntax error" is here to catch this case.
5714   cat >conftest.$ac_ext <<_ACEOF
5715 /* confdefs.h.  */
5716 _ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h.  */
5720 @%:@ifdef __STDC__
5721 @%:@ include <limits.h>
5722 @%:@else
5723 @%:@ include <assert.h>
5724 @%:@endif
5725                      Syntax error
5726 _ACEOF
5727 if { (ac_try="$ac_cpp conftest.$ac_ext"
5728 case "(($ac_try" in
5729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730   *) ac_try_echo=$ac_try;;
5731 esac
5732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5734   ac_status=$?
5735   grep -v '^ *+' conftest.er1 >conftest.err
5736   rm -f conftest.er1
5737   cat conftest.err >&5
5738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739   (exit $ac_status); } >/dev/null && {
5740          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5741          test ! -s conftest.err
5742        }; then
5743   :
5744 else
5745   echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.$ac_ext >&5
5748   # Broken: fails on valid input.
5749 continue
5752 rm -f conftest.err conftest.$ac_ext
5754   # OK, works on sane cases.  Now check whether nonexistent headers
5755   # can be detected and how.
5756   cat >conftest.$ac_ext <<_ACEOF
5757 /* confdefs.h.  */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h.  */
5762 @%:@include <ac_nonexistent.h>
5763 _ACEOF
5764 if { (ac_try="$ac_cpp conftest.$ac_ext"
5765 case "(($ac_try" in
5766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767   *) ac_try_echo=$ac_try;;
5768 esac
5769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5770   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5771   ac_status=$?
5772   grep -v '^ *+' conftest.er1 >conftest.err
5773   rm -f conftest.er1
5774   cat conftest.err >&5
5775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776   (exit $ac_status); } >/dev/null && {
5777          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5778          test ! -s conftest.err
5779        }; then
5780   # Broken: success on invalid input.
5781 continue
5782 else
5783   echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5786   # Passes both tests.
5787 ac_preproc_ok=:
5788 break
5791 rm -f conftest.err conftest.$ac_ext
5793 done
5794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5795 rm -f conftest.err conftest.$ac_ext
5796 if $ac_preproc_ok; then
5797   break
5800     done
5801     ac_cv_prog_CXXCPP=$CXXCPP
5802   
5804   CXXCPP=$ac_cv_prog_CXXCPP
5805 else
5806   ac_cv_prog_CXXCPP=$CXXCPP
5808 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5809 echo "${ECHO_T}$CXXCPP" >&6; }
5810 ac_preproc_ok=false
5811 for ac_cxx_preproc_warn_flag in '' yes
5813   # Use a header file that comes with gcc, so configuring glibc
5814   # with a fresh cross-compiler works.
5815   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5816   # <limits.h> exists even on freestanding compilers.
5817   # On the NeXT, cc -E runs the code through the compiler's parser,
5818   # not just through cpp. "Syntax error" is here to catch this case.
5819   cat >conftest.$ac_ext <<_ACEOF
5820 /* confdefs.h.  */
5821 _ACEOF
5822 cat confdefs.h >>conftest.$ac_ext
5823 cat >>conftest.$ac_ext <<_ACEOF
5824 /* end confdefs.h.  */
5825 @%:@ifdef __STDC__
5826 @%:@ include <limits.h>
5827 @%:@else
5828 @%:@ include <assert.h>
5829 @%:@endif
5830                      Syntax error
5831 _ACEOF
5832 if { (ac_try="$ac_cpp conftest.$ac_ext"
5833 case "(($ac_try" in
5834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835   *) ac_try_echo=$ac_try;;
5836 esac
5837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5839   ac_status=$?
5840   grep -v '^ *+' conftest.er1 >conftest.err
5841   rm -f conftest.er1
5842   cat conftest.err >&5
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); } >/dev/null && {
5845          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5846          test ! -s conftest.err
5847        }; then
5848   :
5849 else
5850   echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5853   # Broken: fails on valid input.
5854 continue
5857 rm -f conftest.err conftest.$ac_ext
5859   # OK, works on sane cases.  Now check whether nonexistent headers
5860   # can be detected and how.
5861   cat >conftest.$ac_ext <<_ACEOF
5862 /* confdefs.h.  */
5863 _ACEOF
5864 cat confdefs.h >>conftest.$ac_ext
5865 cat >>conftest.$ac_ext <<_ACEOF
5866 /* end confdefs.h.  */
5867 @%:@include <ac_nonexistent.h>
5868 _ACEOF
5869 if { (ac_try="$ac_cpp conftest.$ac_ext"
5870 case "(($ac_try" in
5871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872   *) ac_try_echo=$ac_try;;
5873 esac
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5876   ac_status=$?
5877   grep -v '^ *+' conftest.er1 >conftest.err
5878   rm -f conftest.er1
5879   cat conftest.err >&5
5880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881   (exit $ac_status); } >/dev/null && {
5882          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5883          test ! -s conftest.err
5884        }; then
5885   # Broken: success on invalid input.
5886 continue
5887 else
5888   echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5891   # Passes both tests.
5892 ac_preproc_ok=:
5893 break
5896 rm -f conftest.err conftest.$ac_ext
5898 done
5899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5900 rm -f conftest.err conftest.$ac_ext
5901 if $ac_preproc_ok; then
5902   :
5903 else
5904   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5905 See \`config.log' for more details." >&5
5906 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5907 See \`config.log' for more details." >&2;}
5908    { (exit 1); exit 1; }; }
5911 ac_ext=cpp
5912 ac_cpp='$CXXCPP $CPPFLAGS'
5913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5920 ac_ext=f
5921 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5922 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5923 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5924 if test -n "$ac_tool_prefix"; then
5925   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
5926   do
5927     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5928 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5931 if test "${ac_cv_prog_F77+set}" = set; then
5932   echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934   if test -n "$F77"; then
5935   ac_cv_prog_F77="$F77" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5940   IFS=$as_save_IFS
5941   test -z "$as_dir" && as_dir=.
5942   for ac_exec_ext in '' $ac_executable_extensions; do
5943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5944     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946     break 2
5947   fi
5948 done
5949 done
5950 IFS=$as_save_IFS
5954 F77=$ac_cv_prog_F77
5955 if test -n "$F77"; then
5956   { echo "$as_me:$LINENO: result: $F77" >&5
5957 echo "${ECHO_T}$F77" >&6; }
5958 else
5959   { echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6; }
5964     test -n "$F77" && break
5965   done
5967 if test -z "$F77"; then
5968   ac_ct_F77=$F77
5969   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
5971   # Extract the first word of "$ac_prog", so it can be a program name with args.
5972 set dummy $ac_prog; ac_word=$2
5973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5975 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5976   echo $ECHO_N "(cached) $ECHO_C" >&6
5977 else
5978   if test -n "$ac_ct_F77"; then
5979   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5980 else
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 for as_dir in $PATH
5984   IFS=$as_save_IFS
5985   test -z "$as_dir" && as_dir=.
5986   for ac_exec_ext in '' $ac_executable_extensions; do
5987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5988     ac_cv_prog_ac_ct_F77="$ac_prog"
5989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5990     break 2
5991   fi
5992 done
5993 done
5994 IFS=$as_save_IFS
5998 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5999 if test -n "$ac_ct_F77"; then
6000   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6001 echo "${ECHO_T}$ac_ct_F77" >&6; }
6002 else
6003   { echo "$as_me:$LINENO: result: no" >&5
6004 echo "${ECHO_T}no" >&6; }
6008   test -n "$ac_ct_F77" && break
6009 done
6011   if test "x$ac_ct_F77" = x; then
6012     F77=""
6013   else
6014     case $cross_compiling:$ac_tool_warned in
6015 yes:)
6016 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6017 whose name does not start with the host triplet.  If you think this
6018 configuration is useful to you, please write to autoconf@gnu.org." >&5
6019 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6020 whose name does not start with the host triplet.  If you think this
6021 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6022 ac_tool_warned=yes ;;
6023 esac
6024     F77=$ac_ct_F77
6025   fi
6029 # Provide some information about the compiler.
6030 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6031 ac_compiler=`set X $ac_compile; echo $2`
6032 { (ac_try="$ac_compiler --version >&5"
6033 case "(($ac_try" in
6034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035   *) ac_try_echo=$ac_try;;
6036 esac
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038   (eval "$ac_compiler --version >&5") 2>&5
6039   ac_status=$?
6040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041   (exit $ac_status); }
6042 { (ac_try="$ac_compiler -v >&5"
6043 case "(($ac_try" in
6044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045   *) ac_try_echo=$ac_try;;
6046 esac
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048   (eval "$ac_compiler -v >&5") 2>&5
6049   ac_status=$?
6050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051   (exit $ac_status); }
6052 { (ac_try="$ac_compiler -V >&5"
6053 case "(($ac_try" in
6054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055   *) ac_try_echo=$ac_try;;
6056 esac
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058   (eval "$ac_compiler -V >&5") 2>&5
6059   ac_status=$?
6060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061   (exit $ac_status); }
6062 rm -f a.out
6064 # If we don't use `.F' as extension, the preprocessor is not run on the
6065 # input file.  (Note that this only needs to work for GNU compilers.)
6066 ac_save_ext=$ac_ext
6067 ac_ext=F
6068 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6069 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6070 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6071   echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073   cat >conftest.$ac_ext <<_ACEOF
6074       program main
6075 #ifndef __GNUC__
6076        choke me
6077 #endif
6079       end
6080 _ACEOF
6081 rm -f conftest.$ac_objext
6082 if { (ac_try="$ac_compile"
6083 case "(($ac_try" in
6084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085   *) ac_try_echo=$ac_try;;
6086 esac
6087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6088   (eval "$ac_compile") 2>conftest.er1
6089   ac_status=$?
6090   grep -v '^ *+' conftest.er1 >conftest.err
6091   rm -f conftest.er1
6092   cat conftest.err >&5
6093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094   (exit $ac_status); } && {
6095          test -z "$ac_f77_werror_flag" ||
6096          test ! -s conftest.err
6097        } && test -s conftest.$ac_objext; then
6098   ac_compiler_gnu=yes
6099 else
6100   echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6103         ac_compiler_gnu=no
6106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6110 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6111 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6112 ac_ext=$ac_save_ext
6113 ac_test_FFLAGS=${FFLAGS+set}
6114 ac_save_FFLAGS=$FFLAGS
6115 FFLAGS=
6116 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6117 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6118 if test "${ac_cv_prog_f77_g+set}" = set; then
6119   echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121   FFLAGS=-g
6122 cat >conftest.$ac_ext <<_ACEOF
6123       program main
6125       end
6126 _ACEOF
6127 rm -f conftest.$ac_objext
6128 if { (ac_try="$ac_compile"
6129 case "(($ac_try" in
6130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6131   *) ac_try_echo=$ac_try;;
6132 esac
6133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6134   (eval "$ac_compile") 2>conftest.er1
6135   ac_status=$?
6136   grep -v '^ *+' conftest.er1 >conftest.err
6137   rm -f conftest.er1
6138   cat conftest.err >&5
6139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140   (exit $ac_status); } && {
6141          test -z "$ac_f77_werror_flag" ||
6142          test ! -s conftest.err
6143        } && test -s conftest.$ac_objext; then
6144   ac_cv_prog_f77_g=yes
6145 else
6146   echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6149         ac_cv_prog_f77_g=no
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6156 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6157 if test "$ac_test_FFLAGS" = set; then
6158   FFLAGS=$ac_save_FFLAGS
6159 elif test $ac_cv_prog_f77_g = yes; then
6160   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6161     FFLAGS="-g -O2"
6162   else
6163     FFLAGS="-g"
6164   fi
6165 else
6166   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6167     FFLAGS="-O2"
6168   else
6169     FFLAGS=
6170   fi
6173 G77=`test $ac_compiler_gnu = yes && echo yes`
6174 ac_ext=c
6175 ac_cpp='$CPP $CPPFLAGS'
6176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6182 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6183 # find the maximum length of command line arguments
6184 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6185 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6186 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6187   echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189     i=0
6190   teststring="ABCD"
6192   case $build_os in
6193   msdosdjgpp*)
6194     # On DJGPP, this test can blow up pretty badly due to problems in libc
6195     # (any single argument exceeding 2000 bytes causes a buffer overrun
6196     # during glob expansion).  Even if it were fixed, the result of this
6197     # check would be larger than it should be.
6198     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6199     ;;
6201   gnu*)
6202     # Under GNU Hurd, this test is not required because there is
6203     # no limit to the length of command line arguments.
6204     # Libtool will interpret -1 as no limit whatsoever
6205     lt_cv_sys_max_cmd_len=-1;
6206     ;;
6208   cygwin* | mingw*)
6209     # On Win9x/ME, this test blows up -- it succeeds, but takes
6210     # about 5 minutes as the teststring grows exponentially.
6211     # Worse, since 9x/ME are not pre-emptively multitasking,
6212     # you end up with a "frozen" computer, even though with patience
6213     # the test eventually succeeds (with a max line length of 256k).
6214     # Instead, let's just punt: use the minimum linelength reported by
6215     # all of the supported platforms: 8192 (on NT/2K/XP).
6216     lt_cv_sys_max_cmd_len=8192;
6217     ;;
6219   amigaos*)
6220     # On AmigaOS with pdksh, this test takes hours, literally.
6221     # So we just punt and use a minimum line length of 8192.
6222     lt_cv_sys_max_cmd_len=8192;
6223     ;;
6225   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6226     # This has been around since 386BSD, at least.  Likely further.
6227     if test -x /sbin/sysctl; then
6228       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6229     elif test -x /usr/sbin/sysctl; then
6230       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6231     else
6232       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6233     fi
6234     # And add a safety zone
6235     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6236     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6237     ;;
6239   interix*)
6240     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6241     lt_cv_sys_max_cmd_len=196608
6242     ;;
6244   osf*)
6245     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6246     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6247     # nice to cause kernel panics so lets avoid the loop below.
6248     # First set a reasonable default.
6249     lt_cv_sys_max_cmd_len=16384
6250     #
6251     if test -x /sbin/sysconfig; then
6252       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6253         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6254       esac
6255     fi
6256     ;;
6257   sco3.2v5*)
6258     lt_cv_sys_max_cmd_len=102400
6259     ;;
6260   sysv5* | sco5v6* | sysv4.2uw2*)
6261     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6262     if test -n "$kargmax"; then
6263       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6264     else
6265       lt_cv_sys_max_cmd_len=32768
6266     fi
6267     ;;
6268   *)
6269     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6270     if test -n "$lt_cv_sys_max_cmd_len"; then
6271       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6272       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6273     else
6274       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6275       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6276                = "XX$teststring") >/dev/null 2>&1 &&
6277               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6278               lt_cv_sys_max_cmd_len=$new_result &&
6279               test $i != 17 # 1/2 MB should be enough
6280       do
6281         i=`expr $i + 1`
6282         teststring=$teststring$teststring
6283       done
6284       teststring=
6285       # Add a significant safety factor because C++ compilers can tack on massive
6286       # amounts of additional arguments before passing them to the linker.
6287       # It appears as though 1/2 is a usable value.
6288       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6289     fi
6290     ;;
6291   esac
6295 if test -n $lt_cv_sys_max_cmd_len ; then
6296   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6297 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6298 else
6299   { echo "$as_me:$LINENO: result: none" >&5
6300 echo "${ECHO_T}none" >&6; }
6307 # Check for command to grab the raw symbol name followed by C symbol from nm.
6308 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6309 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6310 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6311   echo $ECHO_N "(cached) $ECHO_C" >&6
6312 else
6313   
6314 # These are sane defaults that work on at least a few old systems.
6315 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6317 # Character class describing NM global symbol codes.
6318 symcode='[BCDEGRST]'
6320 # Regexp to match symbols that can be accessed directly from C.
6321 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6323 # Transform an extracted symbol line into a proper C declaration
6324 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6326 # Transform an extracted symbol line into symbol name and symbol address
6327 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'"
6329 # Define system-specific variables.
6330 case $host_os in
6331 aix*)
6332   symcode='[BCDT]'
6333   ;;
6334 cygwin* | mingw* | pw32*)
6335   symcode='[ABCDGISTW]'
6336   ;;
6337 hpux*) # Its linker distinguishes data from code symbols
6338   if test "$host_cpu" = ia64; then
6339     symcode='[ABCDEGRST]'
6340   fi
6341   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6342   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'"
6343   ;;
6344 linux* | k*bsd*-gnu)
6345   if test "$host_cpu" = ia64; then
6346     symcode='[ABCDGIRSTW]'
6347     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6348     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'"
6349   fi
6350   ;;
6351 irix* | nonstopux*)
6352   symcode='[BCDEGRST]'
6353   ;;
6354 osf*)
6355   symcode='[BCDEGQRST]'
6356   ;;
6357 solaris*)
6358   symcode='[BDRT]'
6359   ;;
6360 sco3.2v5*)
6361   symcode='[DT]'
6362   ;;
6363 sysv4.2uw2*)
6364   symcode='[DT]'
6365   ;;
6366 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6367   symcode='[ABDT]'
6368   ;;
6369 sysv4)
6370   symcode='[DFNSTU]'
6371   ;;
6372 esac
6374 # Handle CRLF in mingw tool chain
6375 opt_cr=
6376 case $build_os in
6377 mingw*)
6378   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6379   ;;
6380 esac
6382 # If we're using GNU nm, then use its standard symbol codes.
6383 case `$NM -V 2>&1` in
6384 *GNU* | *'with BFD'*)
6385   symcode='[ABCDGIRSTW]' ;;
6386 esac
6388 # Try without a prefix undercore, then with it.
6389 for ac_symprfx in "" "_"; do
6391   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6392   symxfrm="\\1 $ac_symprfx\\2 \\2"
6394   # Write the raw and C identifiers.
6395   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6397   # Check to see that the pipe works correctly.
6398   pipe_works=no
6400   rm -f conftest*
6401   cat > conftest.$ac_ext <<EOF
6402 #ifdef __cplusplus
6403 extern "C" {
6404 #endif
6405 char nm_test_var;
6406 void nm_test_func(){}
6407 #ifdef __cplusplus
6409 #endif
6410 int main(){nm_test_var='a';nm_test_func();return(0);}
6413   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6414   (eval $ac_compile) 2>&5
6415   ac_status=$?
6416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417   (exit $ac_status); }; then
6418     # Now try to grab the symbols.
6419     nlist=conftest.nm
6420     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6421   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6422   ac_status=$?
6423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424   (exit $ac_status); } && test -s "$nlist"; then
6425       # Try sorting and uniquifying the output.
6426       if sort "$nlist" | uniq > "$nlist"T; then
6427         mv -f "$nlist"T "$nlist"
6428       else
6429         rm -f "$nlist"T
6430       fi
6432       # Make sure that we snagged all the symbols we need.
6433       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6434         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6435           cat <<EOF > conftest.$ac_ext
6436 #ifdef __cplusplus
6437 extern "C" {
6438 #endif
6441           # Now generate the symbol file.
6442           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6444           cat <<EOF >> conftest.$ac_ext
6445 #if defined (__STDC__) && __STDC__
6446 # define lt_ptr_t void *
6447 #else
6448 # define lt_ptr_t char *
6449 # define const
6450 #endif
6452 /* The mapping between symbol names and symbols. */
6453 const struct {
6454   const char *name;
6455   lt_ptr_t address;
6457 lt_preloaded_symbols[] =
6460           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6461           cat <<\EOF >> conftest.$ac_ext
6462   {0, (lt_ptr_t) 0}
6465 #ifdef __cplusplus
6467 #endif
6469           # Now try linking the two files.
6470           mv conftest.$ac_objext conftstm.$ac_objext
6471           lt_save_LIBS="$LIBS"
6472           lt_save_CFLAGS="$CFLAGS"
6473           LIBS="conftstm.$ac_objext"
6474           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6475           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6476   (eval $ac_link) 2>&5
6477   ac_status=$?
6478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6480             pipe_works=yes
6481           fi
6482           LIBS="$lt_save_LIBS"
6483           CFLAGS="$lt_save_CFLAGS"
6484         else
6485           echo "cannot find nm_test_func in $nlist" >&5
6486         fi
6487       else
6488         echo "cannot find nm_test_var in $nlist" >&5
6489       fi
6490     else
6491       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6492     fi
6493   else
6494     echo "$progname: failed program was:" >&5
6495     cat conftest.$ac_ext >&5
6496   fi
6497   rm -rf conftest* conftst*
6499   # Do not use the global_symbol_pipe unless it works.
6500   if test "$pipe_works" = yes; then
6501     break
6502   else
6503     lt_cv_sys_global_symbol_pipe=
6504   fi
6505 done
6509 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6510   lt_cv_sys_global_symbol_to_cdecl=
6512 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6513   { echo "$as_me:$LINENO: result: failed" >&5
6514 echo "${ECHO_T}failed" >&6; }
6515 else
6516   { echo "$as_me:$LINENO: result: ok" >&5
6517 echo "${ECHO_T}ok" >&6; }
6520 { echo "$as_me:$LINENO: checking for objdir" >&5
6521 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6522 if test "${lt_cv_objdir+set}" = set; then
6523   echo $ECHO_N "(cached) $ECHO_C" >&6
6524 else
6525   rm -f .libs 2>/dev/null
6526 mkdir .libs 2>/dev/null
6527 if test -d .libs; then
6528   lt_cv_objdir=.libs
6529 else
6530   # MS-DOS does not allow filenames that begin with a dot.
6531   lt_cv_objdir=_libs
6533 rmdir .libs 2>/dev/null
6535 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6536 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6537 objdir=$lt_cv_objdir
6543 case $host_os in
6544 aix3*)
6545   # AIX sometimes has problems with the GCC collect2 program.  For some
6546   # reason, if we set the COLLECT_NAMES environment variable, the problems
6547   # vanish in a puff of smoke.
6548   if test "X${COLLECT_NAMES+set}" != Xset; then
6549     COLLECT_NAMES=
6550     export COLLECT_NAMES
6551   fi
6552   ;;
6553 esac
6555 # Sed substitution that helps us do robust quoting.  It backslashifies
6556 # metacharacters that are still active within double-quoted strings.
6557 Xsed='sed -e 1s/^X//'
6558 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6560 # Same as above, but do not quote variable references.
6561 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6563 # Sed substitution to delay expansion of an escaped shell variable in a
6564 # double_quote_subst'ed string.
6565 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6567 # Sed substitution to avoid accidental globbing in evaled expressions
6568 no_glob_subst='s/\*/\\\*/g'
6570 # Constants:
6571 rm="rm -f"
6573 # Global variables:
6574 default_ofile=libtool
6575 can_build_shared=yes
6577 # All known linkers require a `.a' archive for static linking (except MSVC,
6578 # which needs '.lib').
6579 libext=a
6580 ltmain="$ac_aux_dir/ltmain.sh"
6581 ofile="$default_ofile"
6582 with_gnu_ld="$lt_cv_prog_gnu_ld"
6584 if test -n "$ac_tool_prefix"; then
6585   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6586 set dummy ${ac_tool_prefix}ar; ac_word=$2
6587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6589 if test "${ac_cv_prog_AR+set}" = set; then
6590   echo $ECHO_N "(cached) $ECHO_C" >&6
6591 else
6592   if test -n "$AR"; then
6593   ac_cv_prog_AR="$AR" # Let the user override the test.
6594 else
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6598   IFS=$as_save_IFS
6599   test -z "$as_dir" && as_dir=.
6600   for ac_exec_ext in '' $ac_executable_extensions; do
6601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602     ac_cv_prog_AR="${ac_tool_prefix}ar"
6603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6604     break 2
6605   fi
6606 done
6607 done
6608 IFS=$as_save_IFS
6612 AR=$ac_cv_prog_AR
6613 if test -n "$AR"; then
6614   { echo "$as_me:$LINENO: result: $AR" >&5
6615 echo "${ECHO_T}$AR" >&6; }
6616 else
6617   { echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6; }
6623 if test -z "$ac_cv_prog_AR"; then
6624   ac_ct_AR=$AR
6625   # Extract the first word of "ar", so it can be a program name with args.
6626 set dummy ar; ac_word=$2
6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6630   echo $ECHO_N "(cached) $ECHO_C" >&6
6631 else
6632   if test -n "$ac_ct_AR"; then
6633   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6638   IFS=$as_save_IFS
6639   test -z "$as_dir" && as_dir=.
6640   for ac_exec_ext in '' $ac_executable_extensions; do
6641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642     ac_cv_prog_ac_ct_AR="ar"
6643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644     break 2
6645   fi
6646 done
6647 done
6648 IFS=$as_save_IFS
6652 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6653 if test -n "$ac_ct_AR"; then
6654   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6655 echo "${ECHO_T}$ac_ct_AR" >&6; }
6656 else
6657   { echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6; }
6661   if test "x$ac_ct_AR" = x; then
6662     AR="false"
6663   else
6664     case $cross_compiling:$ac_tool_warned in
6665 yes:)
6666 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6667 whose name does not start with the host triplet.  If you think this
6668 configuration is useful to you, please write to autoconf@gnu.org." >&5
6669 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6670 whose name does not start with the host triplet.  If you think this
6671 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6672 ac_tool_warned=yes ;;
6673 esac
6674     AR=$ac_ct_AR
6675   fi
6676 else
6677   AR="$ac_cv_prog_AR"
6680 if test -n "$ac_tool_prefix"; then
6681   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6682 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6685 if test "${ac_cv_prog_RANLIB+set}" = set; then
6686   echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688   if test -n "$RANLIB"; then
6689   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6690 else
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 for as_dir in $PATH
6694   IFS=$as_save_IFS
6695   test -z "$as_dir" && as_dir=.
6696   for ac_exec_ext in '' $ac_executable_extensions; do
6697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6698     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6700     break 2
6701   fi
6702 done
6703 done
6704 IFS=$as_save_IFS
6708 RANLIB=$ac_cv_prog_RANLIB
6709 if test -n "$RANLIB"; then
6710   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6711 echo "${ECHO_T}$RANLIB" >&6; }
6712 else
6713   { echo "$as_me:$LINENO: result: no" >&5
6714 echo "${ECHO_T}no" >&6; }
6719 if test -z "$ac_cv_prog_RANLIB"; then
6720   ac_ct_RANLIB=$RANLIB
6721   # Extract the first word of "ranlib", so it can be a program name with args.
6722 set dummy ranlib; ac_word=$2
6723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6725 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6726   echo $ECHO_N "(cached) $ECHO_C" >&6
6727 else
6728   if test -n "$ac_ct_RANLIB"; then
6729   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6730 else
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6734   IFS=$as_save_IFS
6735   test -z "$as_dir" && as_dir=.
6736   for ac_exec_ext in '' $ac_executable_extensions; do
6737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738     ac_cv_prog_ac_ct_RANLIB="ranlib"
6739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6740     break 2
6741   fi
6742 done
6743 done
6744 IFS=$as_save_IFS
6748 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6749 if test -n "$ac_ct_RANLIB"; then
6750   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6751 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6752 else
6753   { echo "$as_me:$LINENO: result: no" >&5
6754 echo "${ECHO_T}no" >&6; }
6757   if test "x$ac_ct_RANLIB" = x; then
6758     RANLIB=":"
6759   else
6760     case $cross_compiling:$ac_tool_warned in
6761 yes:)
6762 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6763 whose name does not start with the host triplet.  If you think this
6764 configuration is useful to you, please write to autoconf@gnu.org." >&5
6765 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6766 whose name does not start with the host triplet.  If you think this
6767 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6768 ac_tool_warned=yes ;;
6769 esac
6770     RANLIB=$ac_ct_RANLIB
6771   fi
6772 else
6773   RANLIB="$ac_cv_prog_RANLIB"
6776 if test -n "$ac_tool_prefix"; then
6777   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6778 set dummy ${ac_tool_prefix}strip; ac_word=$2
6779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6781 if test "${ac_cv_prog_STRIP+set}" = set; then
6782   echo $ECHO_N "(cached) $ECHO_C" >&6
6783 else
6784   if test -n "$STRIP"; then
6785   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6786 else
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6790   IFS=$as_save_IFS
6791   test -z "$as_dir" && as_dir=.
6792   for ac_exec_ext in '' $ac_executable_extensions; do
6793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796     break 2
6797   fi
6798 done
6799 done
6800 IFS=$as_save_IFS
6804 STRIP=$ac_cv_prog_STRIP
6805 if test -n "$STRIP"; then
6806   { echo "$as_me:$LINENO: result: $STRIP" >&5
6807 echo "${ECHO_T}$STRIP" >&6; }
6808 else
6809   { echo "$as_me:$LINENO: result: no" >&5
6810 echo "${ECHO_T}no" >&6; }
6815 if test -z "$ac_cv_prog_STRIP"; then
6816   ac_ct_STRIP=$STRIP
6817   # Extract the first word of "strip", so it can be a program name with args.
6818 set dummy strip; ac_word=$2
6819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6822   echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824   if test -n "$ac_ct_STRIP"; then
6825   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6830   IFS=$as_save_IFS
6831   test -z "$as_dir" && as_dir=.
6832   for ac_exec_ext in '' $ac_executable_extensions; do
6833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834     ac_cv_prog_ac_ct_STRIP="strip"
6835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836     break 2
6837   fi
6838 done
6839 done
6840 IFS=$as_save_IFS
6844 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6845 if test -n "$ac_ct_STRIP"; then
6846   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6847 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6848 else
6849   { echo "$as_me:$LINENO: result: no" >&5
6850 echo "${ECHO_T}no" >&6; }
6853   if test "x$ac_ct_STRIP" = x; then
6854     STRIP=":"
6855   else
6856     case $cross_compiling:$ac_tool_warned in
6857 yes:)
6858 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6859 whose name does not start with the host triplet.  If you think this
6860 configuration is useful to you, please write to autoconf@gnu.org." >&5
6861 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6862 whose name does not start with the host triplet.  If you think this
6863 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6864 ac_tool_warned=yes ;;
6865 esac
6866     STRIP=$ac_ct_STRIP
6867   fi
6868 else
6869   STRIP="$ac_cv_prog_STRIP"
6873 old_CC="$CC"
6874 old_CFLAGS="$CFLAGS"
6876 # Set sane defaults for various variables
6877 test -z "$AR" && AR=ar
6878 test -z "$AR_FLAGS" && AR_FLAGS=cru
6879 test -z "$AS" && AS=as
6880 test -z "$CC" && CC=cc
6881 test -z "$LTCC" && LTCC=$CC
6882 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6883 test -z "$DLLTOOL" && DLLTOOL=dlltool
6884 test -z "$LD" && LD=ld
6885 test -z "$LN_S" && LN_S="ln -s"
6886 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6887 test -z "$NM" && NM=nm
6888 test -z "$SED" && SED=sed
6889 test -z "$OBJDUMP" && OBJDUMP=objdump
6890 test -z "$RANLIB" && RANLIB=:
6891 test -z "$STRIP" && STRIP=:
6892 test -z "$ac_objext" && ac_objext=o
6894 # Determine commands to create old-style static archives.
6895 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6896 old_postinstall_cmds='chmod 644 $oldlib'
6897 old_postuninstall_cmds=
6899 if test -n "$RANLIB"; then
6900   case $host_os in
6901   openbsd*)
6902     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6903     ;;
6904   *)
6905     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6906     ;;
6907   esac
6908   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6911 for cc_temp in $compiler""; do
6912   case $cc_temp in
6913     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6914     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6915     \-*) ;;
6916     *) break;;
6917   esac
6918 done
6919 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6922 # Only perform the check for file, if the check method requires it
6923 case $deplibs_check_method in
6924 file_magic*)
6925   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6926     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6927 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6928 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6929   echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931   case $MAGIC_CMD in
6932 [\\/*] |  ?:[\\/]*)
6933   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6934   ;;
6936   lt_save_MAGIC_CMD="$MAGIC_CMD"
6937   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6938   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6939   for ac_dir in $ac_dummy; do
6940     IFS="$lt_save_ifs"
6941     test -z "$ac_dir" && ac_dir=.
6942     if test -f $ac_dir/${ac_tool_prefix}file; then
6943       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6944       if test -n "$file_magic_test_file"; then
6945         case $deplibs_check_method in
6946         "file_magic "*)
6947           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6948           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6949           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6950             $EGREP "$file_magic_regex" > /dev/null; then
6951             :
6952           else
6953             cat <<EOF 1>&2
6955 *** Warning: the command libtool uses to detect shared libraries,
6956 *** $file_magic_cmd, produces output that libtool cannot recognize.
6957 *** The result is that libtool may fail to recognize shared libraries
6958 *** as such.  This will affect the creation of libtool libraries that
6959 *** depend on shared libraries, but programs linked with such libtool
6960 *** libraries will work regardless of this problem.  Nevertheless, you
6961 *** may want to report the problem to your system manager and/or to
6962 *** bug-libtool@gnu.org
6965           fi ;;
6966         esac
6967       fi
6968       break
6969     fi
6970   done
6971   IFS="$lt_save_ifs"
6972   MAGIC_CMD="$lt_save_MAGIC_CMD"
6973   ;;
6974 esac
6977 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6978 if test -n "$MAGIC_CMD"; then
6979   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6980 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6981 else
6982   { echo "$as_me:$LINENO: result: no" >&5
6983 echo "${ECHO_T}no" >&6; }
6986 if test -z "$lt_cv_path_MAGIC_CMD"; then
6987   if test -n "$ac_tool_prefix"; then
6988     { echo "$as_me:$LINENO: checking for file" >&5
6989 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6990 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6991   echo $ECHO_N "(cached) $ECHO_C" >&6
6992 else
6993   case $MAGIC_CMD in
6994 [\\/*] |  ?:[\\/]*)
6995   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6996   ;;
6998   lt_save_MAGIC_CMD="$MAGIC_CMD"
6999   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7000   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7001   for ac_dir in $ac_dummy; do
7002     IFS="$lt_save_ifs"
7003     test -z "$ac_dir" && ac_dir=.
7004     if test -f $ac_dir/file; then
7005       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7006       if test -n "$file_magic_test_file"; then
7007         case $deplibs_check_method in
7008         "file_magic "*)
7009           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7010           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7011           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7012             $EGREP "$file_magic_regex" > /dev/null; then
7013             :
7014           else
7015             cat <<EOF 1>&2
7017 *** Warning: the command libtool uses to detect shared libraries,
7018 *** $file_magic_cmd, produces output that libtool cannot recognize.
7019 *** The result is that libtool may fail to recognize shared libraries
7020 *** as such.  This will affect the creation of libtool libraries that
7021 *** depend on shared libraries, but programs linked with such libtool
7022 *** libraries will work regardless of this problem.  Nevertheless, you
7023 *** may want to report the problem to your system manager and/or to
7024 *** bug-libtool@gnu.org
7027           fi ;;
7028         esac
7029       fi
7030       break
7031     fi
7032   done
7033   IFS="$lt_save_ifs"
7034   MAGIC_CMD="$lt_save_MAGIC_CMD"
7035   ;;
7036 esac
7039 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7040 if test -n "$MAGIC_CMD"; then
7041   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7042 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7043 else
7044   { echo "$as_me:$LINENO: result: no" >&5
7045 echo "${ECHO_T}no" >&6; }
7048   else
7049     MAGIC_CMD=:
7050   fi
7053   fi
7054   ;;
7055 esac
7058   case $host_os in
7059     rhapsody* | darwin*)
7060     if test -n "$ac_tool_prefix"; then
7061   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7062 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7065 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7066   echo $ECHO_N "(cached) $ECHO_C" >&6
7067 else
7068   if test -n "$DSYMUTIL"; then
7069   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7070 else
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7074   IFS=$as_save_IFS
7075   test -z "$as_dir" && as_dir=.
7076   for ac_exec_ext in '' $ac_executable_extensions; do
7077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7078     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080     break 2
7081   fi
7082 done
7083 done
7084 IFS=$as_save_IFS
7088 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7089 if test -n "$DSYMUTIL"; then
7090   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7091 echo "${ECHO_T}$DSYMUTIL" >&6; }
7092 else
7093   { echo "$as_me:$LINENO: result: no" >&5
7094 echo "${ECHO_T}no" >&6; }
7099 if test -z "$ac_cv_prog_DSYMUTIL"; then
7100   ac_ct_DSYMUTIL=$DSYMUTIL
7101   # Extract the first word of "dsymutil", so it can be a program name with args.
7102 set dummy dsymutil; ac_word=$2
7103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7105 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7106   echo $ECHO_N "(cached) $ECHO_C" >&6
7107 else
7108   if test -n "$ac_ct_DSYMUTIL"; then
7109   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7110 else
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7114   IFS=$as_save_IFS
7115   test -z "$as_dir" && as_dir=.
7116   for ac_exec_ext in '' $ac_executable_extensions; do
7117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7118     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7120     break 2
7121   fi
7122 done
7123 done
7124 IFS=$as_save_IFS
7128 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7129 if test -n "$ac_ct_DSYMUTIL"; then
7130   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7131 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7132 else
7133   { echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6; }
7137   if test "x$ac_ct_DSYMUTIL" = x; then
7138     DSYMUTIL=":"
7139   else
7140     case $cross_compiling:$ac_tool_warned in
7141 yes:)
7142 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7143 whose name does not start with the host triplet.  If you think this
7144 configuration is useful to you, please write to autoconf@gnu.org." >&5
7145 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7146 whose name does not start with the host triplet.  If you think this
7147 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7148 ac_tool_warned=yes ;;
7149 esac
7150     DSYMUTIL=$ac_ct_DSYMUTIL
7151   fi
7152 else
7153   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7156     if test -n "$ac_tool_prefix"; then
7157   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7158 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7162   echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164   if test -n "$NMEDIT"; then
7165   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7170   IFS=$as_save_IFS
7171   test -z "$as_dir" && as_dir=.
7172   for ac_exec_ext in '' $ac_executable_extensions; do
7173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7174     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7176     break 2
7177   fi
7178 done
7179 done
7180 IFS=$as_save_IFS
7184 NMEDIT=$ac_cv_prog_NMEDIT
7185 if test -n "$NMEDIT"; then
7186   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7187 echo "${ECHO_T}$NMEDIT" >&6; }
7188 else
7189   { echo "$as_me:$LINENO: result: no" >&5
7190 echo "${ECHO_T}no" >&6; }
7195 if test -z "$ac_cv_prog_NMEDIT"; then
7196   ac_ct_NMEDIT=$NMEDIT
7197   # Extract the first word of "nmedit", so it can be a program name with args.
7198 set dummy nmedit; ac_word=$2
7199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7201 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7202   echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204   if test -n "$ac_ct_NMEDIT"; then
7205   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7206 else
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH
7210   IFS=$as_save_IFS
7211   test -z "$as_dir" && as_dir=.
7212   for ac_exec_ext in '' $ac_executable_extensions; do
7213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7214     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7216     break 2
7217   fi
7218 done
7219 done
7220 IFS=$as_save_IFS
7224 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7225 if test -n "$ac_ct_NMEDIT"; then
7226   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7227 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7228 else
7229   { echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6; }
7233   if test "x$ac_ct_NMEDIT" = x; then
7234     NMEDIT=":"
7235   else
7236     case $cross_compiling:$ac_tool_warned in
7237 yes:)
7238 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7239 whose name does not start with the host triplet.  If you think this
7240 configuration is useful to you, please write to autoconf@gnu.org." >&5
7241 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7242 whose name does not start with the host triplet.  If you think this
7243 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7244 ac_tool_warned=yes ;;
7245 esac
7246     NMEDIT=$ac_ct_NMEDIT
7247   fi
7248 else
7249   NMEDIT="$ac_cv_prog_NMEDIT"
7253     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7254 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7255 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7256   echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258   lt_cv_apple_cc_single_mod=no
7259       if test -z "${LT_MULTI_MODULE}"; then
7260    # By default we will add the -single_module flag. You can override
7261    # by either setting the environment variable LT_MULTI_MODULE
7262    # non-empty at configure time, or by adding -multi_module to the
7263    # link flags.
7264    echo "int foo(void){return 1;}" > conftest.c
7265    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7266      -dynamiclib ${wl}-single_module conftest.c
7267    if test -f libconftest.dylib; then
7268      lt_cv_apple_cc_single_mod=yes
7269      rm -rf libconftest.dylib*
7270    fi
7271    rm conftest.c
7272       fi
7274 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7275 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7276     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7277 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7278 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7279   echo $ECHO_N "(cached) $ECHO_C" >&6
7280 else
7281   lt_cv_ld_exported_symbols_list=no
7282       save_LDFLAGS=$LDFLAGS
7283       echo "_main" > conftest.sym
7284       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7285       cat >conftest.$ac_ext <<_ACEOF
7286 /* confdefs.h.  */
7287 _ACEOF
7288 cat confdefs.h >>conftest.$ac_ext
7289 cat >>conftest.$ac_ext <<_ACEOF
7290 /* end confdefs.h.  */
7293 main ()
7296   ;
7297   return 0;
7299 _ACEOF
7300 rm -f conftest.$ac_objext conftest$ac_exeext
7301 if { (ac_try="$ac_link"
7302 case "(($ac_try" in
7303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7304   *) ac_try_echo=$ac_try;;
7305 esac
7306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7307   (eval "$ac_link") 2>conftest.er1
7308   ac_status=$?
7309   grep -v '^ *+' conftest.er1 >conftest.err
7310   rm -f conftest.er1
7311   cat conftest.err >&5
7312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313   (exit $ac_status); } && {
7314          test -z "$ac_c_werror_flag" ||
7315          test ! -s conftest.err
7316        } && test -s conftest$ac_exeext &&
7317        $as_test_x conftest$ac_exeext; then
7318   lt_cv_ld_exported_symbols_list=yes
7319 else
7320   echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.$ac_ext >&5
7323         lt_cv_ld_exported_symbols_list=no
7326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7327       conftest$ac_exeext conftest.$ac_ext
7328    LDFLAGS="$save_LDFLAGS"
7329     
7331 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7332 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7333     case $host_os in
7334     rhapsody* | darwin1.[0123])
7335       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7336     darwin1.*)
7337      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7338     darwin*)
7339       # if running on 10.5 or later, the deployment target defaults
7340       # to the OS version, if on x86, and 10.4, the deployment
7341       # target defaults to 10.4. Don't you love it?
7342       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7343    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7344      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7345    10.[012]*)
7346      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7347    10.*)
7348      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7349       esac
7350     ;;
7351   esac
7352     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7353       _lt_dar_single_mod='$single_module'
7354     fi
7355     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7356       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7357     else
7358       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7359     fi
7360     if test "$DSYMUTIL" != ":"; then
7361       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7362     else
7363       _lt_dsymutil=
7364     fi
7365     ;;
7366   esac
7369 enable_dlopen=no
7370 enable_win32_dll=no
7372 # Check whether --enable-libtool-lock was given.
7373 if test "${enable_libtool_lock+set}" = set; then
7374   enableval=$enable_libtool_lock; 
7377 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7380 # Check whether --with-pic was given.
7381 if test "${with_pic+set}" = set; then
7382   withval=$with_pic; pic_mode="$withval"
7383 else
7384   pic_mode=default
7387 test -z "$pic_mode" && pic_mode=default
7389 # Use C for the default configuration in the libtool script
7390 tagname=
7391 lt_save_CC="$CC"
7392 ac_ext=c
7393 ac_cpp='$CPP $CPPFLAGS'
7394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7399 # Source file extension for C test sources.
7400 ac_ext=c
7402 # Object file extension for compiled C test sources.
7403 objext=o
7404 objext=$objext
7406 # Code to be used in simple compile tests
7407 lt_simple_compile_test_code="int some_variable = 0;"
7409 # Code to be used in simple link tests
7410 lt_simple_link_test_code='int main(){return(0);}'
7413 # If no C compiler was specified, use CC.
7414 LTCC=${LTCC-"$CC"}
7416 # If no C compiler flags were specified, use CFLAGS.
7417 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7419 # Allow CC to be a program name with arguments.
7420 compiler=$CC
7423 # save warnings/boilerplate of simple test code
7424 ac_outfile=conftest.$ac_objext
7425 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7426 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7427 _lt_compiler_boilerplate=`cat conftest.err`
7428 $rm conftest*
7430 ac_outfile=conftest.$ac_objext
7431 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7432 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7433 _lt_linker_boilerplate=`cat conftest.err`
7434 $rm -r conftest*
7438 lt_prog_compiler_no_builtin_flag=
7440 if test "$GCC" = yes; then
7441   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7443   
7444 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7445 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7446 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7447   echo $ECHO_N "(cached) $ECHO_C" >&6
7448 else
7449   lt_cv_prog_compiler_rtti_exceptions=no
7450   ac_outfile=conftest.$ac_objext
7451    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7452    lt_compiler_flag="-fno-rtti -fno-exceptions"
7453    # Insert the option either (1) after the last *FLAGS variable, or
7454    # (2) before a word containing "conftest.", or (3) at the end.
7455    # Note that $ac_compile itself does not contain backslashes and begins
7456    # with a dollar sign (not a hyphen), so the echo should work correctly.
7457    # The option is referenced via a variable to avoid confusing sed.
7458    lt_compile=`echo "$ac_compile" | $SED \
7459    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7460    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7461    -e 's:$: $lt_compiler_flag:'`
7462    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7463    (eval "$lt_compile" 2>conftest.err)
7464    ac_status=$?
7465    cat conftest.err >&5
7466    echo "$as_me:__oline__: \$? = $ac_status" >&5
7467    if (exit $ac_status) && test -s "$ac_outfile"; then
7468      # The compiler can only warn and ignore the option if not recognized
7469      # So say no if there are warnings other than the usual output.
7470      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7471      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7472      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7473        lt_cv_prog_compiler_rtti_exceptions=yes
7474      fi
7475    fi
7476    $rm conftest*
7479 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7480 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7482 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7483     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7484 else
7485     :
7490 lt_prog_compiler_wl=
7491 lt_prog_compiler_pic=
7492 lt_prog_compiler_static=
7494 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7495 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7497   if test "$GCC" = yes; then
7498     lt_prog_compiler_wl='-Wl,'
7499     lt_prog_compiler_static='-static'
7501     case $host_os in
7502       aix*)
7503       # All AIX code is PIC.
7504       if test "$host_cpu" = ia64; then
7505         # AIX 5 now supports IA64 processor
7506         lt_prog_compiler_static='-Bstatic'
7507       fi
7508       ;;
7510     amigaos*)
7511       # FIXME: we need at least 68020 code to build shared libraries, but
7512       # adding the `-m68020' flag to GCC prevents building anything better,
7513       # like `-m68040'.
7514       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7515       ;;
7517     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7518       # PIC is the default for these OSes.
7519       ;;
7521     mingw* | cygwin* | pw32* | os2*)
7522       # This hack is so that the source file can tell whether it is being
7523       # built for inclusion in a dll (and should export symbols for example).
7524       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7525       # (--disable-auto-import) libraries
7526       lt_prog_compiler_pic='-DDLL_EXPORT'
7527       ;;
7529     darwin* | rhapsody*)
7530       # PIC is the default on this platform
7531       # Common symbols not allowed in MH_DYLIB files
7532       lt_prog_compiler_pic='-fno-common'
7533       ;;
7535     interix[3-9]*)
7536       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7537       # Instead, we relocate shared libraries at runtime.
7538       ;;
7540     msdosdjgpp*)
7541       # Just because we use GCC doesn't mean we suddenly get shared libraries
7542       # on systems that don't support them.
7543       lt_prog_compiler_can_build_shared=no
7544       enable_shared=no
7545       ;;
7547     sysv4*MP*)
7548       if test -d /usr/nec; then
7549         lt_prog_compiler_pic=-Kconform_pic
7550       fi
7551       ;;
7553     hpux*)
7554       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7555       # not for PA HP-UX.
7556       case $host_cpu in
7557       hppa*64*|ia64*)
7558         # +Z the default
7559         ;;
7560       *)
7561         lt_prog_compiler_pic='-fPIC'
7562         ;;
7563       esac
7564       ;;
7566     *)
7567       lt_prog_compiler_pic='-fPIC'
7568       ;;
7569     esac
7570   else
7571     # PORTME Check for flag to pass linker flags through the system compiler.
7572     case $host_os in
7573     aix*)
7574       lt_prog_compiler_wl='-Wl,'
7575       if test "$host_cpu" = ia64; then
7576         # AIX 5 now supports IA64 processor
7577         lt_prog_compiler_static='-Bstatic'
7578       else
7579         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7580       fi
7581       ;;
7582       darwin*)
7583         # PIC is the default on this platform
7584         # Common symbols not allowed in MH_DYLIB files
7585        case $cc_basename in
7586          xlc*)
7587          lt_prog_compiler_pic='-qnocommon'
7588          lt_prog_compiler_wl='-Wl,'
7589          ;;
7590        esac
7591        ;;
7593     mingw* | cygwin* | pw32* | os2*)
7594       # This hack is so that the source file can tell whether it is being
7595       # built for inclusion in a dll (and should export symbols for example).
7596       lt_prog_compiler_pic='-DDLL_EXPORT'
7597       ;;
7599     hpux9* | hpux10* | hpux11*)
7600       lt_prog_compiler_wl='-Wl,'
7601       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7602       # not for PA HP-UX.
7603       case $host_cpu in
7604       hppa*64*|ia64*)
7605         # +Z the default
7606         ;;
7607       *)
7608         lt_prog_compiler_pic='+Z'
7609         ;;
7610       esac
7611       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7612       lt_prog_compiler_static='${wl}-a ${wl}archive'
7613       ;;
7615     irix5* | irix6* | nonstopux*)
7616       lt_prog_compiler_wl='-Wl,'
7617       # PIC (with -KPIC) is the default.
7618       lt_prog_compiler_static='-non_shared'
7619       ;;
7621     newsos6)
7622       lt_prog_compiler_pic='-KPIC'
7623       lt_prog_compiler_static='-Bstatic'
7624       ;;
7626     linux* | k*bsd*-gnu)
7627       case $cc_basename in
7628       icc* | ecc*)
7629         lt_prog_compiler_wl='-Wl,'
7630         lt_prog_compiler_pic='-KPIC'
7631         lt_prog_compiler_static='-static'
7632         ;;
7633       pgcc* | pgf77* | pgf90* | pgf95*)
7634         # Portland Group compilers (*not* the Pentium gcc compiler,
7635         # which looks to be a dead project)
7636         lt_prog_compiler_wl='-Wl,'
7637         lt_prog_compiler_pic='-fpic'
7638         lt_prog_compiler_static='-Bstatic'
7639         ;;
7640       ccc*)
7641         lt_prog_compiler_wl='-Wl,'
7642         # All Alpha code is PIC.
7643         lt_prog_compiler_static='-non_shared'
7644         ;;
7645       *)
7646         case `$CC -V 2>&1 | sed 5q` in
7647         *Sun\ C*)
7648           # Sun C 5.9
7649           lt_prog_compiler_pic='-KPIC'
7650           lt_prog_compiler_static='-Bstatic'
7651           lt_prog_compiler_wl='-Wl,'
7652           ;;
7653         *Sun\ F*)
7654           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7655           lt_prog_compiler_pic='-KPIC'
7656           lt_prog_compiler_static='-Bstatic'
7657           lt_prog_compiler_wl=''
7658           ;;
7659         esac
7660         ;;
7661       esac
7662       ;;
7664     osf3* | osf4* | osf5*)
7665       lt_prog_compiler_wl='-Wl,'
7666       # All OSF/1 code is PIC.
7667       lt_prog_compiler_static='-non_shared'
7668       ;;
7670     rdos*)
7671       lt_prog_compiler_static='-non_shared'
7672       ;;
7674     solaris*)
7675       lt_prog_compiler_pic='-KPIC'
7676       lt_prog_compiler_static='-Bstatic'
7677       case $cc_basename in
7678       f77* | f90* | f95*)
7679         lt_prog_compiler_wl='-Qoption ld ';;
7680       *)
7681         lt_prog_compiler_wl='-Wl,';;
7682       esac
7683       ;;
7685     sunos4*)
7686       lt_prog_compiler_wl='-Qoption ld '
7687       lt_prog_compiler_pic='-PIC'
7688       lt_prog_compiler_static='-Bstatic'
7689       ;;
7691     sysv4 | sysv4.2uw2* | sysv4.3*)
7692       lt_prog_compiler_wl='-Wl,'
7693       lt_prog_compiler_pic='-KPIC'
7694       lt_prog_compiler_static='-Bstatic'
7695       ;;
7697     sysv4*MP*)
7698       if test -d /usr/nec ;then
7699         lt_prog_compiler_pic='-Kconform_pic'
7700         lt_prog_compiler_static='-Bstatic'
7701       fi
7702       ;;
7704     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7705       lt_prog_compiler_wl='-Wl,'
7706       lt_prog_compiler_pic='-KPIC'
7707       lt_prog_compiler_static='-Bstatic'
7708       ;;
7710     unicos*)
7711       lt_prog_compiler_wl='-Wl,'
7712       lt_prog_compiler_can_build_shared=no
7713       ;;
7715     uts4*)
7716       lt_prog_compiler_pic='-pic'
7717       lt_prog_compiler_static='-Bstatic'
7718       ;;
7720     *)
7721       lt_prog_compiler_can_build_shared=no
7722       ;;
7723     esac
7724   fi
7726 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7727 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7730 # Check to make sure the PIC flag actually works.
7732 if test -n "$lt_prog_compiler_pic"; then
7733   
7734 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7735 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7736 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7737   echo $ECHO_N "(cached) $ECHO_C" >&6
7738 else
7739   lt_cv_prog_compiler_pic_works=no
7740   ac_outfile=conftest.$ac_objext
7741    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7742    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7743    # Insert the option either (1) after the last *FLAGS variable, or
7744    # (2) before a word containing "conftest.", or (3) at the end.
7745    # Note that $ac_compile itself does not contain backslashes and begins
7746    # with a dollar sign (not a hyphen), so the echo should work correctly.
7747    # The option is referenced via a variable to avoid confusing sed.
7748    lt_compile=`echo "$ac_compile" | $SED \
7749    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7750    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7751    -e 's:$: $lt_compiler_flag:'`
7752    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7753    (eval "$lt_compile" 2>conftest.err)
7754    ac_status=$?
7755    cat conftest.err >&5
7756    echo "$as_me:__oline__: \$? = $ac_status" >&5
7757    if (exit $ac_status) && test -s "$ac_outfile"; then
7758      # The compiler can only warn and ignore the option if not recognized
7759      # So say no if there are warnings other than the usual output.
7760      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7761      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7762      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7763        lt_cv_prog_compiler_pic_works=yes
7764      fi
7765    fi
7766    $rm conftest*
7769 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7770 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7772 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7773     case $lt_prog_compiler_pic in
7774      "" | " "*) ;;
7775      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7776      esac
7777 else
7778     lt_prog_compiler_pic=
7779      lt_prog_compiler_can_build_shared=no
7783 case $host_os in
7784   # For platforms which do not support PIC, -DPIC is meaningless:
7785   *djgpp*)
7786     lt_prog_compiler_pic=
7787     ;;
7788   *)
7789     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7790     ;;
7791 esac
7794 # Check to make sure the static flag actually works.
7796 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7797 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7798 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7799 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7800   echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802   lt_cv_prog_compiler_static_works=no
7803    save_LDFLAGS="$LDFLAGS"
7804    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7805    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7806    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7807      # The linker can only warn and ignore the option if not recognized
7808      # So say no if there are warnings
7809      if test -s conftest.err; then
7810        # Append any errors to the config.log.
7811        cat conftest.err 1>&5
7812        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7813        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7814        if diff conftest.exp conftest.er2 >/dev/null; then
7815          lt_cv_prog_compiler_static_works=yes
7816        fi
7817      else
7818        lt_cv_prog_compiler_static_works=yes
7819      fi
7820    fi
7821    $rm -r conftest*
7822    LDFLAGS="$save_LDFLAGS"
7825 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7826 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7828 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7829     :
7830 else
7831     lt_prog_compiler_static=
7835 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7836 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7837 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7838   echo $ECHO_N "(cached) $ECHO_C" >&6
7839 else
7840   lt_cv_prog_compiler_c_o=no
7841    $rm -r conftest 2>/dev/null
7842    mkdir conftest
7843    cd conftest
7844    mkdir out
7845    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7847    lt_compiler_flag="-o out/conftest2.$ac_objext"
7848    # Insert the option either (1) after the last *FLAGS variable, or
7849    # (2) before a word containing "conftest.", or (3) at the end.
7850    # Note that $ac_compile itself does not contain backslashes and begins
7851    # with a dollar sign (not a hyphen), so the echo should work correctly.
7852    lt_compile=`echo "$ac_compile" | $SED \
7853    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7854    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7855    -e 's:$: $lt_compiler_flag:'`
7856    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7857    (eval "$lt_compile" 2>out/conftest.err)
7858    ac_status=$?
7859    cat out/conftest.err >&5
7860    echo "$as_me:__oline__: \$? = $ac_status" >&5
7861    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7862    then
7863      # The compiler can only warn and ignore the option if not recognized
7864      # So say no if there are warnings
7865      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7866      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7867      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7868        lt_cv_prog_compiler_c_o=yes
7869      fi
7870    fi
7871    chmod u+w . 2>&5
7872    $rm conftest*
7873    # SGI C++ compiler will create directory out/ii_files/ for
7874    # template instantiation
7875    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7876    $rm out/* && rmdir out
7877    cd ..
7878    rmdir conftest
7879    $rm conftest*
7882 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7883 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7886 hard_links="nottested"
7887 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7888   # do not overwrite the value of need_locks provided by the user
7889   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7890 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7891   hard_links=yes
7892   $rm conftest*
7893   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7894   touch conftest.a
7895   ln conftest.a conftest.b 2>&5 || hard_links=no
7896   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7897   { echo "$as_me:$LINENO: result: $hard_links" >&5
7898 echo "${ECHO_T}$hard_links" >&6; }
7899   if test "$hard_links" = no; then
7900     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7901 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7902     need_locks=warn
7903   fi
7904 else
7905   need_locks=no
7908 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7909 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7911   runpath_var=
7912   allow_undefined_flag=
7913   enable_shared_with_static_runtimes=no
7914   archive_cmds=
7915   archive_expsym_cmds=
7916   old_archive_From_new_cmds=
7917   old_archive_from_expsyms_cmds=
7918   export_dynamic_flag_spec=
7919   whole_archive_flag_spec=
7920   thread_safe_flag_spec=
7921   hardcode_libdir_flag_spec=
7922   hardcode_libdir_flag_spec_ld=
7923   hardcode_libdir_separator=
7924   hardcode_direct=no
7925   hardcode_minus_L=no
7926   hardcode_shlibpath_var=unsupported
7927   link_all_deplibs=unknown
7928   hardcode_automatic=no
7929   module_cmds=
7930   module_expsym_cmds=
7931   always_export_symbols=no
7932   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7933   # include_expsyms should be a list of space-separated symbols to be *always*
7934   # included in the symbol list
7935   include_expsyms=
7936   # exclude_expsyms can be an extended regexp of symbols to exclude
7937   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7938   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7939   # as well as any symbol that contains `d'.
7940   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7941   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7942   # platforms (ab)use it in PIC code, but their linkers get confused if
7943   # the symbol is explicitly referenced.  Since portable code cannot
7944   # rely on this symbol name, it's probably fine to never include it in
7945   # preloaded symbol tables.
7946   # Exclude shared library initialization/finalization symbols.
7947   extract_expsyms_cmds=
7948   # Just being paranoid about ensuring that cc_basename is set.
7949   for cc_temp in $compiler""; do
7950   case $cc_temp in
7951     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7952     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7953     \-*) ;;
7954     *) break;;
7955   esac
7956 done
7957 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7959   case $host_os in
7960   cygwin* | mingw* | pw32*)
7961     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7962     # When not using gcc, we currently assume that we are using
7963     # Microsoft Visual C++.
7964     if test "$GCC" != yes; then
7965       with_gnu_ld=no
7966     fi
7967     ;;
7968   interix*)
7969     # we just hope/assume this is gcc and not c89 (= MSVC++)
7970     with_gnu_ld=yes
7971     ;;
7972   openbsd*)
7973     with_gnu_ld=no
7974     ;;
7975   esac
7977   ld_shlibs=yes
7978   if test "$with_gnu_ld" = yes; then
7979     # If archive_cmds runs LD, not CC, wlarc should be empty
7980     wlarc='${wl}'
7982     # Set some defaults for GNU ld with shared library support. These
7983     # are reset later if shared libraries are not supported. Putting them
7984     # here allows them to be overridden if necessary.
7985     runpath_var=LD_RUN_PATH
7986     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7987     export_dynamic_flag_spec='${wl}--export-dynamic'
7988     # ancient GNU ld didn't support --whole-archive et. al.
7989     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7990         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7991       else
7992         whole_archive_flag_spec=
7993     fi
7994     supports_anon_versioning=no
7995     case `$LD -v 2>/dev/null` in
7996       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7997       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7998       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7999       *\ 2.11.*) ;; # other 2.11 versions
8000       *) supports_anon_versioning=yes ;;
8001     esac
8003     # See if GNU ld supports shared libraries.
8004     case $host_os in
8005     aix[3-9]*)
8006       # On AIX/PPC, the GNU linker is very broken
8007       if test "$host_cpu" != ia64; then
8008         ld_shlibs=no
8009         cat <<EOF 1>&2
8011 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8012 *** to be unable to reliably create shared libraries on AIX.
8013 *** Therefore, libtool is disabling shared libraries support.  If you
8014 *** really care for shared libraries, you may want to modify your PATH
8015 *** so that a non-GNU linker is found, and then restart.
8018       fi
8019       ;;
8021     amigaos*)
8022       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)'
8023       hardcode_libdir_flag_spec='-L$libdir'
8024       hardcode_minus_L=yes
8026       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8027       # that the semantics of dynamic libraries on AmigaOS, at least up
8028       # to version 4, is to share data among multiple programs linked
8029       # with the same dynamic library.  Since this doesn't match the
8030       # behavior of shared libraries on other platforms, we can't use
8031       # them.
8032       ld_shlibs=no
8033       ;;
8035     beos*)
8036       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8037         allow_undefined_flag=unsupported
8038         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8039         # support --undefined.  This deserves some investigation.  FIXME
8040         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8041       else
8042         ld_shlibs=no
8043       fi
8044       ;;
8046     cygwin* | mingw* | pw32*)
8047       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8048       # as there is no search path for DLLs.
8049       hardcode_libdir_flag_spec='-L$libdir'
8050       allow_undefined_flag=unsupported
8051       always_export_symbols=no
8052       enable_shared_with_static_runtimes=yes
8053       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8055       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8056         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8057         # If the export-symbols file already is a .def file (1st line
8058         # is EXPORTS), use it as is; otherwise, prepend...
8059         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8060           cp $export_symbols $output_objdir/$soname.def;
8061         else
8062           echo EXPORTS > $output_objdir/$soname.def;
8063           cat $export_symbols >> $output_objdir/$soname.def;
8064         fi~
8065         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8066       else
8067         ld_shlibs=no
8068       fi
8069       ;;
8071     interix[3-9]*)
8072       hardcode_direct=no
8073       hardcode_shlibpath_var=no
8074       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8075       export_dynamic_flag_spec='${wl}-E'
8076       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8077       # Instead, shared libraries are loaded at an image base (0x10000000 by
8078       # default) and relocated if they conflict, which is a slow very memory
8079       # consuming and fragmenting process.  To avoid this, we pick a random,
8080       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8081       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8082       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8083       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8084       ;;
8086     gnu* | linux* | k*bsd*-gnu)
8087       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8088         tmp_addflag=
8089         case $cc_basename,$host_cpu in
8090         pgcc*)                          # Portland Group C compiler
8091           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'
8092           tmp_addflag=' $pic_flag'
8093           ;;
8094         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8095           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'
8096           tmp_addflag=' $pic_flag -Mnomain' ;;
8097         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8098           tmp_addflag=' -i_dynamic' ;;
8099         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8100           tmp_addflag=' -i_dynamic -nofor_main' ;;
8101         ifc* | ifort*)                  # Intel Fortran compiler
8102           tmp_addflag=' -nofor_main' ;;
8103         esac
8104         case `$CC -V 2>&1 | sed 5q` in
8105         *Sun\ C*)                       # Sun C 5.9
8106           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8107           tmp_sharedflag='-G' ;;
8108         *Sun\ F*)                       # Sun Fortran 8.3
8109           tmp_sharedflag='-G' ;;
8110         *)
8111           tmp_sharedflag='-shared' ;;
8112         esac
8113         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8115         if test $supports_anon_versioning = yes; then
8116           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8117   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8118   $echo "local: *; };" >> $output_objdir/$libname.ver~
8119           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8120         fi
8121         link_all_deplibs=no
8122       else
8123         ld_shlibs=no
8124       fi
8125       ;;
8127     netbsd* | netbsdelf*-gnu)
8128       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8129         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8130         wlarc=
8131       else
8132         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8133         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8134       fi
8135       ;;
8137     solaris*)
8138       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8139         ld_shlibs=no
8140         cat <<EOF 1>&2
8142 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8143 *** create shared libraries on Solaris systems.  Therefore, libtool
8144 *** is disabling shared libraries support.  We urge you to upgrade GNU
8145 *** binutils to release 2.9.1 or newer.  Another option is to modify
8146 *** your PATH or compiler configuration so that the native linker is
8147 *** used, and then restart.
8150       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8151         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8152         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8153       else
8154         ld_shlibs=no
8155       fi
8156       ;;
8158     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8159       case `$LD -v 2>&1` in
8160         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8161         ld_shlibs=no
8162         cat <<_LT_EOF 1>&2
8164 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8165 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8166 *** is disabling shared libraries support.  We urge you to upgrade GNU
8167 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8168 *** your PATH or compiler configuration so that the native linker is
8169 *** used, and then restart.
8171 _LT_EOF
8172         ;;
8173         *)
8174           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8175             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8176             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8177             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8178           else
8179             ld_shlibs=no
8180           fi
8181         ;;
8182       esac
8183       ;;
8185     sunos4*)
8186       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8187       wlarc=
8188       hardcode_direct=yes
8189       hardcode_shlibpath_var=no
8190       ;;
8192     *)
8193       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8194         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8195         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8196       else
8197         ld_shlibs=no
8198       fi
8199       ;;
8200     esac
8202     if test "$ld_shlibs" = no; then
8203       runpath_var=
8204       hardcode_libdir_flag_spec=
8205       export_dynamic_flag_spec=
8206       whole_archive_flag_spec=
8207     fi
8208   else
8209     # PORTME fill in a description of your system's linker (not GNU ld)
8210     case $host_os in
8211     aix3*)
8212       allow_undefined_flag=unsupported
8213       always_export_symbols=yes
8214       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'
8215       # Note: this linker hardcodes the directories in LIBPATH if there
8216       # are no directories specified by -L.
8217       hardcode_minus_L=yes
8218       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8219         # Neither direct hardcoding nor static linking is supported with a
8220         # broken collect2.
8221         hardcode_direct=unsupported
8222       fi
8223       ;;
8225     aix[4-9]*)
8226       if test "$host_cpu" = ia64; then
8227         # On IA64, the linker does run time linking by default, so we don't
8228         # have to do anything special.
8229         aix_use_runtimelinking=no
8230         exp_sym_flag='-Bexport'
8231         no_entry_flag=""
8232       else
8233         # If we're using GNU nm, then we don't want the "-C" option.
8234         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8235         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8236           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'
8237         else
8238           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'
8239         fi
8240         aix_use_runtimelinking=no
8242         # Test if we are trying to use run time linking or normal
8243         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8244         # need to do runtime linking.
8245         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8246           for ld_flag in $LDFLAGS; do
8247           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8248             aix_use_runtimelinking=yes
8249             break
8250           fi
8251           done
8252           ;;
8253         esac
8255         exp_sym_flag='-bexport'
8256         no_entry_flag='-bnoentry'
8257       fi
8259       # When large executables or shared objects are built, AIX ld can
8260       # have problems creating the table of contents.  If linking a library
8261       # or program results in "error TOC overflow" add -mminimal-toc to
8262       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8263       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8265       archive_cmds=''
8266       hardcode_direct=yes
8267       hardcode_libdir_separator=':'
8268       link_all_deplibs=yes
8270       if test "$GCC" = yes; then
8271         case $host_os in aix4.[012]|aix4.[012].*)
8272         # We only want to do this on AIX 4.2 and lower, the check
8273         # below for broken collect2 doesn't work under 4.3+
8274           collect2name=`${CC} -print-prog-name=collect2`
8275           if test -f "$collect2name" && \
8276            strings "$collect2name" | grep resolve_lib_name >/dev/null
8277           then
8278           # We have reworked collect2
8279           :
8280           else
8281           # We have old collect2
8282           hardcode_direct=unsupported
8283           # It fails to find uninstalled libraries when the uninstalled
8284           # path is not listed in the libpath.  Setting hardcode_minus_L
8285           # to unsupported forces relinking
8286           hardcode_minus_L=yes
8287           hardcode_libdir_flag_spec='-L$libdir'
8288           hardcode_libdir_separator=
8289           fi
8290           ;;
8291         esac
8292         shared_flag='-shared'
8293         if test "$aix_use_runtimelinking" = yes; then
8294           shared_flag="$shared_flag "'${wl}-G'
8295         fi
8296       else
8297         # not using gcc
8298         if test "$host_cpu" = ia64; then
8299         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8300         # chokes on -Wl,-G. The following line is correct:
8301           shared_flag='-G'
8302         else
8303           if test "$aix_use_runtimelinking" = yes; then
8304             shared_flag='${wl}-G'
8305           else
8306             shared_flag='${wl}-bM:SRE'
8307           fi
8308         fi
8309       fi
8311       # It seems that -bexpall does not export symbols beginning with
8312       # underscore (_), so it is better to generate a list of symbols to export.
8313       always_export_symbols=yes
8314       if test "$aix_use_runtimelinking" = yes; then
8315         # Warning - without using the other runtime loading flags (-brtl),
8316         # -berok will link without error, but may produce a broken library.
8317         allow_undefined_flag='-berok'
8318        # Determine the default libpath from the value encoded in an empty executable.
8319        cat >conftest.$ac_ext <<_ACEOF
8320 /* confdefs.h.  */
8321 _ACEOF
8322 cat confdefs.h >>conftest.$ac_ext
8323 cat >>conftest.$ac_ext <<_ACEOF
8324 /* end confdefs.h.  */
8327 main ()
8330   ;
8331   return 0;
8333 _ACEOF
8334 rm -f conftest.$ac_objext conftest$ac_exeext
8335 if { (ac_try="$ac_link"
8336 case "(($ac_try" in
8337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338   *) ac_try_echo=$ac_try;;
8339 esac
8340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8341   (eval "$ac_link") 2>conftest.er1
8342   ac_status=$?
8343   grep -v '^ *+' conftest.er1 >conftest.err
8344   rm -f conftest.er1
8345   cat conftest.err >&5
8346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347   (exit $ac_status); } && {
8348          test -z "$ac_c_werror_flag" ||
8349          test ! -s conftest.err
8350        } && test -s conftest$ac_exeext &&
8351        $as_test_x conftest$ac_exeext; then
8352   
8353 lt_aix_libpath_sed='
8354     /Import File Strings/,/^$/ {
8355         /^0/ {
8356             s/^0  *\(.*\)$/\1/
8357             p
8358         }
8359     }'
8360 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8361 # Check for a 64-bit object if we didn't find anything.
8362 if test -z "$aix_libpath"; then
8363   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8365 else
8366   echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8369         
8372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8373       conftest$ac_exeext conftest.$ac_ext
8374 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8376        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8377         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8378        else
8379         if test "$host_cpu" = ia64; then
8380           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8381           allow_undefined_flag="-z nodefs"
8382           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8383         else
8384          # Determine the default libpath from the value encoded in an empty executable.
8385          cat >conftest.$ac_ext <<_ACEOF
8386 /* confdefs.h.  */
8387 _ACEOF
8388 cat confdefs.h >>conftest.$ac_ext
8389 cat >>conftest.$ac_ext <<_ACEOF
8390 /* end confdefs.h.  */
8393 main ()
8396   ;
8397   return 0;
8399 _ACEOF
8400 rm -f conftest.$ac_objext conftest$ac_exeext
8401 if { (ac_try="$ac_link"
8402 case "(($ac_try" in
8403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404   *) ac_try_echo=$ac_try;;
8405 esac
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407   (eval "$ac_link") 2>conftest.er1
8408   ac_status=$?
8409   grep -v '^ *+' conftest.er1 >conftest.err
8410   rm -f conftest.er1
8411   cat conftest.err >&5
8412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413   (exit $ac_status); } && {
8414          test -z "$ac_c_werror_flag" ||
8415          test ! -s conftest.err
8416        } && test -s conftest$ac_exeext &&
8417        $as_test_x conftest$ac_exeext; then
8418   
8419 lt_aix_libpath_sed='
8420     /Import File Strings/,/^$/ {
8421         /^0/ {
8422             s/^0  *\(.*\)$/\1/
8423             p
8424         }
8425     }'
8426 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8427 # Check for a 64-bit object if we didn't find anything.
8428 if test -z "$aix_libpath"; then
8429   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8431 else
8432   echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8435         
8438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8439       conftest$ac_exeext conftest.$ac_ext
8440 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8442          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8443           # Warning - without using the other run time loading flags,
8444           # -berok will link without error, but may produce a broken library.
8445           no_undefined_flag=' ${wl}-bernotok'
8446           allow_undefined_flag=' ${wl}-berok'
8447           # Exported symbols can be pulled into shared objects from archives
8448           whole_archive_flag_spec='$convenience'
8449           archive_cmds_need_lc=yes
8450           # This is similar to how AIX traditionally builds its shared libraries.
8451           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8452         fi
8453       fi
8454       ;;
8456     amigaos*)
8457       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)'
8458       hardcode_libdir_flag_spec='-L$libdir'
8459       hardcode_minus_L=yes
8460       # see comment about different semantics on the GNU ld section
8461       ld_shlibs=no
8462       ;;
8464     bsdi[45]*)
8465       export_dynamic_flag_spec=-rdynamic
8466       ;;
8468     cygwin* | mingw* | pw32*)
8469       # When not using gcc, we currently assume that we are using
8470       # Microsoft Visual C++.
8471       # hardcode_libdir_flag_spec is actually meaningless, as there is
8472       # no search path for DLLs.
8473       hardcode_libdir_flag_spec=' '
8474       allow_undefined_flag=unsupported
8475       # Tell ltmain to make .lib files, not .a files.
8476       libext=lib
8477       # Tell ltmain to make .dll files, not .so files.
8478       shrext_cmds=".dll"
8479       # FIXME: Setting linknames here is a bad hack.
8480       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8481       # The linker will automatically build a .lib file if we build a DLL.
8482       old_archive_From_new_cmds='true'
8483       # FIXME: Should let the user specify the lib program.
8484       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8485       fix_srcfile_path='`cygpath -w "$srcfile"`'
8486       enable_shared_with_static_runtimes=yes
8487       ;;
8489     darwin* | rhapsody*)
8490       case $host_os in
8491         rhapsody* | darwin1.[012])
8492          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8493          ;;
8494        *) # Darwin 1.3 on
8495          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8496            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8497          else
8498            case ${MACOSX_DEPLOYMENT_TARGET} in
8499              10.[012])
8500                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8501                ;;
8502              10.*)
8503                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8504                ;;
8505            esac
8506          fi
8507          ;;
8508       esac
8509       archive_cmds_need_lc=no
8510       hardcode_direct=no
8511       hardcode_automatic=yes
8512       hardcode_shlibpath_var=unsupported
8513       whole_archive_flag_spec=''
8514       link_all_deplibs=yes
8515     if test "$GCC" = yes ; then
8516         output_verbose_link_cmd='echo'
8517         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8518         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8519         archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8520         module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8521     else
8522       case $cc_basename in
8523         xlc*)
8524          output_verbose_link_cmd='echo'
8525          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8526          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8527           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8528          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8529           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}'
8530           ;;
8531        *)
8532          ld_shlibs=no
8533           ;;
8534       esac
8535     fi
8536       ;;
8538     dgux*)
8539       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8540       hardcode_libdir_flag_spec='-L$libdir'
8541       hardcode_shlibpath_var=no
8542       ;;
8544     freebsd1*)
8545       ld_shlibs=no
8546       ;;
8548     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8549     # support.  Future versions do this automatically, but an explicit c++rt0.o
8550     # does not break anything, and helps significantly (at the cost of a little
8551     # extra space).
8552     freebsd2.2*)
8553       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8554       hardcode_libdir_flag_spec='-R$libdir'
8555       hardcode_direct=yes
8556       hardcode_shlibpath_var=no
8557       ;;
8559     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8560     freebsd2*)
8561       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8562       hardcode_direct=yes
8563       hardcode_minus_L=yes
8564       hardcode_shlibpath_var=no
8565       ;;
8567     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8568     freebsd* | dragonfly*)
8569       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8570       hardcode_libdir_flag_spec='-R$libdir'
8571       hardcode_direct=yes
8572       hardcode_shlibpath_var=no
8573       ;;
8575     hpux9*)
8576       if test "$GCC" = yes; then
8577         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'
8578       else
8579         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'
8580       fi
8581       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8582       hardcode_libdir_separator=:
8583       hardcode_direct=yes
8585       # hardcode_minus_L: Not really in the search PATH,
8586       # but as the default location of the library.
8587       hardcode_minus_L=yes
8588       export_dynamic_flag_spec='${wl}-E'
8589       ;;
8591     hpux10*)
8592       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8593         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8594       else
8595         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8596       fi
8597       if test "$with_gnu_ld" = no; then
8598         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8599         hardcode_libdir_separator=:
8601         hardcode_direct=yes
8602         export_dynamic_flag_spec='${wl}-E'
8604         # hardcode_minus_L: Not really in the search PATH,
8605         # but as the default location of the library.
8606         hardcode_minus_L=yes
8607       fi
8608       ;;
8610     hpux11*)
8611       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8612         case $host_cpu in
8613         hppa*64*)
8614           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8615           ;;
8616         ia64*)
8617           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8618           ;;
8619         *)
8620           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8621           ;;
8622         esac
8623       else
8624         case $host_cpu in
8625         hppa*64*)
8626           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8627           ;;
8628         ia64*)
8629           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8630           ;;
8631         *)
8632           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8633           ;;
8634         esac
8635       fi
8636       if test "$with_gnu_ld" = no; then
8637         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8638         hardcode_libdir_separator=:
8640         case $host_cpu in
8641         hppa*64*|ia64*)
8642           hardcode_libdir_flag_spec_ld='+b $libdir'
8643           hardcode_direct=no
8644           hardcode_shlibpath_var=no
8645           ;;
8646         *)
8647           hardcode_direct=yes
8648           export_dynamic_flag_spec='${wl}-E'
8650           # hardcode_minus_L: Not really in the search PATH,
8651           # but as the default location of the library.
8652           hardcode_minus_L=yes
8653           ;;
8654         esac
8655       fi
8656       ;;
8658     irix5* | irix6* | nonstopux*)
8659       if test "$GCC" = yes; then
8660         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'
8661       else
8662         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'
8663         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8664       fi
8665       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8666       hardcode_libdir_separator=:
8667       link_all_deplibs=yes
8668       ;;
8670     netbsd* | netbsdelf*-gnu)
8671       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8672         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8673       else
8674         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8675       fi
8676       hardcode_libdir_flag_spec='-R$libdir'
8677       hardcode_direct=yes
8678       hardcode_shlibpath_var=no
8679       ;;
8681     newsos6)
8682       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8683       hardcode_direct=yes
8684       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8685       hardcode_libdir_separator=:
8686       hardcode_shlibpath_var=no
8687       ;;
8689     openbsd*)
8690       if test -f /usr/libexec/ld.so; then
8691         hardcode_direct=yes
8692         hardcode_shlibpath_var=no
8693         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8694           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8695           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8696           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8697           export_dynamic_flag_spec='${wl}-E'
8698         else
8699           case $host_os in
8700            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8701              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8702              hardcode_libdir_flag_spec='-R$libdir'
8703              ;;
8704            *)
8705              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8706              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8707              ;;
8708           esac
8709         fi
8710       else
8711         ld_shlibs=no
8712       fi
8713       ;;
8715     os2*)
8716       hardcode_libdir_flag_spec='-L$libdir'
8717       hardcode_minus_L=yes
8718       allow_undefined_flag=unsupported
8719       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'
8720       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8721       ;;
8723     osf3*)
8724       if test "$GCC" = yes; then
8725         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8726         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'
8727       else
8728         allow_undefined_flag=' -expect_unresolved \*'
8729         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'
8730       fi
8731       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8732       hardcode_libdir_separator=:
8733       ;;
8735     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8736       if test "$GCC" = yes; then
8737         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8738         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'
8739         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8740       else
8741         allow_undefined_flag=' -expect_unresolved \*'
8742         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'
8743         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8744         $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'
8746         # Both c and cxx compiler support -rpath directly
8747         hardcode_libdir_flag_spec='-rpath $libdir'
8748       fi
8749       hardcode_libdir_separator=:
8750       ;;
8752     solaris*)
8753       no_undefined_flag=' -z text'
8754       if test "$GCC" = yes; then
8755         wlarc='${wl}'
8756         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8757         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8758           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8759       else
8760         wlarc=''
8761         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8762         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8763         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8764       fi
8765       hardcode_libdir_flag_spec='-R$libdir'
8766       hardcode_shlibpath_var=no
8767       case $host_os in
8768       solaris2.[0-5] | solaris2.[0-5].*) ;;
8769       *)
8770         # The compiler driver will combine and reorder linker options,
8771         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8772         # but is careful enough not to reorder.
8773         # Supported since Solaris 2.6 (maybe 2.5.1?)
8774         if test "$GCC" = yes; then
8775           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8776         else
8777           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8778         fi
8779         ;;
8780       esac
8781       link_all_deplibs=yes
8782       ;;
8784     sunos4*)
8785       if test "x$host_vendor" = xsequent; then
8786         # Use $CC to link under sequent, because it throws in some extra .o
8787         # files that make .init and .fini sections work.
8788         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8789       else
8790         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8791       fi
8792       hardcode_libdir_flag_spec='-L$libdir'
8793       hardcode_direct=yes
8794       hardcode_minus_L=yes
8795       hardcode_shlibpath_var=no
8796       ;;
8798     sysv4)
8799       case $host_vendor in
8800         sni)
8801           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8802           hardcode_direct=yes # is this really true???
8803         ;;
8804         siemens)
8805           ## LD is ld it makes a PLAMLIB
8806           ## CC just makes a GrossModule.
8807           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8808           reload_cmds='$CC -r -o $output$reload_objs'
8809           hardcode_direct=no
8810         ;;
8811         motorola)
8812           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8813           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8814         ;;
8815       esac
8816       runpath_var='LD_RUN_PATH'
8817       hardcode_shlibpath_var=no
8818       ;;
8820     sysv4.3*)
8821       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8822       hardcode_shlibpath_var=no
8823       export_dynamic_flag_spec='-Bexport'
8824       ;;
8826     sysv4*MP*)
8827       if test -d /usr/nec; then
8828         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8829         hardcode_shlibpath_var=no
8830         runpath_var=LD_RUN_PATH
8831         hardcode_runpath_var=yes
8832         ld_shlibs=yes
8833       fi
8834       ;;
8836     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8837       no_undefined_flag='${wl}-z,text'
8838       archive_cmds_need_lc=no
8839       hardcode_shlibpath_var=no
8840       runpath_var='LD_RUN_PATH'
8842       if test "$GCC" = yes; then
8843         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8844         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8845       else
8846         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8847         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8848       fi
8849       ;;
8851     sysv5* | sco3.2v5* | sco5v6*)
8852       # Note: We can NOT use -z defs as we might desire, because we do not
8853       # link with -lc, and that would cause any symbols used from libc to
8854       # always be unresolved, which means just about no library would
8855       # ever link correctly.  If we're not using GNU ld we use -z text
8856       # though, which does catch some bad symbols but isn't as heavy-handed
8857       # as -z defs.
8858       no_undefined_flag='${wl}-z,text'
8859       allow_undefined_flag='${wl}-z,nodefs'
8860       archive_cmds_need_lc=no
8861       hardcode_shlibpath_var=no
8862       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8863       hardcode_libdir_separator=':'
8864       link_all_deplibs=yes
8865       export_dynamic_flag_spec='${wl}-Bexport'
8866       runpath_var='LD_RUN_PATH'
8868       if test "$GCC" = yes; then
8869         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8870         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8871       else
8872         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8873         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8874       fi
8875       ;;
8877     uts4*)
8878       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8879       hardcode_libdir_flag_spec='-L$libdir'
8880       hardcode_shlibpath_var=no
8881       ;;
8883     *)
8884       ld_shlibs=no
8885       ;;
8886     esac
8887   fi
8889 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8890 echo "${ECHO_T}$ld_shlibs" >&6; }
8891 test "$ld_shlibs" = no && can_build_shared=no
8894 # Do we need to explicitly link libc?
8896 case "x$archive_cmds_need_lc" in
8897 x|xyes)
8898   # Assume -lc should be added
8899   archive_cmds_need_lc=yes
8901   if test "$enable_shared" = yes && test "$GCC" = yes; then
8902     case $archive_cmds in
8903     *'~'*)
8904       # FIXME: we may have to deal with multi-command sequences.
8905       ;;
8906     '$CC '*)
8907       # Test whether the compiler implicitly links with -lc since on some
8908       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8909       # to ld, don't add -lc before -lgcc.
8910       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8911 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8912       $rm conftest*
8913       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8915       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8916   (eval $ac_compile) 2>&5
8917   ac_status=$?
8918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919   (exit $ac_status); } 2>conftest.err; then
8920         soname=conftest
8921         lib=conftest
8922         libobjs=conftest.$ac_objext
8923         deplibs=
8924         wl=$lt_prog_compiler_wl
8925         pic_flag=$lt_prog_compiler_pic
8926         compiler_flags=-v
8927         linker_flags=-v
8928         verstring=
8929         output_objdir=.
8930         libname=conftest
8931         lt_save_allow_undefined_flag=$allow_undefined_flag
8932         allow_undefined_flag=
8933         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8934   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8935   ac_status=$?
8936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937   (exit $ac_status); }
8938         then
8939           archive_cmds_need_lc=no
8940         else
8941           archive_cmds_need_lc=yes
8942         fi
8943         allow_undefined_flag=$lt_save_allow_undefined_flag
8944       else
8945         cat conftest.err 1>&5
8946       fi
8947       $rm conftest*
8948       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8949 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8950       ;;
8951     esac
8952   fi
8953   ;;
8954 esac
8956 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8957 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8958 library_names_spec=
8959 libname_spec='lib$name'
8960 soname_spec=
8961 shrext_cmds=".so"
8962 postinstall_cmds=
8963 postuninstall_cmds=
8964 finish_cmds=
8965 finish_eval=
8966 shlibpath_var=
8967 shlibpath_overrides_runpath=unknown
8968 version_type=none
8969 dynamic_linker="$host_os ld.so"
8970 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8972 if test "$GCC" = yes; then
8973   case $host_os in
8974     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8975     *) lt_awk_arg="/^libraries:/" ;;
8976   esac
8977   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8978   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8979     # if the path contains ";" then we assume it to be the separator
8980     # otherwise default to the standard path separator (i.e. ":") - it is
8981     # assumed that no part of a normal pathname contains ";" but that should
8982     # okay in the real world where ";" in dirpaths is itself problematic.
8983     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8984   else
8985     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8986   fi
8987   # Ok, now we have the path, separated by spaces, we can step through it
8988   # and add multilib dir if necessary.
8989   lt_tmp_lt_search_path_spec=
8990   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8991   for lt_sys_path in $lt_search_path_spec; do
8992     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8993       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8994     else
8995       test -d "$lt_sys_path" && \
8996         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8997     fi
8998   done
8999   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9000 BEGIN {RS=" "; FS="/|\n";} {
9001   lt_foo="";
9002   lt_count=0;
9003   for (lt_i = NF; lt_i > 0; lt_i--) {
9004     if ($lt_i != "" && $lt_i != ".") {
9005       if ($lt_i == "..") {
9006         lt_count++;
9007       } else {
9008         if (lt_count == 0) {
9009           lt_foo="/" $lt_i lt_foo;
9010         } else {
9011           lt_count--;
9012         }
9013       }
9014     }
9015   }
9016   if (lt_foo != "") { lt_freq[lt_foo]++; }
9017   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9019   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9020 else
9021   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9023 need_lib_prefix=unknown
9024 hardcode_into_libs=no
9026 # when you set need_version to no, make sure it does not cause -set_version
9027 # flags to be left without arguments
9028 need_version=unknown
9030 case $host_os in
9031 aix3*)
9032   version_type=linux
9033   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9034   shlibpath_var=LIBPATH
9036   # AIX 3 has no versioning support, so we append a major version to the name.
9037   soname_spec='${libname}${release}${shared_ext}$major'
9038   ;;
9040 aix[4-9]*)
9041   version_type=linux
9042   need_lib_prefix=no
9043   need_version=no
9044   hardcode_into_libs=yes
9045   if test "$host_cpu" = ia64; then
9046     # AIX 5 supports IA64
9047     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9048     shlibpath_var=LD_LIBRARY_PATH
9049   else
9050     # With GCC up to 2.95.x, collect2 would create an import file
9051     # for dependence libraries.  The import file would start with
9052     # the line `#! .'.  This would cause the generated library to
9053     # depend on `.', always an invalid library.  This was fixed in
9054     # development snapshots of GCC prior to 3.0.
9055     case $host_os in
9056       aix4 | aix4.[01] | aix4.[01].*)
9057       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9058            echo ' yes '
9059            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9060         :
9061       else
9062         can_build_shared=no
9063       fi
9064       ;;
9065     esac
9066     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9067     # soname into executable. Probably we can add versioning support to
9068     # collect2, so additional links can be useful in future.
9069     if test "$aix_use_runtimelinking" = yes; then
9070       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9071       # instead of lib<name>.a to let people know that these are not
9072       # typical AIX shared libraries.
9073       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9074     else
9075       # We preserve .a as extension for shared libraries through AIX4.2
9076       # and later when we are not doing run time linking.
9077       library_names_spec='${libname}${release}.a $libname.a'
9078       soname_spec='${libname}${release}${shared_ext}$major'
9079     fi
9080     shlibpath_var=LIBPATH
9081   fi
9082   ;;
9084 amigaos*)
9085   library_names_spec='$libname.ixlibrary $libname.a'
9086   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9087   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'
9088   ;;
9090 beos*)
9091   library_names_spec='${libname}${shared_ext}'
9092   dynamic_linker="$host_os ld.so"
9093   shlibpath_var=LIBRARY_PATH
9094   ;;
9096 bsdi[45]*)
9097   version_type=linux
9098   need_version=no
9099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9100   soname_spec='${libname}${release}${shared_ext}$major'
9101   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9102   shlibpath_var=LD_LIBRARY_PATH
9103   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9104   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9105   # the default ld.so.conf also contains /usr/contrib/lib and
9106   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9107   # libtool to hard-code these into programs
9108   ;;
9110 cygwin* | mingw* | pw32*)
9111   version_type=windows
9112   shrext_cmds=".dll"
9113   need_version=no
9114   need_lib_prefix=no
9116   case $GCC,$host_os in
9117   yes,cygwin* | yes,mingw* | yes,pw32*)
9118     library_names_spec='$libname.dll.a'
9119     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9120     postinstall_cmds='base_file=`basename \${file}`~
9121       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9122       dldir=$destdir/`dirname \$dlpath`~
9123       test -d \$dldir || mkdir -p \$dldir~
9124       $install_prog $dir/$dlname \$dldir/$dlname~
9125       chmod a+x \$dldir/$dlname'
9126     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9127       dlpath=$dir/\$dldll~
9128        $rm \$dlpath'
9129     shlibpath_overrides_runpath=yes
9131     case $host_os in
9132     cygwin*)
9133       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9134       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9135       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9136       ;;
9137     mingw*)
9138       # MinGW DLLs use traditional 'lib' prefix
9139       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9140       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9141       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9142         # It is most probably a Windows format PATH printed by
9143         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9144         # path with ; separators, and with drive letters. We can handle the
9145         # drive letters (cygwin fileutils understands them), so leave them,
9146         # especially as we might pass files found there to a mingw objdump,
9147         # which wouldn't understand a cygwinified path. Ahh.
9148         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9149       else
9150         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9151       fi
9152       ;;
9153     pw32*)
9154       # pw32 DLLs use 'pw' prefix rather than 'lib'
9155       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9156       ;;
9157     esac
9158     ;;
9160   *)
9161     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9162     ;;
9163   esac
9164   dynamic_linker='Win32 ld.exe'
9165   # FIXME: first we should search . and the directory the executable is in
9166   shlibpath_var=PATH
9167   ;;
9169 darwin* | rhapsody*)
9170   dynamic_linker="$host_os dyld"
9171   version_type=darwin
9172   need_lib_prefix=no
9173   need_version=no
9174   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9175   soname_spec='${libname}${release}${major}$shared_ext'
9176   shlibpath_overrides_runpath=yes
9177   shlibpath_var=DYLD_LIBRARY_PATH
9178   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9179   
9180   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 
9181   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9182   ;;
9184 dgux*)
9185   version_type=linux
9186   need_lib_prefix=no
9187   need_version=no
9188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9189   soname_spec='${libname}${release}${shared_ext}$major'
9190   shlibpath_var=LD_LIBRARY_PATH
9191   ;;
9193 freebsd1*)
9194   dynamic_linker=no
9195   ;;
9197 freebsd* | dragonfly*)
9198   # DragonFly does not have aout.  When/if they implement a new
9199   # versioning mechanism, adjust this.
9200   if test -x /usr/bin/objformat; then
9201     objformat=`/usr/bin/objformat`
9202   else
9203     case $host_os in
9204     freebsd[123]*) objformat=aout ;;
9205     *) objformat=elf ;;
9206     esac
9207   fi
9208   version_type=freebsd-$objformat
9209   case $version_type in
9210     freebsd-elf*)
9211       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9212       need_version=no
9213       need_lib_prefix=no
9214       ;;
9215     freebsd-*)
9216       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9217       need_version=yes
9218       ;;
9219   esac
9220   shlibpath_var=LD_LIBRARY_PATH
9221   case $host_os in
9222   freebsd2*)
9223     shlibpath_overrides_runpath=yes
9224     ;;
9225   freebsd3.[01]* | freebsdelf3.[01]*)
9226     shlibpath_overrides_runpath=yes
9227     hardcode_into_libs=yes
9228     ;;
9229   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9230   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9231     shlibpath_overrides_runpath=no
9232     hardcode_into_libs=yes
9233     ;;
9234   *) # from 4.6 on, and DragonFly
9235     shlibpath_overrides_runpath=yes
9236     hardcode_into_libs=yes
9237     ;;
9238   esac
9239   ;;
9241 gnu*)
9242   version_type=linux
9243   need_lib_prefix=no
9244   need_version=no
9245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9246   soname_spec='${libname}${release}${shared_ext}$major'
9247   shlibpath_var=LD_LIBRARY_PATH
9248   hardcode_into_libs=yes
9249   ;;
9251 hpux9* | hpux10* | hpux11*)
9252   # Give a soname corresponding to the major version so that dld.sl refuses to
9253   # link against other versions.
9254   version_type=sunos
9255   need_lib_prefix=no
9256   need_version=no
9257   case $host_cpu in
9258   ia64*)
9259     shrext_cmds='.so'
9260     hardcode_into_libs=yes
9261     dynamic_linker="$host_os dld.so"
9262     shlibpath_var=LD_LIBRARY_PATH
9263     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9264     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9265     soname_spec='${libname}${release}${shared_ext}$major'
9266     if test "X$HPUX_IA64_MODE" = X32; then
9267       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9268     else
9269       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9270     fi
9271     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9272     ;;
9273    hppa*64*)
9274      shrext_cmds='.sl'
9275      hardcode_into_libs=yes
9276      dynamic_linker="$host_os dld.sl"
9277      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9278      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9279      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280      soname_spec='${libname}${release}${shared_ext}$major'
9281      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9282      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9283      ;;
9284    *)
9285     shrext_cmds='.sl'
9286     dynamic_linker="$host_os dld.sl"
9287     shlibpath_var=SHLIB_PATH
9288     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9289     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290     soname_spec='${libname}${release}${shared_ext}$major'
9291     ;;
9292   esac
9293   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9294   postinstall_cmds='chmod 555 $lib'
9295   ;;
9297 interix[3-9]*)
9298   version_type=linux
9299   need_lib_prefix=no
9300   need_version=no
9301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9302   soname_spec='${libname}${release}${shared_ext}$major'
9303   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9304   shlibpath_var=LD_LIBRARY_PATH
9305   shlibpath_overrides_runpath=no
9306   hardcode_into_libs=yes
9307   ;;
9309 irix5* | irix6* | nonstopux*)
9310   case $host_os in
9311     nonstopux*) version_type=nonstopux ;;
9312     *)
9313         if test "$lt_cv_prog_gnu_ld" = yes; then
9314                 version_type=linux
9315         else
9316                 version_type=irix
9317         fi ;;
9318   esac
9319   need_lib_prefix=no
9320   need_version=no
9321   soname_spec='${libname}${release}${shared_ext}$major'
9322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9323   case $host_os in
9324   irix5* | nonstopux*)
9325     libsuff= shlibsuff=
9326     ;;
9327   *)
9328     case $LD in # libtool.m4 will add one of these switches to LD
9329     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9330       libsuff= shlibsuff= libmagic=32-bit;;
9331     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9332       libsuff=32 shlibsuff=N32 libmagic=N32;;
9333     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9334       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9335     *) libsuff= shlibsuff= libmagic=never-match;;
9336     esac
9337     ;;
9338   esac
9339   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9340   shlibpath_overrides_runpath=no
9341   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9342   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9343   hardcode_into_libs=yes
9344   ;;
9346 # No shared lib support for Linux oldld, aout, or coff.
9347 linux*oldld* | linux*aout* | linux*coff*)
9348   dynamic_linker=no
9349   ;;
9351 # This must be Linux ELF.
9352 linux* | k*bsd*-gnu)
9353   version_type=linux
9354   need_lib_prefix=no
9355   need_version=no
9356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9357   soname_spec='${libname}${release}${shared_ext}$major'
9358   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9359   shlibpath_var=LD_LIBRARY_PATH
9360   shlibpath_overrides_runpath=no
9361   # This implies no fast_install, which is unacceptable.
9362   # Some rework will be needed to allow for fast_install
9363   # before this can be enabled.
9364   hardcode_into_libs=yes
9366   # Append ld.so.conf contents to the search path
9367   if test -f /etc/ld.so.conf; then
9368     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9369     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9370   fi
9372   # We used to test for /lib/ld.so.1 and disable shared libraries on
9373   # powerpc, because MkLinux only supported shared libraries with the
9374   # GNU dynamic linker.  Since this was broken with cross compilers,
9375   # most powerpc-linux boxes support dynamic linking these days and
9376   # people can always --disable-shared, the test was removed, and we
9377   # assume the GNU/Linux dynamic linker is in use.
9378   dynamic_linker='GNU/Linux ld.so'
9379   ;;
9381 netbsdelf*-gnu)
9382   version_type=linux
9383   need_lib_prefix=no
9384   need_version=no
9385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9386   soname_spec='${libname}${release}${shared_ext}$major'
9387   shlibpath_var=LD_LIBRARY_PATH
9388   shlibpath_overrides_runpath=no
9389   hardcode_into_libs=yes
9390   dynamic_linker='NetBSD ld.elf_so'
9391   ;;
9393 netbsd*)
9394   version_type=sunos
9395   need_lib_prefix=no
9396   need_version=no
9397   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9398     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9399     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9400     dynamic_linker='NetBSD (a.out) ld.so'
9401   else
9402     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9403     soname_spec='${libname}${release}${shared_ext}$major'
9404     dynamic_linker='NetBSD ld.elf_so'
9405   fi
9406   shlibpath_var=LD_LIBRARY_PATH
9407   shlibpath_overrides_runpath=yes
9408   hardcode_into_libs=yes
9409   ;;
9411 newsos6)
9412   version_type=linux
9413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9414   shlibpath_var=LD_LIBRARY_PATH
9415   shlibpath_overrides_runpath=yes
9416   ;;
9418 nto-qnx*)
9419   version_type=linux
9420   need_lib_prefix=no
9421   need_version=no
9422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9423   soname_spec='${libname}${release}${shared_ext}$major'
9424   shlibpath_var=LD_LIBRARY_PATH
9425   shlibpath_overrides_runpath=yes
9426   ;;
9428 openbsd*)
9429   version_type=sunos
9430   sys_lib_dlsearch_path_spec="/usr/lib"
9431   need_lib_prefix=no
9432   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9433   case $host_os in
9434     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9435     *)                         need_version=no  ;;
9436   esac
9437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9438   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9439   shlibpath_var=LD_LIBRARY_PATH
9440   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9441     case $host_os in
9442       openbsd2.[89] | openbsd2.[89].*)
9443         shlibpath_overrides_runpath=no
9444         ;;
9445       *)
9446         shlibpath_overrides_runpath=yes
9447         ;;
9448       esac
9449   else
9450     shlibpath_overrides_runpath=yes
9451   fi
9452   ;;
9454 os2*)
9455   libname_spec='$name'
9456   shrext_cmds=".dll"
9457   need_lib_prefix=no
9458   library_names_spec='$libname${shared_ext} $libname.a'
9459   dynamic_linker='OS/2 ld.exe'
9460   shlibpath_var=LIBPATH
9461   ;;
9463 osf3* | osf4* | osf5*)
9464   version_type=osf
9465   need_lib_prefix=no
9466   need_version=no
9467   soname_spec='${libname}${release}${shared_ext}$major'
9468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9469   shlibpath_var=LD_LIBRARY_PATH
9470   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9471   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9472   ;;
9474 rdos*)
9475   dynamic_linker=no
9476   ;;
9478 solaris*)
9479   version_type=linux
9480   need_lib_prefix=no
9481   need_version=no
9482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483   soname_spec='${libname}${release}${shared_ext}$major'
9484   shlibpath_var=LD_LIBRARY_PATH
9485   shlibpath_overrides_runpath=yes
9486   hardcode_into_libs=yes
9487   # ldd complains unless libraries are executable
9488   postinstall_cmds='chmod +x $lib'
9489   ;;
9491 sunos4*)
9492   version_type=sunos
9493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9494   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9495   shlibpath_var=LD_LIBRARY_PATH
9496   shlibpath_overrides_runpath=yes
9497   if test "$with_gnu_ld" = yes; then
9498     need_lib_prefix=no
9499   fi
9500   need_version=yes
9501   ;;
9503 sysv4 | sysv4.3*)
9504   version_type=linux
9505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9506   soname_spec='${libname}${release}${shared_ext}$major'
9507   shlibpath_var=LD_LIBRARY_PATH
9508   case $host_vendor in
9509     sni)
9510       shlibpath_overrides_runpath=no
9511       need_lib_prefix=no
9512       export_dynamic_flag_spec='${wl}-Blargedynsym'
9513       runpath_var=LD_RUN_PATH
9514       ;;
9515     siemens)
9516       need_lib_prefix=no
9517       ;;
9518     motorola)
9519       need_lib_prefix=no
9520       need_version=no
9521       shlibpath_overrides_runpath=no
9522       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9523       ;;
9524   esac
9525   ;;
9527 sysv4*MP*)
9528   if test -d /usr/nec ;then
9529     version_type=linux
9530     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9531     soname_spec='$libname${shared_ext}.$major'
9532     shlibpath_var=LD_LIBRARY_PATH
9533   fi
9534   ;;
9536 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9537   version_type=freebsd-elf
9538   need_lib_prefix=no
9539   need_version=no
9540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9541   soname_spec='${libname}${release}${shared_ext}$major'
9542   shlibpath_var=LD_LIBRARY_PATH
9543   hardcode_into_libs=yes
9544   if test "$with_gnu_ld" = yes; then
9545     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9546     shlibpath_overrides_runpath=no
9547   else
9548     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9549     shlibpath_overrides_runpath=yes
9550     case $host_os in
9551       sco3.2v5*)
9552         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9553         ;;
9554     esac
9555   fi
9556   sys_lib_dlsearch_path_spec='/usr/lib'
9557   ;;
9559 uts4*)
9560   version_type=linux
9561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9562   soname_spec='${libname}${release}${shared_ext}$major'
9563   shlibpath_var=LD_LIBRARY_PATH
9564   ;;
9567   dynamic_linker=no
9568   ;;
9569 esac
9570 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9571 echo "${ECHO_T}$dynamic_linker" >&6; }
9572 test "$dynamic_linker" = no && can_build_shared=no
9574 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9575   echo $ECHO_N "(cached) $ECHO_C" >&6
9576 else
9577   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9580 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9581 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9582   echo $ECHO_N "(cached) $ECHO_C" >&6
9583 else
9584   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9587 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9589 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9590 if test "$GCC" = yes; then
9591   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9594 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9595 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9596 hardcode_action=
9597 if test -n "$hardcode_libdir_flag_spec" || \
9598    test -n "$runpath_var" || \
9599    test "X$hardcode_automatic" = "Xyes" ; then
9601   # We can hardcode non-existant directories.
9602   if test "$hardcode_direct" != no &&
9603      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9604      # have to relink, otherwise we might link with an installed library
9605      # when we should be linking with a yet-to-be-installed one
9606      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9607      test "$hardcode_minus_L" != no; then
9608     # Linking always hardcodes the temporary library directory.
9609     hardcode_action=relink
9610   else
9611     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9612     hardcode_action=immediate
9613   fi
9614 else
9615   # We cannot hardcode anything, or else we can only hardcode existing
9616   # directories.
9617   hardcode_action=unsupported
9619 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9620 echo "${ECHO_T}$hardcode_action" >&6; }
9622 if test "$hardcode_action" = relink; then
9623   # Fast installation is not supported
9624   enable_fast_install=no
9625 elif test "$shlibpath_overrides_runpath" = yes ||
9626      test "$enable_shared" = no; then
9627   # Fast installation is not necessary
9628   enable_fast_install=needless
9631 striplib=
9632 old_striplib=
9633 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9634 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9635 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9636   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9637   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9638   { echo "$as_me:$LINENO: result: yes" >&5
9639 echo "${ECHO_T}yes" >&6; }
9640 else
9641 # FIXME - insert some real tests, host_os isn't really good enough
9642   case $host_os in
9643    darwin*)
9644        if test -n "$STRIP" ; then
9645          striplib="$STRIP -x"
9646          old_striplib="$STRIP -S"
9647          { echo "$as_me:$LINENO: result: yes" >&5
9648 echo "${ECHO_T}yes" >&6; }
9649        else
9650   { echo "$as_me:$LINENO: result: no" >&5
9651 echo "${ECHO_T}no" >&6; }
9653        ;;
9654    *)
9655   { echo "$as_me:$LINENO: result: no" >&5
9656 echo "${ECHO_T}no" >&6; }
9657     ;;
9658   esac
9661 if test "x$enable_dlopen" != xyes; then
9662   enable_dlopen=unknown
9663   enable_dlopen_self=unknown
9664   enable_dlopen_self_static=unknown
9665 else
9666   lt_cv_dlopen=no
9667   lt_cv_dlopen_libs=
9669   case $host_os in
9670   beos*)
9671     lt_cv_dlopen="load_add_on"
9672     lt_cv_dlopen_libs=
9673     lt_cv_dlopen_self=yes
9674     ;;
9676   mingw* | pw32*)
9677     lt_cv_dlopen="LoadLibrary"
9678     lt_cv_dlopen_libs=
9679    ;;
9681   cygwin*)
9682     lt_cv_dlopen="dlopen"
9683     lt_cv_dlopen_libs=
9684    ;;
9686   darwin*)
9687   # if libdl is installed we need to link against it
9688     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9689 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9690 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9691   echo $ECHO_N "(cached) $ECHO_C" >&6
9692 else
9693   ac_check_lib_save_LIBS=$LIBS
9694 LIBS="-ldl  $LIBS"
9695 cat >conftest.$ac_ext <<_ACEOF
9696 /* confdefs.h.  */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h.  */
9702 /* Override any GCC internal prototype to avoid an error.
9703    Use char because int might match the return type of a GCC
9704    builtin and then its argument prototype would still apply.  */
9705 #ifdef __cplusplus
9706 extern "C"
9707 #endif
9708 char dlopen ();
9710 main ()
9712 return dlopen ();
9713   ;
9714   return 0;
9716 _ACEOF
9717 rm -f conftest.$ac_objext conftest$ac_exeext
9718 if { (ac_try="$ac_link"
9719 case "(($ac_try" in
9720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721   *) ac_try_echo=$ac_try;;
9722 esac
9723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724   (eval "$ac_link") 2>conftest.er1
9725   ac_status=$?
9726   grep -v '^ *+' conftest.er1 >conftest.err
9727   rm -f conftest.er1
9728   cat conftest.err >&5
9729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730   (exit $ac_status); } && {
9731          test -z "$ac_c_werror_flag" ||
9732          test ! -s conftest.err
9733        } && test -s conftest$ac_exeext &&
9734        $as_test_x conftest$ac_exeext; then
9735   ac_cv_lib_dl_dlopen=yes
9736 else
9737   echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9740         ac_cv_lib_dl_dlopen=no
9743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9744       conftest$ac_exeext conftest.$ac_ext
9745 LIBS=$ac_check_lib_save_LIBS
9747 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9748 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9749 if test $ac_cv_lib_dl_dlopen = yes; then
9750   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9751 else
9752   
9753     lt_cv_dlopen="dyld"
9754     lt_cv_dlopen_libs=
9755     lt_cv_dlopen_self=yes
9756     
9759    ;;
9761   *)
9762     { echo "$as_me:$LINENO: checking for shl_load" >&5
9763 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9764 if test "${ac_cv_func_shl_load+set}" = set; then
9765   echo $ECHO_N "(cached) $ECHO_C" >&6
9766 else
9767   cat >conftest.$ac_ext <<_ACEOF
9768 /* confdefs.h.  */
9769 _ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h.  */
9773 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9774    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9775 #define shl_load innocuous_shl_load
9777 /* System header to define __stub macros and hopefully few prototypes,
9778     which can conflict with char shl_load (); below.
9779     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9780     <limits.h> exists even on freestanding compilers.  */
9782 #ifdef __STDC__
9783 # include <limits.h>
9784 #else
9785 # include <assert.h>
9786 #endif
9788 #undef shl_load
9790 /* Override any GCC internal prototype to avoid an error.
9791    Use char because int might match the return type of a GCC
9792    builtin and then its argument prototype would still apply.  */
9793 #ifdef __cplusplus
9794 extern "C"
9795 #endif
9796 char shl_load ();
9797 /* The GNU C library defines this for functions which it implements
9798     to always fail with ENOSYS.  Some functions are actually named
9799     something starting with __ and the normal name is an alias.  */
9800 #if defined __stub_shl_load || defined __stub___shl_load
9801 choke me
9802 #endif
9805 main ()
9807 return shl_load ();
9808   ;
9809   return 0;
9811 _ACEOF
9812 rm -f conftest.$ac_objext conftest$ac_exeext
9813 if { (ac_try="$ac_link"
9814 case "(($ac_try" in
9815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816   *) ac_try_echo=$ac_try;;
9817 esac
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819   (eval "$ac_link") 2>conftest.er1
9820   ac_status=$?
9821   grep -v '^ *+' conftest.er1 >conftest.err
9822   rm -f conftest.er1
9823   cat conftest.err >&5
9824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825   (exit $ac_status); } && {
9826          test -z "$ac_c_werror_flag" ||
9827          test ! -s conftest.err
9828        } && test -s conftest$ac_exeext &&
9829        $as_test_x conftest$ac_exeext; then
9830   ac_cv_func_shl_load=yes
9831 else
9832   echo "$as_me: failed program was:" >&5
9833 sed 's/^/| /' conftest.$ac_ext >&5
9835         ac_cv_func_shl_load=no
9838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9839       conftest$ac_exeext conftest.$ac_ext
9841 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9842 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9843 if test $ac_cv_func_shl_load = yes; then
9844   lt_cv_dlopen="shl_load"
9845 else
9846   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9847 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9848 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9849   echo $ECHO_N "(cached) $ECHO_C" >&6
9850 else
9851   ac_check_lib_save_LIBS=$LIBS
9852 LIBS="-ldld  $LIBS"
9853 cat >conftest.$ac_ext <<_ACEOF
9854 /* confdefs.h.  */
9855 _ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h.  */
9860 /* Override any GCC internal prototype to avoid an error.
9861    Use char because int might match the return type of a GCC
9862    builtin and then its argument prototype would still apply.  */
9863 #ifdef __cplusplus
9864 extern "C"
9865 #endif
9866 char shl_load ();
9868 main ()
9870 return shl_load ();
9871   ;
9872   return 0;
9874 _ACEOF
9875 rm -f conftest.$ac_objext conftest$ac_exeext
9876 if { (ac_try="$ac_link"
9877 case "(($ac_try" in
9878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879   *) ac_try_echo=$ac_try;;
9880 esac
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882   (eval "$ac_link") 2>conftest.er1
9883   ac_status=$?
9884   grep -v '^ *+' conftest.er1 >conftest.err
9885   rm -f conftest.er1
9886   cat conftest.err >&5
9887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888   (exit $ac_status); } && {
9889          test -z "$ac_c_werror_flag" ||
9890          test ! -s conftest.err
9891        } && test -s conftest$ac_exeext &&
9892        $as_test_x conftest$ac_exeext; then
9893   ac_cv_lib_dld_shl_load=yes
9894 else
9895   echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9898         ac_cv_lib_dld_shl_load=no
9901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9902       conftest$ac_exeext conftest.$ac_ext
9903 LIBS=$ac_check_lib_save_LIBS
9905 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9906 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9907 if test $ac_cv_lib_dld_shl_load = yes; then
9908   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9909 else
9910   { echo "$as_me:$LINENO: checking for dlopen" >&5
9911 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9912 if test "${ac_cv_func_dlopen+set}" = set; then
9913   echo $ECHO_N "(cached) $ECHO_C" >&6
9914 else
9915   cat >conftest.$ac_ext <<_ACEOF
9916 /* confdefs.h.  */
9917 _ACEOF
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h.  */
9921 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9922    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9923 #define dlopen innocuous_dlopen
9925 /* System header to define __stub macros and hopefully few prototypes,
9926     which can conflict with char dlopen (); below.
9927     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9928     <limits.h> exists even on freestanding compilers.  */
9930 #ifdef __STDC__
9931 # include <limits.h>
9932 #else
9933 # include <assert.h>
9934 #endif
9936 #undef dlopen
9938 /* Override any GCC internal prototype to avoid an error.
9939    Use char because int might match the return type of a GCC
9940    builtin and then its argument prototype would still apply.  */
9941 #ifdef __cplusplus
9942 extern "C"
9943 #endif
9944 char dlopen ();
9945 /* The GNU C library defines this for functions which it implements
9946     to always fail with ENOSYS.  Some functions are actually named
9947     something starting with __ and the normal name is an alias.  */
9948 #if defined __stub_dlopen || defined __stub___dlopen
9949 choke me
9950 #endif
9953 main ()
9955 return dlopen ();
9956   ;
9957   return 0;
9959 _ACEOF
9960 rm -f conftest.$ac_objext conftest$ac_exeext
9961 if { (ac_try="$ac_link"
9962 case "(($ac_try" in
9963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964   *) ac_try_echo=$ac_try;;
9965 esac
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967   (eval "$ac_link") 2>conftest.er1
9968   ac_status=$?
9969   grep -v '^ *+' conftest.er1 >conftest.err
9970   rm -f conftest.er1
9971   cat conftest.err >&5
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); } && {
9974          test -z "$ac_c_werror_flag" ||
9975          test ! -s conftest.err
9976        } && test -s conftest$ac_exeext &&
9977        $as_test_x conftest$ac_exeext; then
9978   ac_cv_func_dlopen=yes
9979 else
9980   echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9983         ac_cv_func_dlopen=no
9986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9987       conftest$ac_exeext conftest.$ac_ext
9989 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9990 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9991 if test $ac_cv_func_dlopen = yes; then
9992   lt_cv_dlopen="dlopen"
9993 else
9994   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9995 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9996 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9997   echo $ECHO_N "(cached) $ECHO_C" >&6
9998 else
9999   ac_check_lib_save_LIBS=$LIBS
10000 LIBS="-ldl  $LIBS"
10001 cat >conftest.$ac_ext <<_ACEOF
10002 /* confdefs.h.  */
10003 _ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h.  */
10008 /* Override any GCC internal prototype to avoid an error.
10009    Use char because int might match the return type of a GCC
10010    builtin and then its argument prototype would still apply.  */
10011 #ifdef __cplusplus
10012 extern "C"
10013 #endif
10014 char dlopen ();
10016 main ()
10018 return dlopen ();
10019   ;
10020   return 0;
10022 _ACEOF
10023 rm -f conftest.$ac_objext conftest$ac_exeext
10024 if { (ac_try="$ac_link"
10025 case "(($ac_try" in
10026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027   *) ac_try_echo=$ac_try;;
10028 esac
10029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030   (eval "$ac_link") 2>conftest.er1
10031   ac_status=$?
10032   grep -v '^ *+' conftest.er1 >conftest.err
10033   rm -f conftest.er1
10034   cat conftest.err >&5
10035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); } && {
10037          test -z "$ac_c_werror_flag" ||
10038          test ! -s conftest.err
10039        } && test -s conftest$ac_exeext &&
10040        $as_test_x conftest$ac_exeext; then
10041   ac_cv_lib_dl_dlopen=yes
10042 else
10043   echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10046         ac_cv_lib_dl_dlopen=no
10049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10050       conftest$ac_exeext conftest.$ac_ext
10051 LIBS=$ac_check_lib_save_LIBS
10053 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10054 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10055 if test $ac_cv_lib_dl_dlopen = yes; then
10056   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10057 else
10058   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10059 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10060 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10061   echo $ECHO_N "(cached) $ECHO_C" >&6
10062 else
10063   ac_check_lib_save_LIBS=$LIBS
10064 LIBS="-lsvld  $LIBS"
10065 cat >conftest.$ac_ext <<_ACEOF
10066 /* confdefs.h.  */
10067 _ACEOF
10068 cat confdefs.h >>conftest.$ac_ext
10069 cat >>conftest.$ac_ext <<_ACEOF
10070 /* end confdefs.h.  */
10072 /* Override any GCC internal prototype to avoid an error.
10073    Use char because int might match the return type of a GCC
10074    builtin and then its argument prototype would still apply.  */
10075 #ifdef __cplusplus
10076 extern "C"
10077 #endif
10078 char dlopen ();
10080 main ()
10082 return dlopen ();
10083   ;
10084   return 0;
10086 _ACEOF
10087 rm -f conftest.$ac_objext conftest$ac_exeext
10088 if { (ac_try="$ac_link"
10089 case "(($ac_try" in
10090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091   *) ac_try_echo=$ac_try;;
10092 esac
10093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094   (eval "$ac_link") 2>conftest.er1
10095   ac_status=$?
10096   grep -v '^ *+' conftest.er1 >conftest.err
10097   rm -f conftest.er1
10098   cat conftest.err >&5
10099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100   (exit $ac_status); } && {
10101          test -z "$ac_c_werror_flag" ||
10102          test ! -s conftest.err
10103        } && test -s conftest$ac_exeext &&
10104        $as_test_x conftest$ac_exeext; then
10105   ac_cv_lib_svld_dlopen=yes
10106 else
10107   echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10110         ac_cv_lib_svld_dlopen=no
10113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10114       conftest$ac_exeext conftest.$ac_ext
10115 LIBS=$ac_check_lib_save_LIBS
10117 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10118 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10119 if test $ac_cv_lib_svld_dlopen = yes; then
10120   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10121 else
10122   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10123 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10124 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10125   echo $ECHO_N "(cached) $ECHO_C" >&6
10126 else
10127   ac_check_lib_save_LIBS=$LIBS
10128 LIBS="-ldld  $LIBS"
10129 cat >conftest.$ac_ext <<_ACEOF
10130 /* confdefs.h.  */
10131 _ACEOF
10132 cat confdefs.h >>conftest.$ac_ext
10133 cat >>conftest.$ac_ext <<_ACEOF
10134 /* end confdefs.h.  */
10136 /* Override any GCC internal prototype to avoid an error.
10137    Use char because int might match the return type of a GCC
10138    builtin and then its argument prototype would still apply.  */
10139 #ifdef __cplusplus
10140 extern "C"
10141 #endif
10142 char dld_link ();
10144 main ()
10146 return dld_link ();
10147   ;
10148   return 0;
10150 _ACEOF
10151 rm -f conftest.$ac_objext conftest$ac_exeext
10152 if { (ac_try="$ac_link"
10153 case "(($ac_try" in
10154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10155   *) ac_try_echo=$ac_try;;
10156 esac
10157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10158   (eval "$ac_link") 2>conftest.er1
10159   ac_status=$?
10160   grep -v '^ *+' conftest.er1 >conftest.err
10161   rm -f conftest.er1
10162   cat conftest.err >&5
10163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164   (exit $ac_status); } && {
10165          test -z "$ac_c_werror_flag" ||
10166          test ! -s conftest.err
10167        } && test -s conftest$ac_exeext &&
10168        $as_test_x conftest$ac_exeext; then
10169   ac_cv_lib_dld_dld_link=yes
10170 else
10171   echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10174         ac_cv_lib_dld_dld_link=no
10177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10178       conftest$ac_exeext conftest.$ac_ext
10179 LIBS=$ac_check_lib_save_LIBS
10181 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10182 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10183 if test $ac_cv_lib_dld_dld_link = yes; then
10184   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10187               
10190             
10193           
10196         
10199       
10202     ;;
10203   esac
10205   if test "x$lt_cv_dlopen" != xno; then
10206     enable_dlopen=yes
10207   else
10208     enable_dlopen=no
10209   fi
10211   case $lt_cv_dlopen in
10212   dlopen)
10213     save_CPPFLAGS="$CPPFLAGS"
10214     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10216     save_LDFLAGS="$LDFLAGS"
10217     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10219     save_LIBS="$LIBS"
10220     LIBS="$lt_cv_dlopen_libs $LIBS"
10222     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10223 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10224 if test "${lt_cv_dlopen_self+set}" = set; then
10225   echo $ECHO_N "(cached) $ECHO_C" >&6
10226 else
10227           if test "$cross_compiling" = yes; then :
10228   lt_cv_dlopen_self=cross
10229 else
10230   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10231   lt_status=$lt_dlunknown
10232   cat > conftest.$ac_ext <<EOF
10233 #line __oline__ "configure"
10234 #include "confdefs.h"
10236 #if HAVE_DLFCN_H
10237 #include <dlfcn.h>
10238 #endif
10240 #include <stdio.h>
10242 #ifdef RTLD_GLOBAL
10243 #  define LT_DLGLOBAL           RTLD_GLOBAL
10244 #else
10245 #  ifdef DL_GLOBAL
10246 #    define LT_DLGLOBAL         DL_GLOBAL
10247 #  else
10248 #    define LT_DLGLOBAL         0
10249 #  endif
10250 #endif
10252 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10253    find out it does not work in some platform. */
10254 #ifndef LT_DLLAZY_OR_NOW
10255 #  ifdef RTLD_LAZY
10256 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10257 #  else
10258 #    ifdef DL_LAZY
10259 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10260 #    else
10261 #      ifdef RTLD_NOW
10262 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10263 #      else
10264 #        ifdef DL_NOW
10265 #          define LT_DLLAZY_OR_NOW      DL_NOW
10266 #        else
10267 #          define LT_DLLAZY_OR_NOW      0
10268 #        endif
10269 #      endif
10270 #    endif
10271 #  endif
10272 #endif
10274 #ifdef __cplusplus
10275 extern "C" void exit (int);
10276 #endif
10278 void fnord() { int i=42;}
10279 int main ()
10281   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10282   int status = $lt_dlunknown;
10284   if (self)
10285     {
10286       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10287       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10288       /* dlclose (self); */
10289     }
10290   else
10291     puts (dlerror ());
10293     exit (status);
10296   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10297   (eval $ac_link) 2>&5
10298   ac_status=$?
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10301     (./conftest; exit; ) >&5 2>/dev/null
10302     lt_status=$?
10303     case x$lt_status in
10304       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10305       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10306       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10307     esac
10308   else :
10309     # compilation failed
10310     lt_cv_dlopen_self=no
10311   fi
10313 rm -fr conftest*
10315     
10317 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10318 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10320     if test "x$lt_cv_dlopen_self" = xyes; then
10321       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10322       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10323 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10324 if test "${lt_cv_dlopen_self_static+set}" = set; then
10325   echo $ECHO_N "(cached) $ECHO_C" >&6
10326 else
10327           if test "$cross_compiling" = yes; then :
10328   lt_cv_dlopen_self_static=cross
10329 else
10330   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10331   lt_status=$lt_dlunknown
10332   cat > conftest.$ac_ext <<EOF
10333 #line __oline__ "configure"
10334 #include "confdefs.h"
10336 #if HAVE_DLFCN_H
10337 #include <dlfcn.h>
10338 #endif
10340 #include <stdio.h>
10342 #ifdef RTLD_GLOBAL
10343 #  define LT_DLGLOBAL           RTLD_GLOBAL
10344 #else
10345 #  ifdef DL_GLOBAL
10346 #    define LT_DLGLOBAL         DL_GLOBAL
10347 #  else
10348 #    define LT_DLGLOBAL         0
10349 #  endif
10350 #endif
10352 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10353    find out it does not work in some platform. */
10354 #ifndef LT_DLLAZY_OR_NOW
10355 #  ifdef RTLD_LAZY
10356 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10357 #  else
10358 #    ifdef DL_LAZY
10359 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10360 #    else
10361 #      ifdef RTLD_NOW
10362 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10363 #      else
10364 #        ifdef DL_NOW
10365 #          define LT_DLLAZY_OR_NOW      DL_NOW
10366 #        else
10367 #          define LT_DLLAZY_OR_NOW      0
10368 #        endif
10369 #      endif
10370 #    endif
10371 #  endif
10372 #endif
10374 #ifdef __cplusplus
10375 extern "C" void exit (int);
10376 #endif
10378 void fnord() { int i=42;}
10379 int main ()
10381   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10382   int status = $lt_dlunknown;
10384   if (self)
10385     {
10386       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10387       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10388       /* dlclose (self); */
10389     }
10390   else
10391     puts (dlerror ());
10393     exit (status);
10396   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10397   (eval $ac_link) 2>&5
10398   ac_status=$?
10399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10401     (./conftest; exit; ) >&5 2>/dev/null
10402     lt_status=$?
10403     case x$lt_status in
10404       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10405       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10406       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10407     esac
10408   else :
10409     # compilation failed
10410     lt_cv_dlopen_self_static=no
10411   fi
10413 rm -fr conftest*
10415       
10417 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10418 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10419     fi
10421     CPPFLAGS="$save_CPPFLAGS"
10422     LDFLAGS="$save_LDFLAGS"
10423     LIBS="$save_LIBS"
10424     ;;
10425   esac
10427   case $lt_cv_dlopen_self in
10428   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10429   *) enable_dlopen_self=unknown ;;
10430   esac
10432   case $lt_cv_dlopen_self_static in
10433   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10434   *) enable_dlopen_self_static=unknown ;;
10435   esac
10439 # Report which library types will actually be built
10440 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10441 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10442 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10443 echo "${ECHO_T}$can_build_shared" >&6; }
10445 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10446 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10447 test "$can_build_shared" = "no" && enable_shared=no
10449 # On AIX, shared libraries and static libraries use the same namespace, and
10450 # are all built from PIC.
10451 case $host_os in
10452 aix3*)
10453   test "$enable_shared" = yes && enable_static=no
10454   if test -n "$RANLIB"; then
10455     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10456     postinstall_cmds='$RANLIB $lib'
10457   fi
10458   ;;
10460 aix[4-9]*)
10461   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10462     test "$enable_shared" = yes && enable_static=no
10463   fi
10464     ;;
10465 esac
10466 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10467 echo "${ECHO_T}$enable_shared" >&6; }
10469 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10470 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10471 # Make sure either enable_shared or enable_static is yes.
10472 test "$enable_shared" = yes || enable_static=yes
10473 { echo "$as_me:$LINENO: result: $enable_static" >&5
10474 echo "${ECHO_T}$enable_static" >&6; }
10476 # The else clause should only fire when bootstrapping the
10477 # libtool distribution, otherwise you forgot to ship ltmain.sh
10478 # with your package, and you will get complaints that there are
10479 # no rules to generate ltmain.sh.
10480 if test -f "$ltmain"; then
10481   # See if we are running on zsh, and set the options which allow our commands through
10482   # without removal of \ escapes.
10483   if test -n "${ZSH_VERSION+set}" ; then
10484     setopt NO_GLOB_SUBST
10485   fi
10486   # Now quote all the things that may contain metacharacters while being
10487   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10488   # variables and quote the copies for generation of the libtool script.
10489   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10490     SED SHELL STRIP \
10491     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10492     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10493     deplibs_check_method reload_flag reload_cmds need_locks \
10494     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10495     lt_cv_sys_global_symbol_to_c_name_address \
10496     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10497     old_postinstall_cmds old_postuninstall_cmds \
10498     compiler \
10499     CC \
10500     LD \
10501     lt_prog_compiler_wl \
10502     lt_prog_compiler_pic \
10503     lt_prog_compiler_static \
10504     lt_prog_compiler_no_builtin_flag \
10505     export_dynamic_flag_spec \
10506     thread_safe_flag_spec \
10507     whole_archive_flag_spec \
10508     enable_shared_with_static_runtimes \
10509     old_archive_cmds \
10510     old_archive_from_new_cmds \
10511     predep_objects \
10512     postdep_objects \
10513     predeps \
10514     postdeps \
10515     compiler_lib_search_path \
10516     compiler_lib_search_dirs \
10517     archive_cmds \
10518     archive_expsym_cmds \
10519     postinstall_cmds \
10520     postuninstall_cmds \
10521     old_archive_from_expsyms_cmds \
10522     allow_undefined_flag \
10523     no_undefined_flag \
10524     export_symbols_cmds \
10525     hardcode_libdir_flag_spec \
10526     hardcode_libdir_flag_spec_ld \
10527     hardcode_libdir_separator \
10528     hardcode_automatic \
10529     module_cmds \
10530     module_expsym_cmds \
10531     lt_cv_prog_compiler_c_o \
10532     fix_srcfile_path \
10533     exclude_expsyms \
10534     include_expsyms; do
10536     case $var in
10537     old_archive_cmds | \
10538     old_archive_from_new_cmds | \
10539     archive_cmds | \
10540     archive_expsym_cmds | \
10541     module_cmds | \
10542     module_expsym_cmds | \
10543     old_archive_from_expsyms_cmds | \
10544     export_symbols_cmds | \
10545     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10546     postinstall_cmds | postuninstall_cmds | \
10547     old_postinstall_cmds | old_postuninstall_cmds | \
10548     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10549       # Double-quote double-evaled strings.
10550       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10551       ;;
10552     *)
10553       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10554       ;;
10555     esac
10556   done
10558   case $lt_echo in
10559   *'\$0 --fallback-echo"')
10560     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10561     ;;
10562   esac
10564 cfgfile="${ofile}T"
10565   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10566   $rm -f "$cfgfile"
10567   { echo "$as_me:$LINENO: creating $ofile" >&5
10568 echo "$as_me: creating $ofile" >&6;}
10570   cat <<__EOF__ >> "$cfgfile"
10571 #! $SHELL
10573 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10574 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10575 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10577 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10578 # Free Software Foundation, Inc.
10580 # This file is part of GNU Libtool:
10581 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10583 # This program is free software; you can redistribute it and/or modify
10584 # it under the terms of the GNU General Public License as published by
10585 # the Free Software Foundation; either version 2 of the License, or
10586 # (at your option) any later version.
10588 # This program is distributed in the hope that it will be useful, but
10589 # WITHOUT ANY WARRANTY; without even the implied warranty of
10590 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10591 # General Public License for more details.
10593 # You should have received a copy of the GNU General Public License
10594 # along with this program; if not, write to the Free Software
10595 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10597 # As a special exception to the GNU General Public License, if you
10598 # distribute this file as part of a program that contains a
10599 # configuration script generated by Autoconf, you may include it under
10600 # the same distribution terms that you use for the rest of that program.
10602 # A sed program that does not truncate output.
10603 SED=$lt_SED
10605 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10606 Xsed="$SED -e 1s/^X//"
10608 # The HP-UX ksh and POSIX shell print the target directory to stdout
10609 # if CDPATH is set.
10610 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10612 # The names of the tagged configurations supported by this script.
10613 available_tags=
10615 # ### BEGIN LIBTOOL CONFIG
10617 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10619 # Shell to use when invoking shell scripts.
10620 SHELL=$lt_SHELL
10622 # Whether or not to build shared libraries.
10623 build_libtool_libs=$enable_shared
10625 # Whether or not to build static libraries.
10626 build_old_libs=$enable_static
10628 # Whether or not to add -lc for building shared libraries.
10629 build_libtool_need_lc=$archive_cmds_need_lc
10631 # Whether or not to disallow shared libs when runtime libs are static
10632 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10634 # Whether or not to optimize for fast installation.
10635 fast_install=$enable_fast_install
10637 # The host system.
10638 host_alias=$host_alias
10639 host=$host
10640 host_os=$host_os
10642 # The build system.
10643 build_alias=$build_alias
10644 build=$build
10645 build_os=$build_os
10647 # An echo program that does not interpret backslashes.
10648 echo=$lt_echo
10650 # The archiver.
10651 AR=$lt_AR
10652 AR_FLAGS=$lt_AR_FLAGS
10654 # A C compiler.
10655 LTCC=$lt_LTCC
10657 # LTCC compiler flags.
10658 LTCFLAGS=$lt_LTCFLAGS
10660 # A language-specific compiler.
10661 CC=$lt_compiler
10663 # Is the compiler the GNU C compiler?
10664 with_gcc=$GCC
10666 # An ERE matcher.
10667 EGREP=$lt_EGREP
10669 # The linker used to build libraries.
10670 LD=$lt_LD
10672 # Whether we need hard or soft links.
10673 LN_S=$lt_LN_S
10675 # A BSD-compatible nm program.
10676 NM=$lt_NM
10678 # A symbol stripping program
10679 STRIP=$lt_STRIP
10681 # Used to examine libraries when file_magic_cmd begins "file"
10682 MAGIC_CMD=$MAGIC_CMD
10684 # Used on cygwin: DLL creation program.
10685 DLLTOOL="$DLLTOOL"
10687 # Used on cygwin: object dumper.
10688 OBJDUMP="$OBJDUMP"
10690 # Used on cygwin: assembler.
10691 AS="$AS"
10693 # The name of the directory that contains temporary libtool files.
10694 objdir=$objdir
10696 # How to create reloadable object files.
10697 reload_flag=$lt_reload_flag
10698 reload_cmds=$lt_reload_cmds
10700 # How to pass a linker flag through the compiler.
10701 wl=$lt_lt_prog_compiler_wl
10703 # Object file suffix (normally "o").
10704 objext="$ac_objext"
10706 # Old archive suffix (normally "a").
10707 libext="$libext"
10709 # Shared library suffix (normally ".so").
10710 shrext_cmds='$shrext_cmds'
10712 # Executable file suffix (normally "").
10713 exeext="$exeext"
10715 # Additional compiler flags for building library objects.
10716 pic_flag=$lt_lt_prog_compiler_pic
10717 pic_mode=$pic_mode
10719 # What is the maximum length of a command?
10720 max_cmd_len=$lt_cv_sys_max_cmd_len
10722 # Does compiler simultaneously support -c and -o options?
10723 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10725 # Must we lock files when doing compilation?
10726 need_locks=$lt_need_locks
10728 # Do we need the lib prefix for modules?
10729 need_lib_prefix=$need_lib_prefix
10731 # Do we need a version for libraries?
10732 need_version=$need_version
10734 # Whether dlopen is supported.
10735 dlopen_support=$enable_dlopen
10737 # Whether dlopen of programs is supported.
10738 dlopen_self=$enable_dlopen_self
10740 # Whether dlopen of statically linked programs is supported.
10741 dlopen_self_static=$enable_dlopen_self_static
10743 # Compiler flag to prevent dynamic linking.
10744 link_static_flag=$lt_lt_prog_compiler_static
10746 # Compiler flag to turn off builtin functions.
10747 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10749 # Compiler flag to allow reflexive dlopens.
10750 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10752 # Compiler flag to generate shared objects directly from archives.
10753 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10755 # Compiler flag to generate thread-safe objects.
10756 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10758 # Library versioning type.
10759 version_type=$version_type
10761 # Format of library name prefix.
10762 libname_spec=$lt_libname_spec
10764 # List of archive names.  First name is the real one, the rest are links.
10765 # The last name is the one that the linker finds with -lNAME.
10766 library_names_spec=$lt_library_names_spec
10768 # The coded name of the library, if different from the real name.
10769 soname_spec=$lt_soname_spec
10771 # Commands used to build and install an old-style archive.
10772 RANLIB=$lt_RANLIB
10773 old_archive_cmds=$lt_old_archive_cmds
10774 old_postinstall_cmds=$lt_old_postinstall_cmds
10775 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10777 # Create an old-style archive from a shared archive.
10778 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10780 # Create a temporary old-style archive to link instead of a shared archive.
10781 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10783 # Commands used to build and install a shared archive.
10784 archive_cmds=$lt_archive_cmds
10785 archive_expsym_cmds=$lt_archive_expsym_cmds
10786 postinstall_cmds=$lt_postinstall_cmds
10787 postuninstall_cmds=$lt_postuninstall_cmds
10789 # Commands used to build a loadable module (assumed same as above if empty)
10790 module_cmds=$lt_module_cmds
10791 module_expsym_cmds=$lt_module_expsym_cmds
10793 # Commands to strip libraries.
10794 old_striplib=$lt_old_striplib
10795 striplib=$lt_striplib
10797 # Dependencies to place before the objects being linked to create a
10798 # shared library.
10799 predep_objects=$lt_predep_objects
10801 # Dependencies to place after the objects being linked to create a
10802 # shared library.
10803 postdep_objects=$lt_postdep_objects
10805 # Dependencies to place before the objects being linked to create a
10806 # shared library.
10807 predeps=$lt_predeps
10809 # Dependencies to place after the objects being linked to create a
10810 # shared library.
10811 postdeps=$lt_postdeps
10813 # The directories searched by this compiler when creating a shared
10814 # library
10815 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10817 # The library search path used internally by the compiler when linking
10818 # a shared library.
10819 compiler_lib_search_path=$lt_compiler_lib_search_path
10821 # Method to check whether dependent libraries are shared objects.
10822 deplibs_check_method=$lt_deplibs_check_method
10824 # Command to use when deplibs_check_method == file_magic.
10825 file_magic_cmd=$lt_file_magic_cmd
10827 # Flag that allows shared libraries with undefined symbols to be built.
10828 allow_undefined_flag=$lt_allow_undefined_flag
10830 # Flag that forces no undefined symbols.
10831 no_undefined_flag=$lt_no_undefined_flag
10833 # Commands used to finish a libtool library installation in a directory.
10834 finish_cmds=$lt_finish_cmds
10836 # Same as above, but a single script fragment to be evaled but not shown.
10837 finish_eval=$lt_finish_eval
10839 # Take the output of nm and produce a listing of raw symbols and C names.
10840 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10842 # Transform the output of nm in a proper C declaration
10843 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10845 # Transform the output of nm in a C name address pair
10846 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10848 # This is the shared library runtime path variable.
10849 runpath_var=$runpath_var
10851 # This is the shared library path variable.
10852 shlibpath_var=$shlibpath_var
10854 # Is shlibpath searched before the hard-coded library search path?
10855 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10857 # How to hardcode a shared library path into an executable.
10858 hardcode_action=$hardcode_action
10860 # Whether we should hardcode library paths into libraries.
10861 hardcode_into_libs=$hardcode_into_libs
10863 # Flag to hardcode \$libdir into a binary during linking.
10864 # This must work even if \$libdir does not exist.
10865 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10867 # If ld is used when linking, flag to hardcode \$libdir into
10868 # a binary during linking. This must work even if \$libdir does
10869 # not exist.
10870 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10872 # Whether we need a single -rpath flag with a separated argument.
10873 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10875 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10876 # resulting binary.
10877 hardcode_direct=$hardcode_direct
10879 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10880 # resulting binary.
10881 hardcode_minus_L=$hardcode_minus_L
10883 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10884 # the resulting binary.
10885 hardcode_shlibpath_var=$hardcode_shlibpath_var
10887 # Set to yes if building a shared library automatically hardcodes DIR into the library
10888 # and all subsequent libraries and executables linked against it.
10889 hardcode_automatic=$hardcode_automatic
10891 # Variables whose values should be saved in libtool wrapper scripts and
10892 # restored at relink time.
10893 variables_saved_for_relink="$variables_saved_for_relink"
10895 # Whether libtool must link a program against all its dependency libraries.
10896 link_all_deplibs=$link_all_deplibs
10898 # Compile-time system search path for libraries
10899 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10901 # Run-time system search path for libraries
10902 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10904 # Fix the shell variable \$srcfile for the compiler.
10905 fix_srcfile_path=$lt_fix_srcfile_path
10907 # Set to yes if exported symbols are required.
10908 always_export_symbols=$always_export_symbols
10910 # The commands to list exported symbols.
10911 export_symbols_cmds=$lt_export_symbols_cmds
10913 # The commands to extract the exported symbol list from a shared archive.
10914 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10916 # Symbols that should not be listed in the preloaded symbols.
10917 exclude_expsyms=$lt_exclude_expsyms
10919 # Symbols that must always be exported.
10920 include_expsyms=$lt_include_expsyms
10922 # ### END LIBTOOL CONFIG
10924 __EOF__
10927   case $host_os in
10928   aix3*)
10929     cat <<\EOF >> "$cfgfile"
10931 # AIX sometimes has problems with the GCC collect2 program.  For some
10932 # reason, if we set the COLLECT_NAMES environment variable, the problems
10933 # vanish in a puff of smoke.
10934 if test "X${COLLECT_NAMES+set}" != Xset; then
10935   COLLECT_NAMES=
10936   export COLLECT_NAMES
10939     ;;
10940   esac
10942   # We use sed instead of cat because bash on DJGPP gets confused if
10943   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10944   # text mode, it properly converts lines to CR/LF.  This bash problem
10945   # is reportedly fixed, but why not run on old versions too?
10946   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10948   mv -f "$cfgfile" "$ofile" || \
10949     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10950   chmod +x "$ofile"
10952 else
10953   # If there is no Makefile yet, we rely on a make rule to execute
10954   # `config.status --recheck' to rerun these tests and create the
10955   # libtool script then.
10956   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10957   if test -f "$ltmain_in"; then
10958     test -f Makefile && make "$ltmain"
10959   fi
10963 ac_ext=c
10964 ac_cpp='$CPP $CPPFLAGS'
10965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10969 CC="$lt_save_CC"
10972 # Check whether --with-tags was given.
10973 if test "${with_tags+set}" = set; then
10974   withval=$with_tags; tagnames="$withval"
10978 if test -f "$ltmain" && test -n "$tagnames"; then
10979   if test ! -f "${ofile}"; then
10980     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10981 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10982   fi
10984   if test -z "$LTCC"; then
10985     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10986     if test -z "$LTCC"; then
10987       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10988 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10989     else
10990       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10991 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10992     fi
10993   fi
10994   if test -z "$LTCFLAGS"; then
10995     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10996   fi
10998   # Extract list of available tagged configurations in $ofile.
10999   # Note that this assumes the entire list is on one line.
11000   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11002   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11003   for tagname in $tagnames; do
11004     IFS="$lt_save_ifs"
11005     # Check whether tagname contains only valid characters
11006     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11007     "") ;;
11008     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11009 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11010    { (exit 1); exit 1; }; }
11011         ;;
11012     esac
11014     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11015     then
11016       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11017 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11018    { (exit 1); exit 1; }; }
11019     fi
11021     # Update the list of available tags.
11022     if test -n "$tagname"; then
11023       echo appending configuration tag \"$tagname\" to $ofile
11025       case $tagname in
11026       CXX)
11027         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11028             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11029             (test "X$CXX" != "Xg++"))) ; then
11030           ac_ext=cpp
11031 ac_cpp='$CXXCPP $CPPFLAGS'
11032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11039 archive_cmds_need_lc_CXX=no
11040 allow_undefined_flag_CXX=
11041 always_export_symbols_CXX=no
11042 archive_expsym_cmds_CXX=
11043 export_dynamic_flag_spec_CXX=
11044 hardcode_direct_CXX=no
11045 hardcode_libdir_flag_spec_CXX=
11046 hardcode_libdir_flag_spec_ld_CXX=
11047 hardcode_libdir_separator_CXX=
11048 hardcode_minus_L_CXX=no
11049 hardcode_shlibpath_var_CXX=unsupported
11050 hardcode_automatic_CXX=no
11051 module_cmds_CXX=
11052 module_expsym_cmds_CXX=
11053 link_all_deplibs_CXX=unknown
11054 old_archive_cmds_CXX=$old_archive_cmds
11055 no_undefined_flag_CXX=
11056 whole_archive_flag_spec_CXX=
11057 enable_shared_with_static_runtimes_CXX=no
11059 # Dependencies to place before and after the object being linked:
11060 predep_objects_CXX=
11061 postdep_objects_CXX=
11062 predeps_CXX=
11063 postdeps_CXX=
11064 compiler_lib_search_path_CXX=
11065 compiler_lib_search_dirs_CXX=
11067 # Source file extension for C++ test sources.
11068 ac_ext=cpp
11070 # Object file extension for compiled C++ test sources.
11071 objext=o
11072 objext_CXX=$objext
11074 # Code to be used in simple compile tests
11075 lt_simple_compile_test_code="int some_variable = 0;"
11077 # Code to be used in simple link tests
11078 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11080 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11082 # If no C compiler was specified, use CC.
11083 LTCC=${LTCC-"$CC"}
11085 # If no C compiler flags were specified, use CFLAGS.
11086 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11088 # Allow CC to be a program name with arguments.
11089 compiler=$CC
11092 # save warnings/boilerplate of simple test code
11093 ac_outfile=conftest.$ac_objext
11094 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11095 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11096 _lt_compiler_boilerplate=`cat conftest.err`
11097 $rm conftest*
11099 ac_outfile=conftest.$ac_objext
11100 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11101 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11102 _lt_linker_boilerplate=`cat conftest.err`
11103 $rm -r conftest*
11106 # Allow CC to be a program name with arguments.
11107 lt_save_CC=$CC
11108 lt_save_LD=$LD
11109 lt_save_GCC=$GCC
11110 GCC=$GXX
11111 lt_save_with_gnu_ld=$with_gnu_ld
11112 lt_save_path_LD=$lt_cv_path_LD
11113 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11114   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11115 else
11116   $as_unset lt_cv_prog_gnu_ld
11118 if test -n "${lt_cv_path_LDCXX+set}"; then
11119   lt_cv_path_LD=$lt_cv_path_LDCXX
11120 else
11121   $as_unset lt_cv_path_LD
11123 test -z "${LDCXX+set}" || LD=$LDCXX
11124 CC=${CXX-"c++"}
11125 compiler=$CC
11126 compiler_CXX=$CC
11127 for cc_temp in $compiler""; do
11128   case $cc_temp in
11129     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11130     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11131     \-*) ;;
11132     *) break;;
11133   esac
11134 done
11135 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11138 # We don't want -fno-exception wen compiling C++ code, so set the
11139 # no_builtin_flag separately
11140 if test "$GXX" = yes; then
11141   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11142 else
11143   lt_prog_compiler_no_builtin_flag_CXX=
11146 if test "$GXX" = yes; then
11147   # Set up default GNU C++ configuration
11149   
11150 # Check whether --with-gnu-ld was given.
11151 if test "${with_gnu_ld+set}" = set; then
11152   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11153 else
11154   with_gnu_ld=no
11157 ac_prog=ld
11158 if test "$GCC" = yes; then
11159   # Check if gcc -print-prog-name=ld gives a path.
11160   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11161 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11162   case $host in
11163   *-*-mingw*)
11164     # gcc leaves a trailing carriage return which upsets mingw
11165     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11166   *)
11167     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11168   esac
11169   case $ac_prog in
11170     # Accept absolute paths.
11171     [\\/]* | ?:[\\/]*)
11172       re_direlt='/[^/][^/]*/\.\./'
11173       # Canonicalize the pathname of ld
11174       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11175       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11176         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11177       done
11178       test -z "$LD" && LD="$ac_prog"
11179       ;;
11180   "")
11181     # If it fails, then pretend we aren't using GCC.
11182     ac_prog=ld
11183     ;;
11184   *)
11185     # If it is relative, then search for the first ld in PATH.
11186     with_gnu_ld=unknown
11187     ;;
11188   esac
11189 elif test "$with_gnu_ld" = yes; then
11190   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11191 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11192 else
11193   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11194 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11196 if test "${lt_cv_path_LD+set}" = set; then
11197   echo $ECHO_N "(cached) $ECHO_C" >&6
11198 else
11199   if test -z "$LD"; then
11200   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11201   for ac_dir in $PATH; do
11202     IFS="$lt_save_ifs"
11203     test -z "$ac_dir" && ac_dir=.
11204     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11205       lt_cv_path_LD="$ac_dir/$ac_prog"
11206       # Check to see if the program is GNU ld.  I'd rather use --version,
11207       # but apparently some variants of GNU ld only accept -v.
11208       # Break only if it was the GNU/non-GNU ld that we prefer.
11209       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11210       *GNU* | *'with BFD'*)
11211         test "$with_gnu_ld" != no && break
11212         ;;
11213       *)
11214         test "$with_gnu_ld" != yes && break
11215         ;;
11216       esac
11217     fi
11218   done
11219   IFS="$lt_save_ifs"
11220 else
11221   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11225 LD="$lt_cv_path_LD"
11226 if test -n "$LD"; then
11227   { echo "$as_me:$LINENO: result: $LD" >&5
11228 echo "${ECHO_T}$LD" >&6; }
11229 else
11230   { echo "$as_me:$LINENO: result: no" >&5
11231 echo "${ECHO_T}no" >&6; }
11233 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11234 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11235    { (exit 1); exit 1; }; }
11236 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11237 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11238 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11239   echo $ECHO_N "(cached) $ECHO_C" >&6
11240 else
11241   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11242 case `$LD -v 2>&1 </dev/null` in
11243 *GNU* | *'with BFD'*)
11244   lt_cv_prog_gnu_ld=yes
11245   ;;
11247   lt_cv_prog_gnu_ld=no
11248   ;;
11249 esac
11251 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11252 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11253 with_gnu_ld=$lt_cv_prog_gnu_ld
11257   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11258   # archiving commands below assume that GNU ld is being used.
11259   if test "$with_gnu_ld" = yes; then
11260     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11261     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'
11263     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11264     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11266     # If archive_cmds runs LD, not CC, wlarc should be empty
11267     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11268     #     investigate it a little bit more. (MM)
11269     wlarc='${wl}'
11271     # ancient GNU ld didn't support --whole-archive et. al.
11272     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11273         grep 'no-whole-archive' > /dev/null; then
11274       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11275     else
11276       whole_archive_flag_spec_CXX=
11277     fi
11278   else
11279     with_gnu_ld=no
11280     wlarc=
11282     # A generic and very simple default shared library creation
11283     # command for GNU C++ for the case where it uses the native
11284     # linker, instead of GNU ld.  If possible, this setting should
11285     # overridden to take advantage of the native linker features on
11286     # the platform it is being used on.
11287     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11288   fi
11290   # Commands to make compiler produce verbose output that lists
11291   # what "hidden" libraries, object files and flags are used when
11292   # linking a shared library.
11293   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11295 else
11296   GXX=no
11297   with_gnu_ld=no
11298   wlarc=
11301 # PORTME: fill in a description of your system's C++ link characteristics
11302 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11303 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11304 ld_shlibs_CXX=yes
11305 case $host_os in
11306   aix3*)
11307     # FIXME: insert proper C++ library support
11308     ld_shlibs_CXX=no
11309     ;;
11310   aix[4-9]*)
11311     if test "$host_cpu" = ia64; then
11312       # On IA64, the linker does run time linking by default, so we don't
11313       # have to do anything special.
11314       aix_use_runtimelinking=no
11315       exp_sym_flag='-Bexport'
11316       no_entry_flag=""
11317     else
11318       aix_use_runtimelinking=no
11320       # Test if we are trying to use run time linking or normal
11321       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11322       # need to do runtime linking.
11323       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11324         for ld_flag in $LDFLAGS; do
11325           case $ld_flag in
11326           *-brtl*)
11327             aix_use_runtimelinking=yes
11328             break
11329             ;;
11330           esac
11331         done
11332         ;;
11333       esac
11335       exp_sym_flag='-bexport'
11336       no_entry_flag='-bnoentry'
11337     fi
11339     # When large executables or shared objects are built, AIX ld can
11340     # have problems creating the table of contents.  If linking a library
11341     # or program results in "error TOC overflow" add -mminimal-toc to
11342     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11343     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11345     archive_cmds_CXX=''
11346     hardcode_direct_CXX=yes
11347     hardcode_libdir_separator_CXX=':'
11348     link_all_deplibs_CXX=yes
11350     if test "$GXX" = yes; then
11351       case $host_os in aix4.[012]|aix4.[012].*)
11352       # We only want to do this on AIX 4.2 and lower, the check
11353       # below for broken collect2 doesn't work under 4.3+
11354         collect2name=`${CC} -print-prog-name=collect2`
11355         if test -f "$collect2name" && \
11356            strings "$collect2name" | grep resolve_lib_name >/dev/null
11357         then
11358           # We have reworked collect2
11359           :
11360         else
11361           # We have old collect2
11362           hardcode_direct_CXX=unsupported
11363           # It fails to find uninstalled libraries when the uninstalled
11364           # path is not listed in the libpath.  Setting hardcode_minus_L
11365           # to unsupported forces relinking
11366           hardcode_minus_L_CXX=yes
11367           hardcode_libdir_flag_spec_CXX='-L$libdir'
11368           hardcode_libdir_separator_CXX=
11369         fi
11370         ;;
11371       esac
11372       shared_flag='-shared'
11373       if test "$aix_use_runtimelinking" = yes; then
11374         shared_flag="$shared_flag "'${wl}-G'
11375       fi
11376     else
11377       # not using gcc
11378       if test "$host_cpu" = ia64; then
11379         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11380         # chokes on -Wl,-G. The following line is correct:
11381         shared_flag='-G'
11382       else
11383         if test "$aix_use_runtimelinking" = yes; then
11384           shared_flag='${wl}-G'
11385         else
11386           shared_flag='${wl}-bM:SRE'
11387         fi
11388       fi
11389     fi
11391     # It seems that -bexpall does not export symbols beginning with
11392     # underscore (_), so it is better to generate a list of symbols to export.
11393     always_export_symbols_CXX=yes
11394     if test "$aix_use_runtimelinking" = yes; then
11395       # Warning - without using the other runtime loading flags (-brtl),
11396       # -berok will link without error, but may produce a broken library.
11397       allow_undefined_flag_CXX='-berok'
11398       # Determine the default libpath from the value encoded in an empty executable.
11399       cat >conftest.$ac_ext <<_ACEOF
11400 /* confdefs.h.  */
11401 _ACEOF
11402 cat confdefs.h >>conftest.$ac_ext
11403 cat >>conftest.$ac_ext <<_ACEOF
11404 /* end confdefs.h.  */
11407 main ()
11410   ;
11411   return 0;
11413 _ACEOF
11414 rm -f conftest.$ac_objext conftest$ac_exeext
11415 if { (ac_try="$ac_link"
11416 case "(($ac_try" in
11417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418   *) ac_try_echo=$ac_try;;
11419 esac
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421   (eval "$ac_link") 2>conftest.er1
11422   ac_status=$?
11423   grep -v '^ *+' conftest.er1 >conftest.err
11424   rm -f conftest.er1
11425   cat conftest.err >&5
11426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427   (exit $ac_status); } && {
11428          test -z "$ac_cxx_werror_flag" ||
11429          test ! -s conftest.err
11430        } && test -s conftest$ac_exeext &&
11431        $as_test_x conftest$ac_exeext; then
11432   
11433 lt_aix_libpath_sed='
11434     /Import File Strings/,/^$/ {
11435         /^0/ {
11436             s/^0  *\(.*\)$/\1/
11437             p
11438         }
11439     }'
11440 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11441 # Check for a 64-bit object if we didn't find anything.
11442 if test -z "$aix_libpath"; then
11443   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11445 else
11446   echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11449         
11452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11453       conftest$ac_exeext conftest.$ac_ext
11454 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11456       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11458       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11459      else
11460       if test "$host_cpu" = ia64; then
11461         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11462         allow_undefined_flag_CXX="-z nodefs"
11463         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11464       else
11465         # Determine the default libpath from the value encoded in an empty executable.
11466         cat >conftest.$ac_ext <<_ACEOF
11467 /* confdefs.h.  */
11468 _ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h.  */
11474 main ()
11477   ;
11478   return 0;
11480 _ACEOF
11481 rm -f conftest.$ac_objext conftest$ac_exeext
11482 if { (ac_try="$ac_link"
11483 case "(($ac_try" in
11484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485   *) ac_try_echo=$ac_try;;
11486 esac
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488   (eval "$ac_link") 2>conftest.er1
11489   ac_status=$?
11490   grep -v '^ *+' conftest.er1 >conftest.err
11491   rm -f conftest.er1
11492   cat conftest.err >&5
11493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494   (exit $ac_status); } && {
11495          test -z "$ac_cxx_werror_flag" ||
11496          test ! -s conftest.err
11497        } && test -s conftest$ac_exeext &&
11498        $as_test_x conftest$ac_exeext; then
11499   
11500 lt_aix_libpath_sed='
11501     /Import File Strings/,/^$/ {
11502         /^0/ {
11503             s/^0  *\(.*\)$/\1/
11504             p
11505         }
11506     }'
11507 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11508 # Check for a 64-bit object if we didn't find anything.
11509 if test -z "$aix_libpath"; then
11510   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11512 else
11513   echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.$ac_ext >&5
11516         
11519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11520       conftest$ac_exeext conftest.$ac_ext
11521 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11523         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11524         # Warning - without using the other run time loading flags,
11525         # -berok will link without error, but may produce a broken library.
11526         no_undefined_flag_CXX=' ${wl}-bernotok'
11527         allow_undefined_flag_CXX=' ${wl}-berok'
11528         # Exported symbols can be pulled into shared objects from archives
11529         whole_archive_flag_spec_CXX='$convenience'
11530         archive_cmds_need_lc_CXX=yes
11531         # This is similar to how AIX traditionally builds its shared libraries.
11532         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11533       fi
11534     fi
11535     ;;
11537   beos*)
11538     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11539       allow_undefined_flag_CXX=unsupported
11540       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11541       # support --undefined.  This deserves some investigation.  FIXME
11542       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11543     else
11544       ld_shlibs_CXX=no
11545     fi
11546     ;;
11548   chorus*)
11549     case $cc_basename in
11550       *)
11551         # FIXME: insert proper C++ library support
11552         ld_shlibs_CXX=no
11553         ;;
11554     esac
11555     ;;
11557   cygwin* | mingw* | pw32*)
11558     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11559     # as there is no search path for DLLs.
11560     hardcode_libdir_flag_spec_CXX='-L$libdir'
11561     allow_undefined_flag_CXX=unsupported
11562     always_export_symbols_CXX=no
11563     enable_shared_with_static_runtimes_CXX=yes
11565     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11566       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11567       # If the export-symbols file already is a .def file (1st line
11568       # is EXPORTS), use it as is; otherwise, prepend...
11569       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11570         cp $export_symbols $output_objdir/$soname.def;
11571       else
11572         echo EXPORTS > $output_objdir/$soname.def;
11573         cat $export_symbols >> $output_objdir/$soname.def;
11574       fi~
11575       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11576     else
11577       ld_shlibs_CXX=no
11578     fi
11579   ;;
11580       darwin* | rhapsody*)
11581       archive_cmds_need_lc_CXX=no
11582       hardcode_direct_CXX=no
11583       hardcode_automatic_CXX=yes
11584       hardcode_shlibpath_var_CXX=unsupported
11585       whole_archive_flag_spec_CXX=''
11586       link_all_deplibs_CXX=yes
11587       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11588       if test "$GXX" = yes ; then
11589       output_verbose_link_cmd='echo'
11590       archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11591       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11592       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11593       module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11594       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11595         archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11596         archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11597       fi
11598       else
11599       case $cc_basename in
11600         xlc*)
11601          output_verbose_link_cmd='echo'
11602           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11603           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11604           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11605           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11606           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}'
11607           ;;
11608        *)
11609          ld_shlibs_CXX=no
11610           ;;
11611       esac
11612       fi
11613         ;;
11615   dgux*)
11616     case $cc_basename in
11617       ec++*)
11618         # FIXME: insert proper C++ library support
11619         ld_shlibs_CXX=no
11620         ;;
11621       ghcx*)
11622         # Green Hills C++ Compiler
11623         # FIXME: insert proper C++ library support
11624         ld_shlibs_CXX=no
11625         ;;
11626       *)
11627         # FIXME: insert proper C++ library support
11628         ld_shlibs_CXX=no
11629         ;;
11630     esac
11631     ;;
11632   freebsd[12]*)
11633     # C++ shared libraries reported to be fairly broken before switch to ELF
11634     ld_shlibs_CXX=no
11635     ;;
11636   freebsd-elf*)
11637     archive_cmds_need_lc_CXX=no
11638     ;;
11639   freebsd* | dragonfly*)
11640     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11641     # conventions
11642     ld_shlibs_CXX=yes
11643     ;;
11644   gnu*)
11645     ;;
11646   hpux9*)
11647     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11648     hardcode_libdir_separator_CXX=:
11649     export_dynamic_flag_spec_CXX='${wl}-E'
11650     hardcode_direct_CXX=yes
11651     hardcode_minus_L_CXX=yes # Not in the search PATH,
11652                                 # but as the default
11653                                 # location of the library.
11655     case $cc_basename in
11656     CC*)
11657       # FIXME: insert proper C++ library support
11658       ld_shlibs_CXX=no
11659       ;;
11660     aCC*)
11661       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'
11662       # Commands to make compiler produce verbose output that lists
11663       # what "hidden" libraries, object files and flags are used when
11664       # linking a shared library.
11665       #
11666       # There doesn't appear to be a way to prevent this compiler from
11667       # explicitly linking system object files so we need to strip them
11668       # from the output so that they don't get included in the library
11669       # dependencies.
11670       output_verbose_link_cmd='templist=`($CC -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'
11671       ;;
11672     *)
11673       if test "$GXX" = yes; then
11674         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'
11675       else
11676         # FIXME: insert proper C++ library support
11677         ld_shlibs_CXX=no
11678       fi
11679       ;;
11680     esac
11681     ;;
11682   hpux10*|hpux11*)
11683     if test $with_gnu_ld = no; then
11684       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11685       hardcode_libdir_separator_CXX=:
11687       case $host_cpu in
11688       hppa*64*|ia64*) ;;
11689       *)
11690         export_dynamic_flag_spec_CXX='${wl}-E'
11691         ;;
11692       esac
11693     fi
11694     case $host_cpu in
11695     hppa*64*|ia64*)
11696       hardcode_direct_CXX=no
11697       hardcode_shlibpath_var_CXX=no
11698       ;;
11699     *)
11700       hardcode_direct_CXX=yes
11701       hardcode_minus_L_CXX=yes # Not in the search PATH,
11702                                               # but as the default
11703                                               # location of the library.
11704       ;;
11705     esac
11707     case $cc_basename in
11708       CC*)
11709         # FIXME: insert proper C++ library support
11710         ld_shlibs_CXX=no
11711         ;;
11712       aCC*)
11713         case $host_cpu in
11714         hppa*64*)
11715           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11716           ;;
11717         ia64*)
11718           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11719           ;;
11720         *)
11721           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11722           ;;
11723         esac
11724         # Commands to make compiler produce verbose output that lists
11725         # what "hidden" libraries, object files and flags are used when
11726         # linking a shared library.
11727         #
11728         # There doesn't appear to be a way to prevent this compiler from
11729         # explicitly linking system object files so we need to strip them
11730         # from the output so that they don't get included in the library
11731         # dependencies.
11732         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'
11733         ;;
11734       *)
11735         if test "$GXX" = yes; then
11736           if test $with_gnu_ld = no; then
11737             case $host_cpu in
11738             hppa*64*)
11739               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11740               ;;
11741             ia64*)
11742               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11743               ;;
11744             *)
11745               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'
11746               ;;
11747             esac
11748           fi
11749         else
11750           # FIXME: insert proper C++ library support
11751           ld_shlibs_CXX=no
11752         fi
11753         ;;
11754     esac
11755     ;;
11756   interix[3-9]*)
11757     hardcode_direct_CXX=no
11758     hardcode_shlibpath_var_CXX=no
11759     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11760     export_dynamic_flag_spec_CXX='${wl}-E'
11761     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11762     # Instead, shared libraries are loaded at an image base (0x10000000 by
11763     # default) and relocated if they conflict, which is a slow very memory
11764     # consuming and fragmenting process.  To avoid this, we pick a random,
11765     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11766     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11767     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11768     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11769     ;;
11770   irix5* | irix6*)
11771     case $cc_basename in
11772       CC*)
11773         # SGI C++
11774         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'
11776         # Archives containing C++ object files must be created using
11777         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11778         # necessary to make sure instantiated templates are included
11779         # in the archive.
11780         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11781         ;;
11782       *)
11783         if test "$GXX" = yes; then
11784           if test "$with_gnu_ld" = no; then
11785             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'
11786           else
11787             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'
11788           fi
11789         fi
11790         link_all_deplibs_CXX=yes
11791         ;;
11792     esac
11793     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11794     hardcode_libdir_separator_CXX=:
11795     ;;
11796   linux* | k*bsd*-gnu)
11797     case $cc_basename in
11798       KCC*)
11799         # Kuck and Associates, Inc. (KAI) C++ Compiler
11801         # KCC will only create a shared library if the output file
11802         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11803         # to its proper name (with version) after linking.
11804         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'
11805         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'
11806         # Commands to make compiler produce verbose output that lists
11807         # what "hidden" libraries, object files and flags are used when
11808         # linking a shared library.
11809         #
11810         # There doesn't appear to be a way to prevent this compiler from
11811         # explicitly linking system object files so we need to strip them
11812         # from the output so that they don't get included in the library
11813         # dependencies.
11814         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'
11816         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11817         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11819         # Archives containing C++ object files must be created using
11820         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11821         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11822         ;;
11823       icpc*)
11824         # Intel C++
11825         with_gnu_ld=yes
11826         # version 8.0 and above of icpc choke on multiply defined symbols
11827         # if we add $predep_objects and $postdep_objects, however 7.1 and
11828         # earlier do not add the objects themselves.
11829         case `$CC -V 2>&1` in
11830         *"Version 7."*)
11831           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11832           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'
11833           ;;
11834         *)  # Version 8.0 or newer
11835           tmp_idyn=
11836           case $host_cpu in
11837             ia64*) tmp_idyn=' -i_dynamic';;
11838           esac
11839           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11840           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'
11841           ;;
11842         esac
11843         archive_cmds_need_lc_CXX=no
11844         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11845         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11846         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11847         ;;
11848       pgCC* | pgcpp*)
11849         # Portland Group C++ compiler
11850         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11851         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'
11853         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11854         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11855         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'
11856         ;;
11857       cxx*)
11858         # Compaq C++
11859         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11860         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'
11862         runpath_var=LD_RUN_PATH
11863         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11864         hardcode_libdir_separator_CXX=:
11866         # Commands to make compiler produce verbose output that lists
11867         # what "hidden" libraries, object files and flags are used when
11868         # linking a shared library.
11869         #
11870         # There doesn't appear to be a way to prevent this compiler from
11871         # explicitly linking system object files so we need to strip them
11872         # from the output so that they don't get included in the library
11873         # dependencies.
11874         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'
11875         ;;
11876       *)
11877         case `$CC -V 2>&1 | sed 5q` in
11878         *Sun\ C*)
11879           # Sun C++ 5.9
11880           no_undefined_flag_CXX=' -zdefs'
11881           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11882           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11883           hardcode_libdir_flag_spec_CXX='-R$libdir'
11884           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11886           # Not sure whether something based on
11887           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11888           # would be better.
11889           output_verbose_link_cmd='echo'
11891           # Archives containing C++ object files must be created using
11892           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11893           # necessary to make sure instantiated templates are included
11894           # in the archive.
11895           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11896           ;;
11897         esac
11898         ;;
11899     esac
11900     ;;
11901   lynxos*)
11902     # FIXME: insert proper C++ library support
11903     ld_shlibs_CXX=no
11904     ;;
11905   m88k*)
11906     # FIXME: insert proper C++ library support
11907     ld_shlibs_CXX=no
11908     ;;
11909   mvs*)
11910     case $cc_basename in
11911       cxx*)
11912         # FIXME: insert proper C++ library support
11913         ld_shlibs_CXX=no
11914         ;;
11915       *)
11916         # FIXME: insert proper C++ library support
11917         ld_shlibs_CXX=no
11918         ;;
11919     esac
11920     ;;
11921   netbsd* | netbsdelf*-gnu)
11922     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11923       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11924       wlarc=
11925       hardcode_libdir_flag_spec_CXX='-R$libdir'
11926       hardcode_direct_CXX=yes
11927       hardcode_shlibpath_var_CXX=no
11928     fi
11929     # Workaround some broken pre-1.5 toolchains
11930     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11931     ;;
11932   openbsd2*)
11933     # C++ shared libraries are fairly broken
11934     ld_shlibs_CXX=no
11935     ;;
11936   openbsd*)
11937     if test -f /usr/libexec/ld.so; then
11938       hardcode_direct_CXX=yes
11939       hardcode_shlibpath_var_CXX=no
11940       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11941       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11942       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11943         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11944         export_dynamic_flag_spec_CXX='${wl}-E'
11945         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11946       fi
11947       output_verbose_link_cmd='echo'
11948     else
11949       ld_shlibs_CXX=no
11950     fi
11951     ;;
11952   osf3*)
11953     case $cc_basename in
11954       KCC*)
11955         # Kuck and Associates, Inc. (KAI) C++ Compiler
11957         # KCC will only create a shared library if the output file
11958         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11959         # to its proper name (with version) after linking.
11960         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'
11962         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11963         hardcode_libdir_separator_CXX=:
11965         # Archives containing C++ object files must be created using
11966         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11967         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11969         ;;
11970       RCC*)
11971         # Rational C++ 2.4.1
11972         # FIXME: insert proper C++ library support
11973         ld_shlibs_CXX=no
11974         ;;
11975       cxx*)
11976         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11977         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'
11979         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11980         hardcode_libdir_separator_CXX=:
11982         # Commands to make compiler produce verbose output that lists
11983         # what "hidden" libraries, object files and flags are used when
11984         # linking a shared library.
11985         #
11986         # There doesn't appear to be a way to prevent this compiler from
11987         # explicitly linking system object files so we need to strip them
11988         # from the output so that they don't get included in the library
11989         # dependencies.
11990         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'
11991         ;;
11992       *)
11993         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11994           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11995           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'
11997           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11998           hardcode_libdir_separator_CXX=:
12000           # Commands to make compiler produce verbose output that lists
12001           # what "hidden" libraries, object files and flags are used when
12002           # linking a shared library.
12003           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12005         else
12006           # FIXME: insert proper C++ library support
12007           ld_shlibs_CXX=no
12008         fi
12009         ;;
12010     esac
12011     ;;
12012   osf4* | osf5*)
12013     case $cc_basename in
12014       KCC*)
12015         # Kuck and Associates, Inc. (KAI) C++ Compiler
12017         # KCC will only create a shared library if the output file
12018         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12019         # to its proper name (with version) after linking.
12020         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'
12022         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12023         hardcode_libdir_separator_CXX=:
12025         # Archives containing C++ object files must be created using
12026         # the KAI C++ compiler.
12027         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12028         ;;
12029       RCC*)
12030         # Rational C++ 2.4.1
12031         # FIXME: insert proper C++ library support
12032         ld_shlibs_CXX=no
12033         ;;
12034       cxx*)
12035         allow_undefined_flag_CXX=' -expect_unresolved \*'
12036         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'
12037         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12038           echo "-hidden">> $lib.exp~
12039           $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~
12040           $rm $lib.exp'
12042         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12043         hardcode_libdir_separator_CXX=:
12045         # Commands to make compiler produce verbose output that lists
12046         # what "hidden" libraries, object files and flags are used when
12047         # linking a shared library.
12048         #
12049         # There doesn't appear to be a way to prevent this compiler from
12050         # explicitly linking system object files so we need to strip them
12051         # from the output so that they don't get included in the library
12052         # dependencies.
12053         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'
12054         ;;
12055       *)
12056         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12057           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12058          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'
12060           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12061           hardcode_libdir_separator_CXX=:
12063           # Commands to make compiler produce verbose output that lists
12064           # what "hidden" libraries, object files and flags are used when
12065           # linking a shared library.
12066           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12068         else
12069           # FIXME: insert proper C++ library support
12070           ld_shlibs_CXX=no
12071         fi
12072         ;;
12073     esac
12074     ;;
12075   psos*)
12076     # FIXME: insert proper C++ library support
12077     ld_shlibs_CXX=no
12078     ;;
12079   sunos4*)
12080     case $cc_basename in
12081       CC*)
12082         # Sun C++ 4.x
12083         # FIXME: insert proper C++ library support
12084         ld_shlibs_CXX=no
12085         ;;
12086       lcc*)
12087         # Lucid
12088         # FIXME: insert proper C++ library support
12089         ld_shlibs_CXX=no
12090         ;;
12091       *)
12092         # FIXME: insert proper C++ library support
12093         ld_shlibs_CXX=no
12094         ;;
12095     esac
12096     ;;
12097   solaris*)
12098     case $cc_basename in
12099       CC*)
12100         # Sun C++ 4.2, 5.x and Centerline C++
12101         archive_cmds_need_lc_CXX=yes
12102         no_undefined_flag_CXX=' -zdefs'
12103         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12104         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12105         $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'
12107         hardcode_libdir_flag_spec_CXX='-R$libdir'
12108         hardcode_shlibpath_var_CXX=no
12109         case $host_os in
12110           solaris2.[0-5] | solaris2.[0-5].*) ;;
12111           *)
12112             # The compiler driver will combine and reorder linker options,
12113             # but understands `-z linker_flag'.
12114             # Supported since Solaris 2.6 (maybe 2.5.1?)
12115             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12116             ;;
12117         esac
12118         link_all_deplibs_CXX=yes
12120         output_verbose_link_cmd='echo'
12122         # Archives containing C++ object files must be created using
12123         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12124         # necessary to make sure instantiated templates are included
12125         # in the archive.
12126         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12127         ;;
12128       gcx*)
12129         # Green Hills C++ Compiler
12130         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12132         # The C++ compiler must be used to create the archive.
12133         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12134         ;;
12135       *)
12136         # GNU C++ compiler with Solaris linker
12137         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12138           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12139           if $CC --version | grep -v '^2\.7' > /dev/null; then
12140             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12141             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12142                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12144             # Commands to make compiler produce verbose output that lists
12145             # what "hidden" libraries, object files and flags are used when
12146             # linking a shared library.
12147             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12148           else
12149             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12150             # platform.
12151             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12152             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12153                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12155             # Commands to make compiler produce verbose output that lists
12156             # what "hidden" libraries, object files and flags are used when
12157             # linking a shared library.
12158             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12159           fi
12161           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12162           case $host_os in
12163           solaris2.[0-5] | solaris2.[0-5].*) ;;
12164           *)
12165             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12166             ;;
12167           esac
12168         fi
12169         ;;
12170     esac
12171     ;;
12172   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12173     no_undefined_flag_CXX='${wl}-z,text'
12174     archive_cmds_need_lc_CXX=no
12175     hardcode_shlibpath_var_CXX=no
12176     runpath_var='LD_RUN_PATH'
12178     case $cc_basename in
12179       CC*)
12180         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12181         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12182         ;;
12183       *)
12184         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12185         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12186         ;;
12187     esac
12188     ;;
12189   sysv5* | sco3.2v5* | sco5v6*)
12190     # Note: We can NOT use -z defs as we might desire, because we do not
12191     # link with -lc, and that would cause any symbols used from libc to
12192     # always be unresolved, which means just about no library would
12193     # ever link correctly.  If we're not using GNU ld we use -z text
12194     # though, which does catch some bad symbols but isn't as heavy-handed
12195     # as -z defs.
12196     # For security reasons, it is highly recommended that you always
12197     # use absolute paths for naming shared libraries, and exclude the
12198     # DT_RUNPATH tag from executables and libraries.  But doing so
12199     # requires that you compile everything twice, which is a pain.
12200     # So that behaviour is only enabled if SCOABSPATH is set to a
12201     # non-empty value in the environment.  Most likely only useful for
12202     # creating official distributions of packages.
12203     # This is a hack until libtool officially supports absolute path
12204     # names for shared libraries.
12205     no_undefined_flag_CXX='${wl}-z,text'
12206     allow_undefined_flag_CXX='${wl}-z,nodefs'
12207     archive_cmds_need_lc_CXX=no
12208     hardcode_shlibpath_var_CXX=no
12209     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12210     hardcode_libdir_separator_CXX=':'
12211     link_all_deplibs_CXX=yes
12212     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12213     runpath_var='LD_RUN_PATH'
12215     case $cc_basename in
12216       CC*)
12217         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12218         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12219         ;;
12220       *)
12221         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12222         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12223         ;;
12224     esac
12225     ;;
12226   tandem*)
12227     case $cc_basename in
12228       NCC*)
12229         # NonStop-UX NCC 3.20
12230         # FIXME: insert proper C++ library support
12231         ld_shlibs_CXX=no
12232         ;;
12233       *)
12234         # FIXME: insert proper C++ library support
12235         ld_shlibs_CXX=no
12236         ;;
12237     esac
12238     ;;
12239   vxworks*)
12240     # FIXME: insert proper C++ library support
12241     ld_shlibs_CXX=no
12242     ;;
12243   *)
12244     # FIXME: insert proper C++ library support
12245     ld_shlibs_CXX=no
12246     ;;
12247 esac
12248 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12249 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12250 test "$ld_shlibs_CXX" = no && can_build_shared=no
12252 GCC_CXX="$GXX"
12253 LD_CXX="$LD"
12255 cat > conftest.$ac_ext <<EOF
12256 class Foo
12258 public:
12259   Foo (void) { a = 0; }
12260 private:
12261   int a;
12265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12266   (eval $ac_compile) 2>&5
12267   ac_status=$?
12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269   (exit $ac_status); }; then
12270   # Parse the compiler output and extract the necessary
12271   # objects, libraries and library flags.
12273   # Sentinel used to keep track of whether or not we are before
12274   # the conftest object file.
12275   pre_test_object_deps_done=no
12277   # The `*' in the case matches for architectures that use `case' in
12278   # $output_verbose_cmd can trigger glob expansion during the loop
12279   # eval without this substitution.
12280   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12282   for p in `eval $output_verbose_link_cmd`; do
12283     case $p in
12285     -L* | -R* | -l*)
12286        # Some compilers place space between "-{L,R}" and the path.
12287        # Remove the space.
12288        if test $p = "-L" \
12289           || test $p = "-R"; then
12290          prev=$p
12291          continue
12292        else
12293          prev=
12294        fi
12296        if test "$pre_test_object_deps_done" = no; then
12297          case $p in
12298          -L* | -R*)
12299            # Internal compiler library paths should come after those
12300            # provided the user.  The postdeps already come after the
12301            # user supplied libs so there is no need to process them.
12302            if test -z "$compiler_lib_search_path_CXX"; then
12303              compiler_lib_search_path_CXX="${prev}${p}"
12304            else
12305              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12306            fi
12307            ;;
12308          # The "-l" case would never come before the object being
12309          # linked, so don't bother handling this case.
12310          esac
12311        else
12312          if test -z "$postdeps_CXX"; then
12313            postdeps_CXX="${prev}${p}"
12314          else
12315            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12316          fi
12317        fi
12318        ;;
12320     *.$objext)
12321        # This assumes that the test object file only shows up
12322        # once in the compiler output.
12323        if test "$p" = "conftest.$objext"; then
12324          pre_test_object_deps_done=yes
12325          continue
12326        fi
12328        if test "$pre_test_object_deps_done" = no; then
12329          if test -z "$predep_objects_CXX"; then
12330            predep_objects_CXX="$p"
12331          else
12332            predep_objects_CXX="$predep_objects_CXX $p"
12333          fi
12334        else
12335          if test -z "$postdep_objects_CXX"; then
12336            postdep_objects_CXX="$p"
12337          else
12338            postdep_objects_CXX="$postdep_objects_CXX $p"
12339          fi
12340        fi
12341        ;;
12343     *) ;; # Ignore the rest.
12345     esac
12346   done
12348   # Clean up.
12349   rm -f a.out a.exe
12350 else
12351   echo "libtool.m4: error: problem compiling CXX test program"
12354 $rm -f confest.$objext
12356 compiler_lib_search_dirs_CXX=
12357 if test -n "$compiler_lib_search_path_CXX"; then
12358   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12361 # PORTME: override above test on systems where it is broken
12362 case $host_os in
12363 interix[3-9]*)
12364   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12365   # hack all around it, let's just trust "g++" to DTRT.
12366   predep_objects_CXX=
12367   postdep_objects_CXX=
12368   postdeps_CXX=
12369   ;;
12371 linux*)
12372   case `$CC -V 2>&1 | sed 5q` in
12373   *Sun\ C*)
12374     # Sun C++ 5.9
12375     #
12376     # The more standards-conforming stlport4 library is
12377     # incompatible with the Cstd library. Avoid specifying
12378     # it if it's in CXXFLAGS. Ignore libCrun as
12379     # -library=stlport4 depends on it.
12380     case " $CXX $CXXFLAGS " in
12381     *" -library=stlport4 "*)
12382       solaris_use_stlport4=yes
12383       ;;
12384     esac
12385     if test "$solaris_use_stlport4" != yes; then
12386       postdeps_CXX='-library=Cstd -library=Crun'
12387     fi
12388     ;;
12389   esac
12390   ;;
12392 solaris*)
12393   case $cc_basename in
12394   CC*)
12395     # The more standards-conforming stlport4 library is
12396     # incompatible with the Cstd library. Avoid specifying
12397     # it if it's in CXXFLAGS. Ignore libCrun as
12398     # -library=stlport4 depends on it.
12399     case " $CXX $CXXFLAGS " in
12400     *" -library=stlport4 "*)
12401       solaris_use_stlport4=yes
12402       ;;
12403     esac
12405     # Adding this requires a known-good setup of shared libraries for
12406     # Sun compiler versions before 5.6, else PIC objects from an old
12407     # archive will be linked into the output, leading to subtle bugs.
12408     if test "$solaris_use_stlport4" != yes; then
12409       postdeps_CXX='-library=Cstd -library=Crun'
12410     fi
12411     ;;
12412   esac
12413   ;;
12414 esac
12416 case " $postdeps_CXX " in
12417 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12418 esac
12420 lt_prog_compiler_wl_CXX=
12421 lt_prog_compiler_pic_CXX=
12422 lt_prog_compiler_static_CXX=
12424 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12425 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12427   # C++ specific cases for pic, static, wl, etc.
12428   if test "$GXX" = yes; then
12429     lt_prog_compiler_wl_CXX='-Wl,'
12430     lt_prog_compiler_static_CXX='-static'
12432     case $host_os in
12433     aix*)
12434       # All AIX code is PIC.
12435       if test "$host_cpu" = ia64; then
12436         # AIX 5 now supports IA64 processor
12437         lt_prog_compiler_static_CXX='-Bstatic'
12438       fi
12439       ;;
12440     amigaos*)
12441       # FIXME: we need at least 68020 code to build shared libraries, but
12442       # adding the `-m68020' flag to GCC prevents building anything better,
12443       # like `-m68040'.
12444       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12445       ;;
12446     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12447       # PIC is the default for these OSes.
12448       ;;
12449     mingw* | cygwin* | os2* | pw32*)
12450       # This hack is so that the source file can tell whether it is being
12451       # built for inclusion in a dll (and should export symbols for example).
12452       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12453       # (--disable-auto-import) libraries
12454       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12455       ;;
12456     darwin* | rhapsody*)
12457       # PIC is the default on this platform
12458       # Common symbols not allowed in MH_DYLIB files
12459       lt_prog_compiler_pic_CXX='-fno-common'
12460       ;;
12461     *djgpp*)
12462       # DJGPP does not support shared libraries at all
12463       lt_prog_compiler_pic_CXX=
12464       ;;
12465     interix[3-9]*)
12466       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12467       # Instead, we relocate shared libraries at runtime.
12468       ;;
12469     sysv4*MP*)
12470       if test -d /usr/nec; then
12471         lt_prog_compiler_pic_CXX=-Kconform_pic
12472       fi
12473       ;;
12474     hpux*)
12475       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12476       # not for PA HP-UX.
12477       case $host_cpu in
12478       hppa*64*|ia64*)
12479         ;;
12480       *)
12481         lt_prog_compiler_pic_CXX='-fPIC'
12482         ;;
12483       esac
12484       ;;
12485     *)
12486       lt_prog_compiler_pic_CXX='-fPIC'
12487       ;;
12488     esac
12489   else
12490     case $host_os in
12491       aix[4-9]*)
12492         # All AIX code is PIC.
12493         if test "$host_cpu" = ia64; then
12494           # AIX 5 now supports IA64 processor
12495           lt_prog_compiler_static_CXX='-Bstatic'
12496         else
12497           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12498         fi
12499         ;;
12500       chorus*)
12501         case $cc_basename in
12502         cxch68*)
12503           # Green Hills C++ Compiler
12504           # _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"
12505           ;;
12506         esac
12507         ;;
12508        darwin*)
12509          # PIC is the default on this platform
12510          # Common symbols not allowed in MH_DYLIB files
12511          case $cc_basename in
12512            xlc*)
12513            lt_prog_compiler_pic_CXX='-qnocommon'
12514            lt_prog_compiler_wl_CXX='-Wl,'
12515            ;;
12516          esac
12517        ;;
12518       dgux*)
12519         case $cc_basename in
12520           ec++*)
12521             lt_prog_compiler_pic_CXX='-KPIC'
12522             ;;
12523           ghcx*)
12524             # Green Hills C++ Compiler
12525             lt_prog_compiler_pic_CXX='-pic'
12526             ;;
12527           *)
12528             ;;
12529         esac
12530         ;;
12531       freebsd* | dragonfly*)
12532         # FreeBSD uses GNU C++
12533         ;;
12534       hpux9* | hpux10* | hpux11*)
12535         case $cc_basename in
12536           CC*)
12537             lt_prog_compiler_wl_CXX='-Wl,'
12538             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12539             if test "$host_cpu" != ia64; then
12540               lt_prog_compiler_pic_CXX='+Z'
12541             fi
12542             ;;
12543           aCC*)
12544             lt_prog_compiler_wl_CXX='-Wl,'
12545             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12546             case $host_cpu in
12547             hppa*64*|ia64*)
12548               # +Z the default
12549               ;;
12550             *)
12551               lt_prog_compiler_pic_CXX='+Z'
12552               ;;
12553             esac
12554             ;;
12555           *)
12556             ;;
12557         esac
12558         ;;
12559       interix*)
12560         # This is c89, which is MS Visual C++ (no shared libs)
12561         # Anyone wants to do a port?
12562         ;;
12563       irix5* | irix6* | nonstopux*)
12564         case $cc_basename in
12565           CC*)
12566             lt_prog_compiler_wl_CXX='-Wl,'
12567             lt_prog_compiler_static_CXX='-non_shared'
12568             # CC pic flag -KPIC is the default.
12569             ;;
12570           *)
12571             ;;
12572         esac
12573         ;;
12574       linux* | k*bsd*-gnu)
12575         case $cc_basename in
12576           KCC*)
12577             # KAI C++ Compiler
12578             lt_prog_compiler_wl_CXX='--backend -Wl,'
12579             lt_prog_compiler_pic_CXX='-fPIC'
12580             ;;
12581           icpc* | ecpc*)
12582             # Intel C++
12583             lt_prog_compiler_wl_CXX='-Wl,'
12584             lt_prog_compiler_pic_CXX='-KPIC'
12585             lt_prog_compiler_static_CXX='-static'
12586             ;;
12587           pgCC* | pgcpp*)
12588             # Portland Group C++ compiler.
12589             lt_prog_compiler_wl_CXX='-Wl,'
12590             lt_prog_compiler_pic_CXX='-fpic'
12591             lt_prog_compiler_static_CXX='-Bstatic'
12592             ;;
12593           cxx*)
12594             # Compaq C++
12595             # Make sure the PIC flag is empty.  It appears that all Alpha
12596             # Linux and Compaq Tru64 Unix objects are PIC.
12597             lt_prog_compiler_pic_CXX=
12598             lt_prog_compiler_static_CXX='-non_shared'
12599             ;;
12600           *)
12601             case `$CC -V 2>&1 | sed 5q` in
12602             *Sun\ C*)
12603               # Sun C++ 5.9
12604               lt_prog_compiler_pic_CXX='-KPIC'
12605               lt_prog_compiler_static_CXX='-Bstatic'
12606               lt_prog_compiler_wl_CXX='-Qoption ld '
12607               ;;
12608             esac
12609             ;;
12610         esac
12611         ;;
12612       lynxos*)
12613         ;;
12614       m88k*)
12615         ;;
12616       mvs*)
12617         case $cc_basename in
12618           cxx*)
12619             lt_prog_compiler_pic_CXX='-W c,exportall'
12620             ;;
12621           *)
12622             ;;
12623         esac
12624         ;;
12625       netbsd* | netbsdelf*-gnu)
12626         ;;
12627       osf3* | osf4* | osf5*)
12628         case $cc_basename in
12629           KCC*)
12630             lt_prog_compiler_wl_CXX='--backend -Wl,'
12631             ;;
12632           RCC*)
12633             # Rational C++ 2.4.1
12634             lt_prog_compiler_pic_CXX='-pic'
12635             ;;
12636           cxx*)
12637             # Digital/Compaq C++
12638             lt_prog_compiler_wl_CXX='-Wl,'
12639             # Make sure the PIC flag is empty.  It appears that all Alpha
12640             # Linux and Compaq Tru64 Unix objects are PIC.
12641             lt_prog_compiler_pic_CXX=
12642             lt_prog_compiler_static_CXX='-non_shared'
12643             ;;
12644           *)
12645             ;;
12646         esac
12647         ;;
12648       psos*)
12649         ;;
12650       solaris*)
12651         case $cc_basename in
12652           CC*)
12653             # Sun C++ 4.2, 5.x and Centerline C++
12654             lt_prog_compiler_pic_CXX='-KPIC'
12655             lt_prog_compiler_static_CXX='-Bstatic'
12656             lt_prog_compiler_wl_CXX='-Qoption ld '
12657             ;;
12658           gcx*)
12659             # Green Hills C++ Compiler
12660             lt_prog_compiler_pic_CXX='-PIC'
12661             ;;
12662           *)
12663             ;;
12664         esac
12665         ;;
12666       sunos4*)
12667         case $cc_basename in
12668           CC*)
12669             # Sun C++ 4.x
12670             lt_prog_compiler_pic_CXX='-pic'
12671             lt_prog_compiler_static_CXX='-Bstatic'
12672             ;;
12673           lcc*)
12674             # Lucid
12675             lt_prog_compiler_pic_CXX='-pic'
12676             ;;
12677           *)
12678             ;;
12679         esac
12680         ;;
12681       tandem*)
12682         case $cc_basename in
12683           NCC*)
12684             # NonStop-UX NCC 3.20
12685             lt_prog_compiler_pic_CXX='-KPIC'
12686             ;;
12687           *)
12688             ;;
12689         esac
12690         ;;
12691       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12692         case $cc_basename in
12693           CC*)
12694             lt_prog_compiler_wl_CXX='-Wl,'
12695             lt_prog_compiler_pic_CXX='-KPIC'
12696             lt_prog_compiler_static_CXX='-Bstatic'
12697             ;;
12698         esac
12699         ;;
12700       vxworks*)
12701         ;;
12702       *)
12703         lt_prog_compiler_can_build_shared_CXX=no
12704         ;;
12705     esac
12706   fi
12708 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12709 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12712 # Check to make sure the PIC flag actually works.
12714 if test -n "$lt_prog_compiler_pic_CXX"; then
12715   
12716 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12717 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12718 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12719   echo $ECHO_N "(cached) $ECHO_C" >&6
12720 else
12721   lt_cv_prog_compiler_pic_works_CXX=no
12722   ac_outfile=conftest.$ac_objext
12723    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12724    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12725    # Insert the option either (1) after the last *FLAGS variable, or
12726    # (2) before a word containing "conftest.", or (3) at the end.
12727    # Note that $ac_compile itself does not contain backslashes and begins
12728    # with a dollar sign (not a hyphen), so the echo should work correctly.
12729    # The option is referenced via a variable to avoid confusing sed.
12730    lt_compile=`echo "$ac_compile" | $SED \
12731    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12732    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12733    -e 's:$: $lt_compiler_flag:'`
12734    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12735    (eval "$lt_compile" 2>conftest.err)
12736    ac_status=$?
12737    cat conftest.err >&5
12738    echo "$as_me:__oline__: \$? = $ac_status" >&5
12739    if (exit $ac_status) && test -s "$ac_outfile"; then
12740      # The compiler can only warn and ignore the option if not recognized
12741      # So say no if there are warnings other than the usual output.
12742      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12743      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12744      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12745        lt_cv_prog_compiler_pic_works_CXX=yes
12746      fi
12747    fi
12748    $rm conftest*
12751 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12752 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12754 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12755     case $lt_prog_compiler_pic_CXX in
12756      "" | " "*) ;;
12757      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12758      esac
12759 else
12760     lt_prog_compiler_pic_CXX=
12761      lt_prog_compiler_can_build_shared_CXX=no
12765 case $host_os in
12766   # For platforms which do not support PIC, -DPIC is meaningless:
12767   *djgpp*)
12768     lt_prog_compiler_pic_CXX=
12769     ;;
12770   *)
12771     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12772     ;;
12773 esac
12776 # Check to make sure the static flag actually works.
12778 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12779 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12780 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12781 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12782   echo $ECHO_N "(cached) $ECHO_C" >&6
12783 else
12784   lt_cv_prog_compiler_static_works_CXX=no
12785    save_LDFLAGS="$LDFLAGS"
12786    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12787    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12788    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12789      # The linker can only warn and ignore the option if not recognized
12790      # So say no if there are warnings
12791      if test -s conftest.err; then
12792        # Append any errors to the config.log.
12793        cat conftest.err 1>&5
12794        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12795        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12796        if diff conftest.exp conftest.er2 >/dev/null; then
12797          lt_cv_prog_compiler_static_works_CXX=yes
12798        fi
12799      else
12800        lt_cv_prog_compiler_static_works_CXX=yes
12801      fi
12802    fi
12803    $rm -r conftest*
12804    LDFLAGS="$save_LDFLAGS"
12807 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12808 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12810 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12811     :
12812 else
12813     lt_prog_compiler_static_CXX=
12817 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12818 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12819 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12820   echo $ECHO_N "(cached) $ECHO_C" >&6
12821 else
12822   lt_cv_prog_compiler_c_o_CXX=no
12823    $rm -r conftest 2>/dev/null
12824    mkdir conftest
12825    cd conftest
12826    mkdir out
12827    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12829    lt_compiler_flag="-o out/conftest2.$ac_objext"
12830    # Insert the option either (1) after the last *FLAGS variable, or
12831    # (2) before a word containing "conftest.", or (3) at the end.
12832    # Note that $ac_compile itself does not contain backslashes and begins
12833    # with a dollar sign (not a hyphen), so the echo should work correctly.
12834    lt_compile=`echo "$ac_compile" | $SED \
12835    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12836    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12837    -e 's:$: $lt_compiler_flag:'`
12838    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12839    (eval "$lt_compile" 2>out/conftest.err)
12840    ac_status=$?
12841    cat out/conftest.err >&5
12842    echo "$as_me:__oline__: \$? = $ac_status" >&5
12843    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12844    then
12845      # The compiler can only warn and ignore the option if not recognized
12846      # So say no if there are warnings
12847      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12848      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12849      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12850        lt_cv_prog_compiler_c_o_CXX=yes
12851      fi
12852    fi
12853    chmod u+w . 2>&5
12854    $rm conftest*
12855    # SGI C++ compiler will create directory out/ii_files/ for
12856    # template instantiation
12857    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12858    $rm out/* && rmdir out
12859    cd ..
12860    rmdir conftest
12861    $rm conftest*
12864 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12865 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12868 hard_links="nottested"
12869 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12870   # do not overwrite the value of need_locks provided by the user
12871   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12872 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12873   hard_links=yes
12874   $rm conftest*
12875   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12876   touch conftest.a
12877   ln conftest.a conftest.b 2>&5 || hard_links=no
12878   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12879   { echo "$as_me:$LINENO: result: $hard_links" >&5
12880 echo "${ECHO_T}$hard_links" >&6; }
12881   if test "$hard_links" = no; then
12882     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12883 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12884     need_locks=warn
12885   fi
12886 else
12887   need_locks=no
12890 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12891 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12893   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12894   case $host_os in
12895   aix[4-9]*)
12896     # If we're using GNU nm, then we don't want the "-C" option.
12897     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12898     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12899       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'
12900     else
12901       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'
12902     fi
12903     ;;
12904   pw32*)
12905     export_symbols_cmds_CXX="$ltdll_cmds"
12906   ;;
12907   cygwin* | mingw*)
12908     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'
12909   ;;
12910   linux* | k*bsd*-gnu)
12911     link_all_deplibs_CXX=no
12912   ;;
12913   *)
12914     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12915   ;;
12916   esac
12917   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12919 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12920 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12921 test "$ld_shlibs_CXX" = no && can_build_shared=no
12924 # Do we need to explicitly link libc?
12926 case "x$archive_cmds_need_lc_CXX" in
12927 x|xyes)
12928   # Assume -lc should be added
12929   archive_cmds_need_lc_CXX=yes
12931   if test "$enable_shared" = yes && test "$GCC" = yes; then
12932     case $archive_cmds_CXX in
12933     *'~'*)
12934       # FIXME: we may have to deal with multi-command sequences.
12935       ;;
12936     '$CC '*)
12937       # Test whether the compiler implicitly links with -lc since on some
12938       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12939       # to ld, don't add -lc before -lgcc.
12940       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12941 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12942       $rm conftest*
12943       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12945       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12946   (eval $ac_compile) 2>&5
12947   ac_status=$?
12948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949   (exit $ac_status); } 2>conftest.err; then
12950         soname=conftest
12951         lib=conftest
12952         libobjs=conftest.$ac_objext
12953         deplibs=
12954         wl=$lt_prog_compiler_wl_CXX
12955         pic_flag=$lt_prog_compiler_pic_CXX
12956         compiler_flags=-v
12957         linker_flags=-v
12958         verstring=
12959         output_objdir=.
12960         libname=conftest
12961         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12962         allow_undefined_flag_CXX=
12963         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12964   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12965   ac_status=$?
12966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967   (exit $ac_status); }
12968         then
12969           archive_cmds_need_lc_CXX=no
12970         else
12971           archive_cmds_need_lc_CXX=yes
12972         fi
12973         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12974       else
12975         cat conftest.err 1>&5
12976       fi
12977       $rm conftest*
12978       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12979 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12980       ;;
12981     esac
12982   fi
12983   ;;
12984 esac
12986 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12987 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12988 library_names_spec=
12989 libname_spec='lib$name'
12990 soname_spec=
12991 shrext_cmds=".so"
12992 postinstall_cmds=
12993 postuninstall_cmds=
12994 finish_cmds=
12995 finish_eval=
12996 shlibpath_var=
12997 shlibpath_overrides_runpath=unknown
12998 version_type=none
12999 dynamic_linker="$host_os ld.so"
13000 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13002 need_lib_prefix=unknown
13003 hardcode_into_libs=no
13005 # when you set need_version to no, make sure it does not cause -set_version
13006 # flags to be left without arguments
13007 need_version=unknown
13009 case $host_os in
13010 aix3*)
13011   version_type=linux
13012   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13013   shlibpath_var=LIBPATH
13015   # AIX 3 has no versioning support, so we append a major version to the name.
13016   soname_spec='${libname}${release}${shared_ext}$major'
13017   ;;
13019 aix[4-9]*)
13020   version_type=linux
13021   need_lib_prefix=no
13022   need_version=no
13023   hardcode_into_libs=yes
13024   if test "$host_cpu" = ia64; then
13025     # AIX 5 supports IA64
13026     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13027     shlibpath_var=LD_LIBRARY_PATH
13028   else
13029     # With GCC up to 2.95.x, collect2 would create an import file
13030     # for dependence libraries.  The import file would start with
13031     # the line `#! .'.  This would cause the generated library to
13032     # depend on `.', always an invalid library.  This was fixed in
13033     # development snapshots of GCC prior to 3.0.
13034     case $host_os in
13035       aix4 | aix4.[01] | aix4.[01].*)
13036       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13037            echo ' yes '
13038            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13039         :
13040       else
13041         can_build_shared=no
13042       fi
13043       ;;
13044     esac
13045     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13046     # soname into executable. Probably we can add versioning support to
13047     # collect2, so additional links can be useful in future.
13048     if test "$aix_use_runtimelinking" = yes; then
13049       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13050       # instead of lib<name>.a to let people know that these are not
13051       # typical AIX shared libraries.
13052       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13053     else
13054       # We preserve .a as extension for shared libraries through AIX4.2
13055       # and later when we are not doing run time linking.
13056       library_names_spec='${libname}${release}.a $libname.a'
13057       soname_spec='${libname}${release}${shared_ext}$major'
13058     fi
13059     shlibpath_var=LIBPATH
13060   fi
13061   ;;
13063 amigaos*)
13064   library_names_spec='$libname.ixlibrary $libname.a'
13065   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13066   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'
13067   ;;
13069 beos*)
13070   library_names_spec='${libname}${shared_ext}'
13071   dynamic_linker="$host_os ld.so"
13072   shlibpath_var=LIBRARY_PATH
13073   ;;
13075 bsdi[45]*)
13076   version_type=linux
13077   need_version=no
13078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13079   soname_spec='${libname}${release}${shared_ext}$major'
13080   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13081   shlibpath_var=LD_LIBRARY_PATH
13082   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13083   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13084   # the default ld.so.conf also contains /usr/contrib/lib and
13085   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13086   # libtool to hard-code these into programs
13087   ;;
13089 cygwin* | mingw* | pw32*)
13090   version_type=windows
13091   shrext_cmds=".dll"
13092   need_version=no
13093   need_lib_prefix=no
13095   case $GCC,$host_os in
13096   yes,cygwin* | yes,mingw* | yes,pw32*)
13097     library_names_spec='$libname.dll.a'
13098     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13099     postinstall_cmds='base_file=`basename \${file}`~
13100       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13101       dldir=$destdir/`dirname \$dlpath`~
13102       test -d \$dldir || mkdir -p \$dldir~
13103       $install_prog $dir/$dlname \$dldir/$dlname~
13104       chmod a+x \$dldir/$dlname'
13105     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13106       dlpath=$dir/\$dldll~
13107        $rm \$dlpath'
13108     shlibpath_overrides_runpath=yes
13110     case $host_os in
13111     cygwin*)
13112       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13113       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13114       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13115       ;;
13116     mingw*)
13117       # MinGW DLLs use traditional 'lib' prefix
13118       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13119       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13120       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13121         # It is most probably a Windows format PATH printed by
13122         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13123         # path with ; separators, and with drive letters. We can handle the
13124         # drive letters (cygwin fileutils understands them), so leave them,
13125         # especially as we might pass files found there to a mingw objdump,
13126         # which wouldn't understand a cygwinified path. Ahh.
13127         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13128       else
13129         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13130       fi
13131       ;;
13132     pw32*)
13133       # pw32 DLLs use 'pw' prefix rather than 'lib'
13134       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13135       ;;
13136     esac
13137     ;;
13139   *)
13140     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13141     ;;
13142   esac
13143   dynamic_linker='Win32 ld.exe'
13144   # FIXME: first we should search . and the directory the executable is in
13145   shlibpath_var=PATH
13146   ;;
13148 darwin* | rhapsody*)
13149   dynamic_linker="$host_os dyld"
13150   version_type=darwin
13151   need_lib_prefix=no
13152   need_version=no
13153   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13154   soname_spec='${libname}${release}${major}$shared_ext'
13155   shlibpath_overrides_runpath=yes
13156   shlibpath_var=DYLD_LIBRARY_PATH
13157   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13158    
13159   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13160   ;;
13162 dgux*)
13163   version_type=linux
13164   need_lib_prefix=no
13165   need_version=no
13166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13167   soname_spec='${libname}${release}${shared_ext}$major'
13168   shlibpath_var=LD_LIBRARY_PATH
13169   ;;
13171 freebsd1*)
13172   dynamic_linker=no
13173   ;;
13175 freebsd* | dragonfly*)
13176   # DragonFly does not have aout.  When/if they implement a new
13177   # versioning mechanism, adjust this.
13178   if test -x /usr/bin/objformat; then
13179     objformat=`/usr/bin/objformat`
13180   else
13181     case $host_os in
13182     freebsd[123]*) objformat=aout ;;
13183     *) objformat=elf ;;
13184     esac
13185   fi
13186   version_type=freebsd-$objformat
13187   case $version_type in
13188     freebsd-elf*)
13189       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13190       need_version=no
13191       need_lib_prefix=no
13192       ;;
13193     freebsd-*)
13194       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13195       need_version=yes
13196       ;;
13197   esac
13198   shlibpath_var=LD_LIBRARY_PATH
13199   case $host_os in
13200   freebsd2*)
13201     shlibpath_overrides_runpath=yes
13202     ;;
13203   freebsd3.[01]* | freebsdelf3.[01]*)
13204     shlibpath_overrides_runpath=yes
13205     hardcode_into_libs=yes
13206     ;;
13207   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13208   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13209     shlibpath_overrides_runpath=no
13210     hardcode_into_libs=yes
13211     ;;
13212   *) # from 4.6 on, and DragonFly
13213     shlibpath_overrides_runpath=yes
13214     hardcode_into_libs=yes
13215     ;;
13216   esac
13217   ;;
13219 gnu*)
13220   version_type=linux
13221   need_lib_prefix=no
13222   need_version=no
13223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13224   soname_spec='${libname}${release}${shared_ext}$major'
13225   shlibpath_var=LD_LIBRARY_PATH
13226   hardcode_into_libs=yes
13227   ;;
13229 hpux9* | hpux10* | hpux11*)
13230   # Give a soname corresponding to the major version so that dld.sl refuses to
13231   # link against other versions.
13232   version_type=sunos
13233   need_lib_prefix=no
13234   need_version=no
13235   case $host_cpu in
13236   ia64*)
13237     shrext_cmds='.so'
13238     hardcode_into_libs=yes
13239     dynamic_linker="$host_os dld.so"
13240     shlibpath_var=LD_LIBRARY_PATH
13241     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13242     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13243     soname_spec='${libname}${release}${shared_ext}$major'
13244     if test "X$HPUX_IA64_MODE" = X32; then
13245       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13246     else
13247       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13248     fi
13249     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13250     ;;
13251    hppa*64*)
13252      shrext_cmds='.sl'
13253      hardcode_into_libs=yes
13254      dynamic_linker="$host_os dld.sl"
13255      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13256      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13257      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13258      soname_spec='${libname}${release}${shared_ext}$major'
13259      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13260      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13261      ;;
13262    *)
13263     shrext_cmds='.sl'
13264     dynamic_linker="$host_os dld.sl"
13265     shlibpath_var=SHLIB_PATH
13266     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13267     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13268     soname_spec='${libname}${release}${shared_ext}$major'
13269     ;;
13270   esac
13271   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13272   postinstall_cmds='chmod 555 $lib'
13273   ;;
13275 interix[3-9]*)
13276   version_type=linux
13277   need_lib_prefix=no
13278   need_version=no
13279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13280   soname_spec='${libname}${release}${shared_ext}$major'
13281   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13282   shlibpath_var=LD_LIBRARY_PATH
13283   shlibpath_overrides_runpath=no
13284   hardcode_into_libs=yes
13285   ;;
13287 irix5* | irix6* | nonstopux*)
13288   case $host_os in
13289     nonstopux*) version_type=nonstopux ;;
13290     *)
13291         if test "$lt_cv_prog_gnu_ld" = yes; then
13292                 version_type=linux
13293         else
13294                 version_type=irix
13295         fi ;;
13296   esac
13297   need_lib_prefix=no
13298   need_version=no
13299   soname_spec='${libname}${release}${shared_ext}$major'
13300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13301   case $host_os in
13302   irix5* | nonstopux*)
13303     libsuff= shlibsuff=
13304     ;;
13305   *)
13306     case $LD in # libtool.m4 will add one of these switches to LD
13307     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13308       libsuff= shlibsuff= libmagic=32-bit;;
13309     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13310       libsuff=32 shlibsuff=N32 libmagic=N32;;
13311     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13312       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13313     *) libsuff= shlibsuff= libmagic=never-match;;
13314     esac
13315     ;;
13316   esac
13317   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13318   shlibpath_overrides_runpath=no
13319   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13320   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13321   hardcode_into_libs=yes
13322   ;;
13324 # No shared lib support for Linux oldld, aout, or coff.
13325 linux*oldld* | linux*aout* | linux*coff*)
13326   dynamic_linker=no
13327   ;;
13329 # This must be Linux ELF.
13330 linux* | k*bsd*-gnu)
13331   version_type=linux
13332   need_lib_prefix=no
13333   need_version=no
13334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13335   soname_spec='${libname}${release}${shared_ext}$major'
13336   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13337   shlibpath_var=LD_LIBRARY_PATH
13338   shlibpath_overrides_runpath=no
13339   # This implies no fast_install, which is unacceptable.
13340   # Some rework will be needed to allow for fast_install
13341   # before this can be enabled.
13342   hardcode_into_libs=yes
13344   # Append ld.so.conf contents to the search path
13345   if test -f /etc/ld.so.conf; then
13346     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13347     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13348   fi
13350   # We used to test for /lib/ld.so.1 and disable shared libraries on
13351   # powerpc, because MkLinux only supported shared libraries with the
13352   # GNU dynamic linker.  Since this was broken with cross compilers,
13353   # most powerpc-linux boxes support dynamic linking these days and
13354   # people can always --disable-shared, the test was removed, and we
13355   # assume the GNU/Linux dynamic linker is in use.
13356   dynamic_linker='GNU/Linux ld.so'
13357   ;;
13359 netbsdelf*-gnu)
13360   version_type=linux
13361   need_lib_prefix=no
13362   need_version=no
13363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13364   soname_spec='${libname}${release}${shared_ext}$major'
13365   shlibpath_var=LD_LIBRARY_PATH
13366   shlibpath_overrides_runpath=no
13367   hardcode_into_libs=yes
13368   dynamic_linker='NetBSD ld.elf_so'
13369   ;;
13371 netbsd*)
13372   version_type=sunos
13373   need_lib_prefix=no
13374   need_version=no
13375   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13376     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13377     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13378     dynamic_linker='NetBSD (a.out) ld.so'
13379   else
13380     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13381     soname_spec='${libname}${release}${shared_ext}$major'
13382     dynamic_linker='NetBSD ld.elf_so'
13383   fi
13384   shlibpath_var=LD_LIBRARY_PATH
13385   shlibpath_overrides_runpath=yes
13386   hardcode_into_libs=yes
13387   ;;
13389 newsos6)
13390   version_type=linux
13391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13392   shlibpath_var=LD_LIBRARY_PATH
13393   shlibpath_overrides_runpath=yes
13394   ;;
13396 nto-qnx*)
13397   version_type=linux
13398   need_lib_prefix=no
13399   need_version=no
13400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13401   soname_spec='${libname}${release}${shared_ext}$major'
13402   shlibpath_var=LD_LIBRARY_PATH
13403   shlibpath_overrides_runpath=yes
13404   ;;
13406 openbsd*)
13407   version_type=sunos
13408   sys_lib_dlsearch_path_spec="/usr/lib"
13409   need_lib_prefix=no
13410   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13411   case $host_os in
13412     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13413     *)                         need_version=no  ;;
13414   esac
13415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13416   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13417   shlibpath_var=LD_LIBRARY_PATH
13418   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13419     case $host_os in
13420       openbsd2.[89] | openbsd2.[89].*)
13421         shlibpath_overrides_runpath=no
13422         ;;
13423       *)
13424         shlibpath_overrides_runpath=yes
13425         ;;
13426       esac
13427   else
13428     shlibpath_overrides_runpath=yes
13429   fi
13430   ;;
13432 os2*)
13433   libname_spec='$name'
13434   shrext_cmds=".dll"
13435   need_lib_prefix=no
13436   library_names_spec='$libname${shared_ext} $libname.a'
13437   dynamic_linker='OS/2 ld.exe'
13438   shlibpath_var=LIBPATH
13439   ;;
13441 osf3* | osf4* | osf5*)
13442   version_type=osf
13443   need_lib_prefix=no
13444   need_version=no
13445   soname_spec='${libname}${release}${shared_ext}$major'
13446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13447   shlibpath_var=LD_LIBRARY_PATH
13448   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13449   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13450   ;;
13452 rdos*)
13453   dynamic_linker=no
13454   ;;
13456 solaris*)
13457   version_type=linux
13458   need_lib_prefix=no
13459   need_version=no
13460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13461   soname_spec='${libname}${release}${shared_ext}$major'
13462   shlibpath_var=LD_LIBRARY_PATH
13463   shlibpath_overrides_runpath=yes
13464   hardcode_into_libs=yes
13465   # ldd complains unless libraries are executable
13466   postinstall_cmds='chmod +x $lib'
13467   ;;
13469 sunos4*)
13470   version_type=sunos
13471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13472   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13473   shlibpath_var=LD_LIBRARY_PATH
13474   shlibpath_overrides_runpath=yes
13475   if test "$with_gnu_ld" = yes; then
13476     need_lib_prefix=no
13477   fi
13478   need_version=yes
13479   ;;
13481 sysv4 | sysv4.3*)
13482   version_type=linux
13483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13484   soname_spec='${libname}${release}${shared_ext}$major'
13485   shlibpath_var=LD_LIBRARY_PATH
13486   case $host_vendor in
13487     sni)
13488       shlibpath_overrides_runpath=no
13489       need_lib_prefix=no
13490       export_dynamic_flag_spec='${wl}-Blargedynsym'
13491       runpath_var=LD_RUN_PATH
13492       ;;
13493     siemens)
13494       need_lib_prefix=no
13495       ;;
13496     motorola)
13497       need_lib_prefix=no
13498       need_version=no
13499       shlibpath_overrides_runpath=no
13500       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13501       ;;
13502   esac
13503   ;;
13505 sysv4*MP*)
13506   if test -d /usr/nec ;then
13507     version_type=linux
13508     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13509     soname_spec='$libname${shared_ext}.$major'
13510     shlibpath_var=LD_LIBRARY_PATH
13511   fi
13512   ;;
13514 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13515   version_type=freebsd-elf
13516   need_lib_prefix=no
13517   need_version=no
13518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13519   soname_spec='${libname}${release}${shared_ext}$major'
13520   shlibpath_var=LD_LIBRARY_PATH
13521   hardcode_into_libs=yes
13522   if test "$with_gnu_ld" = yes; then
13523     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13524     shlibpath_overrides_runpath=no
13525   else
13526     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13527     shlibpath_overrides_runpath=yes
13528     case $host_os in
13529       sco3.2v5*)
13530         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13531         ;;
13532     esac
13533   fi
13534   sys_lib_dlsearch_path_spec='/usr/lib'
13535   ;;
13537 uts4*)
13538   version_type=linux
13539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13540   soname_spec='${libname}${release}${shared_ext}$major'
13541   shlibpath_var=LD_LIBRARY_PATH
13542   ;;
13545   dynamic_linker=no
13546   ;;
13547 esac
13548 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13549 echo "${ECHO_T}$dynamic_linker" >&6; }
13550 test "$dynamic_linker" = no && can_build_shared=no
13552 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13553   echo $ECHO_N "(cached) $ECHO_C" >&6
13554 else
13555   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13558 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13559 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13560   echo $ECHO_N "(cached) $ECHO_C" >&6
13561 else
13562   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13565 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13567 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13568 if test "$GCC" = yes; then
13569   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13572 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13573 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13574 hardcode_action_CXX=
13575 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13576    test -n "$runpath_var_CXX" || \
13577    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13579   # We can hardcode non-existant directories.
13580   if test "$hardcode_direct_CXX" != no &&
13581      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13582      # have to relink, otherwise we might link with an installed library
13583      # when we should be linking with a yet-to-be-installed one
13584      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13585      test "$hardcode_minus_L_CXX" != no; then
13586     # Linking always hardcodes the temporary library directory.
13587     hardcode_action_CXX=relink
13588   else
13589     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13590     hardcode_action_CXX=immediate
13591   fi
13592 else
13593   # We cannot hardcode anything, or else we can only hardcode existing
13594   # directories.
13595   hardcode_action_CXX=unsupported
13597 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13598 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13600 if test "$hardcode_action_CXX" = relink; then
13601   # Fast installation is not supported
13602   enable_fast_install=no
13603 elif test "$shlibpath_overrides_runpath" = yes ||
13604      test "$enable_shared" = no; then
13605   # Fast installation is not necessary
13606   enable_fast_install=needless
13610 # The else clause should only fire when bootstrapping the
13611 # libtool distribution, otherwise you forgot to ship ltmain.sh
13612 # with your package, and you will get complaints that there are
13613 # no rules to generate ltmain.sh.
13614 if test -f "$ltmain"; then
13615   # See if we are running on zsh, and set the options which allow our commands through
13616   # without removal of \ escapes.
13617   if test -n "${ZSH_VERSION+set}" ; then
13618     setopt NO_GLOB_SUBST
13619   fi
13620   # Now quote all the things that may contain metacharacters while being
13621   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13622   # variables and quote the copies for generation of the libtool script.
13623   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13624     SED SHELL STRIP \
13625     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13626     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13627     deplibs_check_method reload_flag reload_cmds need_locks \
13628     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13629     lt_cv_sys_global_symbol_to_c_name_address \
13630     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13631     old_postinstall_cmds old_postuninstall_cmds \
13632     compiler_CXX \
13633     CC_CXX \
13634     LD_CXX \
13635     lt_prog_compiler_wl_CXX \
13636     lt_prog_compiler_pic_CXX \
13637     lt_prog_compiler_static_CXX \
13638     lt_prog_compiler_no_builtin_flag_CXX \
13639     export_dynamic_flag_spec_CXX \
13640     thread_safe_flag_spec_CXX \
13641     whole_archive_flag_spec_CXX \
13642     enable_shared_with_static_runtimes_CXX \
13643     old_archive_cmds_CXX \
13644     old_archive_from_new_cmds_CXX \
13645     predep_objects_CXX \
13646     postdep_objects_CXX \
13647     predeps_CXX \
13648     postdeps_CXX \
13649     compiler_lib_search_path_CXX \
13650     compiler_lib_search_dirs_CXX \
13651     archive_cmds_CXX \
13652     archive_expsym_cmds_CXX \
13653     postinstall_cmds_CXX \
13654     postuninstall_cmds_CXX \
13655     old_archive_from_expsyms_cmds_CXX \
13656     allow_undefined_flag_CXX \
13657     no_undefined_flag_CXX \
13658     export_symbols_cmds_CXX \
13659     hardcode_libdir_flag_spec_CXX \
13660     hardcode_libdir_flag_spec_ld_CXX \
13661     hardcode_libdir_separator_CXX \
13662     hardcode_automatic_CXX \
13663     module_cmds_CXX \
13664     module_expsym_cmds_CXX \
13665     lt_cv_prog_compiler_c_o_CXX \
13666     fix_srcfile_path_CXX \
13667     exclude_expsyms_CXX \
13668     include_expsyms_CXX; do
13670     case $var in
13671     old_archive_cmds_CXX | \
13672     old_archive_from_new_cmds_CXX | \
13673     archive_cmds_CXX | \
13674     archive_expsym_cmds_CXX | \
13675     module_cmds_CXX | \
13676     module_expsym_cmds_CXX | \
13677     old_archive_from_expsyms_cmds_CXX | \
13678     export_symbols_cmds_CXX | \
13679     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13680     postinstall_cmds | postuninstall_cmds | \
13681     old_postinstall_cmds | old_postuninstall_cmds | \
13682     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13683       # Double-quote double-evaled strings.
13684       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13685       ;;
13686     *)
13687       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13688       ;;
13689     esac
13690   done
13692   case $lt_echo in
13693   *'\$0 --fallback-echo"')
13694     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13695     ;;
13696   esac
13698 cfgfile="$ofile"
13700   cat <<__EOF__ >> "$cfgfile"
13701 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13703 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13705 # Shell to use when invoking shell scripts.
13706 SHELL=$lt_SHELL
13708 # Whether or not to build shared libraries.
13709 build_libtool_libs=$enable_shared
13711 # Whether or not to build static libraries.
13712 build_old_libs=$enable_static
13714 # Whether or not to add -lc for building shared libraries.
13715 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13717 # Whether or not to disallow shared libs when runtime libs are static
13718 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13720 # Whether or not to optimize for fast installation.
13721 fast_install=$enable_fast_install
13723 # The host system.
13724 host_alias=$host_alias
13725 host=$host
13726 host_os=$host_os
13728 # The build system.
13729 build_alias=$build_alias
13730 build=$build
13731 build_os=$build_os
13733 # An echo program that does not interpret backslashes.
13734 echo=$lt_echo
13736 # The archiver.
13737 AR=$lt_AR
13738 AR_FLAGS=$lt_AR_FLAGS
13740 # A C compiler.
13741 LTCC=$lt_LTCC
13743 # LTCC compiler flags.
13744 LTCFLAGS=$lt_LTCFLAGS
13746 # A language-specific compiler.
13747 CC=$lt_compiler_CXX
13749 # Is the compiler the GNU C compiler?
13750 with_gcc=$GCC_CXX
13752 # An ERE matcher.
13753 EGREP=$lt_EGREP
13755 # The linker used to build libraries.
13756 LD=$lt_LD_CXX
13758 # Whether we need hard or soft links.
13759 LN_S=$lt_LN_S
13761 # A BSD-compatible nm program.
13762 NM=$lt_NM
13764 # A symbol stripping program
13765 STRIP=$lt_STRIP
13767 # Used to examine libraries when file_magic_cmd begins "file"
13768 MAGIC_CMD=$MAGIC_CMD
13770 # Used on cygwin: DLL creation program.
13771 DLLTOOL="$DLLTOOL"
13773 # Used on cygwin: object dumper.
13774 OBJDUMP="$OBJDUMP"
13776 # Used on cygwin: assembler.
13777 AS="$AS"
13779 # The name of the directory that contains temporary libtool files.
13780 objdir=$objdir
13782 # How to create reloadable object files.
13783 reload_flag=$lt_reload_flag
13784 reload_cmds=$lt_reload_cmds
13786 # How to pass a linker flag through the compiler.
13787 wl=$lt_lt_prog_compiler_wl_CXX
13789 # Object file suffix (normally "o").
13790 objext="$ac_objext"
13792 # Old archive suffix (normally "a").
13793 libext="$libext"
13795 # Shared library suffix (normally ".so").
13796 shrext_cmds='$shrext_cmds'
13798 # Executable file suffix (normally "").
13799 exeext="$exeext"
13801 # Additional compiler flags for building library objects.
13802 pic_flag=$lt_lt_prog_compiler_pic_CXX
13803 pic_mode=$pic_mode
13805 # What is the maximum length of a command?
13806 max_cmd_len=$lt_cv_sys_max_cmd_len
13808 # Does compiler simultaneously support -c and -o options?
13809 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13811 # Must we lock files when doing compilation?
13812 need_locks=$lt_need_locks
13814 # Do we need the lib prefix for modules?
13815 need_lib_prefix=$need_lib_prefix
13817 # Do we need a version for libraries?
13818 need_version=$need_version
13820 # Whether dlopen is supported.
13821 dlopen_support=$enable_dlopen
13823 # Whether dlopen of programs is supported.
13824 dlopen_self=$enable_dlopen_self
13826 # Whether dlopen of statically linked programs is supported.
13827 dlopen_self_static=$enable_dlopen_self_static
13829 # Compiler flag to prevent dynamic linking.
13830 link_static_flag=$lt_lt_prog_compiler_static_CXX
13832 # Compiler flag to turn off builtin functions.
13833 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13835 # Compiler flag to allow reflexive dlopens.
13836 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13838 # Compiler flag to generate shared objects directly from archives.
13839 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13841 # Compiler flag to generate thread-safe objects.
13842 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13844 # Library versioning type.
13845 version_type=$version_type
13847 # Format of library name prefix.
13848 libname_spec=$lt_libname_spec
13850 # List of archive names.  First name is the real one, the rest are links.
13851 # The last name is the one that the linker finds with -lNAME.
13852 library_names_spec=$lt_library_names_spec
13854 # The coded name of the library, if different from the real name.
13855 soname_spec=$lt_soname_spec
13857 # Commands used to build and install an old-style archive.
13858 RANLIB=$lt_RANLIB
13859 old_archive_cmds=$lt_old_archive_cmds_CXX
13860 old_postinstall_cmds=$lt_old_postinstall_cmds
13861 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13863 # Create an old-style archive from a shared archive.
13864 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13866 # Create a temporary old-style archive to link instead of a shared archive.
13867 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13869 # Commands used to build and install a shared archive.
13870 archive_cmds=$lt_archive_cmds_CXX
13871 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13872 postinstall_cmds=$lt_postinstall_cmds
13873 postuninstall_cmds=$lt_postuninstall_cmds
13875 # Commands used to build a loadable module (assumed same as above if empty)
13876 module_cmds=$lt_module_cmds_CXX
13877 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13879 # Commands to strip libraries.
13880 old_striplib=$lt_old_striplib
13881 striplib=$lt_striplib
13883 # Dependencies to place before the objects being linked to create a
13884 # shared library.
13885 predep_objects=$lt_predep_objects_CXX
13887 # Dependencies to place after the objects being linked to create a
13888 # shared library.
13889 postdep_objects=$lt_postdep_objects_CXX
13891 # Dependencies to place before the objects being linked to create a
13892 # shared library.
13893 predeps=$lt_predeps_CXX
13895 # Dependencies to place after the objects being linked to create a
13896 # shared library.
13897 postdeps=$lt_postdeps_CXX
13899 # The directories searched by this compiler when creating a shared
13900 # library
13901 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13903 # The library search path used internally by the compiler when linking
13904 # a shared library.
13905 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13907 # Method to check whether dependent libraries are shared objects.
13908 deplibs_check_method=$lt_deplibs_check_method
13910 # Command to use when deplibs_check_method == file_magic.
13911 file_magic_cmd=$lt_file_magic_cmd
13913 # Flag that allows shared libraries with undefined symbols to be built.
13914 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13916 # Flag that forces no undefined symbols.
13917 no_undefined_flag=$lt_no_undefined_flag_CXX
13919 # Commands used to finish a libtool library installation in a directory.
13920 finish_cmds=$lt_finish_cmds
13922 # Same as above, but a single script fragment to be evaled but not shown.
13923 finish_eval=$lt_finish_eval
13925 # Take the output of nm and produce a listing of raw symbols and C names.
13926 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13928 # Transform the output of nm in a proper C declaration
13929 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13931 # Transform the output of nm in a C name address pair
13932 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13934 # This is the shared library runtime path variable.
13935 runpath_var=$runpath_var
13937 # This is the shared library path variable.
13938 shlibpath_var=$shlibpath_var
13940 # Is shlibpath searched before the hard-coded library search path?
13941 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13943 # How to hardcode a shared library path into an executable.
13944 hardcode_action=$hardcode_action_CXX
13946 # Whether we should hardcode library paths into libraries.
13947 hardcode_into_libs=$hardcode_into_libs
13949 # Flag to hardcode \$libdir into a binary during linking.
13950 # This must work even if \$libdir does not exist.
13951 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13953 # If ld is used when linking, flag to hardcode \$libdir into
13954 # a binary during linking. This must work even if \$libdir does
13955 # not exist.
13956 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13958 # Whether we need a single -rpath flag with a separated argument.
13959 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13961 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13962 # resulting binary.
13963 hardcode_direct=$hardcode_direct_CXX
13965 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13966 # resulting binary.
13967 hardcode_minus_L=$hardcode_minus_L_CXX
13969 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13970 # the resulting binary.
13971 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13973 # Set to yes if building a shared library automatically hardcodes DIR into the library
13974 # and all subsequent libraries and executables linked against it.
13975 hardcode_automatic=$hardcode_automatic_CXX
13977 # Variables whose values should be saved in libtool wrapper scripts and
13978 # restored at relink time.
13979 variables_saved_for_relink="$variables_saved_for_relink"
13981 # Whether libtool must link a program against all its dependency libraries.
13982 link_all_deplibs=$link_all_deplibs_CXX
13984 # Compile-time system search path for libraries
13985 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13987 # Run-time system search path for libraries
13988 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13990 # Fix the shell variable \$srcfile for the compiler.
13991 fix_srcfile_path=$lt_fix_srcfile_path
13993 # Set to yes if exported symbols are required.
13994 always_export_symbols=$always_export_symbols_CXX
13996 # The commands to list exported symbols.
13997 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13999 # The commands to extract the exported symbol list from a shared archive.
14000 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14002 # Symbols that should not be listed in the preloaded symbols.
14003 exclude_expsyms=$lt_exclude_expsyms_CXX
14005 # Symbols that must always be exported.
14006 include_expsyms=$lt_include_expsyms_CXX
14008 # ### END LIBTOOL TAG CONFIG: $tagname
14010 __EOF__
14013 else
14014   # If there is no Makefile yet, we rely on a make rule to execute
14015   # `config.status --recheck' to rerun these tests and create the
14016   # libtool script then.
14017   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14018   if test -f "$ltmain_in"; then
14019     test -f Makefile && make "$ltmain"
14020   fi
14024 ac_ext=c
14025 ac_cpp='$CPP $CPPFLAGS'
14026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14030 CC=$lt_save_CC
14031 LDCXX=$LD
14032 LD=$lt_save_LD
14033 GCC=$lt_save_GCC
14034 with_gnu_ldcxx=$with_gnu_ld
14035 with_gnu_ld=$lt_save_with_gnu_ld
14036 lt_cv_path_LDCXX=$lt_cv_path_LD
14037 lt_cv_path_LD=$lt_save_path_LD
14038 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14039 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14041         else
14042           tagname=""
14043         fi
14044         ;;
14046       F77)
14047         if test -n "$F77" && test "X$F77" != "Xno"; then
14048           
14049 ac_ext=f
14050 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14051 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14052 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14055 archive_cmds_need_lc_F77=no
14056 allow_undefined_flag_F77=
14057 always_export_symbols_F77=no
14058 archive_expsym_cmds_F77=
14059 export_dynamic_flag_spec_F77=
14060 hardcode_direct_F77=no
14061 hardcode_libdir_flag_spec_F77=
14062 hardcode_libdir_flag_spec_ld_F77=
14063 hardcode_libdir_separator_F77=
14064 hardcode_minus_L_F77=no
14065 hardcode_automatic_F77=no
14066 module_cmds_F77=
14067 module_expsym_cmds_F77=
14068 link_all_deplibs_F77=unknown
14069 old_archive_cmds_F77=$old_archive_cmds
14070 no_undefined_flag_F77=
14071 whole_archive_flag_spec_F77=
14072 enable_shared_with_static_runtimes_F77=no
14074 # Source file extension for f77 test sources.
14075 ac_ext=f
14077 # Object file extension for compiled f77 test sources.
14078 objext=o
14079 objext_F77=$objext
14081 # Code to be used in simple compile tests
14082 lt_simple_compile_test_code="\
14083       subroutine t
14084       return
14085       end
14088 # Code to be used in simple link tests
14089 lt_simple_link_test_code="\
14090       program t
14091       end
14094 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14096 # If no C compiler was specified, use CC.
14097 LTCC=${LTCC-"$CC"}
14099 # If no C compiler flags were specified, use CFLAGS.
14100 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14102 # Allow CC to be a program name with arguments.
14103 compiler=$CC
14106 # save warnings/boilerplate of simple test code
14107 ac_outfile=conftest.$ac_objext
14108 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14109 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14110 _lt_compiler_boilerplate=`cat conftest.err`
14111 $rm conftest*
14113 ac_outfile=conftest.$ac_objext
14114 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14115 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14116 _lt_linker_boilerplate=`cat conftest.err`
14117 $rm -r conftest*
14120 # Allow CC to be a program name with arguments.
14121 lt_save_CC="$CC"
14122 CC=${F77-"f77"}
14123 compiler=$CC
14124 compiler_F77=$CC
14125 for cc_temp in $compiler""; do
14126   case $cc_temp in
14127     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14128     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14129     \-*) ;;
14130     *) break;;
14131   esac
14132 done
14133 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14136 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14137 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14138 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14139 echo "${ECHO_T}$can_build_shared" >&6; }
14141 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14142 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14143 test "$can_build_shared" = "no" && enable_shared=no
14145 # On AIX, shared libraries and static libraries use the same namespace, and
14146 # are all built from PIC.
14147 case $host_os in
14148 aix3*)
14149   test "$enable_shared" = yes && enable_static=no
14150   if test -n "$RANLIB"; then
14151     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14152     postinstall_cmds='$RANLIB $lib'
14153   fi
14154   ;;
14155 aix[4-9]*)
14156   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14157     test "$enable_shared" = yes && enable_static=no
14158   fi
14159   ;;
14160 esac
14161 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14162 echo "${ECHO_T}$enable_shared" >&6; }
14164 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14165 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14166 # Make sure either enable_shared or enable_static is yes.
14167 test "$enable_shared" = yes || enable_static=yes
14168 { echo "$as_me:$LINENO: result: $enable_static" >&5
14169 echo "${ECHO_T}$enable_static" >&6; }
14171 GCC_F77="$G77"
14172 LD_F77="$LD"
14174 lt_prog_compiler_wl_F77=
14175 lt_prog_compiler_pic_F77=
14176 lt_prog_compiler_static_F77=
14178 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14179 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14181   if test "$GCC" = yes; then
14182     lt_prog_compiler_wl_F77='-Wl,'
14183     lt_prog_compiler_static_F77='-static'
14185     case $host_os in
14186       aix*)
14187       # All AIX code is PIC.
14188       if test "$host_cpu" = ia64; then
14189         # AIX 5 now supports IA64 processor
14190         lt_prog_compiler_static_F77='-Bstatic'
14191       fi
14192       ;;
14194     amigaos*)
14195       # FIXME: we need at least 68020 code to build shared libraries, but
14196       # adding the `-m68020' flag to GCC prevents building anything better,
14197       # like `-m68040'.
14198       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14199       ;;
14201     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14202       # PIC is the default for these OSes.
14203       ;;
14205     mingw* | cygwin* | pw32* | os2*)
14206       # This hack is so that the source file can tell whether it is being
14207       # built for inclusion in a dll (and should export symbols for example).
14208       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14209       # (--disable-auto-import) libraries
14210       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14211       ;;
14213     darwin* | rhapsody*)
14214       # PIC is the default on this platform
14215       # Common symbols not allowed in MH_DYLIB files
14216       lt_prog_compiler_pic_F77='-fno-common'
14217       ;;
14219     interix[3-9]*)
14220       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14221       # Instead, we relocate shared libraries at runtime.
14222       ;;
14224     msdosdjgpp*)
14225       # Just because we use GCC doesn't mean we suddenly get shared libraries
14226       # on systems that don't support them.
14227       lt_prog_compiler_can_build_shared_F77=no
14228       enable_shared=no
14229       ;;
14231     sysv4*MP*)
14232       if test -d /usr/nec; then
14233         lt_prog_compiler_pic_F77=-Kconform_pic
14234       fi
14235       ;;
14237     hpux*)
14238       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14239       # not for PA HP-UX.
14240       case $host_cpu in
14241       hppa*64*|ia64*)
14242         # +Z the default
14243         ;;
14244       *)
14245         lt_prog_compiler_pic_F77='-fPIC'
14246         ;;
14247       esac
14248       ;;
14250     *)
14251       lt_prog_compiler_pic_F77='-fPIC'
14252       ;;
14253     esac
14254   else
14255     # PORTME Check for flag to pass linker flags through the system compiler.
14256     case $host_os in
14257     aix*)
14258       lt_prog_compiler_wl_F77='-Wl,'
14259       if test "$host_cpu" = ia64; then
14260         # AIX 5 now supports IA64 processor
14261         lt_prog_compiler_static_F77='-Bstatic'
14262       else
14263         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14264       fi
14265       ;;
14266       darwin*)
14267         # PIC is the default on this platform
14268         # Common symbols not allowed in MH_DYLIB files
14269        case $cc_basename in
14270          xlc*)
14271          lt_prog_compiler_pic_F77='-qnocommon'
14272          lt_prog_compiler_wl_F77='-Wl,'
14273          ;;
14274        esac
14275        ;;
14277     mingw* | cygwin* | pw32* | os2*)
14278       # This hack is so that the source file can tell whether it is being
14279       # built for inclusion in a dll (and should export symbols for example).
14280       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14281       ;;
14283     hpux9* | hpux10* | hpux11*)
14284       lt_prog_compiler_wl_F77='-Wl,'
14285       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14286       # not for PA HP-UX.
14287       case $host_cpu in
14288       hppa*64*|ia64*)
14289         # +Z the default
14290         ;;
14291       *)
14292         lt_prog_compiler_pic_F77='+Z'
14293         ;;
14294       esac
14295       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14296       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14297       ;;
14299     irix5* | irix6* | nonstopux*)
14300       lt_prog_compiler_wl_F77='-Wl,'
14301       # PIC (with -KPIC) is the default.
14302       lt_prog_compiler_static_F77='-non_shared'
14303       ;;
14305     newsos6)
14306       lt_prog_compiler_pic_F77='-KPIC'
14307       lt_prog_compiler_static_F77='-Bstatic'
14308       ;;
14310     linux* | k*bsd*-gnu)
14311       case $cc_basename in
14312       icc* | ecc*)
14313         lt_prog_compiler_wl_F77='-Wl,'
14314         lt_prog_compiler_pic_F77='-KPIC'
14315         lt_prog_compiler_static_F77='-static'
14316         ;;
14317       pgcc* | pgf77* | pgf90* | pgf95*)
14318         # Portland Group compilers (*not* the Pentium gcc compiler,
14319         # which looks to be a dead project)
14320         lt_prog_compiler_wl_F77='-Wl,'
14321         lt_prog_compiler_pic_F77='-fpic'
14322         lt_prog_compiler_static_F77='-Bstatic'
14323         ;;
14324       ccc*)
14325         lt_prog_compiler_wl_F77='-Wl,'
14326         # All Alpha code is PIC.
14327         lt_prog_compiler_static_F77='-non_shared'
14328         ;;
14329       *)
14330         case `$CC -V 2>&1 | sed 5q` in
14331         *Sun\ C*)
14332           # Sun C 5.9
14333           lt_prog_compiler_pic_F77='-KPIC'
14334           lt_prog_compiler_static_F77='-Bstatic'
14335           lt_prog_compiler_wl_F77='-Wl,'
14336           ;;
14337         *Sun\ F*)
14338           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14339           lt_prog_compiler_pic_F77='-KPIC'
14340           lt_prog_compiler_static_F77='-Bstatic'
14341           lt_prog_compiler_wl_F77=''
14342           ;;
14343         esac
14344         ;;
14345       esac
14346       ;;
14348     osf3* | osf4* | osf5*)
14349       lt_prog_compiler_wl_F77='-Wl,'
14350       # All OSF/1 code is PIC.
14351       lt_prog_compiler_static_F77='-non_shared'
14352       ;;
14354     rdos*)
14355       lt_prog_compiler_static_F77='-non_shared'
14356       ;;
14358     solaris*)
14359       lt_prog_compiler_pic_F77='-KPIC'
14360       lt_prog_compiler_static_F77='-Bstatic'
14361       case $cc_basename in
14362       f77* | f90* | f95*)
14363         lt_prog_compiler_wl_F77='-Qoption ld ';;
14364       *)
14365         lt_prog_compiler_wl_F77='-Wl,';;
14366       esac
14367       ;;
14369     sunos4*)
14370       lt_prog_compiler_wl_F77='-Qoption ld '
14371       lt_prog_compiler_pic_F77='-PIC'
14372       lt_prog_compiler_static_F77='-Bstatic'
14373       ;;
14375     sysv4 | sysv4.2uw2* | sysv4.3*)
14376       lt_prog_compiler_wl_F77='-Wl,'
14377       lt_prog_compiler_pic_F77='-KPIC'
14378       lt_prog_compiler_static_F77='-Bstatic'
14379       ;;
14381     sysv4*MP*)
14382       if test -d /usr/nec ;then
14383         lt_prog_compiler_pic_F77='-Kconform_pic'
14384         lt_prog_compiler_static_F77='-Bstatic'
14385       fi
14386       ;;
14388     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14389       lt_prog_compiler_wl_F77='-Wl,'
14390       lt_prog_compiler_pic_F77='-KPIC'
14391       lt_prog_compiler_static_F77='-Bstatic'
14392       ;;
14394     unicos*)
14395       lt_prog_compiler_wl_F77='-Wl,'
14396       lt_prog_compiler_can_build_shared_F77=no
14397       ;;
14399     uts4*)
14400       lt_prog_compiler_pic_F77='-pic'
14401       lt_prog_compiler_static_F77='-Bstatic'
14402       ;;
14404     *)
14405       lt_prog_compiler_can_build_shared_F77=no
14406       ;;
14407     esac
14408   fi
14410 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14411 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14414 # Check to make sure the PIC flag actually works.
14416 if test -n "$lt_prog_compiler_pic_F77"; then
14417   
14418 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14419 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14420 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14421   echo $ECHO_N "(cached) $ECHO_C" >&6
14422 else
14423   lt_cv_prog_compiler_pic_works_F77=no
14424   ac_outfile=conftest.$ac_objext
14425    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14426    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14427    # Insert the option either (1) after the last *FLAGS variable, or
14428    # (2) before a word containing "conftest.", or (3) at the end.
14429    # Note that $ac_compile itself does not contain backslashes and begins
14430    # with a dollar sign (not a hyphen), so the echo should work correctly.
14431    # The option is referenced via a variable to avoid confusing sed.
14432    lt_compile=`echo "$ac_compile" | $SED \
14433    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14434    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14435    -e 's:$: $lt_compiler_flag:'`
14436    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14437    (eval "$lt_compile" 2>conftest.err)
14438    ac_status=$?
14439    cat conftest.err >&5
14440    echo "$as_me:__oline__: \$? = $ac_status" >&5
14441    if (exit $ac_status) && test -s "$ac_outfile"; then
14442      # The compiler can only warn and ignore the option if not recognized
14443      # So say no if there are warnings other than the usual output.
14444      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14445      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14446      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14447        lt_cv_prog_compiler_pic_works_F77=yes
14448      fi
14449    fi
14450    $rm conftest*
14453 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14454 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14456 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14457     case $lt_prog_compiler_pic_F77 in
14458      "" | " "*) ;;
14459      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14460      esac
14461 else
14462     lt_prog_compiler_pic_F77=
14463      lt_prog_compiler_can_build_shared_F77=no
14467 case $host_os in
14468   # For platforms which do not support PIC, -DPIC is meaningless:
14469   *djgpp*)
14470     lt_prog_compiler_pic_F77=
14471     ;;
14472   *)
14473     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14474     ;;
14475 esac
14478 # Check to make sure the static flag actually works.
14480 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14481 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14482 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14483 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14484   echo $ECHO_N "(cached) $ECHO_C" >&6
14485 else
14486   lt_cv_prog_compiler_static_works_F77=no
14487    save_LDFLAGS="$LDFLAGS"
14488    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14489    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14490    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14491      # The linker can only warn and ignore the option if not recognized
14492      # So say no if there are warnings
14493      if test -s conftest.err; then
14494        # Append any errors to the config.log.
14495        cat conftest.err 1>&5
14496        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14497        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14498        if diff conftest.exp conftest.er2 >/dev/null; then
14499          lt_cv_prog_compiler_static_works_F77=yes
14500        fi
14501      else
14502        lt_cv_prog_compiler_static_works_F77=yes
14503      fi
14504    fi
14505    $rm -r conftest*
14506    LDFLAGS="$save_LDFLAGS"
14509 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14510 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14512 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14513     :
14514 else
14515     lt_prog_compiler_static_F77=
14519 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14520 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14521 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14522   echo $ECHO_N "(cached) $ECHO_C" >&6
14523 else
14524   lt_cv_prog_compiler_c_o_F77=no
14525    $rm -r conftest 2>/dev/null
14526    mkdir conftest
14527    cd conftest
14528    mkdir out
14529    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14531    lt_compiler_flag="-o out/conftest2.$ac_objext"
14532    # Insert the option either (1) after the last *FLAGS variable, or
14533    # (2) before a word containing "conftest.", or (3) at the end.
14534    # Note that $ac_compile itself does not contain backslashes and begins
14535    # with a dollar sign (not a hyphen), so the echo should work correctly.
14536    lt_compile=`echo "$ac_compile" | $SED \
14537    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14538    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14539    -e 's:$: $lt_compiler_flag:'`
14540    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14541    (eval "$lt_compile" 2>out/conftest.err)
14542    ac_status=$?
14543    cat out/conftest.err >&5
14544    echo "$as_me:__oline__: \$? = $ac_status" >&5
14545    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14546    then
14547      # The compiler can only warn and ignore the option if not recognized
14548      # So say no if there are warnings
14549      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14550      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14551      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14552        lt_cv_prog_compiler_c_o_F77=yes
14553      fi
14554    fi
14555    chmod u+w . 2>&5
14556    $rm conftest*
14557    # SGI C++ compiler will create directory out/ii_files/ for
14558    # template instantiation
14559    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14560    $rm out/* && rmdir out
14561    cd ..
14562    rmdir conftest
14563    $rm conftest*
14566 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14567 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14570 hard_links="nottested"
14571 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14572   # do not overwrite the value of need_locks provided by the user
14573   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14574 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14575   hard_links=yes
14576   $rm conftest*
14577   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14578   touch conftest.a
14579   ln conftest.a conftest.b 2>&5 || hard_links=no
14580   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14581   { echo "$as_me:$LINENO: result: $hard_links" >&5
14582 echo "${ECHO_T}$hard_links" >&6; }
14583   if test "$hard_links" = no; then
14584     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14585 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14586     need_locks=warn
14587   fi
14588 else
14589   need_locks=no
14592 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14593 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14595   runpath_var=
14596   allow_undefined_flag_F77=
14597   enable_shared_with_static_runtimes_F77=no
14598   archive_cmds_F77=
14599   archive_expsym_cmds_F77=
14600   old_archive_From_new_cmds_F77=
14601   old_archive_from_expsyms_cmds_F77=
14602   export_dynamic_flag_spec_F77=
14603   whole_archive_flag_spec_F77=
14604   thread_safe_flag_spec_F77=
14605   hardcode_libdir_flag_spec_F77=
14606   hardcode_libdir_flag_spec_ld_F77=
14607   hardcode_libdir_separator_F77=
14608   hardcode_direct_F77=no
14609   hardcode_minus_L_F77=no
14610   hardcode_shlibpath_var_F77=unsupported
14611   link_all_deplibs_F77=unknown
14612   hardcode_automatic_F77=no
14613   module_cmds_F77=
14614   module_expsym_cmds_F77=
14615   always_export_symbols_F77=no
14616   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14617   # include_expsyms should be a list of space-separated symbols to be *always*
14618   # included in the symbol list
14619   include_expsyms_F77=
14620   # exclude_expsyms can be an extended regexp of symbols to exclude
14621   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14622   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14623   # as well as any symbol that contains `d'.
14624   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14625   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14626   # platforms (ab)use it in PIC code, but their linkers get confused if
14627   # the symbol is explicitly referenced.  Since portable code cannot
14628   # rely on this symbol name, it's probably fine to never include it in
14629   # preloaded symbol tables.
14630   # Exclude shared library initialization/finalization symbols.
14631   extract_expsyms_cmds=
14632   # Just being paranoid about ensuring that cc_basename is set.
14633   for cc_temp in $compiler""; do
14634   case $cc_temp in
14635     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14636     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14637     \-*) ;;
14638     *) break;;
14639   esac
14640 done
14641 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14643   case $host_os in
14644   cygwin* | mingw* | pw32*)
14645     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14646     # When not using gcc, we currently assume that we are using
14647     # Microsoft Visual C++.
14648     if test "$GCC" != yes; then
14649       with_gnu_ld=no
14650     fi
14651     ;;
14652   interix*)
14653     # we just hope/assume this is gcc and not c89 (= MSVC++)
14654     with_gnu_ld=yes
14655     ;;
14656   openbsd*)
14657     with_gnu_ld=no
14658     ;;
14659   esac
14661   ld_shlibs_F77=yes
14662   if test "$with_gnu_ld" = yes; then
14663     # If archive_cmds runs LD, not CC, wlarc should be empty
14664     wlarc='${wl}'
14666     # Set some defaults for GNU ld with shared library support. These
14667     # are reset later if shared libraries are not supported. Putting them
14668     # here allows them to be overridden if necessary.
14669     runpath_var=LD_RUN_PATH
14670     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14671     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14672     # ancient GNU ld didn't support --whole-archive et. al.
14673     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14674         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14675       else
14676         whole_archive_flag_spec_F77=
14677     fi
14678     supports_anon_versioning=no
14679     case `$LD -v 2>/dev/null` in
14680       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14681       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14682       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14683       *\ 2.11.*) ;; # other 2.11 versions
14684       *) supports_anon_versioning=yes ;;
14685     esac
14687     # See if GNU ld supports shared libraries.
14688     case $host_os in
14689     aix[3-9]*)
14690       # On AIX/PPC, the GNU linker is very broken
14691       if test "$host_cpu" != ia64; then
14692         ld_shlibs_F77=no
14693         cat <<EOF 1>&2
14695 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14696 *** to be unable to reliably create shared libraries on AIX.
14697 *** Therefore, libtool is disabling shared libraries support.  If you
14698 *** really care for shared libraries, you may want to modify your PATH
14699 *** so that a non-GNU linker is found, and then restart.
14702       fi
14703       ;;
14705     amigaos*)
14706       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)'
14707       hardcode_libdir_flag_spec_F77='-L$libdir'
14708       hardcode_minus_L_F77=yes
14710       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14711       # that the semantics of dynamic libraries on AmigaOS, at least up
14712       # to version 4, is to share data among multiple programs linked
14713       # with the same dynamic library.  Since this doesn't match the
14714       # behavior of shared libraries on other platforms, we can't use
14715       # them.
14716       ld_shlibs_F77=no
14717       ;;
14719     beos*)
14720       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14721         allow_undefined_flag_F77=unsupported
14722         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14723         # support --undefined.  This deserves some investigation.  FIXME
14724         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14725       else
14726         ld_shlibs_F77=no
14727       fi
14728       ;;
14730     cygwin* | mingw* | pw32*)
14731       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14732       # as there is no search path for DLLs.
14733       hardcode_libdir_flag_spec_F77='-L$libdir'
14734       allow_undefined_flag_F77=unsupported
14735       always_export_symbols_F77=no
14736       enable_shared_with_static_runtimes_F77=yes
14737       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14739       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14740         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14741         # If the export-symbols file already is a .def file (1st line
14742         # is EXPORTS), use it as is; otherwise, prepend...
14743         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14744           cp $export_symbols $output_objdir/$soname.def;
14745         else
14746           echo EXPORTS > $output_objdir/$soname.def;
14747           cat $export_symbols >> $output_objdir/$soname.def;
14748         fi~
14749         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14750       else
14751         ld_shlibs_F77=no
14752       fi
14753       ;;
14755     interix[3-9]*)
14756       hardcode_direct_F77=no
14757       hardcode_shlibpath_var_F77=no
14758       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14759       export_dynamic_flag_spec_F77='${wl}-E'
14760       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14761       # Instead, shared libraries are loaded at an image base (0x10000000 by
14762       # default) and relocated if they conflict, which is a slow very memory
14763       # consuming and fragmenting process.  To avoid this, we pick a random,
14764       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14765       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14766       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14767       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14768       ;;
14770     gnu* | linux* | k*bsd*-gnu)
14771       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14772         tmp_addflag=
14773         case $cc_basename,$host_cpu in
14774         pgcc*)                          # Portland Group C compiler
14775           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'
14776           tmp_addflag=' $pic_flag'
14777           ;;
14778         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14779           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'
14780           tmp_addflag=' $pic_flag -Mnomain' ;;
14781         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14782           tmp_addflag=' -i_dynamic' ;;
14783         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14784           tmp_addflag=' -i_dynamic -nofor_main' ;;
14785         ifc* | ifort*)                  # Intel Fortran compiler
14786           tmp_addflag=' -nofor_main' ;;
14787         esac
14788         case `$CC -V 2>&1 | sed 5q` in
14789         *Sun\ C*)                       # Sun C 5.9
14790           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14791           tmp_sharedflag='-G' ;;
14792         *Sun\ F*)                       # Sun Fortran 8.3
14793           tmp_sharedflag='-G' ;;
14794         *)
14795           tmp_sharedflag='-shared' ;;
14796         esac
14797         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14799         if test $supports_anon_versioning = yes; then
14800           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14801   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14802   $echo "local: *; };" >> $output_objdir/$libname.ver~
14803           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14804         fi
14805         link_all_deplibs_F77=no
14806       else
14807         ld_shlibs_F77=no
14808       fi
14809       ;;
14811     netbsd* | netbsdelf*-gnu)
14812       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14813         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14814         wlarc=
14815       else
14816         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14817         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14818       fi
14819       ;;
14821     solaris*)
14822       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14823         ld_shlibs_F77=no
14824         cat <<EOF 1>&2
14826 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14827 *** create shared libraries on Solaris systems.  Therefore, libtool
14828 *** is disabling shared libraries support.  We urge you to upgrade GNU
14829 *** binutils to release 2.9.1 or newer.  Another option is to modify
14830 *** your PATH or compiler configuration so that the native linker is
14831 *** used, and then restart.
14834       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14835         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14836         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14837       else
14838         ld_shlibs_F77=no
14839       fi
14840       ;;
14842     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14843       case `$LD -v 2>&1` in
14844         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14845         ld_shlibs_F77=no
14846         cat <<_LT_EOF 1>&2
14848 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14849 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14850 *** is disabling shared libraries support.  We urge you to upgrade GNU
14851 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14852 *** your PATH or compiler configuration so that the native linker is
14853 *** used, and then restart.
14855 _LT_EOF
14856         ;;
14857         *)
14858           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14859             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14860             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14861             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14862           else
14863             ld_shlibs_F77=no
14864           fi
14865         ;;
14866       esac
14867       ;;
14869     sunos4*)
14870       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14871       wlarc=
14872       hardcode_direct_F77=yes
14873       hardcode_shlibpath_var_F77=no
14874       ;;
14876     *)
14877       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14878         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14879         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14880       else
14881         ld_shlibs_F77=no
14882       fi
14883       ;;
14884     esac
14886     if test "$ld_shlibs_F77" = no; then
14887       runpath_var=
14888       hardcode_libdir_flag_spec_F77=
14889       export_dynamic_flag_spec_F77=
14890       whole_archive_flag_spec_F77=
14891     fi
14892   else
14893     # PORTME fill in a description of your system's linker (not GNU ld)
14894     case $host_os in
14895     aix3*)
14896       allow_undefined_flag_F77=unsupported
14897       always_export_symbols_F77=yes
14898       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'
14899       # Note: this linker hardcodes the directories in LIBPATH if there
14900       # are no directories specified by -L.
14901       hardcode_minus_L_F77=yes
14902       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14903         # Neither direct hardcoding nor static linking is supported with a
14904         # broken collect2.
14905         hardcode_direct_F77=unsupported
14906       fi
14907       ;;
14909     aix[4-9]*)
14910       if test "$host_cpu" = ia64; then
14911         # On IA64, the linker does run time linking by default, so we don't
14912         # have to do anything special.
14913         aix_use_runtimelinking=no
14914         exp_sym_flag='-Bexport'
14915         no_entry_flag=""
14916       else
14917         # If we're using GNU nm, then we don't want the "-C" option.
14918         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14919         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14920           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'
14921         else
14922           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'
14923         fi
14924         aix_use_runtimelinking=no
14926         # Test if we are trying to use run time linking or normal
14927         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14928         # need to do runtime linking.
14929         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14930           for ld_flag in $LDFLAGS; do
14931           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14932             aix_use_runtimelinking=yes
14933             break
14934           fi
14935           done
14936           ;;
14937         esac
14939         exp_sym_flag='-bexport'
14940         no_entry_flag='-bnoentry'
14941       fi
14943       # When large executables or shared objects are built, AIX ld can
14944       # have problems creating the table of contents.  If linking a library
14945       # or program results in "error TOC overflow" add -mminimal-toc to
14946       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14947       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14949       archive_cmds_F77=''
14950       hardcode_direct_F77=yes
14951       hardcode_libdir_separator_F77=':'
14952       link_all_deplibs_F77=yes
14954       if test "$GCC" = yes; then
14955         case $host_os in aix4.[012]|aix4.[012].*)
14956         # We only want to do this on AIX 4.2 and lower, the check
14957         # below for broken collect2 doesn't work under 4.3+
14958           collect2name=`${CC} -print-prog-name=collect2`
14959           if test -f "$collect2name" && \
14960            strings "$collect2name" | grep resolve_lib_name >/dev/null
14961           then
14962           # We have reworked collect2
14963           :
14964           else
14965           # We have old collect2
14966           hardcode_direct_F77=unsupported
14967           # It fails to find uninstalled libraries when the uninstalled
14968           # path is not listed in the libpath.  Setting hardcode_minus_L
14969           # to unsupported forces relinking
14970           hardcode_minus_L_F77=yes
14971           hardcode_libdir_flag_spec_F77='-L$libdir'
14972           hardcode_libdir_separator_F77=
14973           fi
14974           ;;
14975         esac
14976         shared_flag='-shared'
14977         if test "$aix_use_runtimelinking" = yes; then
14978           shared_flag="$shared_flag "'${wl}-G'
14979         fi
14980       else
14981         # not using gcc
14982         if test "$host_cpu" = ia64; then
14983         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14984         # chokes on -Wl,-G. The following line is correct:
14985           shared_flag='-G'
14986         else
14987           if test "$aix_use_runtimelinking" = yes; then
14988             shared_flag='${wl}-G'
14989           else
14990             shared_flag='${wl}-bM:SRE'
14991           fi
14992         fi
14993       fi
14995       # It seems that -bexpall does not export symbols beginning with
14996       # underscore (_), so it is better to generate a list of symbols to export.
14997       always_export_symbols_F77=yes
14998       if test "$aix_use_runtimelinking" = yes; then
14999         # Warning - without using the other runtime loading flags (-brtl),
15000         # -berok will link without error, but may produce a broken library.
15001         allow_undefined_flag_F77='-berok'
15002        # Determine the default libpath from the value encoded in an empty executable.
15003        cat >conftest.$ac_ext <<_ACEOF
15004       program main
15006       end
15007 _ACEOF
15008 rm -f conftest.$ac_objext conftest$ac_exeext
15009 if { (ac_try="$ac_link"
15010 case "(($ac_try" in
15011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012   *) ac_try_echo=$ac_try;;
15013 esac
15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015   (eval "$ac_link") 2>conftest.er1
15016   ac_status=$?
15017   grep -v '^ *+' conftest.er1 >conftest.err
15018   rm -f conftest.er1
15019   cat conftest.err >&5
15020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021   (exit $ac_status); } && {
15022          test -z "$ac_f77_werror_flag" ||
15023          test ! -s conftest.err
15024        } && test -s conftest$ac_exeext &&
15025        $as_test_x conftest$ac_exeext; then
15026   
15027 lt_aix_libpath_sed='
15028     /Import File Strings/,/^$/ {
15029         /^0/ {
15030             s/^0  *\(.*\)$/\1/
15031             p
15032         }
15033     }'
15034 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15035 # Check for a 64-bit object if we didn't find anything.
15036 if test -z "$aix_libpath"; then
15037   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15039 else
15040   echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15043         
15046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15047       conftest$ac_exeext conftest.$ac_ext
15048 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15050        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15051         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15052        else
15053         if test "$host_cpu" = ia64; then
15054           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15055           allow_undefined_flag_F77="-z nodefs"
15056           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15057         else
15058          # Determine the default libpath from the value encoded in an empty executable.
15059          cat >conftest.$ac_ext <<_ACEOF
15060       program main
15062       end
15063 _ACEOF
15064 rm -f conftest.$ac_objext conftest$ac_exeext
15065 if { (ac_try="$ac_link"
15066 case "(($ac_try" in
15067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15068   *) ac_try_echo=$ac_try;;
15069 esac
15070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15071   (eval "$ac_link") 2>conftest.er1
15072   ac_status=$?
15073   grep -v '^ *+' conftest.er1 >conftest.err
15074   rm -f conftest.er1
15075   cat conftest.err >&5
15076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077   (exit $ac_status); } && {
15078          test -z "$ac_f77_werror_flag" ||
15079          test ! -s conftest.err
15080        } && test -s conftest$ac_exeext &&
15081        $as_test_x conftest$ac_exeext; then
15082   
15083 lt_aix_libpath_sed='
15084     /Import File Strings/,/^$/ {
15085         /^0/ {
15086             s/^0  *\(.*\)$/\1/
15087             p
15088         }
15089     }'
15090 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15091 # Check for a 64-bit object if we didn't find anything.
15092 if test -z "$aix_libpath"; then
15093   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15095 else
15096   echo "$as_me: failed program was:" >&5
15097 sed 's/^/| /' conftest.$ac_ext >&5
15099         
15102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15103       conftest$ac_exeext conftest.$ac_ext
15104 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15106          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15107           # Warning - without using the other run time loading flags,
15108           # -berok will link without error, but may produce a broken library.
15109           no_undefined_flag_F77=' ${wl}-bernotok'
15110           allow_undefined_flag_F77=' ${wl}-berok'
15111           # Exported symbols can be pulled into shared objects from archives
15112           whole_archive_flag_spec_F77='$convenience'
15113           archive_cmds_need_lc_F77=yes
15114           # This is similar to how AIX traditionally builds its shared libraries.
15115           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15116         fi
15117       fi
15118       ;;
15120     amigaos*)
15121       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)'
15122       hardcode_libdir_flag_spec_F77='-L$libdir'
15123       hardcode_minus_L_F77=yes
15124       # see comment about different semantics on the GNU ld section
15125       ld_shlibs_F77=no
15126       ;;
15128     bsdi[45]*)
15129       export_dynamic_flag_spec_F77=-rdynamic
15130       ;;
15132     cygwin* | mingw* | pw32*)
15133       # When not using gcc, we currently assume that we are using
15134       # Microsoft Visual C++.
15135       # hardcode_libdir_flag_spec is actually meaningless, as there is
15136       # no search path for DLLs.
15137       hardcode_libdir_flag_spec_F77=' '
15138       allow_undefined_flag_F77=unsupported
15139       # Tell ltmain to make .lib files, not .a files.
15140       libext=lib
15141       # Tell ltmain to make .dll files, not .so files.
15142       shrext_cmds=".dll"
15143       # FIXME: Setting linknames here is a bad hack.
15144       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15145       # The linker will automatically build a .lib file if we build a DLL.
15146       old_archive_From_new_cmds_F77='true'
15147       # FIXME: Should let the user specify the lib program.
15148       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15149       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15150       enable_shared_with_static_runtimes_F77=yes
15151       ;;
15153     darwin* | rhapsody*)
15154       case $host_os in
15155         rhapsody* | darwin1.[012])
15156          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15157          ;;
15158        *) # Darwin 1.3 on
15159          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15160            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15161          else
15162            case ${MACOSX_DEPLOYMENT_TARGET} in
15163              10.[012])
15164                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15165                ;;
15166              10.*)
15167                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15168                ;;
15169            esac
15170          fi
15171          ;;
15172       esac
15173       archive_cmds_need_lc_F77=no
15174       hardcode_direct_F77=no
15175       hardcode_automatic_F77=yes
15176       hardcode_shlibpath_var_F77=unsupported
15177       whole_archive_flag_spec_F77=''
15178       link_all_deplibs_F77=yes
15179     if test "$GCC" = yes ; then
15180         output_verbose_link_cmd='echo'
15181         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15182         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15183         archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15184         module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15185     else
15186       case $cc_basename in
15187         xlc*)
15188          output_verbose_link_cmd='echo'
15189          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15190          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15191           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15192          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15193           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}'
15194           ;;
15195        *)
15196          ld_shlibs_F77=no
15197           ;;
15198       esac
15199     fi
15200       ;;
15202     dgux*)
15203       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15204       hardcode_libdir_flag_spec_F77='-L$libdir'
15205       hardcode_shlibpath_var_F77=no
15206       ;;
15208     freebsd1*)
15209       ld_shlibs_F77=no
15210       ;;
15212     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15213     # support.  Future versions do this automatically, but an explicit c++rt0.o
15214     # does not break anything, and helps significantly (at the cost of a little
15215     # extra space).
15216     freebsd2.2*)
15217       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15218       hardcode_libdir_flag_spec_F77='-R$libdir'
15219       hardcode_direct_F77=yes
15220       hardcode_shlibpath_var_F77=no
15221       ;;
15223     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15224     freebsd2*)
15225       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15226       hardcode_direct_F77=yes
15227       hardcode_minus_L_F77=yes
15228       hardcode_shlibpath_var_F77=no
15229       ;;
15231     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15232     freebsd* | dragonfly*)
15233       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15234       hardcode_libdir_flag_spec_F77='-R$libdir'
15235       hardcode_direct_F77=yes
15236       hardcode_shlibpath_var_F77=no
15237       ;;
15239     hpux9*)
15240       if test "$GCC" = yes; then
15241         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'
15242       else
15243         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'
15244       fi
15245       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15246       hardcode_libdir_separator_F77=:
15247       hardcode_direct_F77=yes
15249       # hardcode_minus_L: Not really in the search PATH,
15250       # but as the default location of the library.
15251       hardcode_minus_L_F77=yes
15252       export_dynamic_flag_spec_F77='${wl}-E'
15253       ;;
15255     hpux10*)
15256       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15257         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15258       else
15259         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15260       fi
15261       if test "$with_gnu_ld" = no; then
15262         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15263         hardcode_libdir_separator_F77=:
15265         hardcode_direct_F77=yes
15266         export_dynamic_flag_spec_F77='${wl}-E'
15268         # hardcode_minus_L: Not really in the search PATH,
15269         # but as the default location of the library.
15270         hardcode_minus_L_F77=yes
15271       fi
15272       ;;
15274     hpux11*)
15275       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15276         case $host_cpu in
15277         hppa*64*)
15278           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15279           ;;
15280         ia64*)
15281           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15282           ;;
15283         *)
15284           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15285           ;;
15286         esac
15287       else
15288         case $host_cpu in
15289         hppa*64*)
15290           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15291           ;;
15292         ia64*)
15293           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15294           ;;
15295         *)
15296           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15297           ;;
15298         esac
15299       fi
15300       if test "$with_gnu_ld" = no; then
15301         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15302         hardcode_libdir_separator_F77=:
15304         case $host_cpu in
15305         hppa*64*|ia64*)
15306           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15307           hardcode_direct_F77=no
15308           hardcode_shlibpath_var_F77=no
15309           ;;
15310         *)
15311           hardcode_direct_F77=yes
15312           export_dynamic_flag_spec_F77='${wl}-E'
15314           # hardcode_minus_L: Not really in the search PATH,
15315           # but as the default location of the library.
15316           hardcode_minus_L_F77=yes
15317           ;;
15318         esac
15319       fi
15320       ;;
15322     irix5* | irix6* | nonstopux*)
15323       if test "$GCC" = yes; then
15324         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'
15325       else
15326         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'
15327         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15328       fi
15329       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15330       hardcode_libdir_separator_F77=:
15331       link_all_deplibs_F77=yes
15332       ;;
15334     netbsd* | netbsdelf*-gnu)
15335       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15336         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15337       else
15338         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15339       fi
15340       hardcode_libdir_flag_spec_F77='-R$libdir'
15341       hardcode_direct_F77=yes
15342       hardcode_shlibpath_var_F77=no
15343       ;;
15345     newsos6)
15346       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15347       hardcode_direct_F77=yes
15348       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15349       hardcode_libdir_separator_F77=:
15350       hardcode_shlibpath_var_F77=no
15351       ;;
15353     openbsd*)
15354       if test -f /usr/libexec/ld.so; then
15355         hardcode_direct_F77=yes
15356         hardcode_shlibpath_var_F77=no
15357         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15358           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15359           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15360           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15361           export_dynamic_flag_spec_F77='${wl}-E'
15362         else
15363           case $host_os in
15364            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15365              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15366              hardcode_libdir_flag_spec_F77='-R$libdir'
15367              ;;
15368            *)
15369              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15370              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15371              ;;
15372           esac
15373         fi
15374       else
15375         ld_shlibs_F77=no
15376       fi
15377       ;;
15379     os2*)
15380       hardcode_libdir_flag_spec_F77='-L$libdir'
15381       hardcode_minus_L_F77=yes
15382       allow_undefined_flag_F77=unsupported
15383       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'
15384       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15385       ;;
15387     osf3*)
15388       if test "$GCC" = yes; then
15389         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15390         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'
15391       else
15392         allow_undefined_flag_F77=' -expect_unresolved \*'
15393         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'
15394       fi
15395       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15396       hardcode_libdir_separator_F77=:
15397       ;;
15399     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15400       if test "$GCC" = yes; then
15401         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15402         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'
15403         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15404       else
15405         allow_undefined_flag_F77=' -expect_unresolved \*'
15406         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'
15407         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~
15408         $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'
15410         # Both c and cxx compiler support -rpath directly
15411         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15412       fi
15413       hardcode_libdir_separator_F77=:
15414       ;;
15416     solaris*)
15417       no_undefined_flag_F77=' -z text'
15418       if test "$GCC" = yes; then
15419         wlarc='${wl}'
15420         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15421         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15422           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15423       else
15424         wlarc=''
15425         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15426         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15427         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15428       fi
15429       hardcode_libdir_flag_spec_F77='-R$libdir'
15430       hardcode_shlibpath_var_F77=no
15431       case $host_os in
15432       solaris2.[0-5] | solaris2.[0-5].*) ;;
15433       *)
15434         # The compiler driver will combine and reorder linker options,
15435         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15436         # but is careful enough not to reorder.
15437         # Supported since Solaris 2.6 (maybe 2.5.1?)
15438         if test "$GCC" = yes; then
15439           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15440         else
15441           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15442         fi
15443         ;;
15444       esac
15445       link_all_deplibs_F77=yes
15446       ;;
15448     sunos4*)
15449       if test "x$host_vendor" = xsequent; then
15450         # Use $CC to link under sequent, because it throws in some extra .o
15451         # files that make .init and .fini sections work.
15452         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15453       else
15454         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15455       fi
15456       hardcode_libdir_flag_spec_F77='-L$libdir'
15457       hardcode_direct_F77=yes
15458       hardcode_minus_L_F77=yes
15459       hardcode_shlibpath_var_F77=no
15460       ;;
15462     sysv4)
15463       case $host_vendor in
15464         sni)
15465           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15466           hardcode_direct_F77=yes # is this really true???
15467         ;;
15468         siemens)
15469           ## LD is ld it makes a PLAMLIB
15470           ## CC just makes a GrossModule.
15471           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15472           reload_cmds_F77='$CC -r -o $output$reload_objs'
15473           hardcode_direct_F77=no
15474         ;;
15475         motorola)
15476           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15477           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15478         ;;
15479       esac
15480       runpath_var='LD_RUN_PATH'
15481       hardcode_shlibpath_var_F77=no
15482       ;;
15484     sysv4.3*)
15485       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15486       hardcode_shlibpath_var_F77=no
15487       export_dynamic_flag_spec_F77='-Bexport'
15488       ;;
15490     sysv4*MP*)
15491       if test -d /usr/nec; then
15492         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15493         hardcode_shlibpath_var_F77=no
15494         runpath_var=LD_RUN_PATH
15495         hardcode_runpath_var=yes
15496         ld_shlibs_F77=yes
15497       fi
15498       ;;
15500     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15501       no_undefined_flag_F77='${wl}-z,text'
15502       archive_cmds_need_lc_F77=no
15503       hardcode_shlibpath_var_F77=no
15504       runpath_var='LD_RUN_PATH'
15506       if test "$GCC" = yes; then
15507         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15508         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15509       else
15510         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15511         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15512       fi
15513       ;;
15515     sysv5* | sco3.2v5* | sco5v6*)
15516       # Note: We can NOT use -z defs as we might desire, because we do not
15517       # link with -lc, and that would cause any symbols used from libc to
15518       # always be unresolved, which means just about no library would
15519       # ever link correctly.  If we're not using GNU ld we use -z text
15520       # though, which does catch some bad symbols but isn't as heavy-handed
15521       # as -z defs.
15522       no_undefined_flag_F77='${wl}-z,text'
15523       allow_undefined_flag_F77='${wl}-z,nodefs'
15524       archive_cmds_need_lc_F77=no
15525       hardcode_shlibpath_var_F77=no
15526       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15527       hardcode_libdir_separator_F77=':'
15528       link_all_deplibs_F77=yes
15529       export_dynamic_flag_spec_F77='${wl}-Bexport'
15530       runpath_var='LD_RUN_PATH'
15532       if test "$GCC" = yes; then
15533         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15534         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15535       else
15536         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15537         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15538       fi
15539       ;;
15541     uts4*)
15542       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15543       hardcode_libdir_flag_spec_F77='-L$libdir'
15544       hardcode_shlibpath_var_F77=no
15545       ;;
15547     *)
15548       ld_shlibs_F77=no
15549       ;;
15550     esac
15551   fi
15553 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15554 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15555 test "$ld_shlibs_F77" = no && can_build_shared=no
15558 # Do we need to explicitly link libc?
15560 case "x$archive_cmds_need_lc_F77" in
15561 x|xyes)
15562   # Assume -lc should be added
15563   archive_cmds_need_lc_F77=yes
15565   if test "$enable_shared" = yes && test "$GCC" = yes; then
15566     case $archive_cmds_F77 in
15567     *'~'*)
15568       # FIXME: we may have to deal with multi-command sequences.
15569       ;;
15570     '$CC '*)
15571       # Test whether the compiler implicitly links with -lc since on some
15572       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15573       # to ld, don't add -lc before -lgcc.
15574       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15575 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15576       $rm conftest*
15577       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15579       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15580   (eval $ac_compile) 2>&5
15581   ac_status=$?
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); } 2>conftest.err; then
15584         soname=conftest
15585         lib=conftest
15586         libobjs=conftest.$ac_objext
15587         deplibs=
15588         wl=$lt_prog_compiler_wl_F77
15589         pic_flag=$lt_prog_compiler_pic_F77
15590         compiler_flags=-v
15591         linker_flags=-v
15592         verstring=
15593         output_objdir=.
15594         libname=conftest
15595         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15596         allow_undefined_flag_F77=
15597         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15598   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15599   ac_status=$?
15600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601   (exit $ac_status); }
15602         then
15603           archive_cmds_need_lc_F77=no
15604         else
15605           archive_cmds_need_lc_F77=yes
15606         fi
15607         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15608       else
15609         cat conftest.err 1>&5
15610       fi
15611       $rm conftest*
15612       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15613 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15614       ;;
15615     esac
15616   fi
15617   ;;
15618 esac
15620 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15621 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15622 library_names_spec=
15623 libname_spec='lib$name'
15624 soname_spec=
15625 shrext_cmds=".so"
15626 postinstall_cmds=
15627 postuninstall_cmds=
15628 finish_cmds=
15629 finish_eval=
15630 shlibpath_var=
15631 shlibpath_overrides_runpath=unknown
15632 version_type=none
15633 dynamic_linker="$host_os ld.so"
15634 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15636 need_lib_prefix=unknown
15637 hardcode_into_libs=no
15639 # when you set need_version to no, make sure it does not cause -set_version
15640 # flags to be left without arguments
15641 need_version=unknown
15643 case $host_os in
15644 aix3*)
15645   version_type=linux
15646   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15647   shlibpath_var=LIBPATH
15649   # AIX 3 has no versioning support, so we append a major version to the name.
15650   soname_spec='${libname}${release}${shared_ext}$major'
15651   ;;
15653 aix[4-9]*)
15654   version_type=linux
15655   need_lib_prefix=no
15656   need_version=no
15657   hardcode_into_libs=yes
15658   if test "$host_cpu" = ia64; then
15659     # AIX 5 supports IA64
15660     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15661     shlibpath_var=LD_LIBRARY_PATH
15662   else
15663     # With GCC up to 2.95.x, collect2 would create an import file
15664     # for dependence libraries.  The import file would start with
15665     # the line `#! .'.  This would cause the generated library to
15666     # depend on `.', always an invalid library.  This was fixed in
15667     # development snapshots of GCC prior to 3.0.
15668     case $host_os in
15669       aix4 | aix4.[01] | aix4.[01].*)
15670       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15671            echo ' yes '
15672            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15673         :
15674       else
15675         can_build_shared=no
15676       fi
15677       ;;
15678     esac
15679     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15680     # soname into executable. Probably we can add versioning support to
15681     # collect2, so additional links can be useful in future.
15682     if test "$aix_use_runtimelinking" = yes; then
15683       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15684       # instead of lib<name>.a to let people know that these are not
15685       # typical AIX shared libraries.
15686       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15687     else
15688       # We preserve .a as extension for shared libraries through AIX4.2
15689       # and later when we are not doing run time linking.
15690       library_names_spec='${libname}${release}.a $libname.a'
15691       soname_spec='${libname}${release}${shared_ext}$major'
15692     fi
15693     shlibpath_var=LIBPATH
15694   fi
15695   ;;
15697 amigaos*)
15698   library_names_spec='$libname.ixlibrary $libname.a'
15699   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15700   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'
15701   ;;
15703 beos*)
15704   library_names_spec='${libname}${shared_ext}'
15705   dynamic_linker="$host_os ld.so"
15706   shlibpath_var=LIBRARY_PATH
15707   ;;
15709 bsdi[45]*)
15710   version_type=linux
15711   need_version=no
15712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15713   soname_spec='${libname}${release}${shared_ext}$major'
15714   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15715   shlibpath_var=LD_LIBRARY_PATH
15716   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15717   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15718   # the default ld.so.conf also contains /usr/contrib/lib and
15719   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15720   # libtool to hard-code these into programs
15721   ;;
15723 cygwin* | mingw* | pw32*)
15724   version_type=windows
15725   shrext_cmds=".dll"
15726   need_version=no
15727   need_lib_prefix=no
15729   case $GCC,$host_os in
15730   yes,cygwin* | yes,mingw* | yes,pw32*)
15731     library_names_spec='$libname.dll.a'
15732     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15733     postinstall_cmds='base_file=`basename \${file}`~
15734       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15735       dldir=$destdir/`dirname \$dlpath`~
15736       test -d \$dldir || mkdir -p \$dldir~
15737       $install_prog $dir/$dlname \$dldir/$dlname~
15738       chmod a+x \$dldir/$dlname'
15739     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15740       dlpath=$dir/\$dldll~
15741        $rm \$dlpath'
15742     shlibpath_overrides_runpath=yes
15744     case $host_os in
15745     cygwin*)
15746       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15747       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15748       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15749       ;;
15750     mingw*)
15751       # MinGW DLLs use traditional 'lib' prefix
15752       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15753       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15754       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15755         # It is most probably a Windows format PATH printed by
15756         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15757         # path with ; separators, and with drive letters. We can handle the
15758         # drive letters (cygwin fileutils understands them), so leave them,
15759         # especially as we might pass files found there to a mingw objdump,
15760         # which wouldn't understand a cygwinified path. Ahh.
15761         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15762       else
15763         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15764       fi
15765       ;;
15766     pw32*)
15767       # pw32 DLLs use 'pw' prefix rather than 'lib'
15768       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15769       ;;
15770     esac
15771     ;;
15773   *)
15774     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15775     ;;
15776   esac
15777   dynamic_linker='Win32 ld.exe'
15778   # FIXME: first we should search . and the directory the executable is in
15779   shlibpath_var=PATH
15780   ;;
15782 darwin* | rhapsody*)
15783   dynamic_linker="$host_os dyld"
15784   version_type=darwin
15785   need_lib_prefix=no
15786   need_version=no
15787   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15788   soname_spec='${libname}${release}${major}$shared_ext'
15789   shlibpath_overrides_runpath=yes
15790   shlibpath_var=DYLD_LIBRARY_PATH
15791   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15792    
15793   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15794   ;;
15796 dgux*)
15797   version_type=linux
15798   need_lib_prefix=no
15799   need_version=no
15800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15801   soname_spec='${libname}${release}${shared_ext}$major'
15802   shlibpath_var=LD_LIBRARY_PATH
15803   ;;
15805 freebsd1*)
15806   dynamic_linker=no
15807   ;;
15809 freebsd* | dragonfly*)
15810   # DragonFly does not have aout.  When/if they implement a new
15811   # versioning mechanism, adjust this.
15812   if test -x /usr/bin/objformat; then
15813     objformat=`/usr/bin/objformat`
15814   else
15815     case $host_os in
15816     freebsd[123]*) objformat=aout ;;
15817     *) objformat=elf ;;
15818     esac
15819   fi
15820   version_type=freebsd-$objformat
15821   case $version_type in
15822     freebsd-elf*)
15823       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15824       need_version=no
15825       need_lib_prefix=no
15826       ;;
15827     freebsd-*)
15828       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15829       need_version=yes
15830       ;;
15831   esac
15832   shlibpath_var=LD_LIBRARY_PATH
15833   case $host_os in
15834   freebsd2*)
15835     shlibpath_overrides_runpath=yes
15836     ;;
15837   freebsd3.[01]* | freebsdelf3.[01]*)
15838     shlibpath_overrides_runpath=yes
15839     hardcode_into_libs=yes
15840     ;;
15841   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15842   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15843     shlibpath_overrides_runpath=no
15844     hardcode_into_libs=yes
15845     ;;
15846   *) # from 4.6 on, and DragonFly
15847     shlibpath_overrides_runpath=yes
15848     hardcode_into_libs=yes
15849     ;;
15850   esac
15851   ;;
15853 gnu*)
15854   version_type=linux
15855   need_lib_prefix=no
15856   need_version=no
15857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15858   soname_spec='${libname}${release}${shared_ext}$major'
15859   shlibpath_var=LD_LIBRARY_PATH
15860   hardcode_into_libs=yes
15861   ;;
15863 hpux9* | hpux10* | hpux11*)
15864   # Give a soname corresponding to the major version so that dld.sl refuses to
15865   # link against other versions.
15866   version_type=sunos
15867   need_lib_prefix=no
15868   need_version=no
15869   case $host_cpu in
15870   ia64*)
15871     shrext_cmds='.so'
15872     hardcode_into_libs=yes
15873     dynamic_linker="$host_os dld.so"
15874     shlibpath_var=LD_LIBRARY_PATH
15875     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15876     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15877     soname_spec='${libname}${release}${shared_ext}$major'
15878     if test "X$HPUX_IA64_MODE" = X32; then
15879       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15880     else
15881       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15882     fi
15883     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15884     ;;
15885    hppa*64*)
15886      shrext_cmds='.sl'
15887      hardcode_into_libs=yes
15888      dynamic_linker="$host_os dld.sl"
15889      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15890      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15891      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15892      soname_spec='${libname}${release}${shared_ext}$major'
15893      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15894      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15895      ;;
15896    *)
15897     shrext_cmds='.sl'
15898     dynamic_linker="$host_os dld.sl"
15899     shlibpath_var=SHLIB_PATH
15900     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15901     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15902     soname_spec='${libname}${release}${shared_ext}$major'
15903     ;;
15904   esac
15905   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15906   postinstall_cmds='chmod 555 $lib'
15907   ;;
15909 interix[3-9]*)
15910   version_type=linux
15911   need_lib_prefix=no
15912   need_version=no
15913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15914   soname_spec='${libname}${release}${shared_ext}$major'
15915   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15916   shlibpath_var=LD_LIBRARY_PATH
15917   shlibpath_overrides_runpath=no
15918   hardcode_into_libs=yes
15919   ;;
15921 irix5* | irix6* | nonstopux*)
15922   case $host_os in
15923     nonstopux*) version_type=nonstopux ;;
15924     *)
15925         if test "$lt_cv_prog_gnu_ld" = yes; then
15926                 version_type=linux
15927         else
15928                 version_type=irix
15929         fi ;;
15930   esac
15931   need_lib_prefix=no
15932   need_version=no
15933   soname_spec='${libname}${release}${shared_ext}$major'
15934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15935   case $host_os in
15936   irix5* | nonstopux*)
15937     libsuff= shlibsuff=
15938     ;;
15939   *)
15940     case $LD in # libtool.m4 will add one of these switches to LD
15941     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15942       libsuff= shlibsuff= libmagic=32-bit;;
15943     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15944       libsuff=32 shlibsuff=N32 libmagic=N32;;
15945     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15946       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15947     *) libsuff= shlibsuff= libmagic=never-match;;
15948     esac
15949     ;;
15950   esac
15951   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15952   shlibpath_overrides_runpath=no
15953   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15954   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15955   hardcode_into_libs=yes
15956   ;;
15958 # No shared lib support for Linux oldld, aout, or coff.
15959 linux*oldld* | linux*aout* | linux*coff*)
15960   dynamic_linker=no
15961   ;;
15963 # This must be Linux ELF.
15964 linux* | k*bsd*-gnu)
15965   version_type=linux
15966   need_lib_prefix=no
15967   need_version=no
15968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15969   soname_spec='${libname}${release}${shared_ext}$major'
15970   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15971   shlibpath_var=LD_LIBRARY_PATH
15972   shlibpath_overrides_runpath=no
15973   # This implies no fast_install, which is unacceptable.
15974   # Some rework will be needed to allow for fast_install
15975   # before this can be enabled.
15976   hardcode_into_libs=yes
15978   # Append ld.so.conf contents to the search path
15979   if test -f /etc/ld.so.conf; then
15980     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15981     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15982   fi
15984   # We used to test for /lib/ld.so.1 and disable shared libraries on
15985   # powerpc, because MkLinux only supported shared libraries with the
15986   # GNU dynamic linker.  Since this was broken with cross compilers,
15987   # most powerpc-linux boxes support dynamic linking these days and
15988   # people can always --disable-shared, the test was removed, and we
15989   # assume the GNU/Linux dynamic linker is in use.
15990   dynamic_linker='GNU/Linux ld.so'
15991   ;;
15993 netbsdelf*-gnu)
15994   version_type=linux
15995   need_lib_prefix=no
15996   need_version=no
15997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15998   soname_spec='${libname}${release}${shared_ext}$major'
15999   shlibpath_var=LD_LIBRARY_PATH
16000   shlibpath_overrides_runpath=no
16001   hardcode_into_libs=yes
16002   dynamic_linker='NetBSD ld.elf_so'
16003   ;;
16005 netbsd*)
16006   version_type=sunos
16007   need_lib_prefix=no
16008   need_version=no
16009   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16010     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16011     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16012     dynamic_linker='NetBSD (a.out) ld.so'
16013   else
16014     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16015     soname_spec='${libname}${release}${shared_ext}$major'
16016     dynamic_linker='NetBSD ld.elf_so'
16017   fi
16018   shlibpath_var=LD_LIBRARY_PATH
16019   shlibpath_overrides_runpath=yes
16020   hardcode_into_libs=yes
16021   ;;
16023 newsos6)
16024   version_type=linux
16025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16026   shlibpath_var=LD_LIBRARY_PATH
16027   shlibpath_overrides_runpath=yes
16028   ;;
16030 nto-qnx*)
16031   version_type=linux
16032   need_lib_prefix=no
16033   need_version=no
16034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16035   soname_spec='${libname}${release}${shared_ext}$major'
16036   shlibpath_var=LD_LIBRARY_PATH
16037   shlibpath_overrides_runpath=yes
16038   ;;
16040 openbsd*)
16041   version_type=sunos
16042   sys_lib_dlsearch_path_spec="/usr/lib"
16043   need_lib_prefix=no
16044   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16045   case $host_os in
16046     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16047     *)                         need_version=no  ;;
16048   esac
16049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16050   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16051   shlibpath_var=LD_LIBRARY_PATH
16052   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16053     case $host_os in
16054       openbsd2.[89] | openbsd2.[89].*)
16055         shlibpath_overrides_runpath=no
16056         ;;
16057       *)
16058         shlibpath_overrides_runpath=yes
16059         ;;
16060       esac
16061   else
16062     shlibpath_overrides_runpath=yes
16063   fi
16064   ;;
16066 os2*)
16067   libname_spec='$name'
16068   shrext_cmds=".dll"
16069   need_lib_prefix=no
16070   library_names_spec='$libname${shared_ext} $libname.a'
16071   dynamic_linker='OS/2 ld.exe'
16072   shlibpath_var=LIBPATH
16073   ;;
16075 osf3* | osf4* | osf5*)
16076   version_type=osf
16077   need_lib_prefix=no
16078   need_version=no
16079   soname_spec='${libname}${release}${shared_ext}$major'
16080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16081   shlibpath_var=LD_LIBRARY_PATH
16082   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16083   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16084   ;;
16086 rdos*)
16087   dynamic_linker=no
16088   ;;
16090 solaris*)
16091   version_type=linux
16092   need_lib_prefix=no
16093   need_version=no
16094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095   soname_spec='${libname}${release}${shared_ext}$major'
16096   shlibpath_var=LD_LIBRARY_PATH
16097   shlibpath_overrides_runpath=yes
16098   hardcode_into_libs=yes
16099   # ldd complains unless libraries are executable
16100   postinstall_cmds='chmod +x $lib'
16101   ;;
16103 sunos4*)
16104   version_type=sunos
16105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16106   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16107   shlibpath_var=LD_LIBRARY_PATH
16108   shlibpath_overrides_runpath=yes
16109   if test "$with_gnu_ld" = yes; then
16110     need_lib_prefix=no
16111   fi
16112   need_version=yes
16113   ;;
16115 sysv4 | sysv4.3*)
16116   version_type=linux
16117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16118   soname_spec='${libname}${release}${shared_ext}$major'
16119   shlibpath_var=LD_LIBRARY_PATH
16120   case $host_vendor in
16121     sni)
16122       shlibpath_overrides_runpath=no
16123       need_lib_prefix=no
16124       export_dynamic_flag_spec='${wl}-Blargedynsym'
16125       runpath_var=LD_RUN_PATH
16126       ;;
16127     siemens)
16128       need_lib_prefix=no
16129       ;;
16130     motorola)
16131       need_lib_prefix=no
16132       need_version=no
16133       shlibpath_overrides_runpath=no
16134       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16135       ;;
16136   esac
16137   ;;
16139 sysv4*MP*)
16140   if test -d /usr/nec ;then
16141     version_type=linux
16142     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16143     soname_spec='$libname${shared_ext}.$major'
16144     shlibpath_var=LD_LIBRARY_PATH
16145   fi
16146   ;;
16148 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16149   version_type=freebsd-elf
16150   need_lib_prefix=no
16151   need_version=no
16152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16153   soname_spec='${libname}${release}${shared_ext}$major'
16154   shlibpath_var=LD_LIBRARY_PATH
16155   hardcode_into_libs=yes
16156   if test "$with_gnu_ld" = yes; then
16157     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16158     shlibpath_overrides_runpath=no
16159   else
16160     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16161     shlibpath_overrides_runpath=yes
16162     case $host_os in
16163       sco3.2v5*)
16164         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16165         ;;
16166     esac
16167   fi
16168   sys_lib_dlsearch_path_spec='/usr/lib'
16169   ;;
16171 uts4*)
16172   version_type=linux
16173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16174   soname_spec='${libname}${release}${shared_ext}$major'
16175   shlibpath_var=LD_LIBRARY_PATH
16176   ;;
16179   dynamic_linker=no
16180   ;;
16181 esac
16182 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16183 echo "${ECHO_T}$dynamic_linker" >&6; }
16184 test "$dynamic_linker" = no && can_build_shared=no
16186 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16187   echo $ECHO_N "(cached) $ECHO_C" >&6
16188 else
16189   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16192 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16193 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16194   echo $ECHO_N "(cached) $ECHO_C" >&6
16195 else
16196   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16199 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16201 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16202 if test "$GCC" = yes; then
16203   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16206 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16207 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16208 hardcode_action_F77=
16209 if test -n "$hardcode_libdir_flag_spec_F77" || \
16210    test -n "$runpath_var_F77" || \
16211    test "X$hardcode_automatic_F77" = "Xyes" ; then
16213   # We can hardcode non-existant directories.
16214   if test "$hardcode_direct_F77" != no &&
16215      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16216      # have to relink, otherwise we might link with an installed library
16217      # when we should be linking with a yet-to-be-installed one
16218      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16219      test "$hardcode_minus_L_F77" != no; then
16220     # Linking always hardcodes the temporary library directory.
16221     hardcode_action_F77=relink
16222   else
16223     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16224     hardcode_action_F77=immediate
16225   fi
16226 else
16227   # We cannot hardcode anything, or else we can only hardcode existing
16228   # directories.
16229   hardcode_action_F77=unsupported
16231 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16232 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16234 if test "$hardcode_action_F77" = relink; then
16235   # Fast installation is not supported
16236   enable_fast_install=no
16237 elif test "$shlibpath_overrides_runpath" = yes ||
16238      test "$enable_shared" = no; then
16239   # Fast installation is not necessary
16240   enable_fast_install=needless
16244 # The else clause should only fire when bootstrapping the
16245 # libtool distribution, otherwise you forgot to ship ltmain.sh
16246 # with your package, and you will get complaints that there are
16247 # no rules to generate ltmain.sh.
16248 if test -f "$ltmain"; then
16249   # See if we are running on zsh, and set the options which allow our commands through
16250   # without removal of \ escapes.
16251   if test -n "${ZSH_VERSION+set}" ; then
16252     setopt NO_GLOB_SUBST
16253   fi
16254   # Now quote all the things that may contain metacharacters while being
16255   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16256   # variables and quote the copies for generation of the libtool script.
16257   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16258     SED SHELL STRIP \
16259     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16260     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16261     deplibs_check_method reload_flag reload_cmds need_locks \
16262     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16263     lt_cv_sys_global_symbol_to_c_name_address \
16264     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16265     old_postinstall_cmds old_postuninstall_cmds \
16266     compiler_F77 \
16267     CC_F77 \
16268     LD_F77 \
16269     lt_prog_compiler_wl_F77 \
16270     lt_prog_compiler_pic_F77 \
16271     lt_prog_compiler_static_F77 \
16272     lt_prog_compiler_no_builtin_flag_F77 \
16273     export_dynamic_flag_spec_F77 \
16274     thread_safe_flag_spec_F77 \
16275     whole_archive_flag_spec_F77 \
16276     enable_shared_with_static_runtimes_F77 \
16277     old_archive_cmds_F77 \
16278     old_archive_from_new_cmds_F77 \
16279     predep_objects_F77 \
16280     postdep_objects_F77 \
16281     predeps_F77 \
16282     postdeps_F77 \
16283     compiler_lib_search_path_F77 \
16284     compiler_lib_search_dirs_F77 \
16285     archive_cmds_F77 \
16286     archive_expsym_cmds_F77 \
16287     postinstall_cmds_F77 \
16288     postuninstall_cmds_F77 \
16289     old_archive_from_expsyms_cmds_F77 \
16290     allow_undefined_flag_F77 \
16291     no_undefined_flag_F77 \
16292     export_symbols_cmds_F77 \
16293     hardcode_libdir_flag_spec_F77 \
16294     hardcode_libdir_flag_spec_ld_F77 \
16295     hardcode_libdir_separator_F77 \
16296     hardcode_automatic_F77 \
16297     module_cmds_F77 \
16298     module_expsym_cmds_F77 \
16299     lt_cv_prog_compiler_c_o_F77 \
16300     fix_srcfile_path_F77 \
16301     exclude_expsyms_F77 \
16302     include_expsyms_F77; do
16304     case $var in
16305     old_archive_cmds_F77 | \
16306     old_archive_from_new_cmds_F77 | \
16307     archive_cmds_F77 | \
16308     archive_expsym_cmds_F77 | \
16309     module_cmds_F77 | \
16310     module_expsym_cmds_F77 | \
16311     old_archive_from_expsyms_cmds_F77 | \
16312     export_symbols_cmds_F77 | \
16313     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16314     postinstall_cmds | postuninstall_cmds | \
16315     old_postinstall_cmds | old_postuninstall_cmds | \
16316     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16317       # Double-quote double-evaled strings.
16318       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16319       ;;
16320     *)
16321       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16322       ;;
16323     esac
16324   done
16326   case $lt_echo in
16327   *'\$0 --fallback-echo"')
16328     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16329     ;;
16330   esac
16332 cfgfile="$ofile"
16334   cat <<__EOF__ >> "$cfgfile"
16335 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16337 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16339 # Shell to use when invoking shell scripts.
16340 SHELL=$lt_SHELL
16342 # Whether or not to build shared libraries.
16343 build_libtool_libs=$enable_shared
16345 # Whether or not to build static libraries.
16346 build_old_libs=$enable_static
16348 # Whether or not to add -lc for building shared libraries.
16349 build_libtool_need_lc=$archive_cmds_need_lc_F77
16351 # Whether or not to disallow shared libs when runtime libs are static
16352 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16354 # Whether or not to optimize for fast installation.
16355 fast_install=$enable_fast_install
16357 # The host system.
16358 host_alias=$host_alias
16359 host=$host
16360 host_os=$host_os
16362 # The build system.
16363 build_alias=$build_alias
16364 build=$build
16365 build_os=$build_os
16367 # An echo program that does not interpret backslashes.
16368 echo=$lt_echo
16370 # The archiver.
16371 AR=$lt_AR
16372 AR_FLAGS=$lt_AR_FLAGS
16374 # A C compiler.
16375 LTCC=$lt_LTCC
16377 # LTCC compiler flags.
16378 LTCFLAGS=$lt_LTCFLAGS
16380 # A language-specific compiler.
16381 CC=$lt_compiler_F77
16383 # Is the compiler the GNU C compiler?
16384 with_gcc=$GCC_F77
16386 # An ERE matcher.
16387 EGREP=$lt_EGREP
16389 # The linker used to build libraries.
16390 LD=$lt_LD_F77
16392 # Whether we need hard or soft links.
16393 LN_S=$lt_LN_S
16395 # A BSD-compatible nm program.
16396 NM=$lt_NM
16398 # A symbol stripping program
16399 STRIP=$lt_STRIP
16401 # Used to examine libraries when file_magic_cmd begins "file"
16402 MAGIC_CMD=$MAGIC_CMD
16404 # Used on cygwin: DLL creation program.
16405 DLLTOOL="$DLLTOOL"
16407 # Used on cygwin: object dumper.
16408 OBJDUMP="$OBJDUMP"
16410 # Used on cygwin: assembler.
16411 AS="$AS"
16413 # The name of the directory that contains temporary libtool files.
16414 objdir=$objdir
16416 # How to create reloadable object files.
16417 reload_flag=$lt_reload_flag
16418 reload_cmds=$lt_reload_cmds
16420 # How to pass a linker flag through the compiler.
16421 wl=$lt_lt_prog_compiler_wl_F77
16423 # Object file suffix (normally "o").
16424 objext="$ac_objext"
16426 # Old archive suffix (normally "a").
16427 libext="$libext"
16429 # Shared library suffix (normally ".so").
16430 shrext_cmds='$shrext_cmds'
16432 # Executable file suffix (normally "").
16433 exeext="$exeext"
16435 # Additional compiler flags for building library objects.
16436 pic_flag=$lt_lt_prog_compiler_pic_F77
16437 pic_mode=$pic_mode
16439 # What is the maximum length of a command?
16440 max_cmd_len=$lt_cv_sys_max_cmd_len
16442 # Does compiler simultaneously support -c and -o options?
16443 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16445 # Must we lock files when doing compilation?
16446 need_locks=$lt_need_locks
16448 # Do we need the lib prefix for modules?
16449 need_lib_prefix=$need_lib_prefix
16451 # Do we need a version for libraries?
16452 need_version=$need_version
16454 # Whether dlopen is supported.
16455 dlopen_support=$enable_dlopen
16457 # Whether dlopen of programs is supported.
16458 dlopen_self=$enable_dlopen_self
16460 # Whether dlopen of statically linked programs is supported.
16461 dlopen_self_static=$enable_dlopen_self_static
16463 # Compiler flag to prevent dynamic linking.
16464 link_static_flag=$lt_lt_prog_compiler_static_F77
16466 # Compiler flag to turn off builtin functions.
16467 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16469 # Compiler flag to allow reflexive dlopens.
16470 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16472 # Compiler flag to generate shared objects directly from archives.
16473 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16475 # Compiler flag to generate thread-safe objects.
16476 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16478 # Library versioning type.
16479 version_type=$version_type
16481 # Format of library name prefix.
16482 libname_spec=$lt_libname_spec
16484 # List of archive names.  First name is the real one, the rest are links.
16485 # The last name is the one that the linker finds with -lNAME.
16486 library_names_spec=$lt_library_names_spec
16488 # The coded name of the library, if different from the real name.
16489 soname_spec=$lt_soname_spec
16491 # Commands used to build and install an old-style archive.
16492 RANLIB=$lt_RANLIB
16493 old_archive_cmds=$lt_old_archive_cmds_F77
16494 old_postinstall_cmds=$lt_old_postinstall_cmds
16495 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16497 # Create an old-style archive from a shared archive.
16498 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16500 # Create a temporary old-style archive to link instead of a shared archive.
16501 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16503 # Commands used to build and install a shared archive.
16504 archive_cmds=$lt_archive_cmds_F77
16505 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16506 postinstall_cmds=$lt_postinstall_cmds
16507 postuninstall_cmds=$lt_postuninstall_cmds
16509 # Commands used to build a loadable module (assumed same as above if empty)
16510 module_cmds=$lt_module_cmds_F77
16511 module_expsym_cmds=$lt_module_expsym_cmds_F77
16513 # Commands to strip libraries.
16514 old_striplib=$lt_old_striplib
16515 striplib=$lt_striplib
16517 # Dependencies to place before the objects being linked to create a
16518 # shared library.
16519 predep_objects=$lt_predep_objects_F77
16521 # Dependencies to place after the objects being linked to create a
16522 # shared library.
16523 postdep_objects=$lt_postdep_objects_F77
16525 # Dependencies to place before the objects being linked to create a
16526 # shared library.
16527 predeps=$lt_predeps_F77
16529 # Dependencies to place after the objects being linked to create a
16530 # shared library.
16531 postdeps=$lt_postdeps_F77
16533 # The directories searched by this compiler when creating a shared
16534 # library
16535 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16537 # The library search path used internally by the compiler when linking
16538 # a shared library.
16539 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16541 # Method to check whether dependent libraries are shared objects.
16542 deplibs_check_method=$lt_deplibs_check_method
16544 # Command to use when deplibs_check_method == file_magic.
16545 file_magic_cmd=$lt_file_magic_cmd
16547 # Flag that allows shared libraries with undefined symbols to be built.
16548 allow_undefined_flag=$lt_allow_undefined_flag_F77
16550 # Flag that forces no undefined symbols.
16551 no_undefined_flag=$lt_no_undefined_flag_F77
16553 # Commands used to finish a libtool library installation in a directory.
16554 finish_cmds=$lt_finish_cmds
16556 # Same as above, but a single script fragment to be evaled but not shown.
16557 finish_eval=$lt_finish_eval
16559 # Take the output of nm and produce a listing of raw symbols and C names.
16560 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16562 # Transform the output of nm in a proper C declaration
16563 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16565 # Transform the output of nm in a C name address pair
16566 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16568 # This is the shared library runtime path variable.
16569 runpath_var=$runpath_var
16571 # This is the shared library path variable.
16572 shlibpath_var=$shlibpath_var
16574 # Is shlibpath searched before the hard-coded library search path?
16575 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16577 # How to hardcode a shared library path into an executable.
16578 hardcode_action=$hardcode_action_F77
16580 # Whether we should hardcode library paths into libraries.
16581 hardcode_into_libs=$hardcode_into_libs
16583 # Flag to hardcode \$libdir into a binary during linking.
16584 # This must work even if \$libdir does not exist.
16585 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16587 # If ld is used when linking, flag to hardcode \$libdir into
16588 # a binary during linking. This must work even if \$libdir does
16589 # not exist.
16590 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16592 # Whether we need a single -rpath flag with a separated argument.
16593 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16595 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16596 # resulting binary.
16597 hardcode_direct=$hardcode_direct_F77
16599 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16600 # resulting binary.
16601 hardcode_minus_L=$hardcode_minus_L_F77
16603 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16604 # the resulting binary.
16605 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16607 # Set to yes if building a shared library automatically hardcodes DIR into the library
16608 # and all subsequent libraries and executables linked against it.
16609 hardcode_automatic=$hardcode_automatic_F77
16611 # Variables whose values should be saved in libtool wrapper scripts and
16612 # restored at relink time.
16613 variables_saved_for_relink="$variables_saved_for_relink"
16615 # Whether libtool must link a program against all its dependency libraries.
16616 link_all_deplibs=$link_all_deplibs_F77
16618 # Compile-time system search path for libraries
16619 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16621 # Run-time system search path for libraries
16622 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16624 # Fix the shell variable \$srcfile for the compiler.
16625 fix_srcfile_path=$lt_fix_srcfile_path
16627 # Set to yes if exported symbols are required.
16628 always_export_symbols=$always_export_symbols_F77
16630 # The commands to list exported symbols.
16631 export_symbols_cmds=$lt_export_symbols_cmds_F77
16633 # The commands to extract the exported symbol list from a shared archive.
16634 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16636 # Symbols that should not be listed in the preloaded symbols.
16637 exclude_expsyms=$lt_exclude_expsyms_F77
16639 # Symbols that must always be exported.
16640 include_expsyms=$lt_include_expsyms_F77
16642 # ### END LIBTOOL TAG CONFIG: $tagname
16644 __EOF__
16647 else
16648   # If there is no Makefile yet, we rely on a make rule to execute
16649   # `config.status --recheck' to rerun these tests and create the
16650   # libtool script then.
16651   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16652   if test -f "$ltmain_in"; then
16653     test -f Makefile && make "$ltmain"
16654   fi
16658 ac_ext=c
16659 ac_cpp='$CPP $CPPFLAGS'
16660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16664 CC="$lt_save_CC"
16666         else
16667           tagname=""
16668         fi
16669         ;;
16671       GCJ)
16672         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16673           
16675 # Source file extension for Java test sources.
16676 ac_ext=java
16678 # Object file extension for compiled Java test sources.
16679 objext=o
16680 objext_GCJ=$objext
16682 # Code to be used in simple compile tests
16683 lt_simple_compile_test_code="class foo {}"
16685 # Code to be used in simple link tests
16686 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16688 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16690 # If no C compiler was specified, use CC.
16691 LTCC=${LTCC-"$CC"}
16693 # If no C compiler flags were specified, use CFLAGS.
16694 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16696 # Allow CC to be a program name with arguments.
16697 compiler=$CC
16700 # save warnings/boilerplate of simple test code
16701 ac_outfile=conftest.$ac_objext
16702 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16703 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16704 _lt_compiler_boilerplate=`cat conftest.err`
16705 $rm conftest*
16707 ac_outfile=conftest.$ac_objext
16708 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16709 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16710 _lt_linker_boilerplate=`cat conftest.err`
16711 $rm -r conftest*
16714 # Allow CC to be a program name with arguments.
16715 lt_save_CC="$CC"
16716 CC=${GCJ-"gcj"}
16717 compiler=$CC
16718 compiler_GCJ=$CC
16719 for cc_temp in $compiler""; do
16720   case $cc_temp in
16721     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16722     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16723     \-*) ;;
16724     *) break;;
16725   esac
16726 done
16727 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16730 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16731 archive_cmds_need_lc_GCJ=no
16733 old_archive_cmds_GCJ=$old_archive_cmds
16736 lt_prog_compiler_no_builtin_flag_GCJ=
16738 if test "$GCC" = yes; then
16739   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16741   
16742 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16743 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16744 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16745   echo $ECHO_N "(cached) $ECHO_C" >&6
16746 else
16747   lt_cv_prog_compiler_rtti_exceptions=no
16748   ac_outfile=conftest.$ac_objext
16749    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16750    lt_compiler_flag="-fno-rtti -fno-exceptions"
16751    # Insert the option either (1) after the last *FLAGS variable, or
16752    # (2) before a word containing "conftest.", or (3) at the end.
16753    # Note that $ac_compile itself does not contain backslashes and begins
16754    # with a dollar sign (not a hyphen), so the echo should work correctly.
16755    # The option is referenced via a variable to avoid confusing sed.
16756    lt_compile=`echo "$ac_compile" | $SED \
16757    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16758    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16759    -e 's:$: $lt_compiler_flag:'`
16760    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16761    (eval "$lt_compile" 2>conftest.err)
16762    ac_status=$?
16763    cat conftest.err >&5
16764    echo "$as_me:__oline__: \$? = $ac_status" >&5
16765    if (exit $ac_status) && test -s "$ac_outfile"; then
16766      # The compiler can only warn and ignore the option if not recognized
16767      # So say no if there are warnings other than the usual output.
16768      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16769      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16770      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16771        lt_cv_prog_compiler_rtti_exceptions=yes
16772      fi
16773    fi
16774    $rm conftest*
16777 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16778 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16780 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16781     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16782 else
16783     :
16788 lt_prog_compiler_wl_GCJ=
16789 lt_prog_compiler_pic_GCJ=
16790 lt_prog_compiler_static_GCJ=
16792 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16793 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16795   if test "$GCC" = yes; then
16796     lt_prog_compiler_wl_GCJ='-Wl,'
16797     lt_prog_compiler_static_GCJ='-static'
16799     case $host_os in
16800       aix*)
16801       # All AIX code is PIC.
16802       if test "$host_cpu" = ia64; then
16803         # AIX 5 now supports IA64 processor
16804         lt_prog_compiler_static_GCJ='-Bstatic'
16805       fi
16806       ;;
16808     amigaos*)
16809       # FIXME: we need at least 68020 code to build shared libraries, but
16810       # adding the `-m68020' flag to GCC prevents building anything better,
16811       # like `-m68040'.
16812       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16813       ;;
16815     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16816       # PIC is the default for these OSes.
16817       ;;
16819     mingw* | cygwin* | pw32* | os2*)
16820       # This hack is so that the source file can tell whether it is being
16821       # built for inclusion in a dll (and should export symbols for example).
16822       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16823       # (--disable-auto-import) libraries
16824       
16825       ;;
16827     darwin* | rhapsody*)
16828       # PIC is the default on this platform
16829       # Common symbols not allowed in MH_DYLIB files
16830       lt_prog_compiler_pic_GCJ='-fno-common'
16831       ;;
16833     interix[3-9]*)
16834       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16835       # Instead, we relocate shared libraries at runtime.
16836       ;;
16838     msdosdjgpp*)
16839       # Just because we use GCC doesn't mean we suddenly get shared libraries
16840       # on systems that don't support them.
16841       lt_prog_compiler_can_build_shared_GCJ=no
16842       enable_shared=no
16843       ;;
16845     sysv4*MP*)
16846       if test -d /usr/nec; then
16847         lt_prog_compiler_pic_GCJ=-Kconform_pic
16848       fi
16849       ;;
16851     hpux*)
16852       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16853       # not for PA HP-UX.
16854       case $host_cpu in
16855       hppa*64*|ia64*)
16856         # +Z the default
16857         ;;
16858       *)
16859         lt_prog_compiler_pic_GCJ='-fPIC'
16860         ;;
16861       esac
16862       ;;
16864     *)
16865       lt_prog_compiler_pic_GCJ='-fPIC'
16866       ;;
16867     esac
16868   else
16869     # PORTME Check for flag to pass linker flags through the system compiler.
16870     case $host_os in
16871     aix*)
16872       lt_prog_compiler_wl_GCJ='-Wl,'
16873       if test "$host_cpu" = ia64; then
16874         # AIX 5 now supports IA64 processor
16875         lt_prog_compiler_static_GCJ='-Bstatic'
16876       else
16877         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16878       fi
16879       ;;
16880       darwin*)
16881         # PIC is the default on this platform
16882         # Common symbols not allowed in MH_DYLIB files
16883        case $cc_basename in
16884          xlc*)
16885          lt_prog_compiler_pic_GCJ='-qnocommon'
16886          lt_prog_compiler_wl_GCJ='-Wl,'
16887          ;;
16888        esac
16889        ;;
16891     mingw* | cygwin* | pw32* | os2*)
16892       # This hack is so that the source file can tell whether it is being
16893       # built for inclusion in a dll (and should export symbols for example).
16894       
16895       ;;
16897     hpux9* | hpux10* | hpux11*)
16898       lt_prog_compiler_wl_GCJ='-Wl,'
16899       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16900       # not for PA HP-UX.
16901       case $host_cpu in
16902       hppa*64*|ia64*)
16903         # +Z the default
16904         ;;
16905       *)
16906         lt_prog_compiler_pic_GCJ='+Z'
16907         ;;
16908       esac
16909       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16910       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16911       ;;
16913     irix5* | irix6* | nonstopux*)
16914       lt_prog_compiler_wl_GCJ='-Wl,'
16915       # PIC (with -KPIC) is the default.
16916       lt_prog_compiler_static_GCJ='-non_shared'
16917       ;;
16919     newsos6)
16920       lt_prog_compiler_pic_GCJ='-KPIC'
16921       lt_prog_compiler_static_GCJ='-Bstatic'
16922       ;;
16924     linux* | k*bsd*-gnu)
16925       case $cc_basename in
16926       icc* | ecc*)
16927         lt_prog_compiler_wl_GCJ='-Wl,'
16928         lt_prog_compiler_pic_GCJ='-KPIC'
16929         lt_prog_compiler_static_GCJ='-static'
16930         ;;
16931       pgcc* | pgf77* | pgf90* | pgf95*)
16932         # Portland Group compilers (*not* the Pentium gcc compiler,
16933         # which looks to be a dead project)
16934         lt_prog_compiler_wl_GCJ='-Wl,'
16935         lt_prog_compiler_pic_GCJ='-fpic'
16936         lt_prog_compiler_static_GCJ='-Bstatic'
16937         ;;
16938       ccc*)
16939         lt_prog_compiler_wl_GCJ='-Wl,'
16940         # All Alpha code is PIC.
16941         lt_prog_compiler_static_GCJ='-non_shared'
16942         ;;
16943       *)
16944         case `$CC -V 2>&1 | sed 5q` in
16945         *Sun\ C*)
16946           # Sun C 5.9
16947           lt_prog_compiler_pic_GCJ='-KPIC'
16948           lt_prog_compiler_static_GCJ='-Bstatic'
16949           lt_prog_compiler_wl_GCJ='-Wl,'
16950           ;;
16951         *Sun\ F*)
16952           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16953           lt_prog_compiler_pic_GCJ='-KPIC'
16954           lt_prog_compiler_static_GCJ='-Bstatic'
16955           lt_prog_compiler_wl_GCJ=''
16956           ;;
16957         esac
16958         ;;
16959       esac
16960       ;;
16962     osf3* | osf4* | osf5*)
16963       lt_prog_compiler_wl_GCJ='-Wl,'
16964       # All OSF/1 code is PIC.
16965       lt_prog_compiler_static_GCJ='-non_shared'
16966       ;;
16968     rdos*)
16969       lt_prog_compiler_static_GCJ='-non_shared'
16970       ;;
16972     solaris*)
16973       lt_prog_compiler_pic_GCJ='-KPIC'
16974       lt_prog_compiler_static_GCJ='-Bstatic'
16975       case $cc_basename in
16976       f77* | f90* | f95*)
16977         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16978       *)
16979         lt_prog_compiler_wl_GCJ='-Wl,';;
16980       esac
16981       ;;
16983     sunos4*)
16984       lt_prog_compiler_wl_GCJ='-Qoption ld '
16985       lt_prog_compiler_pic_GCJ='-PIC'
16986       lt_prog_compiler_static_GCJ='-Bstatic'
16987       ;;
16989     sysv4 | sysv4.2uw2* | sysv4.3*)
16990       lt_prog_compiler_wl_GCJ='-Wl,'
16991       lt_prog_compiler_pic_GCJ='-KPIC'
16992       lt_prog_compiler_static_GCJ='-Bstatic'
16993       ;;
16995     sysv4*MP*)
16996       if test -d /usr/nec ;then
16997         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16998         lt_prog_compiler_static_GCJ='-Bstatic'
16999       fi
17000       ;;
17002     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17003       lt_prog_compiler_wl_GCJ='-Wl,'
17004       lt_prog_compiler_pic_GCJ='-KPIC'
17005       lt_prog_compiler_static_GCJ='-Bstatic'
17006       ;;
17008     unicos*)
17009       lt_prog_compiler_wl_GCJ='-Wl,'
17010       lt_prog_compiler_can_build_shared_GCJ=no
17011       ;;
17013     uts4*)
17014       lt_prog_compiler_pic_GCJ='-pic'
17015       lt_prog_compiler_static_GCJ='-Bstatic'
17016       ;;
17018     *)
17019       lt_prog_compiler_can_build_shared_GCJ=no
17020       ;;
17021     esac
17022   fi
17024 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17025 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17028 # Check to make sure the PIC flag actually works.
17030 if test -n "$lt_prog_compiler_pic_GCJ"; then
17031   
17032 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17033 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17034 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17035   echo $ECHO_N "(cached) $ECHO_C" >&6
17036 else
17037   lt_cv_prog_compiler_pic_works_GCJ=no
17038   ac_outfile=conftest.$ac_objext
17039    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17040    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17041    # Insert the option either (1) after the last *FLAGS variable, or
17042    # (2) before a word containing "conftest.", or (3) at the end.
17043    # Note that $ac_compile itself does not contain backslashes and begins
17044    # with a dollar sign (not a hyphen), so the echo should work correctly.
17045    # The option is referenced via a variable to avoid confusing sed.
17046    lt_compile=`echo "$ac_compile" | $SED \
17047    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17048    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17049    -e 's:$: $lt_compiler_flag:'`
17050    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17051    (eval "$lt_compile" 2>conftest.err)
17052    ac_status=$?
17053    cat conftest.err >&5
17054    echo "$as_me:__oline__: \$? = $ac_status" >&5
17055    if (exit $ac_status) && test -s "$ac_outfile"; then
17056      # The compiler can only warn and ignore the option if not recognized
17057      # So say no if there are warnings other than the usual output.
17058      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17059      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17060      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17061        lt_cv_prog_compiler_pic_works_GCJ=yes
17062      fi
17063    fi
17064    $rm conftest*
17067 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17068 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17070 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17071     case $lt_prog_compiler_pic_GCJ in
17072      "" | " "*) ;;
17073      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17074      esac
17075 else
17076     lt_prog_compiler_pic_GCJ=
17077      lt_prog_compiler_can_build_shared_GCJ=no
17081 case $host_os in
17082   # For platforms which do not support PIC, -DPIC is meaningless:
17083   *djgpp*)
17084     lt_prog_compiler_pic_GCJ=
17085     ;;
17086   *)
17087     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17088     ;;
17089 esac
17092 # Check to make sure the static flag actually works.
17094 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17095 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17096 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17097 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17098   echo $ECHO_N "(cached) $ECHO_C" >&6
17099 else
17100   lt_cv_prog_compiler_static_works_GCJ=no
17101    save_LDFLAGS="$LDFLAGS"
17102    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17103    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17104    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17105      # The linker can only warn and ignore the option if not recognized
17106      # So say no if there are warnings
17107      if test -s conftest.err; then
17108        # Append any errors to the config.log.
17109        cat conftest.err 1>&5
17110        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17111        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17112        if diff conftest.exp conftest.er2 >/dev/null; then
17113          lt_cv_prog_compiler_static_works_GCJ=yes
17114        fi
17115      else
17116        lt_cv_prog_compiler_static_works_GCJ=yes
17117      fi
17118    fi
17119    $rm -r conftest*
17120    LDFLAGS="$save_LDFLAGS"
17123 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17124 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17126 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17127     :
17128 else
17129     lt_prog_compiler_static_GCJ=
17133 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17134 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17135 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17136   echo $ECHO_N "(cached) $ECHO_C" >&6
17137 else
17138   lt_cv_prog_compiler_c_o_GCJ=no
17139    $rm -r conftest 2>/dev/null
17140    mkdir conftest
17141    cd conftest
17142    mkdir out
17143    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17145    lt_compiler_flag="-o out/conftest2.$ac_objext"
17146    # Insert the option either (1) after the last *FLAGS variable, or
17147    # (2) before a word containing "conftest.", or (3) at the end.
17148    # Note that $ac_compile itself does not contain backslashes and begins
17149    # with a dollar sign (not a hyphen), so the echo should work correctly.
17150    lt_compile=`echo "$ac_compile" | $SED \
17151    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17152    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17153    -e 's:$: $lt_compiler_flag:'`
17154    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17155    (eval "$lt_compile" 2>out/conftest.err)
17156    ac_status=$?
17157    cat out/conftest.err >&5
17158    echo "$as_me:__oline__: \$? = $ac_status" >&5
17159    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17160    then
17161      # The compiler can only warn and ignore the option if not recognized
17162      # So say no if there are warnings
17163      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17164      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17165      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17166        lt_cv_prog_compiler_c_o_GCJ=yes
17167      fi
17168    fi
17169    chmod u+w . 2>&5
17170    $rm conftest*
17171    # SGI C++ compiler will create directory out/ii_files/ for
17172    # template instantiation
17173    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17174    $rm out/* && rmdir out
17175    cd ..
17176    rmdir conftest
17177    $rm conftest*
17180 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17181 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17184 hard_links="nottested"
17185 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17186   # do not overwrite the value of need_locks provided by the user
17187   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17188 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17189   hard_links=yes
17190   $rm conftest*
17191   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17192   touch conftest.a
17193   ln conftest.a conftest.b 2>&5 || hard_links=no
17194   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17195   { echo "$as_me:$LINENO: result: $hard_links" >&5
17196 echo "${ECHO_T}$hard_links" >&6; }
17197   if test "$hard_links" = no; then
17198     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17199 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17200     need_locks=warn
17201   fi
17202 else
17203   need_locks=no
17206 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17207 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17209   runpath_var=
17210   allow_undefined_flag_GCJ=
17211   enable_shared_with_static_runtimes_GCJ=no
17212   archive_cmds_GCJ=
17213   archive_expsym_cmds_GCJ=
17214   old_archive_From_new_cmds_GCJ=
17215   old_archive_from_expsyms_cmds_GCJ=
17216   export_dynamic_flag_spec_GCJ=
17217   whole_archive_flag_spec_GCJ=
17218   thread_safe_flag_spec_GCJ=
17219   hardcode_libdir_flag_spec_GCJ=
17220   hardcode_libdir_flag_spec_ld_GCJ=
17221   hardcode_libdir_separator_GCJ=
17222   hardcode_direct_GCJ=no
17223   hardcode_minus_L_GCJ=no
17224   hardcode_shlibpath_var_GCJ=unsupported
17225   link_all_deplibs_GCJ=unknown
17226   hardcode_automatic_GCJ=no
17227   module_cmds_GCJ=
17228   module_expsym_cmds_GCJ=
17229   always_export_symbols_GCJ=no
17230   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17231   # include_expsyms should be a list of space-separated symbols to be *always*
17232   # included in the symbol list
17233   include_expsyms_GCJ=
17234   # exclude_expsyms can be an extended regexp of symbols to exclude
17235   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17236   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17237   # as well as any symbol that contains `d'.
17238   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17239   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17240   # platforms (ab)use it in PIC code, but their linkers get confused if
17241   # the symbol is explicitly referenced.  Since portable code cannot
17242   # rely on this symbol name, it's probably fine to never include it in
17243   # preloaded symbol tables.
17244   # Exclude shared library initialization/finalization symbols.
17245   extract_expsyms_cmds=
17246   # Just being paranoid about ensuring that cc_basename is set.
17247   for cc_temp in $compiler""; do
17248   case $cc_temp in
17249     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17250     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17251     \-*) ;;
17252     *) break;;
17253   esac
17254 done
17255 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17257   case $host_os in
17258   cygwin* | mingw* | pw32*)
17259     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17260     # When not using gcc, we currently assume that we are using
17261     # Microsoft Visual C++.
17262     if test "$GCC" != yes; then
17263       with_gnu_ld=no
17264     fi
17265     ;;
17266   interix*)
17267     # we just hope/assume this is gcc and not c89 (= MSVC++)
17268     with_gnu_ld=yes
17269     ;;
17270   openbsd*)
17271     with_gnu_ld=no
17272     ;;
17273   esac
17275   ld_shlibs_GCJ=yes
17276   if test "$with_gnu_ld" = yes; then
17277     # If archive_cmds runs LD, not CC, wlarc should be empty
17278     wlarc='${wl}'
17280     # Set some defaults for GNU ld with shared library support. These
17281     # are reset later if shared libraries are not supported. Putting them
17282     # here allows them to be overridden if necessary.
17283     runpath_var=LD_RUN_PATH
17284     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17285     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17286     # ancient GNU ld didn't support --whole-archive et. al.
17287     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17288         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17289       else
17290         whole_archive_flag_spec_GCJ=
17291     fi
17292     supports_anon_versioning=no
17293     case `$LD -v 2>/dev/null` in
17294       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17295       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17296       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17297       *\ 2.11.*) ;; # other 2.11 versions
17298       *) supports_anon_versioning=yes ;;
17299     esac
17301     # See if GNU ld supports shared libraries.
17302     case $host_os in
17303     aix[3-9]*)
17304       # On AIX/PPC, the GNU linker is very broken
17305       if test "$host_cpu" != ia64; then
17306         ld_shlibs_GCJ=no
17307         cat <<EOF 1>&2
17309 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17310 *** to be unable to reliably create shared libraries on AIX.
17311 *** Therefore, libtool is disabling shared libraries support.  If you
17312 *** really care for shared libraries, you may want to modify your PATH
17313 *** so that a non-GNU linker is found, and then restart.
17316       fi
17317       ;;
17319     amigaos*)
17320       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)'
17321       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17322       hardcode_minus_L_GCJ=yes
17324       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17325       # that the semantics of dynamic libraries on AmigaOS, at least up
17326       # to version 4, is to share data among multiple programs linked
17327       # with the same dynamic library.  Since this doesn't match the
17328       # behavior of shared libraries on other platforms, we can't use
17329       # them.
17330       ld_shlibs_GCJ=no
17331       ;;
17333     beos*)
17334       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17335         allow_undefined_flag_GCJ=unsupported
17336         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17337         # support --undefined.  This deserves some investigation.  FIXME
17338         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17339       else
17340         ld_shlibs_GCJ=no
17341       fi
17342       ;;
17344     cygwin* | mingw* | pw32*)
17345       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17346       # as there is no search path for DLLs.
17347       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17348       allow_undefined_flag_GCJ=unsupported
17349       always_export_symbols_GCJ=no
17350       enable_shared_with_static_runtimes_GCJ=yes
17351       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17353       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17354         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17355         # If the export-symbols file already is a .def file (1st line
17356         # is EXPORTS), use it as is; otherwise, prepend...
17357         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17358           cp $export_symbols $output_objdir/$soname.def;
17359         else
17360           echo EXPORTS > $output_objdir/$soname.def;
17361           cat $export_symbols >> $output_objdir/$soname.def;
17362         fi~
17363         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17364       else
17365         ld_shlibs_GCJ=no
17366       fi
17367       ;;
17369     interix[3-9]*)
17370       hardcode_direct_GCJ=no
17371       hardcode_shlibpath_var_GCJ=no
17372       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17373       export_dynamic_flag_spec_GCJ='${wl}-E'
17374       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17375       # Instead, shared libraries are loaded at an image base (0x10000000 by
17376       # default) and relocated if they conflict, which is a slow very memory
17377       # consuming and fragmenting process.  To avoid this, we pick a random,
17378       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17379       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17380       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17381       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17382       ;;
17384     gnu* | linux* | k*bsd*-gnu)
17385       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17386         tmp_addflag=
17387         case $cc_basename,$host_cpu in
17388         pgcc*)                          # Portland Group C compiler
17389           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'
17390           tmp_addflag=' $pic_flag'
17391           ;;
17392         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17393           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'
17394           tmp_addflag=' $pic_flag -Mnomain' ;;
17395         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17396           tmp_addflag=' -i_dynamic' ;;
17397         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17398           tmp_addflag=' -i_dynamic -nofor_main' ;;
17399         ifc* | ifort*)                  # Intel Fortran compiler
17400           tmp_addflag=' -nofor_main' ;;
17401         esac
17402         case `$CC -V 2>&1 | sed 5q` in
17403         *Sun\ C*)                       # Sun C 5.9
17404           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17405           tmp_sharedflag='-G' ;;
17406         *Sun\ F*)                       # Sun Fortran 8.3
17407           tmp_sharedflag='-G' ;;
17408         *)
17409           tmp_sharedflag='-shared' ;;
17410         esac
17411         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17413         if test $supports_anon_versioning = yes; then
17414           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17415   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17416   $echo "local: *; };" >> $output_objdir/$libname.ver~
17417           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17418         fi
17419         link_all_deplibs_GCJ=no
17420       else
17421         ld_shlibs_GCJ=no
17422       fi
17423       ;;
17425     netbsd* | netbsdelf*-gnu)
17426       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17427         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17428         wlarc=
17429       else
17430         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17431         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17432       fi
17433       ;;
17435     solaris*)
17436       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17437         ld_shlibs_GCJ=no
17438         cat <<EOF 1>&2
17440 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17441 *** create shared libraries on Solaris systems.  Therefore, libtool
17442 *** is disabling shared libraries support.  We urge you to upgrade GNU
17443 *** binutils to release 2.9.1 or newer.  Another option is to modify
17444 *** your PATH or compiler configuration so that the native linker is
17445 *** used, and then restart.
17448       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17449         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17450         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17451       else
17452         ld_shlibs_GCJ=no
17453       fi
17454       ;;
17456     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17457       case `$LD -v 2>&1` in
17458         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17459         ld_shlibs_GCJ=no
17460         cat <<_LT_EOF 1>&2
17462 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17463 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17464 *** is disabling shared libraries support.  We urge you to upgrade GNU
17465 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17466 *** your PATH or compiler configuration so that the native linker is
17467 *** used, and then restart.
17469 _LT_EOF
17470         ;;
17471         *)
17472           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17473             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17474             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17475             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17476           else
17477             ld_shlibs_GCJ=no
17478           fi
17479         ;;
17480       esac
17481       ;;
17483     sunos4*)
17484       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17485       wlarc=
17486       hardcode_direct_GCJ=yes
17487       hardcode_shlibpath_var_GCJ=no
17488       ;;
17490     *)
17491       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17492         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17493         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17494       else
17495         ld_shlibs_GCJ=no
17496       fi
17497       ;;
17498     esac
17500     if test "$ld_shlibs_GCJ" = no; then
17501       runpath_var=
17502       hardcode_libdir_flag_spec_GCJ=
17503       export_dynamic_flag_spec_GCJ=
17504       whole_archive_flag_spec_GCJ=
17505     fi
17506   else
17507     # PORTME fill in a description of your system's linker (not GNU ld)
17508     case $host_os in
17509     aix3*)
17510       allow_undefined_flag_GCJ=unsupported
17511       always_export_symbols_GCJ=yes
17512       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'
17513       # Note: this linker hardcodes the directories in LIBPATH if there
17514       # are no directories specified by -L.
17515       hardcode_minus_L_GCJ=yes
17516       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17517         # Neither direct hardcoding nor static linking is supported with a
17518         # broken collect2.
17519         hardcode_direct_GCJ=unsupported
17520       fi
17521       ;;
17523     aix[4-9]*)
17524       if test "$host_cpu" = ia64; then
17525         # On IA64, the linker does run time linking by default, so we don't
17526         # have to do anything special.
17527         aix_use_runtimelinking=no
17528         exp_sym_flag='-Bexport'
17529         no_entry_flag=""
17530       else
17531         # If we're using GNU nm, then we don't want the "-C" option.
17532         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17533         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17534           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'
17535         else
17536           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'
17537         fi
17538         aix_use_runtimelinking=no
17540         # Test if we are trying to use run time linking or normal
17541         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17542         # need to do runtime linking.
17543         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17544           for ld_flag in $LDFLAGS; do
17545           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17546             aix_use_runtimelinking=yes
17547             break
17548           fi
17549           done
17550           ;;
17551         esac
17553         exp_sym_flag='-bexport'
17554         no_entry_flag='-bnoentry'
17555       fi
17557       # When large executables or shared objects are built, AIX ld can
17558       # have problems creating the table of contents.  If linking a library
17559       # or program results in "error TOC overflow" add -mminimal-toc to
17560       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17561       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17563       archive_cmds_GCJ=''
17564       hardcode_direct_GCJ=yes
17565       hardcode_libdir_separator_GCJ=':'
17566       link_all_deplibs_GCJ=yes
17568       if test "$GCC" = yes; then
17569         case $host_os in aix4.[012]|aix4.[012].*)
17570         # We only want to do this on AIX 4.2 and lower, the check
17571         # below for broken collect2 doesn't work under 4.3+
17572           collect2name=`${CC} -print-prog-name=collect2`
17573           if test -f "$collect2name" && \
17574            strings "$collect2name" | grep resolve_lib_name >/dev/null
17575           then
17576           # We have reworked collect2
17577           :
17578           else
17579           # We have old collect2
17580           hardcode_direct_GCJ=unsupported
17581           # It fails to find uninstalled libraries when the uninstalled
17582           # path is not listed in the libpath.  Setting hardcode_minus_L
17583           # to unsupported forces relinking
17584           hardcode_minus_L_GCJ=yes
17585           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17586           hardcode_libdir_separator_GCJ=
17587           fi
17588           ;;
17589         esac
17590         shared_flag='-shared'
17591         if test "$aix_use_runtimelinking" = yes; then
17592           shared_flag="$shared_flag "'${wl}-G'
17593         fi
17594       else
17595         # not using gcc
17596         if test "$host_cpu" = ia64; then
17597         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17598         # chokes on -Wl,-G. The following line is correct:
17599           shared_flag='-G'
17600         else
17601           if test "$aix_use_runtimelinking" = yes; then
17602             shared_flag='${wl}-G'
17603           else
17604             shared_flag='${wl}-bM:SRE'
17605           fi
17606         fi
17607       fi
17609       # It seems that -bexpall does not export symbols beginning with
17610       # underscore (_), so it is better to generate a list of symbols to export.
17611       always_export_symbols_GCJ=yes
17612       if test "$aix_use_runtimelinking" = yes; then
17613         # Warning - without using the other runtime loading flags (-brtl),
17614         # -berok will link without error, but may produce a broken library.
17615         allow_undefined_flag_GCJ='-berok'
17616        # Determine the default libpath from the value encoded in an empty executable.
17617        cat >conftest.$ac_ext <<_ACEOF
17618 /* confdefs.h.  */
17619 _ACEOF
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h.  */
17625 main ()
17628   ;
17629   return 0;
17631 _ACEOF
17632 rm -f conftest.$ac_objext conftest$ac_exeext
17633 if { (ac_try="$ac_link"
17634 case "(($ac_try" in
17635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636   *) ac_try_echo=$ac_try;;
17637 esac
17638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17639   (eval "$ac_link") 2>conftest.er1
17640   ac_status=$?
17641   grep -v '^ *+' conftest.er1 >conftest.err
17642   rm -f conftest.er1
17643   cat conftest.err >&5
17644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645   (exit $ac_status); } && {
17646          test -z "$ac_c_werror_flag" ||
17647          test ! -s conftest.err
17648        } && test -s conftest$ac_exeext &&
17649        $as_test_x conftest$ac_exeext; then
17650   
17651 lt_aix_libpath_sed='
17652     /Import File Strings/,/^$/ {
17653         /^0/ {
17654             s/^0  *\(.*\)$/\1/
17655             p
17656         }
17657     }'
17658 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17659 # Check for a 64-bit object if we didn't find anything.
17660 if test -z "$aix_libpath"; then
17661   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17663 else
17664   echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17667         
17670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17671       conftest$ac_exeext conftest.$ac_ext
17672 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17674        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17675         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17676        else
17677         if test "$host_cpu" = ia64; then
17678           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17679           allow_undefined_flag_GCJ="-z nodefs"
17680           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17681         else
17682          # Determine the default libpath from the value encoded in an empty executable.
17683          cat >conftest.$ac_ext <<_ACEOF
17684 /* confdefs.h.  */
17685 _ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h.  */
17691 main ()
17694   ;
17695   return 0;
17697 _ACEOF
17698 rm -f conftest.$ac_objext conftest$ac_exeext
17699 if { (ac_try="$ac_link"
17700 case "(($ac_try" in
17701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17702   *) ac_try_echo=$ac_try;;
17703 esac
17704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17705   (eval "$ac_link") 2>conftest.er1
17706   ac_status=$?
17707   grep -v '^ *+' conftest.er1 >conftest.err
17708   rm -f conftest.er1
17709   cat conftest.err >&5
17710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711   (exit $ac_status); } && {
17712          test -z "$ac_c_werror_flag" ||
17713          test ! -s conftest.err
17714        } && test -s conftest$ac_exeext &&
17715        $as_test_x conftest$ac_exeext; then
17716   
17717 lt_aix_libpath_sed='
17718     /Import File Strings/,/^$/ {
17719         /^0/ {
17720             s/^0  *\(.*\)$/\1/
17721             p
17722         }
17723     }'
17724 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17725 # Check for a 64-bit object if we didn't find anything.
17726 if test -z "$aix_libpath"; then
17727   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17729 else
17730   echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17733         
17736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17737       conftest$ac_exeext conftest.$ac_ext
17738 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17740          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17741           # Warning - without using the other run time loading flags,
17742           # -berok will link without error, but may produce a broken library.
17743           no_undefined_flag_GCJ=' ${wl}-bernotok'
17744           allow_undefined_flag_GCJ=' ${wl}-berok'
17745           # Exported symbols can be pulled into shared objects from archives
17746           whole_archive_flag_spec_GCJ='$convenience'
17747           archive_cmds_need_lc_GCJ=yes
17748           # This is similar to how AIX traditionally builds its shared libraries.
17749           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17750         fi
17751       fi
17752       ;;
17754     amigaos*)
17755       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)'
17756       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17757       hardcode_minus_L_GCJ=yes
17758       # see comment about different semantics on the GNU ld section
17759       ld_shlibs_GCJ=no
17760       ;;
17762     bsdi[45]*)
17763       export_dynamic_flag_spec_GCJ=-rdynamic
17764       ;;
17766     cygwin* | mingw* | pw32*)
17767       # When not using gcc, we currently assume that we are using
17768       # Microsoft Visual C++.
17769       # hardcode_libdir_flag_spec is actually meaningless, as there is
17770       # no search path for DLLs.
17771       hardcode_libdir_flag_spec_GCJ=' '
17772       allow_undefined_flag_GCJ=unsupported
17773       # Tell ltmain to make .lib files, not .a files.
17774       libext=lib
17775       # Tell ltmain to make .dll files, not .so files.
17776       shrext_cmds=".dll"
17777       # FIXME: Setting linknames here is a bad hack.
17778       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17779       # The linker will automatically build a .lib file if we build a DLL.
17780       old_archive_From_new_cmds_GCJ='true'
17781       # FIXME: Should let the user specify the lib program.
17782       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17783       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17784       enable_shared_with_static_runtimes_GCJ=yes
17785       ;;
17787     darwin* | rhapsody*)
17788       case $host_os in
17789         rhapsody* | darwin1.[012])
17790          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17791          ;;
17792        *) # Darwin 1.3 on
17793          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17794            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17795          else
17796            case ${MACOSX_DEPLOYMENT_TARGET} in
17797              10.[012])
17798                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17799                ;;
17800              10.*)
17801                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17802                ;;
17803            esac
17804          fi
17805          ;;
17806       esac
17807       archive_cmds_need_lc_GCJ=no
17808       hardcode_direct_GCJ=no
17809       hardcode_automatic_GCJ=yes
17810       hardcode_shlibpath_var_GCJ=unsupported
17811       whole_archive_flag_spec_GCJ=''
17812       link_all_deplibs_GCJ=yes
17813     if test "$GCC" = yes ; then
17814         output_verbose_link_cmd='echo'
17815         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17816         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17817         archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17818         module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17819     else
17820       case $cc_basename in
17821         xlc*)
17822          output_verbose_link_cmd='echo'
17823          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17824          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17825           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17826          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17827           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}'
17828           ;;
17829        *)
17830          ld_shlibs_GCJ=no
17831           ;;
17832       esac
17833     fi
17834       ;;
17836     dgux*)
17837       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17838       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17839       hardcode_shlibpath_var_GCJ=no
17840       ;;
17842     freebsd1*)
17843       ld_shlibs_GCJ=no
17844       ;;
17846     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17847     # support.  Future versions do this automatically, but an explicit c++rt0.o
17848     # does not break anything, and helps significantly (at the cost of a little
17849     # extra space).
17850     freebsd2.2*)
17851       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17852       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17853       hardcode_direct_GCJ=yes
17854       hardcode_shlibpath_var_GCJ=no
17855       ;;
17857     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17858     freebsd2*)
17859       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17860       hardcode_direct_GCJ=yes
17861       hardcode_minus_L_GCJ=yes
17862       hardcode_shlibpath_var_GCJ=no
17863       ;;
17865     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17866     freebsd* | dragonfly*)
17867       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17868       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17869       hardcode_direct_GCJ=yes
17870       hardcode_shlibpath_var_GCJ=no
17871       ;;
17873     hpux9*)
17874       if test "$GCC" = yes; then
17875         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'
17876       else
17877         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'
17878       fi
17879       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17880       hardcode_libdir_separator_GCJ=:
17881       hardcode_direct_GCJ=yes
17883       # hardcode_minus_L: Not really in the search PATH,
17884       # but as the default location of the library.
17885       hardcode_minus_L_GCJ=yes
17886       export_dynamic_flag_spec_GCJ='${wl}-E'
17887       ;;
17889     hpux10*)
17890       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17891         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17892       else
17893         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17894       fi
17895       if test "$with_gnu_ld" = no; then
17896         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17897         hardcode_libdir_separator_GCJ=:
17899         hardcode_direct_GCJ=yes
17900         export_dynamic_flag_spec_GCJ='${wl}-E'
17902         # hardcode_minus_L: Not really in the search PATH,
17903         # but as the default location of the library.
17904         hardcode_minus_L_GCJ=yes
17905       fi
17906       ;;
17908     hpux11*)
17909       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17910         case $host_cpu in
17911         hppa*64*)
17912           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17913           ;;
17914         ia64*)
17915           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17916           ;;
17917         *)
17918           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17919           ;;
17920         esac
17921       else
17922         case $host_cpu in
17923         hppa*64*)
17924           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17925           ;;
17926         ia64*)
17927           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17928           ;;
17929         *)
17930           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17931           ;;
17932         esac
17933       fi
17934       if test "$with_gnu_ld" = no; then
17935         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17936         hardcode_libdir_separator_GCJ=:
17938         case $host_cpu in
17939         hppa*64*|ia64*)
17940           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17941           hardcode_direct_GCJ=no
17942           hardcode_shlibpath_var_GCJ=no
17943           ;;
17944         *)
17945           hardcode_direct_GCJ=yes
17946           export_dynamic_flag_spec_GCJ='${wl}-E'
17948           # hardcode_minus_L: Not really in the search PATH,
17949           # but as the default location of the library.
17950           hardcode_minus_L_GCJ=yes
17951           ;;
17952         esac
17953       fi
17954       ;;
17956     irix5* | irix6* | nonstopux*)
17957       if test "$GCC" = yes; then
17958         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'
17959       else
17960         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'
17961         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17962       fi
17963       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17964       hardcode_libdir_separator_GCJ=:
17965       link_all_deplibs_GCJ=yes
17966       ;;
17968     netbsd* | netbsdelf*-gnu)
17969       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17970         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17971       else
17972         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17973       fi
17974       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17975       hardcode_direct_GCJ=yes
17976       hardcode_shlibpath_var_GCJ=no
17977       ;;
17979     newsos6)
17980       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17981       hardcode_direct_GCJ=yes
17982       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17983       hardcode_libdir_separator_GCJ=:
17984       hardcode_shlibpath_var_GCJ=no
17985       ;;
17987     openbsd*)
17988       if test -f /usr/libexec/ld.so; then
17989         hardcode_direct_GCJ=yes
17990         hardcode_shlibpath_var_GCJ=no
17991         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17992           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17993           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17994           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17995           export_dynamic_flag_spec_GCJ='${wl}-E'
17996         else
17997           case $host_os in
17998            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17999              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18000              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18001              ;;
18002            *)
18003              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18004              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18005              ;;
18006           esac
18007         fi
18008       else
18009         ld_shlibs_GCJ=no
18010       fi
18011       ;;
18013     os2*)
18014       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18015       hardcode_minus_L_GCJ=yes
18016       allow_undefined_flag_GCJ=unsupported
18017       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'
18018       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18019       ;;
18021     osf3*)
18022       if test "$GCC" = yes; then
18023         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18024         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'
18025       else
18026         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18027         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'
18028       fi
18029       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18030       hardcode_libdir_separator_GCJ=:
18031       ;;
18033     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18034       if test "$GCC" = yes; then
18035         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18036         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'
18037         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18038       else
18039         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18040         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'
18041         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~
18042         $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'
18044         # Both c and cxx compiler support -rpath directly
18045         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18046       fi
18047       hardcode_libdir_separator_GCJ=:
18048       ;;
18050     solaris*)
18051       no_undefined_flag_GCJ=' -z text'
18052       if test "$GCC" = yes; then
18053         wlarc='${wl}'
18054         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18055         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18056           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18057       else
18058         wlarc=''
18059         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18060         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18061         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18062       fi
18063       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18064       hardcode_shlibpath_var_GCJ=no
18065       case $host_os in
18066       solaris2.[0-5] | solaris2.[0-5].*) ;;
18067       *)
18068         # The compiler driver will combine and reorder linker options,
18069         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18070         # but is careful enough not to reorder.
18071         # Supported since Solaris 2.6 (maybe 2.5.1?)
18072         if test "$GCC" = yes; then
18073           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18074         else
18075           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18076         fi
18077         ;;
18078       esac
18079       link_all_deplibs_GCJ=yes
18080       ;;
18082     sunos4*)
18083       if test "x$host_vendor" = xsequent; then
18084         # Use $CC to link under sequent, because it throws in some extra .o
18085         # files that make .init and .fini sections work.
18086         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18087       else
18088         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18089       fi
18090       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18091       hardcode_direct_GCJ=yes
18092       hardcode_minus_L_GCJ=yes
18093       hardcode_shlibpath_var_GCJ=no
18094       ;;
18096     sysv4)
18097       case $host_vendor in
18098         sni)
18099           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18100           hardcode_direct_GCJ=yes # is this really true???
18101         ;;
18102         siemens)
18103           ## LD is ld it makes a PLAMLIB
18104           ## CC just makes a GrossModule.
18105           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18106           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18107           hardcode_direct_GCJ=no
18108         ;;
18109         motorola)
18110           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18111           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18112         ;;
18113       esac
18114       runpath_var='LD_RUN_PATH'
18115       hardcode_shlibpath_var_GCJ=no
18116       ;;
18118     sysv4.3*)
18119       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18120       hardcode_shlibpath_var_GCJ=no
18121       export_dynamic_flag_spec_GCJ='-Bexport'
18122       ;;
18124     sysv4*MP*)
18125       if test -d /usr/nec; then
18126         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18127         hardcode_shlibpath_var_GCJ=no
18128         runpath_var=LD_RUN_PATH
18129         hardcode_runpath_var=yes
18130         ld_shlibs_GCJ=yes
18131       fi
18132       ;;
18134     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18135       no_undefined_flag_GCJ='${wl}-z,text'
18136       archive_cmds_need_lc_GCJ=no
18137       hardcode_shlibpath_var_GCJ=no
18138       runpath_var='LD_RUN_PATH'
18140       if test "$GCC" = yes; then
18141         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18142         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18143       else
18144         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18145         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18146       fi
18147       ;;
18149     sysv5* | sco3.2v5* | sco5v6*)
18150       # Note: We can NOT use -z defs as we might desire, because we do not
18151       # link with -lc, and that would cause any symbols used from libc to
18152       # always be unresolved, which means just about no library would
18153       # ever link correctly.  If we're not using GNU ld we use -z text
18154       # though, which does catch some bad symbols but isn't as heavy-handed
18155       # as -z defs.
18156       no_undefined_flag_GCJ='${wl}-z,text'
18157       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18158       archive_cmds_need_lc_GCJ=no
18159       hardcode_shlibpath_var_GCJ=no
18160       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18161       hardcode_libdir_separator_GCJ=':'
18162       link_all_deplibs_GCJ=yes
18163       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18164       runpath_var='LD_RUN_PATH'
18166       if test "$GCC" = yes; then
18167         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18168         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18169       else
18170         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18171         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18172       fi
18173       ;;
18175     uts4*)
18176       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18177       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18178       hardcode_shlibpath_var_GCJ=no
18179       ;;
18181     *)
18182       ld_shlibs_GCJ=no
18183       ;;
18184     esac
18185   fi
18187 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18188 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18189 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18192 # Do we need to explicitly link libc?
18194 case "x$archive_cmds_need_lc_GCJ" in
18195 x|xyes)
18196   # Assume -lc should be added
18197   archive_cmds_need_lc_GCJ=yes
18199   if test "$enable_shared" = yes && test "$GCC" = yes; then
18200     case $archive_cmds_GCJ in
18201     *'~'*)
18202       # FIXME: we may have to deal with multi-command sequences.
18203       ;;
18204     '$CC '*)
18205       # Test whether the compiler implicitly links with -lc since on some
18206       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18207       # to ld, don't add -lc before -lgcc.
18208       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18209 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18210       $rm conftest*
18211       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18213       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18214   (eval $ac_compile) 2>&5
18215   ac_status=$?
18216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217   (exit $ac_status); } 2>conftest.err; then
18218         soname=conftest
18219         lib=conftest
18220         libobjs=conftest.$ac_objext
18221         deplibs=
18222         wl=$lt_prog_compiler_wl_GCJ
18223         pic_flag=$lt_prog_compiler_pic_GCJ
18224         compiler_flags=-v
18225         linker_flags=-v
18226         verstring=
18227         output_objdir=.
18228         libname=conftest
18229         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18230         allow_undefined_flag_GCJ=
18231         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18232   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18233   ac_status=$?
18234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235   (exit $ac_status); }
18236         then
18237           archive_cmds_need_lc_GCJ=no
18238         else
18239           archive_cmds_need_lc_GCJ=yes
18240         fi
18241         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18242       else
18243         cat conftest.err 1>&5
18244       fi
18245       $rm conftest*
18246       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18247 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18248       ;;
18249     esac
18250   fi
18251   ;;
18252 esac
18254 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18255 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18256 library_names_spec=
18257 libname_spec='lib$name'
18258 soname_spec=
18259 shrext_cmds=".so"
18260 postinstall_cmds=
18261 postuninstall_cmds=
18262 finish_cmds=
18263 finish_eval=
18264 shlibpath_var=
18265 shlibpath_overrides_runpath=unknown
18266 version_type=none
18267 dynamic_linker="$host_os ld.so"
18268 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18270 need_lib_prefix=unknown
18271 hardcode_into_libs=no
18273 # when you set need_version to no, make sure it does not cause -set_version
18274 # flags to be left without arguments
18275 need_version=unknown
18277 case $host_os in
18278 aix3*)
18279   version_type=linux
18280   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18281   shlibpath_var=LIBPATH
18283   # AIX 3 has no versioning support, so we append a major version to the name.
18284   soname_spec='${libname}${release}${shared_ext}$major'
18285   ;;
18287 aix[4-9]*)
18288   version_type=linux
18289   need_lib_prefix=no
18290   need_version=no
18291   hardcode_into_libs=yes
18292   if test "$host_cpu" = ia64; then
18293     # AIX 5 supports IA64
18294     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18295     shlibpath_var=LD_LIBRARY_PATH
18296   else
18297     # With GCC up to 2.95.x, collect2 would create an import file
18298     # for dependence libraries.  The import file would start with
18299     # the line `#! .'.  This would cause the generated library to
18300     # depend on `.', always an invalid library.  This was fixed in
18301     # development snapshots of GCC prior to 3.0.
18302     case $host_os in
18303       aix4 | aix4.[01] | aix4.[01].*)
18304       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18305            echo ' yes '
18306            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18307         :
18308       else
18309         can_build_shared=no
18310       fi
18311       ;;
18312     esac
18313     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18314     # soname into executable. Probably we can add versioning support to
18315     # collect2, so additional links can be useful in future.
18316     if test "$aix_use_runtimelinking" = yes; then
18317       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18318       # instead of lib<name>.a to let people know that these are not
18319       # typical AIX shared libraries.
18320       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18321     else
18322       # We preserve .a as extension for shared libraries through AIX4.2
18323       # and later when we are not doing run time linking.
18324       library_names_spec='${libname}${release}.a $libname.a'
18325       soname_spec='${libname}${release}${shared_ext}$major'
18326     fi
18327     shlibpath_var=LIBPATH
18328   fi
18329   ;;
18331 amigaos*)
18332   library_names_spec='$libname.ixlibrary $libname.a'
18333   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18334   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'
18335   ;;
18337 beos*)
18338   library_names_spec='${libname}${shared_ext}'
18339   dynamic_linker="$host_os ld.so"
18340   shlibpath_var=LIBRARY_PATH
18341   ;;
18343 bsdi[45]*)
18344   version_type=linux
18345   need_version=no
18346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18347   soname_spec='${libname}${release}${shared_ext}$major'
18348   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18349   shlibpath_var=LD_LIBRARY_PATH
18350   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18351   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18352   # the default ld.so.conf also contains /usr/contrib/lib and
18353   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18354   # libtool to hard-code these into programs
18355   ;;
18357 cygwin* | mingw* | pw32*)
18358   version_type=windows
18359   shrext_cmds=".dll"
18360   need_version=no
18361   need_lib_prefix=no
18363   case $GCC,$host_os in
18364   yes,cygwin* | yes,mingw* | yes,pw32*)
18365     library_names_spec='$libname.dll.a'
18366     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18367     postinstall_cmds='base_file=`basename \${file}`~
18368       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18369       dldir=$destdir/`dirname \$dlpath`~
18370       test -d \$dldir || mkdir -p \$dldir~
18371       $install_prog $dir/$dlname \$dldir/$dlname~
18372       chmod a+x \$dldir/$dlname'
18373     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18374       dlpath=$dir/\$dldll~
18375        $rm \$dlpath'
18376     shlibpath_overrides_runpath=yes
18378     case $host_os in
18379     cygwin*)
18380       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18381       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18382       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18383       ;;
18384     mingw*)
18385       # MinGW DLLs use traditional 'lib' prefix
18386       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18387       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18388       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18389         # It is most probably a Windows format PATH printed by
18390         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18391         # path with ; separators, and with drive letters. We can handle the
18392         # drive letters (cygwin fileutils understands them), so leave them,
18393         # especially as we might pass files found there to a mingw objdump,
18394         # which wouldn't understand a cygwinified path. Ahh.
18395         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18396       else
18397         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18398       fi
18399       ;;
18400     pw32*)
18401       # pw32 DLLs use 'pw' prefix rather than 'lib'
18402       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18403       ;;
18404     esac
18405     ;;
18407   *)
18408     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18409     ;;
18410   esac
18411   dynamic_linker='Win32 ld.exe'
18412   # FIXME: first we should search . and the directory the executable is in
18413   shlibpath_var=PATH
18414   ;;
18416 darwin* | rhapsody*)
18417   dynamic_linker="$host_os dyld"
18418   version_type=darwin
18419   need_lib_prefix=no
18420   need_version=no
18421   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18422   soname_spec='${libname}${release}${major}$shared_ext'
18423   shlibpath_overrides_runpath=yes
18424   shlibpath_var=DYLD_LIBRARY_PATH
18425   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18426    
18427   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18428   ;;
18430 dgux*)
18431   version_type=linux
18432   need_lib_prefix=no
18433   need_version=no
18434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18435   soname_spec='${libname}${release}${shared_ext}$major'
18436   shlibpath_var=LD_LIBRARY_PATH
18437   ;;
18439 freebsd1*)
18440   dynamic_linker=no
18441   ;;
18443 freebsd* | dragonfly*)
18444   # DragonFly does not have aout.  When/if they implement a new
18445   # versioning mechanism, adjust this.
18446   if test -x /usr/bin/objformat; then
18447     objformat=`/usr/bin/objformat`
18448   else
18449     case $host_os in
18450     freebsd[123]*) objformat=aout ;;
18451     *) objformat=elf ;;
18452     esac
18453   fi
18454   version_type=freebsd-$objformat
18455   case $version_type in
18456     freebsd-elf*)
18457       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18458       need_version=no
18459       need_lib_prefix=no
18460       ;;
18461     freebsd-*)
18462       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18463       need_version=yes
18464       ;;
18465   esac
18466   shlibpath_var=LD_LIBRARY_PATH
18467   case $host_os in
18468   freebsd2*)
18469     shlibpath_overrides_runpath=yes
18470     ;;
18471   freebsd3.[01]* | freebsdelf3.[01]*)
18472     shlibpath_overrides_runpath=yes
18473     hardcode_into_libs=yes
18474     ;;
18475   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18476   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18477     shlibpath_overrides_runpath=no
18478     hardcode_into_libs=yes
18479     ;;
18480   *) # from 4.6 on, and DragonFly
18481     shlibpath_overrides_runpath=yes
18482     hardcode_into_libs=yes
18483     ;;
18484   esac
18485   ;;
18487 gnu*)
18488   version_type=linux
18489   need_lib_prefix=no
18490   need_version=no
18491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18492   soname_spec='${libname}${release}${shared_ext}$major'
18493   shlibpath_var=LD_LIBRARY_PATH
18494   hardcode_into_libs=yes
18495   ;;
18497 hpux9* | hpux10* | hpux11*)
18498   # Give a soname corresponding to the major version so that dld.sl refuses to
18499   # link against other versions.
18500   version_type=sunos
18501   need_lib_prefix=no
18502   need_version=no
18503   case $host_cpu in
18504   ia64*)
18505     shrext_cmds='.so'
18506     hardcode_into_libs=yes
18507     dynamic_linker="$host_os dld.so"
18508     shlibpath_var=LD_LIBRARY_PATH
18509     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18510     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18511     soname_spec='${libname}${release}${shared_ext}$major'
18512     if test "X$HPUX_IA64_MODE" = X32; then
18513       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18514     else
18515       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18516     fi
18517     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18518     ;;
18519    hppa*64*)
18520      shrext_cmds='.sl'
18521      hardcode_into_libs=yes
18522      dynamic_linker="$host_os dld.sl"
18523      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18524      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18525      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18526      soname_spec='${libname}${release}${shared_ext}$major'
18527      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18528      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18529      ;;
18530    *)
18531     shrext_cmds='.sl'
18532     dynamic_linker="$host_os dld.sl"
18533     shlibpath_var=SHLIB_PATH
18534     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18535     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18536     soname_spec='${libname}${release}${shared_ext}$major'
18537     ;;
18538   esac
18539   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18540   postinstall_cmds='chmod 555 $lib'
18541   ;;
18543 interix[3-9]*)
18544   version_type=linux
18545   need_lib_prefix=no
18546   need_version=no
18547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18548   soname_spec='${libname}${release}${shared_ext}$major'
18549   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18550   shlibpath_var=LD_LIBRARY_PATH
18551   shlibpath_overrides_runpath=no
18552   hardcode_into_libs=yes
18553   ;;
18555 irix5* | irix6* | nonstopux*)
18556   case $host_os in
18557     nonstopux*) version_type=nonstopux ;;
18558     *)
18559         if test "$lt_cv_prog_gnu_ld" = yes; then
18560                 version_type=linux
18561         else
18562                 version_type=irix
18563         fi ;;
18564   esac
18565   need_lib_prefix=no
18566   need_version=no
18567   soname_spec='${libname}${release}${shared_ext}$major'
18568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18569   case $host_os in
18570   irix5* | nonstopux*)
18571     libsuff= shlibsuff=
18572     ;;
18573   *)
18574     case $LD in # libtool.m4 will add one of these switches to LD
18575     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18576       libsuff= shlibsuff= libmagic=32-bit;;
18577     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18578       libsuff=32 shlibsuff=N32 libmagic=N32;;
18579     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18580       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18581     *) libsuff= shlibsuff= libmagic=never-match;;
18582     esac
18583     ;;
18584   esac
18585   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18586   shlibpath_overrides_runpath=no
18587   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18588   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18589   hardcode_into_libs=yes
18590   ;;
18592 # No shared lib support for Linux oldld, aout, or coff.
18593 linux*oldld* | linux*aout* | linux*coff*)
18594   dynamic_linker=no
18595   ;;
18597 # This must be Linux ELF.
18598 linux* | k*bsd*-gnu)
18599   version_type=linux
18600   need_lib_prefix=no
18601   need_version=no
18602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18603   soname_spec='${libname}${release}${shared_ext}$major'
18604   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18605   shlibpath_var=LD_LIBRARY_PATH
18606   shlibpath_overrides_runpath=no
18607   # This implies no fast_install, which is unacceptable.
18608   # Some rework will be needed to allow for fast_install
18609   # before this can be enabled.
18610   hardcode_into_libs=yes
18612   # Append ld.so.conf contents to the search path
18613   if test -f /etc/ld.so.conf; then
18614     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18615     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18616   fi
18618   # We used to test for /lib/ld.so.1 and disable shared libraries on
18619   # powerpc, because MkLinux only supported shared libraries with the
18620   # GNU dynamic linker.  Since this was broken with cross compilers,
18621   # most powerpc-linux boxes support dynamic linking these days and
18622   # people can always --disable-shared, the test was removed, and we
18623   # assume the GNU/Linux dynamic linker is in use.
18624   dynamic_linker='GNU/Linux ld.so'
18625   ;;
18627 netbsdelf*-gnu)
18628   version_type=linux
18629   need_lib_prefix=no
18630   need_version=no
18631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18632   soname_spec='${libname}${release}${shared_ext}$major'
18633   shlibpath_var=LD_LIBRARY_PATH
18634   shlibpath_overrides_runpath=no
18635   hardcode_into_libs=yes
18636   dynamic_linker='NetBSD ld.elf_so'
18637   ;;
18639 netbsd*)
18640   version_type=sunos
18641   need_lib_prefix=no
18642   need_version=no
18643   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18644     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18645     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18646     dynamic_linker='NetBSD (a.out) ld.so'
18647   else
18648     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18649     soname_spec='${libname}${release}${shared_ext}$major'
18650     dynamic_linker='NetBSD ld.elf_so'
18651   fi
18652   shlibpath_var=LD_LIBRARY_PATH
18653   shlibpath_overrides_runpath=yes
18654   hardcode_into_libs=yes
18655   ;;
18657 newsos6)
18658   version_type=linux
18659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18660   shlibpath_var=LD_LIBRARY_PATH
18661   shlibpath_overrides_runpath=yes
18662   ;;
18664 nto-qnx*)
18665   version_type=linux
18666   need_lib_prefix=no
18667   need_version=no
18668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18669   soname_spec='${libname}${release}${shared_ext}$major'
18670   shlibpath_var=LD_LIBRARY_PATH
18671   shlibpath_overrides_runpath=yes
18672   ;;
18674 openbsd*)
18675   version_type=sunos
18676   sys_lib_dlsearch_path_spec="/usr/lib"
18677   need_lib_prefix=no
18678   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18679   case $host_os in
18680     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18681     *)                         need_version=no  ;;
18682   esac
18683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18684   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18685   shlibpath_var=LD_LIBRARY_PATH
18686   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18687     case $host_os in
18688       openbsd2.[89] | openbsd2.[89].*)
18689         shlibpath_overrides_runpath=no
18690         ;;
18691       *)
18692         shlibpath_overrides_runpath=yes
18693         ;;
18694       esac
18695   else
18696     shlibpath_overrides_runpath=yes
18697   fi
18698   ;;
18700 os2*)
18701   libname_spec='$name'
18702   shrext_cmds=".dll"
18703   need_lib_prefix=no
18704   library_names_spec='$libname${shared_ext} $libname.a'
18705   dynamic_linker='OS/2 ld.exe'
18706   shlibpath_var=LIBPATH
18707   ;;
18709 osf3* | osf4* | osf5*)
18710   version_type=osf
18711   need_lib_prefix=no
18712   need_version=no
18713   soname_spec='${libname}${release}${shared_ext}$major'
18714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18715   shlibpath_var=LD_LIBRARY_PATH
18716   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18717   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18718   ;;
18720 rdos*)
18721   dynamic_linker=no
18722   ;;
18724 solaris*)
18725   version_type=linux
18726   need_lib_prefix=no
18727   need_version=no
18728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18729   soname_spec='${libname}${release}${shared_ext}$major'
18730   shlibpath_var=LD_LIBRARY_PATH
18731   shlibpath_overrides_runpath=yes
18732   hardcode_into_libs=yes
18733   # ldd complains unless libraries are executable
18734   postinstall_cmds='chmod +x $lib'
18735   ;;
18737 sunos4*)
18738   version_type=sunos
18739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18740   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18741   shlibpath_var=LD_LIBRARY_PATH
18742   shlibpath_overrides_runpath=yes
18743   if test "$with_gnu_ld" = yes; then
18744     need_lib_prefix=no
18745   fi
18746   need_version=yes
18747   ;;
18749 sysv4 | sysv4.3*)
18750   version_type=linux
18751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18752   soname_spec='${libname}${release}${shared_ext}$major'
18753   shlibpath_var=LD_LIBRARY_PATH
18754   case $host_vendor in
18755     sni)
18756       shlibpath_overrides_runpath=no
18757       need_lib_prefix=no
18758       export_dynamic_flag_spec='${wl}-Blargedynsym'
18759       runpath_var=LD_RUN_PATH
18760       ;;
18761     siemens)
18762       need_lib_prefix=no
18763       ;;
18764     motorola)
18765       need_lib_prefix=no
18766       need_version=no
18767       shlibpath_overrides_runpath=no
18768       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18769       ;;
18770   esac
18771   ;;
18773 sysv4*MP*)
18774   if test -d /usr/nec ;then
18775     version_type=linux
18776     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18777     soname_spec='$libname${shared_ext}.$major'
18778     shlibpath_var=LD_LIBRARY_PATH
18779   fi
18780   ;;
18782 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18783   version_type=freebsd-elf
18784   need_lib_prefix=no
18785   need_version=no
18786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18787   soname_spec='${libname}${release}${shared_ext}$major'
18788   shlibpath_var=LD_LIBRARY_PATH
18789   hardcode_into_libs=yes
18790   if test "$with_gnu_ld" = yes; then
18791     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18792     shlibpath_overrides_runpath=no
18793   else
18794     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18795     shlibpath_overrides_runpath=yes
18796     case $host_os in
18797       sco3.2v5*)
18798         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18799         ;;
18800     esac
18801   fi
18802   sys_lib_dlsearch_path_spec='/usr/lib'
18803   ;;
18805 uts4*)
18806   version_type=linux
18807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18808   soname_spec='${libname}${release}${shared_ext}$major'
18809   shlibpath_var=LD_LIBRARY_PATH
18810   ;;
18813   dynamic_linker=no
18814   ;;
18815 esac
18816 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18817 echo "${ECHO_T}$dynamic_linker" >&6; }
18818 test "$dynamic_linker" = no && can_build_shared=no
18820 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18821   echo $ECHO_N "(cached) $ECHO_C" >&6
18822 else
18823   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18826 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18827 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18828   echo $ECHO_N "(cached) $ECHO_C" >&6
18829 else
18830   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18833 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18835 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18836 if test "$GCC" = yes; then
18837   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18840 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18841 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18842 hardcode_action_GCJ=
18843 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18844    test -n "$runpath_var_GCJ" || \
18845    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18847   # We can hardcode non-existant directories.
18848   if test "$hardcode_direct_GCJ" != no &&
18849      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18850      # have to relink, otherwise we might link with an installed library
18851      # when we should be linking with a yet-to-be-installed one
18852      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18853      test "$hardcode_minus_L_GCJ" != no; then
18854     # Linking always hardcodes the temporary library directory.
18855     hardcode_action_GCJ=relink
18856   else
18857     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18858     hardcode_action_GCJ=immediate
18859   fi
18860 else
18861   # We cannot hardcode anything, or else we can only hardcode existing
18862   # directories.
18863   hardcode_action_GCJ=unsupported
18865 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18866 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18868 if test "$hardcode_action_GCJ" = relink; then
18869   # Fast installation is not supported
18870   enable_fast_install=no
18871 elif test "$shlibpath_overrides_runpath" = yes ||
18872      test "$enable_shared" = no; then
18873   # Fast installation is not necessary
18874   enable_fast_install=needless
18878 # The else clause should only fire when bootstrapping the
18879 # libtool distribution, otherwise you forgot to ship ltmain.sh
18880 # with your package, and you will get complaints that there are
18881 # no rules to generate ltmain.sh.
18882 if test -f "$ltmain"; then
18883   # See if we are running on zsh, and set the options which allow our commands through
18884   # without removal of \ escapes.
18885   if test -n "${ZSH_VERSION+set}" ; then
18886     setopt NO_GLOB_SUBST
18887   fi
18888   # Now quote all the things that may contain metacharacters while being
18889   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18890   # variables and quote the copies for generation of the libtool script.
18891   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18892     SED SHELL STRIP \
18893     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18894     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18895     deplibs_check_method reload_flag reload_cmds need_locks \
18896     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18897     lt_cv_sys_global_symbol_to_c_name_address \
18898     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18899     old_postinstall_cmds old_postuninstall_cmds \
18900     compiler_GCJ \
18901     CC_GCJ \
18902     LD_GCJ \
18903     lt_prog_compiler_wl_GCJ \
18904     lt_prog_compiler_pic_GCJ \
18905     lt_prog_compiler_static_GCJ \
18906     lt_prog_compiler_no_builtin_flag_GCJ \
18907     export_dynamic_flag_spec_GCJ \
18908     thread_safe_flag_spec_GCJ \
18909     whole_archive_flag_spec_GCJ \
18910     enable_shared_with_static_runtimes_GCJ \
18911     old_archive_cmds_GCJ \
18912     old_archive_from_new_cmds_GCJ \
18913     predep_objects_GCJ \
18914     postdep_objects_GCJ \
18915     predeps_GCJ \
18916     postdeps_GCJ \
18917     compiler_lib_search_path_GCJ \
18918     compiler_lib_search_dirs_GCJ \
18919     archive_cmds_GCJ \
18920     archive_expsym_cmds_GCJ \
18921     postinstall_cmds_GCJ \
18922     postuninstall_cmds_GCJ \
18923     old_archive_from_expsyms_cmds_GCJ \
18924     allow_undefined_flag_GCJ \
18925     no_undefined_flag_GCJ \
18926     export_symbols_cmds_GCJ \
18927     hardcode_libdir_flag_spec_GCJ \
18928     hardcode_libdir_flag_spec_ld_GCJ \
18929     hardcode_libdir_separator_GCJ \
18930     hardcode_automatic_GCJ \
18931     module_cmds_GCJ \
18932     module_expsym_cmds_GCJ \
18933     lt_cv_prog_compiler_c_o_GCJ \
18934     fix_srcfile_path_GCJ \
18935     exclude_expsyms_GCJ \
18936     include_expsyms_GCJ; do
18938     case $var in
18939     old_archive_cmds_GCJ | \
18940     old_archive_from_new_cmds_GCJ | \
18941     archive_cmds_GCJ | \
18942     archive_expsym_cmds_GCJ | \
18943     module_cmds_GCJ | \
18944     module_expsym_cmds_GCJ | \
18945     old_archive_from_expsyms_cmds_GCJ | \
18946     export_symbols_cmds_GCJ | \
18947     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18948     postinstall_cmds | postuninstall_cmds | \
18949     old_postinstall_cmds | old_postuninstall_cmds | \
18950     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18951       # Double-quote double-evaled strings.
18952       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18953       ;;
18954     *)
18955       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18956       ;;
18957     esac
18958   done
18960   case $lt_echo in
18961   *'\$0 --fallback-echo"')
18962     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18963     ;;
18964   esac
18966 cfgfile="$ofile"
18968   cat <<__EOF__ >> "$cfgfile"
18969 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18971 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18973 # Shell to use when invoking shell scripts.
18974 SHELL=$lt_SHELL
18976 # Whether or not to build shared libraries.
18977 build_libtool_libs=$enable_shared
18979 # Whether or not to build static libraries.
18980 build_old_libs=$enable_static
18982 # Whether or not to add -lc for building shared libraries.
18983 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18985 # Whether or not to disallow shared libs when runtime libs are static
18986 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18988 # Whether or not to optimize for fast installation.
18989 fast_install=$enable_fast_install
18991 # The host system.
18992 host_alias=$host_alias
18993 host=$host
18994 host_os=$host_os
18996 # The build system.
18997 build_alias=$build_alias
18998 build=$build
18999 build_os=$build_os
19001 # An echo program that does not interpret backslashes.
19002 echo=$lt_echo
19004 # The archiver.
19005 AR=$lt_AR
19006 AR_FLAGS=$lt_AR_FLAGS
19008 # A C compiler.
19009 LTCC=$lt_LTCC
19011 # LTCC compiler flags.
19012 LTCFLAGS=$lt_LTCFLAGS
19014 # A language-specific compiler.
19015 CC=$lt_compiler_GCJ
19017 # Is the compiler the GNU C compiler?
19018 with_gcc=$GCC_GCJ
19020 # An ERE matcher.
19021 EGREP=$lt_EGREP
19023 # The linker used to build libraries.
19024 LD=$lt_LD_GCJ
19026 # Whether we need hard or soft links.
19027 LN_S=$lt_LN_S
19029 # A BSD-compatible nm program.
19030 NM=$lt_NM
19032 # A symbol stripping program
19033 STRIP=$lt_STRIP
19035 # Used to examine libraries when file_magic_cmd begins "file"
19036 MAGIC_CMD=$MAGIC_CMD
19038 # Used on cygwin: DLL creation program.
19039 DLLTOOL="$DLLTOOL"
19041 # Used on cygwin: object dumper.
19042 OBJDUMP="$OBJDUMP"
19044 # Used on cygwin: assembler.
19045 AS="$AS"
19047 # The name of the directory that contains temporary libtool files.
19048 objdir=$objdir
19050 # How to create reloadable object files.
19051 reload_flag=$lt_reload_flag
19052 reload_cmds=$lt_reload_cmds
19054 # How to pass a linker flag through the compiler.
19055 wl=$lt_lt_prog_compiler_wl_GCJ
19057 # Object file suffix (normally "o").
19058 objext="$ac_objext"
19060 # Old archive suffix (normally "a").
19061 libext="$libext"
19063 # Shared library suffix (normally ".so").
19064 shrext_cmds='$shrext_cmds'
19066 # Executable file suffix (normally "").
19067 exeext="$exeext"
19069 # Additional compiler flags for building library objects.
19070 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19071 pic_mode=$pic_mode
19073 # What is the maximum length of a command?
19074 max_cmd_len=$lt_cv_sys_max_cmd_len
19076 # Does compiler simultaneously support -c and -o options?
19077 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19079 # Must we lock files when doing compilation?
19080 need_locks=$lt_need_locks
19082 # Do we need the lib prefix for modules?
19083 need_lib_prefix=$need_lib_prefix
19085 # Do we need a version for libraries?
19086 need_version=$need_version
19088 # Whether dlopen is supported.
19089 dlopen_support=$enable_dlopen
19091 # Whether dlopen of programs is supported.
19092 dlopen_self=$enable_dlopen_self
19094 # Whether dlopen of statically linked programs is supported.
19095 dlopen_self_static=$enable_dlopen_self_static
19097 # Compiler flag to prevent dynamic linking.
19098 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19100 # Compiler flag to turn off builtin functions.
19101 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19103 # Compiler flag to allow reflexive dlopens.
19104 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19106 # Compiler flag to generate shared objects directly from archives.
19107 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19109 # Compiler flag to generate thread-safe objects.
19110 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19112 # Library versioning type.
19113 version_type=$version_type
19115 # Format of library name prefix.
19116 libname_spec=$lt_libname_spec
19118 # List of archive names.  First name is the real one, the rest are links.
19119 # The last name is the one that the linker finds with -lNAME.
19120 library_names_spec=$lt_library_names_spec
19122 # The coded name of the library, if different from the real name.
19123 soname_spec=$lt_soname_spec
19125 # Commands used to build and install an old-style archive.
19126 RANLIB=$lt_RANLIB
19127 old_archive_cmds=$lt_old_archive_cmds_GCJ
19128 old_postinstall_cmds=$lt_old_postinstall_cmds
19129 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19131 # Create an old-style archive from a shared archive.
19132 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19134 # Create a temporary old-style archive to link instead of a shared archive.
19135 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19137 # Commands used to build and install a shared archive.
19138 archive_cmds=$lt_archive_cmds_GCJ
19139 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19140 postinstall_cmds=$lt_postinstall_cmds
19141 postuninstall_cmds=$lt_postuninstall_cmds
19143 # Commands used to build a loadable module (assumed same as above if empty)
19144 module_cmds=$lt_module_cmds_GCJ
19145 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19147 # Commands to strip libraries.
19148 old_striplib=$lt_old_striplib
19149 striplib=$lt_striplib
19151 # Dependencies to place before the objects being linked to create a
19152 # shared library.
19153 predep_objects=$lt_predep_objects_GCJ
19155 # Dependencies to place after the objects being linked to create a
19156 # shared library.
19157 postdep_objects=$lt_postdep_objects_GCJ
19159 # Dependencies to place before the objects being linked to create a
19160 # shared library.
19161 predeps=$lt_predeps_GCJ
19163 # Dependencies to place after the objects being linked to create a
19164 # shared library.
19165 postdeps=$lt_postdeps_GCJ
19167 # The directories searched by this compiler when creating a shared
19168 # library
19169 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19171 # The library search path used internally by the compiler when linking
19172 # a shared library.
19173 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19175 # Method to check whether dependent libraries are shared objects.
19176 deplibs_check_method=$lt_deplibs_check_method
19178 # Command to use when deplibs_check_method == file_magic.
19179 file_magic_cmd=$lt_file_magic_cmd
19181 # Flag that allows shared libraries with undefined symbols to be built.
19182 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19184 # Flag that forces no undefined symbols.
19185 no_undefined_flag=$lt_no_undefined_flag_GCJ
19187 # Commands used to finish a libtool library installation in a directory.
19188 finish_cmds=$lt_finish_cmds
19190 # Same as above, but a single script fragment to be evaled but not shown.
19191 finish_eval=$lt_finish_eval
19193 # Take the output of nm and produce a listing of raw symbols and C names.
19194 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19196 # Transform the output of nm in a proper C declaration
19197 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19199 # Transform the output of nm in a C name address pair
19200 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19202 # This is the shared library runtime path variable.
19203 runpath_var=$runpath_var
19205 # This is the shared library path variable.
19206 shlibpath_var=$shlibpath_var
19208 # Is shlibpath searched before the hard-coded library search path?
19209 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19211 # How to hardcode a shared library path into an executable.
19212 hardcode_action=$hardcode_action_GCJ
19214 # Whether we should hardcode library paths into libraries.
19215 hardcode_into_libs=$hardcode_into_libs
19217 # Flag to hardcode \$libdir into a binary during linking.
19218 # This must work even if \$libdir does not exist.
19219 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19221 # If ld is used when linking, flag to hardcode \$libdir into
19222 # a binary during linking. This must work even if \$libdir does
19223 # not exist.
19224 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19226 # Whether we need a single -rpath flag with a separated argument.
19227 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19229 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19230 # resulting binary.
19231 hardcode_direct=$hardcode_direct_GCJ
19233 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19234 # resulting binary.
19235 hardcode_minus_L=$hardcode_minus_L_GCJ
19237 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19238 # the resulting binary.
19239 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19241 # Set to yes if building a shared library automatically hardcodes DIR into the library
19242 # and all subsequent libraries and executables linked against it.
19243 hardcode_automatic=$hardcode_automatic_GCJ
19245 # Variables whose values should be saved in libtool wrapper scripts and
19246 # restored at relink time.
19247 variables_saved_for_relink="$variables_saved_for_relink"
19249 # Whether libtool must link a program against all its dependency libraries.
19250 link_all_deplibs=$link_all_deplibs_GCJ
19252 # Compile-time system search path for libraries
19253 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19255 # Run-time system search path for libraries
19256 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19258 # Fix the shell variable \$srcfile for the compiler.
19259 fix_srcfile_path=$lt_fix_srcfile_path
19261 # Set to yes if exported symbols are required.
19262 always_export_symbols=$always_export_symbols_GCJ
19264 # The commands to list exported symbols.
19265 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19267 # The commands to extract the exported symbol list from a shared archive.
19268 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19270 # Symbols that should not be listed in the preloaded symbols.
19271 exclude_expsyms=$lt_exclude_expsyms_GCJ
19273 # Symbols that must always be exported.
19274 include_expsyms=$lt_include_expsyms_GCJ
19276 # ### END LIBTOOL TAG CONFIG: $tagname
19278 __EOF__
19281 else
19282   # If there is no Makefile yet, we rely on a make rule to execute
19283   # `config.status --recheck' to rerun these tests and create the
19284   # libtool script then.
19285   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19286   if test -f "$ltmain_in"; then
19287     test -f Makefile && make "$ltmain"
19288   fi
19292 ac_ext=c
19293 ac_cpp='$CPP $CPPFLAGS'
19294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19298 CC="$lt_save_CC"
19300         else
19301           tagname=""
19302         fi
19303         ;;
19305       RC)
19306         
19308 # Source file extension for RC test sources.
19309 ac_ext=rc
19311 # Object file extension for compiled RC test sources.
19312 objext=o
19313 objext_RC=$objext
19315 # Code to be used in simple compile tests
19316 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19318 # Code to be used in simple link tests
19319 lt_simple_link_test_code="$lt_simple_compile_test_code"
19321 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19323 # If no C compiler was specified, use CC.
19324 LTCC=${LTCC-"$CC"}
19326 # If no C compiler flags were specified, use CFLAGS.
19327 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19329 # Allow CC to be a program name with arguments.
19330 compiler=$CC
19333 # save warnings/boilerplate of simple test code
19334 ac_outfile=conftest.$ac_objext
19335 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19336 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19337 _lt_compiler_boilerplate=`cat conftest.err`
19338 $rm conftest*
19340 ac_outfile=conftest.$ac_objext
19341 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19342 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19343 _lt_linker_boilerplate=`cat conftest.err`
19344 $rm -r conftest*
19347 # Allow CC to be a program name with arguments.
19348 lt_save_CC="$CC"
19349 CC=${RC-"windres"}
19350 compiler=$CC
19351 compiler_RC=$CC
19352 for cc_temp in $compiler""; do
19353   case $cc_temp in
19354     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19355     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19356     \-*) ;;
19357     *) break;;
19358   esac
19359 done
19360 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19362 lt_cv_prog_compiler_c_o_RC=yes
19364 # The else clause should only fire when bootstrapping the
19365 # libtool distribution, otherwise you forgot to ship ltmain.sh
19366 # with your package, and you will get complaints that there are
19367 # no rules to generate ltmain.sh.
19368 if test -f "$ltmain"; then
19369   # See if we are running on zsh, and set the options which allow our commands through
19370   # without removal of \ escapes.
19371   if test -n "${ZSH_VERSION+set}" ; then
19372     setopt NO_GLOB_SUBST
19373   fi
19374   # Now quote all the things that may contain metacharacters while being
19375   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19376   # variables and quote the copies for generation of the libtool script.
19377   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19378     SED SHELL STRIP \
19379     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19380     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19381     deplibs_check_method reload_flag reload_cmds need_locks \
19382     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19383     lt_cv_sys_global_symbol_to_c_name_address \
19384     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19385     old_postinstall_cmds old_postuninstall_cmds \
19386     compiler_RC \
19387     CC_RC \
19388     LD_RC \
19389     lt_prog_compiler_wl_RC \
19390     lt_prog_compiler_pic_RC \
19391     lt_prog_compiler_static_RC \
19392     lt_prog_compiler_no_builtin_flag_RC \
19393     export_dynamic_flag_spec_RC \
19394     thread_safe_flag_spec_RC \
19395     whole_archive_flag_spec_RC \
19396     enable_shared_with_static_runtimes_RC \
19397     old_archive_cmds_RC \
19398     old_archive_from_new_cmds_RC \
19399     predep_objects_RC \
19400     postdep_objects_RC \
19401     predeps_RC \
19402     postdeps_RC \
19403     compiler_lib_search_path_RC \
19404     compiler_lib_search_dirs_RC \
19405     archive_cmds_RC \
19406     archive_expsym_cmds_RC \
19407     postinstall_cmds_RC \
19408     postuninstall_cmds_RC \
19409     old_archive_from_expsyms_cmds_RC \
19410     allow_undefined_flag_RC \
19411     no_undefined_flag_RC \
19412     export_symbols_cmds_RC \
19413     hardcode_libdir_flag_spec_RC \
19414     hardcode_libdir_flag_spec_ld_RC \
19415     hardcode_libdir_separator_RC \
19416     hardcode_automatic_RC \
19417     module_cmds_RC \
19418     module_expsym_cmds_RC \
19419     lt_cv_prog_compiler_c_o_RC \
19420     fix_srcfile_path_RC \
19421     exclude_expsyms_RC \
19422     include_expsyms_RC; do
19424     case $var in
19425     old_archive_cmds_RC | \
19426     old_archive_from_new_cmds_RC | \
19427     archive_cmds_RC | \
19428     archive_expsym_cmds_RC | \
19429     module_cmds_RC | \
19430     module_expsym_cmds_RC | \
19431     old_archive_from_expsyms_cmds_RC | \
19432     export_symbols_cmds_RC | \
19433     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19434     postinstall_cmds | postuninstall_cmds | \
19435     old_postinstall_cmds | old_postuninstall_cmds | \
19436     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19437       # Double-quote double-evaled strings.
19438       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19439       ;;
19440     *)
19441       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19442       ;;
19443     esac
19444   done
19446   case $lt_echo in
19447   *'\$0 --fallback-echo"')
19448     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19449     ;;
19450   esac
19452 cfgfile="$ofile"
19454   cat <<__EOF__ >> "$cfgfile"
19455 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19457 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19459 # Shell to use when invoking shell scripts.
19460 SHELL=$lt_SHELL
19462 # Whether or not to build shared libraries.
19463 build_libtool_libs=$enable_shared
19465 # Whether or not to build static libraries.
19466 build_old_libs=$enable_static
19468 # Whether or not to add -lc for building shared libraries.
19469 build_libtool_need_lc=$archive_cmds_need_lc_RC
19471 # Whether or not to disallow shared libs when runtime libs are static
19472 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19474 # Whether or not to optimize for fast installation.
19475 fast_install=$enable_fast_install
19477 # The host system.
19478 host_alias=$host_alias
19479 host=$host
19480 host_os=$host_os
19482 # The build system.
19483 build_alias=$build_alias
19484 build=$build
19485 build_os=$build_os
19487 # An echo program that does not interpret backslashes.
19488 echo=$lt_echo
19490 # The archiver.
19491 AR=$lt_AR
19492 AR_FLAGS=$lt_AR_FLAGS
19494 # A C compiler.
19495 LTCC=$lt_LTCC
19497 # LTCC compiler flags.
19498 LTCFLAGS=$lt_LTCFLAGS
19500 # A language-specific compiler.
19501 CC=$lt_compiler_RC
19503 # Is the compiler the GNU C compiler?
19504 with_gcc=$GCC_RC
19506 # An ERE matcher.
19507 EGREP=$lt_EGREP
19509 # The linker used to build libraries.
19510 LD=$lt_LD_RC
19512 # Whether we need hard or soft links.
19513 LN_S=$lt_LN_S
19515 # A BSD-compatible nm program.
19516 NM=$lt_NM
19518 # A symbol stripping program
19519 STRIP=$lt_STRIP
19521 # Used to examine libraries when file_magic_cmd begins "file"
19522 MAGIC_CMD=$MAGIC_CMD
19524 # Used on cygwin: DLL creation program.
19525 DLLTOOL="$DLLTOOL"
19527 # Used on cygwin: object dumper.
19528 OBJDUMP="$OBJDUMP"
19530 # Used on cygwin: assembler.
19531 AS="$AS"
19533 # The name of the directory that contains temporary libtool files.
19534 objdir=$objdir
19536 # How to create reloadable object files.
19537 reload_flag=$lt_reload_flag
19538 reload_cmds=$lt_reload_cmds
19540 # How to pass a linker flag through the compiler.
19541 wl=$lt_lt_prog_compiler_wl_RC
19543 # Object file suffix (normally "o").
19544 objext="$ac_objext"
19546 # Old archive suffix (normally "a").
19547 libext="$libext"
19549 # Shared library suffix (normally ".so").
19550 shrext_cmds='$shrext_cmds'
19552 # Executable file suffix (normally "").
19553 exeext="$exeext"
19555 # Additional compiler flags for building library objects.
19556 pic_flag=$lt_lt_prog_compiler_pic_RC
19557 pic_mode=$pic_mode
19559 # What is the maximum length of a command?
19560 max_cmd_len=$lt_cv_sys_max_cmd_len
19562 # Does compiler simultaneously support -c and -o options?
19563 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19565 # Must we lock files when doing compilation?
19566 need_locks=$lt_need_locks
19568 # Do we need the lib prefix for modules?
19569 need_lib_prefix=$need_lib_prefix
19571 # Do we need a version for libraries?
19572 need_version=$need_version
19574 # Whether dlopen is supported.
19575 dlopen_support=$enable_dlopen
19577 # Whether dlopen of programs is supported.
19578 dlopen_self=$enable_dlopen_self
19580 # Whether dlopen of statically linked programs is supported.
19581 dlopen_self_static=$enable_dlopen_self_static
19583 # Compiler flag to prevent dynamic linking.
19584 link_static_flag=$lt_lt_prog_compiler_static_RC
19586 # Compiler flag to turn off builtin functions.
19587 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19589 # Compiler flag to allow reflexive dlopens.
19590 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19592 # Compiler flag to generate shared objects directly from archives.
19593 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19595 # Compiler flag to generate thread-safe objects.
19596 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19598 # Library versioning type.
19599 version_type=$version_type
19601 # Format of library name prefix.
19602 libname_spec=$lt_libname_spec
19604 # List of archive names.  First name is the real one, the rest are links.
19605 # The last name is the one that the linker finds with -lNAME.
19606 library_names_spec=$lt_library_names_spec
19608 # The coded name of the library, if different from the real name.
19609 soname_spec=$lt_soname_spec
19611 # Commands used to build and install an old-style archive.
19612 RANLIB=$lt_RANLIB
19613 old_archive_cmds=$lt_old_archive_cmds_RC
19614 old_postinstall_cmds=$lt_old_postinstall_cmds
19615 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19617 # Create an old-style archive from a shared archive.
19618 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19620 # Create a temporary old-style archive to link instead of a shared archive.
19621 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19623 # Commands used to build and install a shared archive.
19624 archive_cmds=$lt_archive_cmds_RC
19625 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19626 postinstall_cmds=$lt_postinstall_cmds
19627 postuninstall_cmds=$lt_postuninstall_cmds
19629 # Commands used to build a loadable module (assumed same as above if empty)
19630 module_cmds=$lt_module_cmds_RC
19631 module_expsym_cmds=$lt_module_expsym_cmds_RC
19633 # Commands to strip libraries.
19634 old_striplib=$lt_old_striplib
19635 striplib=$lt_striplib
19637 # Dependencies to place before the objects being linked to create a
19638 # shared library.
19639 predep_objects=$lt_predep_objects_RC
19641 # Dependencies to place after the objects being linked to create a
19642 # shared library.
19643 postdep_objects=$lt_postdep_objects_RC
19645 # Dependencies to place before the objects being linked to create a
19646 # shared library.
19647 predeps=$lt_predeps_RC
19649 # Dependencies to place after the objects being linked to create a
19650 # shared library.
19651 postdeps=$lt_postdeps_RC
19653 # The directories searched by this compiler when creating a shared
19654 # library
19655 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19657 # The library search path used internally by the compiler when linking
19658 # a shared library.
19659 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19661 # Method to check whether dependent libraries are shared objects.
19662 deplibs_check_method=$lt_deplibs_check_method
19664 # Command to use when deplibs_check_method == file_magic.
19665 file_magic_cmd=$lt_file_magic_cmd
19667 # Flag that allows shared libraries with undefined symbols to be built.
19668 allow_undefined_flag=$lt_allow_undefined_flag_RC
19670 # Flag that forces no undefined symbols.
19671 no_undefined_flag=$lt_no_undefined_flag_RC
19673 # Commands used to finish a libtool library installation in a directory.
19674 finish_cmds=$lt_finish_cmds
19676 # Same as above, but a single script fragment to be evaled but not shown.
19677 finish_eval=$lt_finish_eval
19679 # Take the output of nm and produce a listing of raw symbols and C names.
19680 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19682 # Transform the output of nm in a proper C declaration
19683 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19685 # Transform the output of nm in a C name address pair
19686 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19688 # This is the shared library runtime path variable.
19689 runpath_var=$runpath_var
19691 # This is the shared library path variable.
19692 shlibpath_var=$shlibpath_var
19694 # Is shlibpath searched before the hard-coded library search path?
19695 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19697 # How to hardcode a shared library path into an executable.
19698 hardcode_action=$hardcode_action_RC
19700 # Whether we should hardcode library paths into libraries.
19701 hardcode_into_libs=$hardcode_into_libs
19703 # Flag to hardcode \$libdir into a binary during linking.
19704 # This must work even if \$libdir does not exist.
19705 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19707 # If ld is used when linking, flag to hardcode \$libdir into
19708 # a binary during linking. This must work even if \$libdir does
19709 # not exist.
19710 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19712 # Whether we need a single -rpath flag with a separated argument.
19713 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19715 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19716 # resulting binary.
19717 hardcode_direct=$hardcode_direct_RC
19719 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19720 # resulting binary.
19721 hardcode_minus_L=$hardcode_minus_L_RC
19723 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19724 # the resulting binary.
19725 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19727 # Set to yes if building a shared library automatically hardcodes DIR into the library
19728 # and all subsequent libraries and executables linked against it.
19729 hardcode_automatic=$hardcode_automatic_RC
19731 # Variables whose values should be saved in libtool wrapper scripts and
19732 # restored at relink time.
19733 variables_saved_for_relink="$variables_saved_for_relink"
19735 # Whether libtool must link a program against all its dependency libraries.
19736 link_all_deplibs=$link_all_deplibs_RC
19738 # Compile-time system search path for libraries
19739 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19741 # Run-time system search path for libraries
19742 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19744 # Fix the shell variable \$srcfile for the compiler.
19745 fix_srcfile_path=$lt_fix_srcfile_path
19747 # Set to yes if exported symbols are required.
19748 always_export_symbols=$always_export_symbols_RC
19750 # The commands to list exported symbols.
19751 export_symbols_cmds=$lt_export_symbols_cmds_RC
19753 # The commands to extract the exported symbol list from a shared archive.
19754 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19756 # Symbols that should not be listed in the preloaded symbols.
19757 exclude_expsyms=$lt_exclude_expsyms_RC
19759 # Symbols that must always be exported.
19760 include_expsyms=$lt_include_expsyms_RC
19762 # ### END LIBTOOL TAG CONFIG: $tagname
19764 __EOF__
19767 else
19768   # If there is no Makefile yet, we rely on a make rule to execute
19769   # `config.status --recheck' to rerun these tests and create the
19770   # libtool script then.
19771   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19772   if test -f "$ltmain_in"; then
19773     test -f Makefile && make "$ltmain"
19774   fi
19778 ac_ext=c
19779 ac_cpp='$CPP $CPPFLAGS'
19780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19784 CC="$lt_save_CC"
19786         ;;
19788       *)
19789         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19790 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19791    { (exit 1); exit 1; }; }
19792         ;;
19793       esac
19795       # Append the new tag name to the list of available tags.
19796       if test -n "$tagname" ; then
19797       available_tags="$available_tags $tagname"
19798     fi
19799     fi
19800   done
19801   IFS="$lt_save_ifs"
19803   # Now substitute the updated list of available tags.
19804   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19805     mv "${ofile}T" "$ofile"
19806     chmod +x "$ofile"
19807   else
19808     rm -f "${ofile}T"
19809     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19810 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19811    { (exit 1); exit 1; }; }
19812   fi
19817 # This can be used to rebuild libtool when needed
19818 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19820 # Always use our own libtool.
19821 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19823 # Prevent multiple expansion
19835   
19837   
19840   
19841        
19842        
19846   { echo "$as_me:$LINENO: checking to see if compiler understands -Wall" >&5
19847 echo $ECHO_N "checking to see if compiler understands -Wall... $ECHO_C" >&6; }
19849   save_CFLAGS="$CFLAGS"
19850   CFLAGS="$CFLAGS -Wall"
19852   cat >conftest.$ac_ext <<_ACEOF
19853 /* confdefs.h.  */
19854 _ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h.  */
19860 main ()
19863   ;
19864   return 0;
19866 _ACEOF
19867 rm -f conftest.$ac_objext
19868 if { (ac_try="$ac_compile"
19869 case "(($ac_try" in
19870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871   *) ac_try_echo=$ac_try;;
19872 esac
19873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874   (eval "$ac_compile") 2>conftest.er1
19875   ac_status=$?
19876   grep -v '^ *+' conftest.er1 >conftest.err
19877   rm -f conftest.er1
19878   cat conftest.err >&5
19879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880   (exit $ac_status); } && {
19881          test -z "$ac_c_werror_flag" ||
19882          test ! -s conftest.err
19883        } && test -s conftest.$ac_objext; then
19884   flag_ok=yes
19885 else
19886   echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19889         flag_ok=no
19892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19893   CFLAGS="$save_CFLAGS"
19895   if test "X$flag_ok" = Xyes ; then
19896     GST_WALL="yes"
19897     true
19898   else
19899     GST_WALL="no"
19900     true
19901   fi
19902   { echo "$as_me:$LINENO: result: $flag_ok" >&5
19903 echo "${ECHO_T}$flag_ok" >&6; }
19905                                                                                 
19906 if test "x$GST_WALL" = "xyes"; then
19907    GST_ERROR="$GST_ERROR -Wall"
19908                                                                                 
19909    if test "x$GST_PLUGIN_TRUNK" = "xyes"; then
19910      
19911   { echo "$as_me:$LINENO: checking to see if compiler understands -Werror" >&5
19912 echo $ECHO_N "checking to see if compiler understands -Werror... $ECHO_C" >&6; }
19914   save_CFLAGS="$CFLAGS"
19915   CFLAGS="$CFLAGS -Werror"
19917   cat >conftest.$ac_ext <<_ACEOF
19918 /* confdefs.h.  */
19919 _ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h.  */
19925 main ()
19928   ;
19929   return 0;
19931 _ACEOF
19932 rm -f conftest.$ac_objext
19933 if { (ac_try="$ac_compile"
19934 case "(($ac_try" in
19935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936   *) ac_try_echo=$ac_try;;
19937 esac
19938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19939   (eval "$ac_compile") 2>conftest.er1
19940   ac_status=$?
19941   grep -v '^ *+' conftest.er1 >conftest.err
19942   rm -f conftest.er1
19943   cat conftest.err >&5
19944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945   (exit $ac_status); } && {
19946          test -z "$ac_c_werror_flag" ||
19947          test ! -s conftest.err
19948        } && test -s conftest.$ac_objext; then
19949   flag_ok=yes
19950 else
19951   echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19954         flag_ok=no
19957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19958   CFLAGS="$save_CFLAGS"
19960   if test "X$flag_ok" = Xyes ; then
19961     GST_ERROR="$GST_ERROR -Werror"
19962     true
19963   else
19964     GST_ERROR="$GST_ERROR"
19965     true
19966   fi
19967   { echo "$as_me:$LINENO: result: $flag_ok" >&5
19968 echo "${ECHO_T}$flag_ok" >&6; }
19970    fi
19973 # Extract the first word of "pkg-config", so it can be a program name with args.
19974 set dummy pkg-config; ac_word=$2
19975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19977 if test "${ac_cv_prog_HAVE_PKGCONFIG+set}" = set; then
19978   echo $ECHO_N "(cached) $ECHO_C" >&6
19979 else
19980   if test -n "$HAVE_PKGCONFIG"; then
19981   ac_cv_prog_HAVE_PKGCONFIG="$HAVE_PKGCONFIG" # Let the user override the test.
19982 else
19983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19984 for as_dir in $PATH
19986   IFS=$as_save_IFS
19987   test -z "$as_dir" && as_dir=.
19988   for ac_exec_ext in '' $ac_executable_extensions; do
19989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19990     ac_cv_prog_HAVE_PKGCONFIG="yes"
19991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19992     break 2
19993   fi
19994 done
19995 done
19996 IFS=$as_save_IFS
19998   test -z "$ac_cv_prog_HAVE_PKGCONFIG" && ac_cv_prog_HAVE_PKGCONFIG="no"
20001 HAVE_PKGCONFIG=$ac_cv_prog_HAVE_PKGCONFIG
20002 if test -n "$HAVE_PKGCONFIG"; then
20003   { echo "$as_me:$LINENO: result: $HAVE_PKGCONFIG" >&5
20004 echo "${ECHO_T}$HAVE_PKGCONFIG" >&6; }
20005 else
20006   { echo "$as_me:$LINENO: result: no" >&5
20007 echo "${ECHO_T}no" >&6; }
20012 if test "x$HAVE_PKGCONFIG" = "xno"; then
20013   { { echo "$as_me:$LINENO: error: you need to have pkgconfig installed !" >&5
20014 echo "$as_me: error: you need to have pkgconfig installed !" >&2;}
20015    { (exit 1); exit 1; }; }
20019 GST_REQUIRED=0.9.7
20021 GST_MAJORMINOR=0.10
20023   succeeded=no
20025   if test -z "$PKG_CONFIG"; then
20026     # Extract the first word of "pkg-config", so it can be a program name with args.
20027 set dummy pkg-config; ac_word=$2
20028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20030 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20031   echo $ECHO_N "(cached) $ECHO_C" >&6
20032 else
20033   case $PKG_CONFIG in
20034   [\\/]* | ?:[\\/]*)
20035   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20036   ;;
20037   *)
20038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20039 for as_dir in $PATH
20041   IFS=$as_save_IFS
20042   test -z "$as_dir" && as_dir=.
20043   for ac_exec_ext in '' $ac_executable_extensions; do
20044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20045     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20047     break 2
20048   fi
20049 done
20050 done
20051 IFS=$as_save_IFS
20053   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20054   ;;
20055 esac
20057 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20058 if test -n "$PKG_CONFIG"; then
20059   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20060 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20061 else
20062   { echo "$as_me:$LINENO: result: no" >&5
20063 echo "${ECHO_T}no" >&6; }
20067   fi
20069   if test "$PKG_CONFIG" = "no" ; then
20070      echo "*** The pkg-config script could not be found. Make sure it is"
20071      echo "*** in your path, or set the PKG_CONFIG environment variable"
20072      echo "*** to the full path to pkg-config."
20073      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20074   else
20075      PKG_CONFIG_MIN_VERSION=0.9.0
20076      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20077         { echo "$as_me:$LINENO: checking for \
20078   gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20079 echo $ECHO_N "checking for \
20080   gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6; }
20082         if $PKG_CONFIG --exists "\
20083   gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20084             { echo "$as_me:$LINENO: result: yes" >&5
20085 echo "${ECHO_T}yes" >&6; }
20086             succeeded=yes
20088             { echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
20089 echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6; }
20090             GST_CFLAGS=`$PKG_CONFIG --cflags "\
20091   gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20092             { echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
20093 echo "${ECHO_T}$GST_CFLAGS" >&6; }
20095             { echo "$as_me:$LINENO: checking GST_LIBS" >&5
20096 echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6; }
20097             GST_LIBS=`$PKG_CONFIG --libs "\
20098   gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20099             { echo "$as_me:$LINENO: result: $GST_LIBS" >&5
20100 echo "${ECHO_T}$GST_LIBS" >&6; }
20101         else
20102             GST_CFLAGS=""
20103             GST_LIBS=""
20104             ## If we have a custom action on failure, don't print errors, but 
20105             ## do set a variable so people can do so.
20106             GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "\
20107   gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20108             
20109         fi
20111         
20112         
20113      else
20114         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20115         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20116      fi
20117   fi
20119   if test $succeeded = yes; then
20120      HAVE_GST=yes
20121   else
20122      HAVE_GST=no
20123   fi
20126 if test "x$HAVE_GST" = "xno"; then
20127   { { echo "$as_me:$LINENO: error: you need gstreamer development packages installed !" >&5
20128 echo "$as_me: error: you need gstreamer development packages installed !" >&2;}
20129    { (exit 1); exit 1; }; }
20133   succeeded=no
20135   if test -z "$PKG_CONFIG"; then
20136     # Extract the first word of "pkg-config", so it can be a program name with args.
20137 set dummy pkg-config; ac_word=$2
20138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20140 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20141   echo $ECHO_N "(cached) $ECHO_C" >&6
20142 else
20143   case $PKG_CONFIG in
20144   [\\/]* | ?:[\\/]*)
20145   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20146   ;;
20147   *)
20148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20149 for as_dir in $PATH
20151   IFS=$as_save_IFS
20152   test -z "$as_dir" && as_dir=.
20153   for ac_exec_ext in '' $ac_executable_extensions; do
20154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20155     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20157     break 2
20158   fi
20159 done
20160 done
20161 IFS=$as_save_IFS
20163   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20164   ;;
20165 esac
20167 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20168 if test -n "$PKG_CONFIG"; then
20169   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20170 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20171 else
20172   { echo "$as_me:$LINENO: result: no" >&5
20173 echo "${ECHO_T}no" >&6; }
20177   fi
20179   if test "$PKG_CONFIG" = "no" ; then
20180      echo "*** The pkg-config script could not be found. Make sure it is"
20181      echo "*** in your path, or set the PKG_CONFIG environment variable"
20182      echo "*** to the full path to pkg-config."
20183      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20184   else
20185      PKG_CONFIG_MIN_VERSION=0.9.0
20186      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20187         { echo "$as_me:$LINENO: checking for \
20188   gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20189 echo $ECHO_N "checking for \
20190   gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6; }
20192         if $PKG_CONFIG --exists "\
20193   gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20194             { echo "$as_me:$LINENO: result: yes" >&5
20195 echo "${ECHO_T}yes" >&6; }
20196             succeeded=yes
20198             { echo "$as_me:$LINENO: checking GST_BASE_CFLAGS" >&5
20199 echo $ECHO_N "checking GST_BASE_CFLAGS... $ECHO_C" >&6; }
20200             GST_BASE_CFLAGS=`$PKG_CONFIG --cflags "\
20201   gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20202             { echo "$as_me:$LINENO: result: $GST_BASE_CFLAGS" >&5
20203 echo "${ECHO_T}$GST_BASE_CFLAGS" >&6; }
20205             { echo "$as_me:$LINENO: checking GST_BASE_LIBS" >&5
20206 echo $ECHO_N "checking GST_BASE_LIBS... $ECHO_C" >&6; }
20207             GST_BASE_LIBS=`$PKG_CONFIG --libs "\
20208   gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20209             { echo "$as_me:$LINENO: result: $GST_BASE_LIBS" >&5
20210 echo "${ECHO_T}$GST_BASE_LIBS" >&6; }
20211         else
20212             GST_BASE_CFLAGS=""
20213             GST_BASE_LIBS=""
20214             ## If we have a custom action on failure, don't print errors, but 
20215             ## do set a variable so people can do so.
20216             GST_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "\
20217   gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20218             
20219         fi
20221         
20222         
20223      else
20224         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20225         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20226      fi
20227   fi
20229   if test $succeeded = yes; then
20230      HAVE_GST_BASE=yes
20231   else
20232      HAVE_GST_BASE=no
20233   fi
20236 if test "x$HAVE_GST_BASE" = "xno"; then
20237   { { echo "$as_me:$LINENO: error: you need gstreamer base development packages installed !" >&5
20238 echo "$as_me: error: you need gstreamer base development packages installed !" >&2;}
20239    { (exit 1); exit 1; }; }
20242 GST_CFLAGS="$GST_CFLAGS $GST_ERROR"
20253 plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
20256 GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex _*\(gst_\|Gst\|GST_\).*'
20259 ac_config_files="$ac_config_files Makefile m4/Makefile src/Makefile common/Makefile gst-davinci.spec"
20261 cat >confcache <<\_ACEOF
20262 # This file is a shell script that caches the results of configure
20263 # tests run on this system so they can be shared between configure
20264 # scripts and configure runs, see configure's option --config-cache.
20265 # It is not useful on other systems.  If it contains results you don't
20266 # want to keep, you may remove or edit it.
20268 # config.status only pays attention to the cache file if you give it
20269 # the --recheck option to rerun configure.
20271 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20272 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20273 # following values.
20275 _ACEOF
20277 # The following way of writing the cache mishandles newlines in values,
20278 # but we know of no workaround that is simple, portable, and efficient.
20279 # So, we kill variables containing newlines.
20280 # Ultrix sh set writes to stderr and can't be redirected directly,
20281 # and sets the high bit in the cache file unless we assign to the vars.
20283   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20284     eval ac_val=\$$ac_var
20285     case $ac_val in #(
20286     *${as_nl}*)
20287       case $ac_var in #(
20288       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20289 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20290       esac
20291       case $ac_var in #(
20292       _ | IFS | as_nl) ;; #(
20293       *) $as_unset $ac_var ;;
20294       esac ;;
20295     esac
20296   done
20298   (set) 2>&1 |
20299     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20300     *${as_nl}ac_space=\ *)
20301       # `set' does not quote correctly, so add quotes (double-quote
20302       # substitution turns \\\\ into \\, and sed turns \\ into \).
20303       sed -n \
20304         "s/'/'\\\\''/g;
20305           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20306       ;; #(
20307     *)
20308       # `set' quotes correctly as required by POSIX, so do not add quotes.
20309       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20310       ;;
20311     esac |
20312     sort
20313 ) |
20314   sed '
20315      /^ac_cv_env_/b end
20316      t clear
20317      :clear
20318      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20319      t end
20320      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20321      :end' >>confcache
20322 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20323   if test -w "$cache_file"; then
20324     test "x$cache_file" != "x/dev/null" &&
20325       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20326 echo "$as_me: updating cache $cache_file" >&6;}
20327     cat confcache >$cache_file
20328   else
20329     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20330 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20331   fi
20333 rm -f confcache
20335 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20336 # Let make expand exec_prefix.
20337 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20339 DEFS=-DHAVE_CONFIG_H
20341 ac_libobjs=
20342 ac_ltlibobjs=
20343 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
20344   # 1. Remove the extension, and $U if already installed.
20345   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20346   ac_i=`echo "$ac_i" | sed "$ac_script"`
20347   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20348   #    will be set to the directory where LIBOBJS objects are built.
20349   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20350   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20351 done
20352 LIB@&t@OBJS=$ac_libobjs
20354 LTLIBOBJS=$ac_ltlibobjs
20357 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20358   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20359 Usually this means the macro was only invoked conditionally." >&5
20360 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20361 Usually this means the macro was only invoked conditionally." >&2;}
20362    { (exit 1); exit 1; }; }
20364 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20365   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20366 Usually this means the macro was only invoked conditionally." >&5
20367 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20368 Usually this means the macro was only invoked conditionally." >&2;}
20369    { (exit 1); exit 1; }; }
20371 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20372   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20373 Usually this means the macro was only invoked conditionally." >&5
20374 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20375 Usually this means the macro was only invoked conditionally." >&2;}
20376    { (exit 1); exit 1; }; }
20378 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20379   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20380 Usually this means the macro was only invoked conditionally." >&5
20381 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20382 Usually this means the macro was only invoked conditionally." >&2;}
20383    { (exit 1); exit 1; }; }
20386 : ${CONFIG_STATUS=./config.status}
20387 ac_clean_files_save=$ac_clean_files
20388 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20389 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20390 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20391 cat >$CONFIG_STATUS <<_ACEOF
20392 #! $SHELL
20393 # Generated by $as_me.
20394 # Run this file to recreate the current configuration.
20395 # Compiler output produced by configure, useful for debugging
20396 # configure, is in config.log if it exists.
20398 debug=false
20399 ac_cs_recheck=false
20400 ac_cs_silent=false
20401 SHELL=\${CONFIG_SHELL-$SHELL}
20402 _ACEOF
20404 cat >>$CONFIG_STATUS <<\_ACEOF
20405 ## --------------------- ##
20406 ## M4sh Initialization.  ##
20407 ## --------------------- ##
20409 # Be more Bourne compatible
20410 DUALCASE=1; export DUALCASE # for MKS sh
20411 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20412   emulate sh
20413   NULLCMD=:
20414   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20415   # is contrary to our usage.  Disable this feature.
20416   alias -g '${1+"$@"}'='"$@"'
20417   setopt NO_GLOB_SUBST
20418 else
20419   case `(set -o) 2>/dev/null` in
20420   *posix*) set -o posix ;;
20421 esac
20428 # PATH needs CR
20429 # Avoid depending upon Character Ranges.
20430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20433 as_cr_digits='0123456789'
20434 as_cr_alnum=$as_cr_Letters$as_cr_digits
20436 # The user is always right.
20437 if test "${PATH_SEPARATOR+set}" != set; then
20438   echo "#! /bin/sh" >conf$$.sh
20439   echo  "exit 0"   >>conf$$.sh
20440   chmod +x conf$$.sh
20441   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20442     PATH_SEPARATOR=';'
20443   else
20444     PATH_SEPARATOR=:
20445   fi
20446   rm -f conf$$.sh
20449 # Support unset when possible.
20450 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20451   as_unset=unset
20452 else
20453   as_unset=false
20457 # IFS
20458 # We need space, tab and new line, in precisely that order.  Quoting is
20459 # there to prevent editors from complaining about space-tab.
20460 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20461 # splitting by setting IFS to empty value.)
20462 as_nl='
20464 IFS=" ""        $as_nl"
20466 # Find who we are.  Look in the path if we contain no directory separator.
20467 case $0 in
20468   *[\\/]* ) as_myself=$0 ;;
20469   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20470 for as_dir in $PATH
20472   IFS=$as_save_IFS
20473   test -z "$as_dir" && as_dir=.
20474   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20475 done
20476 IFS=$as_save_IFS
20478      ;;
20479 esac
20480 # We did not find ourselves, most probably we were run as `sh COMMAND'
20481 # in which case we are not to be found in the path.
20482 if test "x$as_myself" = x; then
20483   as_myself=$0
20485 if test ! -f "$as_myself"; then
20486   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20487   { (exit 1); exit 1; }
20490 # Work around bugs in pre-3.0 UWIN ksh.
20491 for as_var in ENV MAIL MAILPATH
20492 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20493 done
20494 PS1='$ '
20495 PS2='> '
20496 PS4='+ '
20498 # NLS nuisances.
20499 for as_var in \
20500   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20501   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20502   LC_TELEPHONE LC_TIME
20504   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20505     eval $as_var=C; export $as_var
20506   else
20507     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20508   fi
20509 done
20511 # Required to use basename.
20512 if expr a : '\(a\)' >/dev/null 2>&1 &&
20513    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20514   as_expr=expr
20515 else
20516   as_expr=false
20519 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20520   as_basename=basename
20521 else
20522   as_basename=false
20526 # Name of the executable.
20527 as_me=`$as_basename -- "$0" ||
20528 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20529          X"$0" : 'X\(//\)$' \| \
20530          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20531 echo X/"$0" |
20532     sed '/^.*\/\([^/][^/]*\)\/*$/{
20533             s//\1/
20534             q
20535           }
20536           /^X\/\(\/\/\)$/{
20537             s//\1/
20538             q
20539           }
20540           /^X\/\(\/\).*/{
20541             s//\1/
20542             q
20543           }
20544           s/.*/./; q'`
20546 # CDPATH.
20547 $as_unset CDPATH
20551   as_lineno_1=$LINENO
20552   as_lineno_2=$LINENO
20553   test "x$as_lineno_1" != "x$as_lineno_2" &&
20554   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20556   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20557   # uniformly replaced by the line number.  The first 'sed' inserts a
20558   # line-number line after each line using $LINENO; the second 'sed'
20559   # does the real work.  The second script uses 'N' to pair each
20560   # line-number line with the line containing $LINENO, and appends
20561   # trailing '-' during substitution so that $LINENO is not a special
20562   # case at line end.
20563   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20564   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20565   # E. McMahon (1931-1989) for sed's syntax.  :-)
20566   sed -n '
20567     p
20568     /[$]LINENO/=
20569   ' <$as_myself |
20570     sed '
20571       s/[$]LINENO.*/&-/
20572       t lineno
20573       b
20574       :lineno
20575       N
20576       :loop
20577       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20578       t loop
20579       s/-\n.*//
20580     ' >$as_me.lineno &&
20581   chmod +x "$as_me.lineno" ||
20582     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20583    { (exit 1); exit 1; }; }
20585   # Don't try to exec as it changes $[0], causing all sort of problems
20586   # (the dirname of $[0] is not the place where we might find the
20587   # original and so on.  Autoconf is especially sensitive to this).
20588   . "./$as_me.lineno"
20589   # Exit status is that of the last command.
20590   exit
20594 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20595   as_dirname=dirname
20596 else
20597   as_dirname=false
20600 ECHO_C= ECHO_N= ECHO_T=
20601 case `echo -n x` in
20602 -n*)
20603   case `echo 'x\c'` in
20604   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20605   *)   ECHO_C='\c';;
20606   esac;;
20608   ECHO_N='-n';;
20609 esac
20611 if expr a : '\(a\)' >/dev/null 2>&1 &&
20612    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20613   as_expr=expr
20614 else
20615   as_expr=false
20618 rm -f conf$$ conf$$.exe conf$$.file
20619 if test -d conf$$.dir; then
20620   rm -f conf$$.dir/conf$$.file
20621 else
20622   rm -f conf$$.dir
20623   mkdir conf$$.dir
20625 echo >conf$$.file
20626 if ln -s conf$$.file conf$$ 2>/dev/null; then
20627   as_ln_s='ln -s'
20628   # ... but there are two gotchas:
20629   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20630   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20631   # In both cases, we have to default to `cp -p'.
20632   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20633     as_ln_s='cp -p'
20634 elif ln conf$$.file conf$$ 2>/dev/null; then
20635   as_ln_s=ln
20636 else
20637   as_ln_s='cp -p'
20639 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20640 rmdir conf$$.dir 2>/dev/null
20642 if mkdir -p . 2>/dev/null; then
20643   as_mkdir_p=:
20644 else
20645   test -d ./-p && rmdir ./-p
20646   as_mkdir_p=false
20649 if test -x / >/dev/null 2>&1; then
20650   as_test_x='test -x'
20651 else
20652   if ls -dL / >/dev/null 2>&1; then
20653     as_ls_L_option=L
20654   else
20655     as_ls_L_option=
20656   fi
20657   as_test_x='
20658     eval sh -c '\''
20659       if test -d "$1"; then
20660         test -d "$1/.";
20661       else
20662         case $1 in
20663         -*)set "./$1";;
20664         esac;
20665         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20666         ???[sx]*):;;*)false;;esac;fi
20667     '\'' sh
20668   '
20670 as_executable_p=$as_test_x
20672 # Sed expression to map a string onto a valid CPP name.
20673 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20675 # Sed expression to map a string onto a valid variable name.
20676 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20679 exec 6>&1
20681 # Save the log message, to keep $[0] and so on meaningful, and to
20682 # report actual input values of CONFIG_FILES etc. instead of their
20683 # values after options handling.
20684 ac_log="
20685 This file was extended by $as_me, which was
20686 generated by GNU Autoconf 2.61.  Invocation command line was
20688   CONFIG_FILES    = $CONFIG_FILES
20689   CONFIG_HEADERS  = $CONFIG_HEADERS
20690   CONFIG_LINKS    = $CONFIG_LINKS
20691   CONFIG_COMMANDS = $CONFIG_COMMANDS
20692   $ $0 $@
20694 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20697 _ACEOF
20699 cat >>$CONFIG_STATUS <<_ACEOF
20700 # Files that config.status was made for.
20701 config_files="$ac_config_files"
20702 config_headers="$ac_config_headers"
20703 config_commands="$ac_config_commands"
20705 _ACEOF
20707 cat >>$CONFIG_STATUS <<\_ACEOF
20708 ac_cs_usage="\
20709 \`$as_me' instantiates files from templates according to the
20710 current configuration.
20712 Usage: $0 [OPTIONS] [FILE]...
20714   -h, --help       print this help, then exit
20715   -V, --version    print version number and configuration settings, then exit
20716   -q, --quiet      do not print progress messages
20717   -d, --debug      don't remove temporary files
20718       --recheck    update $as_me by reconfiguring in the same conditions
20719   --file=FILE[:TEMPLATE]
20720                    instantiate the configuration file FILE
20721   --header=FILE[:TEMPLATE]
20722                    instantiate the configuration header FILE
20724 Configuration files:
20725 $config_files
20727 Configuration headers:
20728 $config_headers
20730 Configuration commands:
20731 $config_commands
20733 Report bugs to <bug-autoconf@gnu.org>."
20735 _ACEOF
20736 cat >>$CONFIG_STATUS <<_ACEOF
20737 ac_cs_version="\\
20738 config.status
20739 configured by $0, generated by GNU Autoconf 2.61,
20740   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20742 Copyright (C) 2006 Free Software Foundation, Inc.
20743 This config.status script is free software; the Free Software Foundation
20744 gives unlimited permission to copy, distribute and modify it."
20746 ac_pwd='$ac_pwd'
20747 srcdir='$srcdir'
20748 INSTALL='$INSTALL'
20749 MKDIR_P='$MKDIR_P'
20750 _ACEOF
20752 cat >>$CONFIG_STATUS <<\_ACEOF
20753 # If no file are specified by the user, then we need to provide default
20754 # value.  By we need to know if files were specified by the user.
20755 ac_need_defaults=:
20756 while test $# != 0
20758   case $1 in
20759   --*=*)
20760     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20761     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20762     ac_shift=:
20763     ;;
20764   *)
20765     ac_option=$1
20766     ac_optarg=$2
20767     ac_shift=shift
20768     ;;
20769   esac
20771   case $ac_option in
20772   # Handling of the options.
20773   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20774     ac_cs_recheck=: ;;
20775   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20776     echo "$ac_cs_version"; exit ;;
20777   --debug | --debu | --deb | --de | --d | -d )
20778     debug=: ;;
20779   --file | --fil | --fi | --f )
20780     $ac_shift
20781     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20782     ac_need_defaults=false;;
20783   --header | --heade | --head | --hea )
20784     $ac_shift
20785     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20786     ac_need_defaults=false;;
20787   --he | --h)
20788     # Conflict between --help and --header
20789     { echo "$as_me: error: ambiguous option: $1
20790 Try \`$0 --help' for more information." >&2
20791    { (exit 1); exit 1; }; };;
20792   --help | --hel | -h )
20793     echo "$ac_cs_usage"; exit ;;
20794   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20795   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20796     ac_cs_silent=: ;;
20798   # This is an error.
20799   -*) { echo "$as_me: error: unrecognized option: $1
20800 Try \`$0 --help' for more information." >&2
20801    { (exit 1); exit 1; }; } ;;
20803   *) ac_config_targets="$ac_config_targets $1"
20804      ac_need_defaults=false ;;
20806   esac
20807   shift
20808 done
20810 ac_configure_extra_args=
20812 if $ac_cs_silent; then
20813   exec 6>/dev/null
20814   ac_configure_extra_args="$ac_configure_extra_args --silent"
20817 _ACEOF
20818 cat >>$CONFIG_STATUS <<_ACEOF
20819 if \$ac_cs_recheck; then
20820   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20821   CONFIG_SHELL=$SHELL
20822   export CONFIG_SHELL
20823   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20826 _ACEOF
20827 cat >>$CONFIG_STATUS <<\_ACEOF
20828 exec 5>>config.log
20830   echo
20831   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
20832 @%:@@%:@ Running $as_me. @%:@@%:@
20833 _ASBOX
20834   echo "$ac_log"
20835 } >&5
20837 _ACEOF
20838 cat >>$CONFIG_STATUS <<_ACEOF
20840 # INIT-COMMANDS
20842 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20844 _ACEOF
20846 cat >>$CONFIG_STATUS <<\_ACEOF
20848 # Handling of arguments.
20849 for ac_config_target in $ac_config_targets
20851   case $ac_config_target in
20852     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20853     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20854     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20855     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
20856     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20857     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
20858     "gst-davinci.spec") CONFIG_FILES="$CONFIG_FILES gst-davinci.spec" ;;
20860   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20861 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20862    { (exit 1); exit 1; }; };;
20863   esac
20864 done
20867 # If the user did not use the arguments to specify the items to instantiate,
20868 # then the envvar interface is used.  Set only those that are not.
20869 # We use the long form for the default assignment because of an extremely
20870 # bizarre bug on SunOS 4.1.3.
20871 if $ac_need_defaults; then
20872   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20873   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20874   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20877 # Have a temporary directory for convenience.  Make it in the build tree
20878 # simply because there is no reason against having it here, and in addition,
20879 # creating and moving files from /tmp can sometimes cause problems.
20880 # Hook for its removal unless debugging.
20881 # Note that there is a small window in which the directory will not be cleaned:
20882 # after its creation but before its name has been assigned to `$tmp'.
20883 $debug ||
20885   tmp=
20886   trap 'exit_status=$?
20887   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20888 ' 0
20889   trap '{ (exit 1); exit 1; }' 1 2 13 15
20891 # Create a (secure) tmp directory for tmp files.
20894   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20895   test -n "$tmp" && test -d "$tmp"
20896 }  ||
20898   tmp=./conf$$-$RANDOM
20899   (umask 077 && mkdir "$tmp")
20900 } ||
20902    echo "$me: cannot create a temporary directory in ." >&2
20903    { (exit 1); exit 1; }
20907 # Set up the sed scripts for CONFIG_FILES section.
20910 # No need to generate the scripts if there are no CONFIG_FILES.
20911 # This happens for instance when ./config.status config.h
20912 if test -n "$CONFIG_FILES"; then
20914 _ACEOF
20918 ac_delim='%!_!# '
20919 for ac_last_try in false false false false false :; do
20920   cat >conf$$subs.sed <<_ACEOF
20921 SHELL!$SHELL$ac_delim
20922 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20923 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20924 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20925 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20926 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20927 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20928 exec_prefix!$exec_prefix$ac_delim
20929 prefix!$prefix$ac_delim
20930 program_transform_name!$program_transform_name$ac_delim
20931 bindir!$bindir$ac_delim
20932 sbindir!$sbindir$ac_delim
20933 libexecdir!$libexecdir$ac_delim
20934 datarootdir!$datarootdir$ac_delim
20935 datadir!$datadir$ac_delim
20936 sysconfdir!$sysconfdir$ac_delim
20937 sharedstatedir!$sharedstatedir$ac_delim
20938 localstatedir!$localstatedir$ac_delim
20939 includedir!$includedir$ac_delim
20940 oldincludedir!$oldincludedir$ac_delim
20941 docdir!$docdir$ac_delim
20942 infodir!$infodir$ac_delim
20943 htmldir!$htmldir$ac_delim
20944 dvidir!$dvidir$ac_delim
20945 pdfdir!$pdfdir$ac_delim
20946 psdir!$psdir$ac_delim
20947 libdir!$libdir$ac_delim
20948 localedir!$localedir$ac_delim
20949 mandir!$mandir$ac_delim
20950 DEFS!$DEFS$ac_delim
20951 ECHO_C!$ECHO_C$ac_delim
20952 ECHO_N!$ECHO_N$ac_delim
20953 ECHO_T!$ECHO_T$ac_delim
20954 LIBS!$LIBS$ac_delim
20955 build_alias!$build_alias$ac_delim
20956 host_alias!$host_alias$ac_delim
20957 target_alias!$target_alias$ac_delim
20958 GST_PLUGIN_VERSION!$GST_PLUGIN_VERSION$ac_delim
20959 GST_PLUGIN_VERSION_RELEASE!$GST_PLUGIN_VERSION_RELEASE$ac_delim
20960 GST_PLUGIN_VERSION_MAJOR!$GST_PLUGIN_VERSION_MAJOR$ac_delim
20961 GST_PLUGIN_VERSION_MINOR!$GST_PLUGIN_VERSION_MINOR$ac_delim
20962 GST_PLUGIN_VERSION_MICRO!$GST_PLUGIN_VERSION_MICRO$ac_delim
20963 GST_PLUGIN_VERSION_NANO!$GST_PLUGIN_VERSION_NANO$ac_delim
20964 PACKAGE!$PACKAGE$ac_delim
20965 VERSION!$VERSION$ac_delim
20966 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
20967 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
20968 MAINT!$MAINT$ac_delim
20969 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20970 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20971 INSTALL_DATA!$INSTALL_DATA$ac_delim
20972 am__isrc!$am__isrc$ac_delim
20973 CYGPATH_W!$CYGPATH_W$ac_delim
20974 ACLOCAL!$ACLOCAL$ac_delim
20975 AUTOCONF!$AUTOCONF$ac_delim
20976 AUTOMAKE!$AUTOMAKE$ac_delim
20977 AUTOHEADER!$AUTOHEADER$ac_delim
20978 MAKEINFO!$MAKEINFO$ac_delim
20979 install_sh!$install_sh$ac_delim
20980 STRIP!$STRIP$ac_delim
20981 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20982 mkdir_p!$mkdir_p$ac_delim
20983 AWK!$AWK$ac_delim
20984 SET_MAKE!$SET_MAKE$ac_delim
20985 am__leading_dot!$am__leading_dot$ac_delim
20986 AMTAR!$AMTAR$ac_delim
20987 am__tar!$am__tar$ac_delim
20988 am__untar!$am__untar$ac_delim
20989 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
20990 CC!$CC$ac_delim
20991 CFLAGS!$CFLAGS$ac_delim
20992 LDFLAGS!$LDFLAGS$ac_delim
20993 CPPFLAGS!$CPPFLAGS$ac_delim
20994 ac_ct_CC!$ac_ct_CC$ac_delim
20995 EXEEXT!$EXEEXT$ac_delim
20996 OBJEXT!$OBJEXT$ac_delim
20997 DEPDIR!$DEPDIR$ac_delim
20998 am__include!$am__include$ac_delim
20999 am__quote!$am__quote$ac_delim
21000 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21001 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21002 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21003 CCDEPMODE!$CCDEPMODE$ac_delim
21004 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21005 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21006 build!$build$ac_delim
21007 build_cpu!$build_cpu$ac_delim
21008 build_vendor!$build_vendor$ac_delim
21009 build_os!$build_os$ac_delim
21010 host!$host$ac_delim
21011 host_cpu!$host_cpu$ac_delim
21012 host_vendor!$host_vendor$ac_delim
21013 host_os!$host_os$ac_delim
21014 SED!$SED$ac_delim
21015 GREP!$GREP$ac_delim
21016 EGREP!$EGREP$ac_delim
21017 LN_S!$LN_S$ac_delim
21018 _ACEOF
21020   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21021     break
21022   elif $ac_last_try; then
21023     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21024 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21025    { (exit 1); exit 1; }; }
21026   else
21027     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21028   fi
21029 done
21031 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21032 if test -n "$ac_eof"; then
21033   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21034   ac_eof=`expr $ac_eof + 1`
21037 cat >>$CONFIG_STATUS <<_ACEOF
21038 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21039 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21040 _ACEOF
21041 sed '
21042 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21043 s/^/s,@/; s/!/@,|#_!!_#|/
21045 t n
21046 s/'"$ac_delim"'$/,g/; t
21047 s/$/\\/; p
21048 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21049 ' >>$CONFIG_STATUS <conf$$subs.sed
21050 rm -f conf$$subs.sed
21051 cat >>$CONFIG_STATUS <<_ACEOF
21052 CEOF$ac_eof
21053 _ACEOF
21056 ac_delim='%!_!# '
21057 for ac_last_try in false false false false false :; do
21058   cat >conf$$subs.sed <<_ACEOF
21059 ECHO!$ECHO$ac_delim
21060 AR!$AR$ac_delim
21061 RANLIB!$RANLIB$ac_delim
21062 DSYMUTIL!$DSYMUTIL$ac_delim
21063 NMEDIT!$NMEDIT$ac_delim
21064 CPP!$CPP$ac_delim
21065 CXX!$CXX$ac_delim
21066 CXXFLAGS!$CXXFLAGS$ac_delim
21067 ac_ct_CXX!$ac_ct_CXX$ac_delim
21068 CXXDEPMODE!$CXXDEPMODE$ac_delim
21069 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21070 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21071 CXXCPP!$CXXCPP$ac_delim
21072 F77!$F77$ac_delim
21073 FFLAGS!$FFLAGS$ac_delim
21074 ac_ct_F77!$ac_ct_F77$ac_delim
21075 LIBTOOL!$LIBTOOL$ac_delim
21076 HAVE_PKGCONFIG!$HAVE_PKGCONFIG$ac_delim
21077 PKG_CONFIG!$PKG_CONFIG$ac_delim
21078 GST_CFLAGS!$GST_CFLAGS$ac_delim
21079 GST_LIBS!$GST_LIBS$ac_delim
21080 GST_BASE_CFLAGS!$GST_BASE_CFLAGS$ac_delim
21081 GST_BASE_LIBS!$GST_BASE_LIBS$ac_delim
21082 GST_LIB_LDFLAGS!$GST_LIB_LDFLAGS$ac_delim
21083 GST_ALL_LDFLAGS!$GST_ALL_LDFLAGS$ac_delim
21084 GST_LT_LDFLAGS!$GST_LT_LDFLAGS$ac_delim
21085 GST_MAJORMINOR!$GST_MAJORMINOR$ac_delim
21086 plugindir!$plugindir$ac_delim
21087 GST_PLUGIN_LDFLAGS!$GST_PLUGIN_LDFLAGS$ac_delim
21088 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
21089 LTLIBOBJS!$LTLIBOBJS$ac_delim
21090 _ACEOF
21092   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 31; then
21093     break
21094   elif $ac_last_try; then
21095     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21096 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21097    { (exit 1); exit 1; }; }
21098   else
21099     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21100   fi
21101 done
21103 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21104 if test -n "$ac_eof"; then
21105   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21106   ac_eof=`expr $ac_eof + 1`
21109 cat >>$CONFIG_STATUS <<_ACEOF
21110 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21111 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21112 _ACEOF
21113 sed '
21114 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21115 s/^/s,@/; s/!/@,|#_!!_#|/
21117 t n
21118 s/'"$ac_delim"'$/,g/; t
21119 s/$/\\/; p
21120 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21121 ' >>$CONFIG_STATUS <conf$$subs.sed
21122 rm -f conf$$subs.sed
21123 cat >>$CONFIG_STATUS <<_ACEOF
21124 :end
21125 s/|#_!!_#|//g
21126 CEOF$ac_eof
21127 _ACEOF
21130 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21131 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21132 # trailing colons and then remove the whole line if VPATH becomes empty
21133 # (actually we leave an empty line to preserve line numbers).
21134 if test "x$srcdir" = x.; then
21135   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21136 s/:*\$(srcdir):*/:/
21137 s/:*\${srcdir}:*/:/
21138 s/:*@srcdir@:*/:/
21139 s/^\([^=]*=[     ]*\):*/\1/
21140 s/:*$//
21141 s/^[^=]*=[       ]*$//
21145 cat >>$CONFIG_STATUS <<\_ACEOF
21146 fi # test -n "$CONFIG_FILES"
21149 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21151   case $ac_tag in
21152   :[FHLC]) ac_mode=$ac_tag; continue;;
21153   esac
21154   case $ac_mode$ac_tag in
21155   :[FHL]*:*);;
21156   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21157 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21158    { (exit 1); exit 1; }; };;
21159   :[FH]-) ac_tag=-:-;;
21160   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21161   esac
21162   ac_save_IFS=$IFS
21163   IFS=:
21164   set x $ac_tag
21165   IFS=$ac_save_IFS
21166   shift
21167   ac_file=$1
21168   shift
21170   case $ac_mode in
21171   :L) ac_source=$1;;
21172   :[FH])
21173     ac_file_inputs=
21174     for ac_f
21175     do
21176       case $ac_f in
21177       -) ac_f="$tmp/stdin";;
21178       *) # Look for the file first in the build tree, then in the source tree
21179          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21180          # because $ac_f cannot contain `:'.
21181          test -f "$ac_f" ||
21182            case $ac_f in
21183            [\\/$]*) false;;
21184            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21185            esac ||
21186            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21187 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21188    { (exit 1); exit 1; }; };;
21189       esac
21190       ac_file_inputs="$ac_file_inputs $ac_f"
21191     done
21193     # Let's still pretend it is `configure' which instantiates (i.e., don't
21194     # use $as_me), people would be surprised to read:
21195     #    /* config.h.  Generated by config.status.  */
21196     configure_input="Generated from "`IFS=:
21197           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21198     if test x"$ac_file" != x-; then
21199       configure_input="$ac_file.  $configure_input"
21200       { echo "$as_me:$LINENO: creating $ac_file" >&5
21201 echo "$as_me: creating $ac_file" >&6;}
21202     fi
21204     case $ac_tag in
21205     *:-:* | *:-) cat >"$tmp/stdin";;
21206     esac
21207     ;;
21208   esac
21210   ac_dir=`$as_dirname -- "$ac_file" ||
21211 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21212          X"$ac_file" : 'X\(//\)[^/]' \| \
21213          X"$ac_file" : 'X\(//\)$' \| \
21214          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21215 echo X"$ac_file" |
21216     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21217             s//\1/
21218             q
21219           }
21220           /^X\(\/\/\)[^/].*/{
21221             s//\1/
21222             q
21223           }
21224           /^X\(\/\/\)$/{
21225             s//\1/
21226             q
21227           }
21228           /^X\(\/\).*/{
21229             s//\1/
21230             q
21231           }
21232           s/.*/./; q'`
21233   { as_dir="$ac_dir"
21234   case $as_dir in #(
21235   -*) as_dir=./$as_dir;;
21236   esac
21237   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21238     as_dirs=
21239     while :; do
21240       case $as_dir in #(
21241       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21242       *) as_qdir=$as_dir;;
21243       esac
21244       as_dirs="'$as_qdir' $as_dirs"
21245       as_dir=`$as_dirname -- "$as_dir" ||
21246 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21247          X"$as_dir" : 'X\(//\)[^/]' \| \
21248          X"$as_dir" : 'X\(//\)$' \| \
21249          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21250 echo X"$as_dir" |
21251     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21252             s//\1/
21253             q
21254           }
21255           /^X\(\/\/\)[^/].*/{
21256             s//\1/
21257             q
21258           }
21259           /^X\(\/\/\)$/{
21260             s//\1/
21261             q
21262           }
21263           /^X\(\/\).*/{
21264             s//\1/
21265             q
21266           }
21267           s/.*/./; q'`
21268       test -d "$as_dir" && break
21269     done
21270     test -z "$as_dirs" || eval "mkdir $as_dirs"
21271   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21272 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21273    { (exit 1); exit 1; }; }; }
21274   ac_builddir=.
21276 case "$ac_dir" in
21277 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21279   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21280   # A ".." for each directory in $ac_dir_suffix.
21281   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21282   case $ac_top_builddir_sub in
21283   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21284   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21285   esac ;;
21286 esac
21287 ac_abs_top_builddir=$ac_pwd
21288 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21289 # for backward compatibility:
21290 ac_top_builddir=$ac_top_build_prefix
21292 case $srcdir in
21293   .)  # We are building in place.
21294     ac_srcdir=.
21295     ac_top_srcdir=$ac_top_builddir_sub
21296     ac_abs_top_srcdir=$ac_pwd ;;
21297   [\\/]* | ?:[\\/]* )  # Absolute name.
21298     ac_srcdir=$srcdir$ac_dir_suffix;
21299     ac_top_srcdir=$srcdir
21300     ac_abs_top_srcdir=$srcdir ;;
21301   *) # Relative name.
21302     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21303     ac_top_srcdir=$ac_top_build_prefix$srcdir
21304     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21305 esac
21306 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21309   case $ac_mode in
21310   :F)
21311   #
21312   # CONFIG_FILE
21313   #
21315   case $INSTALL in
21316   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21317   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21318   esac
21319   ac_MKDIR_P=$MKDIR_P
21320   case $MKDIR_P in
21321   [\\/$]* | ?:[\\/]* ) ;;
21322   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21323   esac
21324 _ACEOF
21326 cat >>$CONFIG_STATUS <<\_ACEOF
21327 # If the template does not know about datarootdir, expand it.
21328 # FIXME: This hack should be removed a few years after 2.60.
21329 ac_datarootdir_hack=; ac_datarootdir_seen=
21331 case `sed -n '/datarootdir/ {
21332   p
21333   q
21335 /@datadir@/p
21336 /@docdir@/p
21337 /@infodir@/p
21338 /@localedir@/p
21339 /@mandir@/p
21340 ' $ac_file_inputs` in
21341 *datarootdir*) ac_datarootdir_seen=yes;;
21342 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21343   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21344 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21345 _ACEOF
21346 cat >>$CONFIG_STATUS <<_ACEOF
21347   ac_datarootdir_hack='
21348   s&@datadir@&$datadir&g
21349   s&@docdir@&$docdir&g
21350   s&@infodir@&$infodir&g
21351   s&@localedir@&$localedir&g
21352   s&@mandir@&$mandir&g
21353     s&\\\${datarootdir}&$datarootdir&g' ;;
21354 esac
21355 _ACEOF
21357 # Neutralize VPATH when `$srcdir' = `.'.
21358 # Shell code in configure.ac might set extrasub.
21359 # FIXME: do we really want to maintain this feature?
21360 cat >>$CONFIG_STATUS <<_ACEOF
21361   sed "$ac_vpsub
21362 $extrasub
21363 _ACEOF
21364 cat >>$CONFIG_STATUS <<\_ACEOF
21366 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21367 s&@configure_input@&$configure_input&;t t
21368 s&@top_builddir@&$ac_top_builddir_sub&;t t
21369 s&@srcdir@&$ac_srcdir&;t t
21370 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21371 s&@top_srcdir@&$ac_top_srcdir&;t t
21372 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21373 s&@builddir@&$ac_builddir&;t t
21374 s&@abs_builddir@&$ac_abs_builddir&;t t
21375 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21376 s&@INSTALL@&$ac_INSTALL&;t t
21377 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21378 $ac_datarootdir_hack
21379 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21381 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21382   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21383   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21384   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21385 which seems to be undefined.  Please make sure it is defined." >&5
21386 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21387 which seems to be undefined.  Please make sure it is defined." >&2;}
21389   rm -f "$tmp/stdin"
21390   case $ac_file in
21391   -) cat "$tmp/out"; rm -f "$tmp/out";;
21392   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21393   esac
21394  ;;
21395   :H)
21396   #
21397   # CONFIG_HEADER
21398   #
21399 _ACEOF
21401 # Transform confdefs.h into a sed script `conftest.defines', that
21402 # substitutes the proper values into config.h.in to produce config.h.
21403 rm -f conftest.defines conftest.tail
21404 # First, append a space to every undef/define line, to ease matching.
21405 echo 's/$/ /' >conftest.defines
21406 # Then, protect against being on the right side of a sed subst, or in
21407 # an unquoted here document, in config.status.  If some macros were
21408 # called several times there might be several #defines for the same
21409 # symbol, which is useless.  But do not sort them, since the last
21410 # AC_DEFINE must be honored.
21411 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21412 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21413 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21414 # PARAMS is the parameter list in the macro definition--in most cases, it's
21415 # just an empty string.
21416 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
21417 ac_dB='\\)[      (].*,\\1define\\2'
21418 ac_dC=' '
21419 ac_dD=' ,'
21421 uniq confdefs.h |
21422   sed -n '
21423         t rset
21424         :rset
21425         s/^[     ]*#[    ]*define[       ][      ]*//
21426         t ok
21427         d
21428         :ok
21429         s/[\\&,]/\\&/g
21430         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21431         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21432   ' >>conftest.defines
21434 # Remove the space that was appended to ease matching.
21435 # Then replace #undef with comments.  This is necessary, for
21436 # example, in the case of _POSIX_SOURCE, which is predefined and required
21437 # on some systems where configure will not decide to define it.
21438 # (The regexp can be short, since the line contains either #define or #undef.)
21439 echo 's/ $//
21440 s,^[     #]*u.*,/* & */,' >>conftest.defines
21442 # Break up conftest.defines:
21443 ac_max_sed_lines=50
21445 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21446 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21447 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21448 # et cetera.
21449 ac_in='$ac_file_inputs'
21450 ac_out='"$tmp/out1"'
21451 ac_nxt='"$tmp/out2"'
21453 while :
21455   # Write a here document:
21456     cat >>$CONFIG_STATUS <<_ACEOF
21457     # First, check the format of the line:
21458     cat >"\$tmp/defines.sed" <<\\CEOF
21459 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
21460 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
21462 :def
21463 _ACEOF
21464   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21465   echo 'CEOF
21466     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21467   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21468   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21469   grep . conftest.tail >/dev/null || break
21470   rm -f conftest.defines
21471   mv conftest.tail conftest.defines
21472 done
21473 rm -f conftest.defines conftest.tail
21475 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21476 cat >>$CONFIG_STATUS <<\_ACEOF
21477   if test x"$ac_file" != x-; then
21478     echo "/* $configure_input  */" >"$tmp/config.h"
21479     cat "$ac_result" >>"$tmp/config.h"
21480     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21481       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21482 echo "$as_me: $ac_file is unchanged" >&6;}
21483     else
21484       rm -f $ac_file
21485       mv "$tmp/config.h" $ac_file
21486     fi
21487   else
21488     echo "/* $configure_input  */"
21489     cat "$ac_result"
21490   fi
21491   rm -f "$tmp/out12"
21492 # Compute $ac_file's index in $config_headers.
21493 _am_arg=$ac_file
21494 _am_stamp_count=1
21495 for _am_header in $config_headers :; do
21496   case $_am_header in
21497     $_am_arg | $_am_arg:* )
21498       break ;;
21499     * )
21500       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21501   esac
21502 done
21503 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21504 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21505          X"$_am_arg" : 'X\(//\)[^/]' \| \
21506          X"$_am_arg" : 'X\(//\)$' \| \
21507          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21508 echo X"$_am_arg" |
21509     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21510             s//\1/
21511             q
21512           }
21513           /^X\(\/\/\)[^/].*/{
21514             s//\1/
21515             q
21516           }
21517           /^X\(\/\/\)$/{
21518             s//\1/
21519             q
21520           }
21521           /^X\(\/\).*/{
21522             s//\1/
21523             q
21524           }
21525           s/.*/./; q'`/stamp-h$_am_stamp_count
21526  ;;
21527   
21528   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21529 echo "$as_me: executing $ac_file commands" >&6;}
21530  ;;
21531   esac
21534   case $ac_file$ac_mode in
21535     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21536   # Strip MF so we end up with the name of the file.
21537   mf=`echo "$mf" | sed -e 's/:.*$//'`
21538   # Check whether this is an Automake generated Makefile or not.
21539   # We used to match only the files named `Makefile.in', but
21540   # some people rename them; so instead we look at the file content.
21541   # Grep'ing the first line is not enough: some people post-process
21542   # each Makefile.in and add a new line on top of each file to say so.
21543   # Grep'ing the whole file is not good either: AIX grep has a line
21544   # limit of 2048, but all sed's we know have understand at least 4000.
21545   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21546     dirpart=`$as_dirname -- "$mf" ||
21547 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21548          X"$mf" : 'X\(//\)[^/]' \| \
21549          X"$mf" : 'X\(//\)$' \| \
21550          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21551 echo X"$mf" |
21552     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21553             s//\1/
21554             q
21555           }
21556           /^X\(\/\/\)[^/].*/{
21557             s//\1/
21558             q
21559           }
21560           /^X\(\/\/\)$/{
21561             s//\1/
21562             q
21563           }
21564           /^X\(\/\).*/{
21565             s//\1/
21566             q
21567           }
21568           s/.*/./; q'`
21569   else
21570     continue
21571   fi
21572   # Extract the definition of DEPDIR, am__include, and am__quote
21573   # from the Makefile without running `make'.
21574   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21575   test -z "$DEPDIR" && continue
21576   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21577   test -z "am__include" && continue
21578   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21579   # When using ansi2knr, U may be empty or an underscore; expand it
21580   U=`sed -n 's/^U = //p' < "$mf"`
21581   # Find all dependency output files, they are included files with
21582   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21583   # simplest approach to changing $(DEPDIR) to its actual value in the
21584   # expansion.
21585   for file in `sed -n "
21586     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21587        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21588     # Make sure the directory exists.
21589     test -f "$dirpart/$file" && continue
21590     fdir=`$as_dirname -- "$file" ||
21591 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21592          X"$file" : 'X\(//\)[^/]' \| \
21593          X"$file" : 'X\(//\)$' \| \
21594          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21595 echo X"$file" |
21596     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21597             s//\1/
21598             q
21599           }
21600           /^X\(\/\/\)[^/].*/{
21601             s//\1/
21602             q
21603           }
21604           /^X\(\/\/\)$/{
21605             s//\1/
21606             q
21607           }
21608           /^X\(\/\).*/{
21609             s//\1/
21610             q
21611           }
21612           s/.*/./; q'`
21613     { as_dir=$dirpart/$fdir
21614   case $as_dir in #(
21615   -*) as_dir=./$as_dir;;
21616   esac
21617   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21618     as_dirs=
21619     while :; do
21620       case $as_dir in #(
21621       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21622       *) as_qdir=$as_dir;;
21623       esac
21624       as_dirs="'$as_qdir' $as_dirs"
21625       as_dir=`$as_dirname -- "$as_dir" ||
21626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21627          X"$as_dir" : 'X\(//\)[^/]' \| \
21628          X"$as_dir" : 'X\(//\)$' \| \
21629          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21630 echo X"$as_dir" |
21631     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21632             s//\1/
21633             q
21634           }
21635           /^X\(\/\/\)[^/].*/{
21636             s//\1/
21637             q
21638           }
21639           /^X\(\/\/\)$/{
21640             s//\1/
21641             q
21642           }
21643           /^X\(\/\).*/{
21644             s//\1/
21645             q
21646           }
21647           s/.*/./; q'`
21648       test -d "$as_dir" && break
21649     done
21650     test -z "$as_dirs" || eval "mkdir $as_dirs"
21651   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21652 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21653    { (exit 1); exit 1; }; }; }
21654     # echo "creating $dirpart/$file"
21655     echo '# dummy' > "$dirpart/$file"
21656   done
21657 done
21658  ;;
21660   esac
21661 done # for ac_tag
21664 { (exit 0); exit 0; }
21665 _ACEOF
21666 chmod +x $CONFIG_STATUS
21667 ac_clean_files=$ac_clean_files_save
21670 # configure is writing to config.log, and then calls config.status.
21671 # config.status does its own redirection, appending to config.log.
21672 # Unfortunately, on DOS this fails, as config.log is still kept open
21673 # by configure, so config.status won't be able to write to it; its
21674 # output is simply discarded.  So we exec the FD to /dev/null,
21675 # effectively closing config.log, so it can be properly (re)opened and
21676 # appended to by config.status.  When coming back to configure, we
21677 # need to make the FD available again.
21678 if test "$no_create" != yes; then
21679   ac_cs_success=:
21680   ac_config_status_args=
21681   test "$silent" = yes &&
21682     ac_config_status_args="$ac_config_status_args --quiet"
21683   exec 5>/dev/null
21684   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21685   exec 5>>config.log
21686   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21687   # would make configure fail if this is the last instruction.
21688   $ac_cs_success || { (exit 1); exit 1; }