a3c6aee1818e08f224c025435b462c6541371cda
[g2-sharing] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for sharing-plugin-template 0.1.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME='sharing-plugin-template'
728 PACKAGE_TARNAME='sharing-plugin-template'
729 PACKAGE_VERSION='0.1'
730 PACKAGE_STRING='sharing-plugin-template 0.1'
731 PACKAGE_BUGREPORT=''
732
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"
768
769 ac_subst_vars='SHELL
770 PATH_SEPARATOR
771 PACKAGE_NAME
772 PACKAGE_TARNAME
773 PACKAGE_VERSION
774 PACKAGE_STRING
775 PACKAGE_BUGREPORT
776 exec_prefix
777 prefix
778 program_transform_name
779 bindir
780 sbindir
781 libexecdir
782 datarootdir
783 datadir
784 sysconfdir
785 sharedstatedir
786 localstatedir
787 includedir
788 oldincludedir
789 docdir
790 infodir
791 htmldir
792 dvidir
793 pdfdir
794 psdir
795 libdir
796 localedir
797 mandir
798 DEFS
799 ECHO_C
800 ECHO_N
801 ECHO_T
802 LIBS
803 build_alias
804 host_alias
805 target_alias
806 INSTALL_PROGRAM
807 INSTALL_SCRIPT
808 INSTALL_DATA
809 CYGPATH_W
810 PACKAGE
811 VERSION
812 ACLOCAL
813 AUTOCONF
814 AUTOMAKE
815 AUTOHEADER
816 MAKEINFO
817 AMTAR
818 install_sh
819 STRIP
820 INSTALL_STRIP_PROGRAM
821 mkdir_p
822 AWK
823 SET_MAKE
824 am__leading_dot
825 MAINTAINER_MODE_TRUE
826 MAINTAINER_MODE_FALSE
827 MAINT
828 CC
829 CFLAGS
830 LDFLAGS
831 CPPFLAGS
832 ac_ct_CC
833 EXEEXT
834 OBJEXT
835 DEPDIR
836 am__include
837 am__quote
838 AMDEP_TRUE
839 AMDEP_FALSE
840 AMDEPBACKSLASH
841 CCDEPMODE
842 am__fastdepCC_TRUE
843 am__fastdepCC_FALSE
844 CXX
845 CXXFLAGS
846 ac_ct_CXX
847 CXXDEPMODE
848 am__fastdepCXX_TRUE
849 am__fastdepCXX_FALSE
850 CPP
851 GREP
852 EGREP
853 LN_S
854 build
855 build_cpu
856 build_vendor
857 build_os
858 host
859 host_cpu
860 host_vendor
861 host_os
862 SED
863 ECHO
864 AR
865 RANLIB
866 DSYMUTIL
867 NMEDIT
868 CXXCPP
869 F77
870 FFLAGS
871 ac_ct_F77
872 LIBTOOL
873 PKG_CONFIG
874 PACKAGE_CFLAGS
875 PACKAGE_LIBS
876 SHARING_CFLAGS
877 SHARING_LIBS
878 currentdir
879 pluginsdir
880 servicesdir
881 DEBUG_CFLAGS
882 PACKAGE_LOCALE_DIR
883 LIBOBJS
884 LTLIBOBJS'
885 ac_subst_files=''
886       ac_precious_vars='build_alias
887 host_alias
888 target_alias
889 CC
890 CFLAGS
891 LDFLAGS
892 LIBS
893 CPPFLAGS
894 CXX
895 CXXFLAGS
896 CCC
897 CPP
898 CXXCPP
899 F77
900 FFLAGS
901 PKG_CONFIG
902 PACKAGE_CFLAGS
903 PACKAGE_LIBS
904 SHARING_CFLAGS
905 SHARING_LIBS'
906
907
908 # Initialize some variables set by options.
909 ac_init_help=
910 ac_init_version=false
911 # The variables have the same names as the options, with
912 # dashes changed to underlines.
913 cache_file=/dev/null
914 exec_prefix=NONE
915 no_create=
916 no_recursion=
917 prefix=NONE
918 program_prefix=NONE
919 program_suffix=NONE
920 program_transform_name=s,x,x,
921 silent=
922 site=
923 srcdir=
924 verbose=
925 x_includes=NONE
926 x_libraries=NONE
927
928 # Installation directory options.
929 # These are left unexpanded so users can "make install exec_prefix=/foo"
930 # and all the variables that are supposed to be based on exec_prefix
931 # by default will actually change.
932 # Use braces instead of parens because sh, perl, etc. also accept them.
933 # (The list follows the same order as the GNU Coding Standards.)
934 bindir='${exec_prefix}/bin'
935 sbindir='${exec_prefix}/sbin'
936 libexecdir='${exec_prefix}/libexec'
937 datarootdir='${prefix}/share'
938 datadir='${datarootdir}'
939 sysconfdir='${prefix}/etc'
940 sharedstatedir='${prefix}/com'
941 localstatedir='${prefix}/var'
942 includedir='${prefix}/include'
943 oldincludedir='/usr/include'
944 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
945 infodir='${datarootdir}/info'
946 htmldir='${docdir}'
947 dvidir='${docdir}'
948 pdfdir='${docdir}'
949 psdir='${docdir}'
950 libdir='${exec_prefix}/lib'
951 localedir='${datarootdir}/locale'
952 mandir='${datarootdir}/man'
953
954 ac_prev=
955 ac_dashdash=
956 for ac_option
957 do
958   # If the previous option needs an argument, assign it.
959   if test -n "$ac_prev"; then
960     eval $ac_prev=\$ac_option
961     ac_prev=
962     continue
963   fi
964
965   case $ac_option in
966   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967   *)    ac_optarg=yes ;;
968   esac
969
970   # Accept the important Cygnus configure options, so we can diagnose typos.
971
972   case $ac_dashdash$ac_option in
973   --)
974     ac_dashdash=yes ;;
975
976   -bindir | --bindir | --bindi | --bind | --bin | --bi)
977     ac_prev=bindir ;;
978   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979     bindir=$ac_optarg ;;
980
981   -build | --build | --buil | --bui | --bu)
982     ac_prev=build_alias ;;
983   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984     build_alias=$ac_optarg ;;
985
986   -cache-file | --cache-file | --cache-fil | --cache-fi \
987   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988     ac_prev=cache_file ;;
989   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991     cache_file=$ac_optarg ;;
992
993   --config-cache | -C)
994     cache_file=config.cache ;;
995
996   -datadir | --datadir | --datadi | --datad)
997     ac_prev=datadir ;;
998   -datadir=* | --datadir=* | --datadi=* | --datad=*)
999     datadir=$ac_optarg ;;
1000
1001   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002   | --dataroo | --dataro | --datar)
1003     ac_prev=datarootdir ;;
1004   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006     datarootdir=$ac_optarg ;;
1007
1008   -disable-* | --disable-*)
1009     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010     # Reject names that are not valid shell variable names.
1011     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1012       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1013    { (exit 1); exit 1; }; }
1014     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1015     eval enable_$ac_feature=no ;;
1016
1017   -docdir | --docdir | --docdi | --doc | --do)
1018     ac_prev=docdir ;;
1019   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1020     docdir=$ac_optarg ;;
1021
1022   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1023     ac_prev=dvidir ;;
1024   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1025     dvidir=$ac_optarg ;;
1026
1027   -enable-* | --enable-*)
1028     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1029     # Reject names that are not valid shell variable names.
1030     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1031       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1032    { (exit 1); exit 1; }; }
1033     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1034     eval enable_$ac_feature=\$ac_optarg ;;
1035
1036   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038   | --exec | --exe | --ex)
1039     ac_prev=exec_prefix ;;
1040   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042   | --exec=* | --exe=* | --ex=*)
1043     exec_prefix=$ac_optarg ;;
1044
1045   -gas | --gas | --ga | --g)
1046     # Obsolete; use --with-gas.
1047     with_gas=yes ;;
1048
1049   -help | --help | --hel | --he | -h)
1050     ac_init_help=long ;;
1051   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052     ac_init_help=recursive ;;
1053   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054     ac_init_help=short ;;
1055
1056   -host | --host | --hos | --ho)
1057     ac_prev=host_alias ;;
1058   -host=* | --host=* | --hos=* | --ho=*)
1059     host_alias=$ac_optarg ;;
1060
1061   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062     ac_prev=htmldir ;;
1063   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064   | --ht=*)
1065     htmldir=$ac_optarg ;;
1066
1067   -includedir | --includedir | --includedi | --included | --include \
1068   | --includ | --inclu | --incl | --inc)
1069     ac_prev=includedir ;;
1070   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071   | --includ=* | --inclu=* | --incl=* | --inc=*)
1072     includedir=$ac_optarg ;;
1073
1074   -infodir | --infodir | --infodi | --infod | --info | --inf)
1075     ac_prev=infodir ;;
1076   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077     infodir=$ac_optarg ;;
1078
1079   -libdir | --libdir | --libdi | --libd)
1080     ac_prev=libdir ;;
1081   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082     libdir=$ac_optarg ;;
1083
1084   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085   | --libexe | --libex | --libe)
1086     ac_prev=libexecdir ;;
1087   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088   | --libexe=* | --libex=* | --libe=*)
1089     libexecdir=$ac_optarg ;;
1090
1091   -localedir | --localedir | --localedi | --localed | --locale)
1092     ac_prev=localedir ;;
1093   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094     localedir=$ac_optarg ;;
1095
1096   -localstatedir | --localstatedir | --localstatedi | --localstated \
1097   | --localstate | --localstat | --localsta | --localst | --locals)
1098     ac_prev=localstatedir ;;
1099   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1100   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1101     localstatedir=$ac_optarg ;;
1102
1103   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104     ac_prev=mandir ;;
1105   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106     mandir=$ac_optarg ;;
1107
1108   -nfp | --nfp | --nf)
1109     # Obsolete; use --without-fp.
1110     with_fp=no ;;
1111
1112   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113   | --no-cr | --no-c | -n)
1114     no_create=yes ;;
1115
1116   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118     no_recursion=yes ;;
1119
1120   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122   | --oldin | --oldi | --old | --ol | --o)
1123     ac_prev=oldincludedir ;;
1124   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127     oldincludedir=$ac_optarg ;;
1128
1129   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130     ac_prev=prefix ;;
1131   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132     prefix=$ac_optarg ;;
1133
1134   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135   | --program-pre | --program-pr | --program-p)
1136     ac_prev=program_prefix ;;
1137   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139     program_prefix=$ac_optarg ;;
1140
1141   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142   | --program-suf | --program-su | --program-s)
1143     ac_prev=program_suffix ;;
1144   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146     program_suffix=$ac_optarg ;;
1147
1148   -program-transform-name | --program-transform-name \
1149   | --program-transform-nam | --program-transform-na \
1150   | --program-transform-n | --program-transform- \
1151   | --program-transform | --program-transfor \
1152   | --program-transfo | --program-transf \
1153   | --program-trans | --program-tran \
1154   | --progr-tra | --program-tr | --program-t)
1155     ac_prev=program_transform_name ;;
1156   -program-transform-name=* | --program-transform-name=* \
1157   | --program-transform-nam=* | --program-transform-na=* \
1158   | --program-transform-n=* | --program-transform-=* \
1159   | --program-transform=* | --program-transfor=* \
1160   | --program-transfo=* | --program-transf=* \
1161   | --program-trans=* | --program-tran=* \
1162   | --progr-tra=* | --program-tr=* | --program-t=*)
1163     program_transform_name=$ac_optarg ;;
1164
1165   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166     ac_prev=pdfdir ;;
1167   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168     pdfdir=$ac_optarg ;;
1169
1170   -psdir | --psdir | --psdi | --psd | --ps)
1171     ac_prev=psdir ;;
1172   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173     psdir=$ac_optarg ;;
1174
1175   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176   | -silent | --silent | --silen | --sile | --sil)
1177     silent=yes ;;
1178
1179   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180     ac_prev=sbindir ;;
1181   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182   | --sbi=* | --sb=*)
1183     sbindir=$ac_optarg ;;
1184
1185   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187   | --sharedst | --shareds | --shared | --share | --shar \
1188   | --sha | --sh)
1189     ac_prev=sharedstatedir ;;
1190   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193   | --sha=* | --sh=*)
1194     sharedstatedir=$ac_optarg ;;
1195
1196   -site | --site | --sit)
1197     ac_prev=site ;;
1198   -site=* | --site=* | --sit=*)
1199     site=$ac_optarg ;;
1200
1201   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202     ac_prev=srcdir ;;
1203   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204     srcdir=$ac_optarg ;;
1205
1206   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207   | --syscon | --sysco | --sysc | --sys | --sy)
1208     ac_prev=sysconfdir ;;
1209   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211     sysconfdir=$ac_optarg ;;
1212
1213   -target | --target | --targe | --targ | --tar | --ta | --t)
1214     ac_prev=target_alias ;;
1215   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216     target_alias=$ac_optarg ;;
1217
1218   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219     verbose=yes ;;
1220
1221   -version | --version | --versio | --versi | --vers | -V)
1222     ac_init_version=: ;;
1223
1224   -with-* | --with-*)
1225     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1226     # Reject names that are not valid shell variable names.
1227     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228       { echo "$as_me: error: invalid package name: $ac_package" >&2
1229    { (exit 1); exit 1; }; }
1230     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1231     eval with_$ac_package=\$ac_optarg ;;
1232
1233   -without-* | --without-*)
1234     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235     # Reject names that are not valid shell variable names.
1236     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237       { echo "$as_me: error: invalid package name: $ac_package" >&2
1238    { (exit 1); exit 1; }; }
1239     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1240     eval with_$ac_package=no ;;
1241
1242   --x)
1243     # Obsolete; use --with-x.
1244     with_x=yes ;;
1245
1246   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247   | --x-incl | --x-inc | --x-in | --x-i)
1248     ac_prev=x_includes ;;
1249   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251     x_includes=$ac_optarg ;;
1252
1253   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255     ac_prev=x_libraries ;;
1256   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258     x_libraries=$ac_optarg ;;
1259
1260   -*) { echo "$as_me: error: unrecognized option: $ac_option
1261 Try \`$0 --help' for more information." >&2
1262    { (exit 1); exit 1; }; }
1263     ;;
1264
1265   *=*)
1266     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267     # Reject names that are not valid shell variable names.
1268     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1269       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1270    { (exit 1); exit 1; }; }
1271     eval $ac_envvar=\$ac_optarg
1272     export $ac_envvar ;;
1273
1274   *)
1275     # FIXME: should be removed in autoconf 3.0.
1276     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1280     ;;
1281
1282   esac
1283 done
1284
1285 if test -n "$ac_prev"; then
1286   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287   { echo "$as_me: error: missing argument to $ac_option" >&2
1288    { (exit 1); exit 1; }; }
1289 fi
1290
1291 # Be sure to have absolute directory names.
1292 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293                 datadir sysconfdir sharedstatedir localstatedir includedir \
1294                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295                 libdir localedir mandir
1296 do
1297   eval ac_val=\$$ac_var
1298   case $ac_val in
1299     [\\/$]* | ?:[\\/]* )  continue;;
1300     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301   esac
1302   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1303    { (exit 1); exit 1; }; }
1304 done
1305
1306 # There might be people who depend on the old broken behavior: `$host'
1307 # used to hold the argument of --host etc.
1308 # FIXME: To remove some day.
1309 build=$build_alias
1310 host=$host_alias
1311 target=$target_alias
1312
1313 # FIXME: To remove some day.
1314 if test "x$host_alias" != x; then
1315   if test "x$build_alias" = x; then
1316     cross_compiling=maybe
1317     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1318     If a cross compiler is detected then cross compile mode will be used." >&2
1319   elif test "x$build_alias" != "x$host_alias"; then
1320     cross_compiling=yes
1321   fi
1322 fi
1323
1324 ac_tool_prefix=
1325 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326
1327 test "$silent" = yes && exec 6>/dev/null
1328
1329
1330 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331 ac_ls_di=`ls -di .` &&
1332 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333   { echo "$as_me: error: Working directory cannot be determined" >&2
1334    { (exit 1); exit 1; }; }
1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336   { echo "$as_me: error: pwd does not report name of working directory" >&2
1337    { (exit 1); exit 1; }; }
1338
1339
1340 # Find the source files, if location was not specified.
1341 if test -z "$srcdir"; then
1342   ac_srcdir_defaulted=yes
1343   # Try the directory containing this script, then the parent directory.
1344   ac_confdir=`$as_dirname -- "$0" ||
1345 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1346          X"$0" : 'X\(//\)[^/]' \| \
1347          X"$0" : 'X\(//\)$' \| \
1348          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1349 echo X"$0" |
1350     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351             s//\1/
1352             q
1353           }
1354           /^X\(\/\/\)[^/].*/{
1355             s//\1/
1356             q
1357           }
1358           /^X\(\/\/\)$/{
1359             s//\1/
1360             q
1361           }
1362           /^X\(\/\).*/{
1363             s//\1/
1364             q
1365           }
1366           s/.*/./; q'`
1367   srcdir=$ac_confdir
1368   if test ! -r "$srcdir/$ac_unique_file"; then
1369     srcdir=..
1370   fi
1371 else
1372   ac_srcdir_defaulted=no
1373 fi
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1376   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1377    { (exit 1); exit 1; }; }
1378 fi
1379 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380 ac_abs_confdir=`(
1381         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1382    { (exit 1); exit 1; }; }
1383         pwd)`
1384 # When building in place, set srcdir=.
1385 if test "$ac_abs_confdir" = "$ac_pwd"; then
1386   srcdir=.
1387 fi
1388 # Remove unnecessary trailing slashes from srcdir.
1389 # Double slashes in file names in object file debugging info
1390 # mess up M-x gdb in Emacs.
1391 case $srcdir in
1392 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393 esac
1394 for ac_var in $ac_precious_vars; do
1395   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396   eval ac_env_${ac_var}_value=\$${ac_var}
1397   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399 done
1400
1401 #
1402 # Report the --help message.
1403 #
1404 if test "$ac_init_help" = "long"; then
1405   # Omit some internal or obsolete options to make the list less imposing.
1406   # This message is too long to be a string in the A/UX 3.1 sh.
1407   cat <<_ACEOF
1408 \`configure' configures sharing-plugin-template 0.1 to adapt to many kinds of systems.
1409
1410 Usage: $0 [OPTION]... [VAR=VALUE]...
1411
1412 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413 VAR=VALUE.  See below for descriptions of some of the useful variables.
1414
1415 Defaults for the options are specified in brackets.
1416
1417 Configuration:
1418   -h, --help              display this help and exit
1419       --help=short        display options specific to this package
1420       --help=recursive    display the short help of all the included packages
1421   -V, --version           display version information and exit
1422   -q, --quiet, --silent   do not print \`checking...' messages
1423       --cache-file=FILE   cache test results in FILE [disabled]
1424   -C, --config-cache      alias for \`--cache-file=config.cache'
1425   -n, --no-create         do not create output files
1426       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1427
1428 Installation directories:
1429   --prefix=PREFIX         install architecture-independent files in PREFIX
1430                           [$ac_default_prefix]
1431   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1432                           [PREFIX]
1433
1434 By default, \`make install' will install all the files in
1435 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1436 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437 for instance \`--prefix=\$HOME'.
1438
1439 For better control, use the options below.
1440
1441 Fine tuning of the installation directories:
1442   --bindir=DIR           user executables [EPREFIX/bin]
1443   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1444   --libexecdir=DIR       program executables [EPREFIX/libexec]
1445   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1446   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1447   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1448   --libdir=DIR           object code libraries [EPREFIX/lib]
1449   --includedir=DIR       C header files [PREFIX/include]
1450   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1451   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1452   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1453   --infodir=DIR          info documentation [DATAROOTDIR/info]
1454   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1455   --mandir=DIR           man documentation [DATAROOTDIR/man]
1456   --docdir=DIR           documentation root [DATAROOTDIR/doc/sharing-plugin-template]
1457   --htmldir=DIR          html documentation [DOCDIR]
1458   --dvidir=DIR           dvi documentation [DOCDIR]
1459   --pdfdir=DIR           pdf documentation [DOCDIR]
1460   --psdir=DIR            ps documentation [DOCDIR]
1461 _ACEOF
1462
1463   cat <<\_ACEOF
1464
1465 Program names:
1466   --program-prefix=PREFIX            prepend PREFIX to installed program names
1467   --program-suffix=SUFFIX            append SUFFIX to installed program names
1468   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1469
1470 System types:
1471   --build=BUILD     configure for building on BUILD [guessed]
1472   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1473 _ACEOF
1474 fi
1475
1476 if test -n "$ac_init_help"; then
1477   case $ac_init_help in
1478      short | recursive ) echo "Configuration of sharing-plugin-template 0.1:";;
1479    esac
1480   cat <<\_ACEOF
1481
1482 Optional Features:
1483   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1484   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1485   --enable-maintainer-mode  enable make rules and dependencies not useful
1486                           (and sometimes confusing) to the casual installer
1487   --enable-shared[=PKGS]  build shared libraries [default=yes]
1488   --enable-static[=PKGS]  build static libraries [default=no]
1489   --disable-dependency-tracking  speeds up one-time build
1490   --enable-dependency-tracking   do not reject slow dependency extractors
1491   --enable-fast-install[=PKGS]
1492                           optimize for fast installation [default=yes]
1493   --disable-libtool-lock  avoid locking (might break parallel builds)
1494   --enable-debug          Turn on debug messages
1495
1496 Optional Packages:
1497   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1498   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1499   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1500   --with-pic              try to use only PIC/non-PIC objects [default=use
1501                           both]
1502   --with-tags[=TAGS]      include additional configurations [automatic]
1503
1504 Some influential environment variables:
1505   CC          C compiler command
1506   CFLAGS      C compiler flags
1507   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1508               nonstandard directory <lib dir>
1509   LIBS        libraries to pass to the linker, e.g. -l<library>
1510   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1511               you have headers in a nonstandard directory <include dir>
1512   CXX         C++ compiler command
1513   CXXFLAGS    C++ compiler flags
1514   CPP         C preprocessor
1515   CXXCPP      C++ preprocessor
1516   F77         Fortran 77 compiler command
1517   FFLAGS      Fortran 77 compiler flags
1518   PKG_CONFIG  path to pkg-config utility
1519   PACKAGE_CFLAGS
1520               C compiler flags for PACKAGE, overriding pkg-config
1521   PACKAGE_LIBS
1522               linker flags for PACKAGE, overriding pkg-config
1523   SHARING_CFLAGS
1524               C compiler flags for SHARING, overriding pkg-config
1525   SHARING_LIBS
1526               linker flags for SHARING, overriding pkg-config
1527
1528 Use these variables to override the choices made by `configure' or to help
1529 it to find libraries and programs with nonstandard names/locations.
1530
1531 _ACEOF
1532 ac_status=$?
1533 fi
1534
1535 if test "$ac_init_help" = "recursive"; then
1536   # If there are subdirs, report their specific --help.
1537   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538     test -d "$ac_dir" || continue
1539     ac_builddir=.
1540
1541 case "$ac_dir" in
1542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 *)
1544   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1545   # A ".." for each directory in $ac_dir_suffix.
1546   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1547   case $ac_top_builddir_sub in
1548   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550   esac ;;
1551 esac
1552 ac_abs_top_builddir=$ac_pwd
1553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554 # for backward compatibility:
1555 ac_top_builddir=$ac_top_build_prefix
1556
1557 case $srcdir in
1558   .)  # We are building in place.
1559     ac_srcdir=.
1560     ac_top_srcdir=$ac_top_builddir_sub
1561     ac_abs_top_srcdir=$ac_pwd ;;
1562   [\\/]* | ?:[\\/]* )  # Absolute name.
1563     ac_srcdir=$srcdir$ac_dir_suffix;
1564     ac_top_srcdir=$srcdir
1565     ac_abs_top_srcdir=$srcdir ;;
1566   *) # Relative name.
1567     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568     ac_top_srcdir=$ac_top_build_prefix$srcdir
1569     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570 esac
1571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572
1573     cd "$ac_dir" || { ac_status=$?; continue; }
1574     # Check for guested configure.
1575     if test -f "$ac_srcdir/configure.gnu"; then
1576       echo &&
1577       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578     elif test -f "$ac_srcdir/configure"; then
1579       echo &&
1580       $SHELL "$ac_srcdir/configure" --help=recursive
1581     else
1582       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583     fi || ac_status=$?
1584     cd "$ac_pwd" || { ac_status=$?; break; }
1585   done
1586 fi
1587
1588 test -n "$ac_init_help" && exit $ac_status
1589 if $ac_init_version; then
1590   cat <<\_ACEOF
1591 sharing-plugin-template configure 0.1
1592 generated by GNU Autoconf 2.61
1593
1594 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1595 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1598 _ACEOF
1599   exit
1600 fi
1601 cat >config.log <<_ACEOF
1602 This file contains any messages produced by compilers while
1603 running configure, to aid debugging if configure makes a mistake.
1604
1605 It was created by sharing-plugin-template $as_me 0.1, which was
1606 generated by GNU Autoconf 2.61.  Invocation command line was
1607
1608   $ $0 $@
1609
1610 _ACEOF
1611 exec 5>>config.log
1612 {
1613 cat <<_ASUNAME
1614 ## --------- ##
1615 ## Platform. ##
1616 ## --------- ##
1617
1618 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1619 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1620 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1621 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1622 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1623
1624 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1625 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1626
1627 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1628 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1629 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1630 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1631 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1632 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1633 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1634
1635 _ASUNAME
1636
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 for as_dir in $PATH
1639 do
1640   IFS=$as_save_IFS
1641   test -z "$as_dir" && as_dir=.
1642   echo "PATH: $as_dir"
1643 done
1644 IFS=$as_save_IFS
1645
1646 } >&5
1647
1648 cat >&5 <<_ACEOF
1649
1650
1651 ## ----------- ##
1652 ## Core tests. ##
1653 ## ----------- ##
1654
1655 _ACEOF
1656
1657
1658 # Keep a trace of the command line.
1659 # Strip out --no-create and --no-recursion so they do not pile up.
1660 # Strip out --silent because we don't want to record it for future runs.
1661 # Also quote any args containing shell meta-characters.
1662 # Make two passes to allow for proper duplicate-argument suppression.
1663 ac_configure_args=
1664 ac_configure_args0=
1665 ac_configure_args1=
1666 ac_must_keep_next=false
1667 for ac_pass in 1 2
1668 do
1669   for ac_arg
1670   do
1671     case $ac_arg in
1672     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1673     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1674     | -silent | --silent | --silen | --sile | --sil)
1675       continue ;;
1676     *\'*)
1677       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1678     esac
1679     case $ac_pass in
1680     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1681     2)
1682       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1683       if test $ac_must_keep_next = true; then
1684         ac_must_keep_next=false # Got value, back to normal.
1685       else
1686         case $ac_arg in
1687           *=* | --config-cache | -C | -disable-* | --disable-* \
1688           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1689           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1690           | -with-* | --with-* | -without-* | --without-* | --x)
1691             case "$ac_configure_args0 " in
1692               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1693             esac
1694             ;;
1695           -* ) ac_must_keep_next=true ;;
1696         esac
1697       fi
1698       ac_configure_args="$ac_configure_args '$ac_arg'"
1699       ;;
1700     esac
1701   done
1702 done
1703 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1704 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1705
1706 # When interrupted or exit'd, cleanup temporary files, and complete
1707 # config.log.  We remove comments because anyway the quotes in there
1708 # would cause problems or look ugly.
1709 # WARNING: Use '\'' to represent an apostrophe within the trap.
1710 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1711 trap 'exit_status=$?
1712   # Save into config.log some information that might help in debugging.
1713   {
1714     echo
1715
1716     cat <<\_ASBOX
1717 ## ---------------- ##
1718 ## Cache variables. ##
1719 ## ---------------- ##
1720 _ASBOX
1721     echo
1722     # The following way of writing the cache mishandles newlines in values,
1723 (
1724   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1725     eval ac_val=\$$ac_var
1726     case $ac_val in #(
1727     *${as_nl}*)
1728       case $ac_var in #(
1729       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1730 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1731       esac
1732       case $ac_var in #(
1733       _ | IFS | as_nl) ;; #(
1734       *) $as_unset $ac_var ;;
1735       esac ;;
1736     esac
1737   done
1738   (set) 2>&1 |
1739     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1740     *${as_nl}ac_space=\ *)
1741       sed -n \
1742         "s/'\''/'\''\\\\'\'''\''/g;
1743           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1744       ;; #(
1745     *)
1746       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1747       ;;
1748     esac |
1749     sort
1750 )
1751     echo
1752
1753     cat <<\_ASBOX
1754 ## ----------------- ##
1755 ## Output variables. ##
1756 ## ----------------- ##
1757 _ASBOX
1758     echo
1759     for ac_var in $ac_subst_vars
1760     do
1761       eval ac_val=\$$ac_var
1762       case $ac_val in
1763       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1764       esac
1765       echo "$ac_var='\''$ac_val'\''"
1766     done | sort
1767     echo
1768
1769     if test -n "$ac_subst_files"; then
1770       cat <<\_ASBOX
1771 ## ------------------- ##
1772 ## File substitutions. ##
1773 ## ------------------- ##
1774 _ASBOX
1775       echo
1776       for ac_var in $ac_subst_files
1777       do
1778         eval ac_val=\$$ac_var
1779         case $ac_val in
1780         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1781         esac
1782         echo "$ac_var='\''$ac_val'\''"
1783       done | sort
1784       echo
1785     fi
1786
1787     if test -s confdefs.h; then
1788       cat <<\_ASBOX
1789 ## ----------- ##
1790 ## confdefs.h. ##
1791 ## ----------- ##
1792 _ASBOX
1793       echo
1794       cat confdefs.h
1795       echo
1796     fi
1797     test "$ac_signal" != 0 &&
1798       echo "$as_me: caught signal $ac_signal"
1799     echo "$as_me: exit $exit_status"
1800   } >&5
1801   rm -f core *.core core.conftest.* &&
1802     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1803     exit $exit_status
1804 ' 0
1805 for ac_signal in 1 2 13 15; do
1806   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1807 done
1808 ac_signal=0
1809
1810 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1811 rm -f -r conftest* confdefs.h
1812
1813 # Predefined preprocessor variables.
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_NAME "$PACKAGE_NAME"
1817 _ACEOF
1818
1819
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1822 _ACEOF
1823
1824
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1827 _ACEOF
1828
1829
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_STRING "$PACKAGE_STRING"
1832 _ACEOF
1833
1834
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1837 _ACEOF
1838
1839
1840 # Let the site file select an alternate cache file if it wants to.
1841 # Prefer explicitly selected file to automatically selected ones.
1842 if test -n "$CONFIG_SITE"; then
1843   set x "$CONFIG_SITE"
1844 elif test "x$prefix" != xNONE; then
1845   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1846 else
1847   set x "$ac_default_prefix/share/config.site" \
1848         "$ac_default_prefix/etc/config.site"
1849 fi
1850 shift
1851 for ac_site_file
1852 do
1853   if test -r "$ac_site_file"; then
1854     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1855 echo "$as_me: loading site script $ac_site_file" >&6;}
1856     sed 's/^/| /' "$ac_site_file" >&5
1857     . "$ac_site_file"
1858   fi
1859 done
1860
1861 if test -r "$cache_file"; then
1862   # Some versions of bash will fail to source /dev/null (special
1863   # files actually), so we avoid doing that.
1864   if test -f "$cache_file"; then
1865     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1866 echo "$as_me: loading cache $cache_file" >&6;}
1867     case $cache_file in
1868       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1869       *)                      . "./$cache_file";;
1870     esac
1871   fi
1872 else
1873   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1874 echo "$as_me: creating cache $cache_file" >&6;}
1875   >$cache_file
1876 fi
1877
1878 # Check that the precious variables saved in the cache have kept the same
1879 # value.
1880 ac_cache_corrupted=false
1881 for ac_var in $ac_precious_vars; do
1882   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1883   eval ac_new_set=\$ac_env_${ac_var}_set
1884   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1885   eval ac_new_val=\$ac_env_${ac_var}_value
1886   case $ac_old_set,$ac_new_set in
1887     set,)
1888       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1889 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1890       ac_cache_corrupted=: ;;
1891     ,set)
1892       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1893 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1894       ac_cache_corrupted=: ;;
1895     ,);;
1896     *)
1897       if test "x$ac_old_val" != "x$ac_new_val"; then
1898         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1899 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1900         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1901 echo "$as_me:   former value:  $ac_old_val" >&2;}
1902         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1903 echo "$as_me:   current value: $ac_new_val" >&2;}
1904         ac_cache_corrupted=:
1905       fi;;
1906   esac
1907   # Pass precious variables to config.status.
1908   if test "$ac_new_set" = set; then
1909     case $ac_new_val in
1910     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1911     *) ac_arg=$ac_var=$ac_new_val ;;
1912     esac
1913     case " $ac_configure_args " in
1914       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1915       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1916     esac
1917   fi
1918 done
1919 if $ac_cache_corrupted; then
1920   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1921 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1922   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1923 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1924    { (exit 1); exit 1; }; }
1925 fi
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951 ac_ext=c
1952 ac_cpp='$CPP $CPPFLAGS'
1953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956
1957
1958 am__api_version="1.8"
1959 ac_aux_dir=
1960 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1961   if test -f "$ac_dir/install-sh"; then
1962     ac_aux_dir=$ac_dir
1963     ac_install_sh="$ac_aux_dir/install-sh -c"
1964     break
1965   elif test -f "$ac_dir/install.sh"; then
1966     ac_aux_dir=$ac_dir
1967     ac_install_sh="$ac_aux_dir/install.sh -c"
1968     break
1969   elif test -f "$ac_dir/shtool"; then
1970     ac_aux_dir=$ac_dir
1971     ac_install_sh="$ac_aux_dir/shtool install -c"
1972     break
1973   fi
1974 done
1975 if test -z "$ac_aux_dir"; then
1976   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1977 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1978    { (exit 1); exit 1; }; }
1979 fi
1980
1981 # These three variables are undocumented and unsupported,
1982 # and are intended to be withdrawn in a future Autoconf release.
1983 # They can cause serious problems if a builder's source tree is in a directory
1984 # whose full name contains unusual characters.
1985 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1986 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1987 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1988
1989
1990 # Find a good install program.  We prefer a C program (faster),
1991 # so one script is as good as another.  But avoid the broken or
1992 # incompatible versions:
1993 # SysV /etc/install, /usr/sbin/install
1994 # SunOS /usr/etc/install
1995 # IRIX /sbin/install
1996 # AIX /bin/install
1997 # AmigaOS /C/install, which installs bootblocks on floppy discs
1998 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1999 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2000 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2001 # OS/2's system install, which has a completely different semantic
2002 # ./install, which can be erroneously created by make from ./install.sh.
2003 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2004 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2005 if test -z "$INSTALL"; then
2006 if test "${ac_cv_path_install+set}" = set; then
2007   echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 for as_dir in $PATH
2011 do
2012   IFS=$as_save_IFS
2013   test -z "$as_dir" && as_dir=.
2014   # Account for people who put trailing slashes in PATH elements.
2015 case $as_dir/ in
2016   ./ | .// | /cC/* | \
2017   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2018   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2019   /usr/ucb/* ) ;;
2020   *)
2021     # OSF1 and SCO ODT 3.0 have their own names for install.
2022     # Don't use installbsd from OSF since it installs stuff as root
2023     # by default.
2024     for ac_prog in ginstall scoinst install; do
2025       for ac_exec_ext in '' $ac_executable_extensions; do
2026         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2027           if test $ac_prog = install &&
2028             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2029             # AIX install.  It has an incompatible calling convention.
2030             :
2031           elif test $ac_prog = install &&
2032             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2033             # program-specific install script used by HP pwplus--don't use.
2034             :
2035           else
2036             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2037             break 3
2038           fi
2039         fi
2040       done
2041     done
2042     ;;
2043 esac
2044 done
2045 IFS=$as_save_IFS
2046
2047
2048 fi
2049   if test "${ac_cv_path_install+set}" = set; then
2050     INSTALL=$ac_cv_path_install
2051   else
2052     # As a last resort, use the slow shell script.  Don't cache a
2053     # value for INSTALL within a source directory, because that will
2054     # break other packages using the cache if that directory is
2055     # removed, or if the value is a relative name.
2056     INSTALL=$ac_install_sh
2057   fi
2058 fi
2059 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2060 echo "${ECHO_T}$INSTALL" >&6; }
2061
2062 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2063 # It thinks the first close brace ends the variable substitution.
2064 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2065
2066 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2067
2068 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2069
2070 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2071 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2072 # Just in case
2073 sleep 1
2074 echo timestamp > conftest.file
2075 # Do `set' in a subshell so we don't clobber the current shell's
2076 # arguments.  Must try -L first in case configure is actually a
2077 # symlink; some systems play weird games with the mod time of symlinks
2078 # (eg FreeBSD returns the mod time of the symlink's containing
2079 # directory).
2080 if (
2081    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2082    if test "$*" = "X"; then
2083       # -L didn't work.
2084       set X `ls -t $srcdir/configure conftest.file`
2085    fi
2086    rm -f conftest.file
2087    if test "$*" != "X $srcdir/configure conftest.file" \
2088       && test "$*" != "X conftest.file $srcdir/configure"; then
2089
2090       # If neither matched, then we have a broken ls.  This can happen
2091       # if, for instance, CONFIG_SHELL is bash and it inherits a
2092       # broken ls alias from the environment.  This has actually
2093       # happened.  Such a system could not be considered "sane".
2094       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2095 alias in your environment" >&5
2096 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2097 alias in your environment" >&2;}
2098    { (exit 1); exit 1; }; }
2099    fi
2100
2101    test "$2" = conftest.file
2102    )
2103 then
2104    # Ok.
2105    :
2106 else
2107    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2108 Check your system clock" >&5
2109 echo "$as_me: error: newly created file is older than distributed files!
2110 Check your system clock" >&2;}
2111    { (exit 1); exit 1; }; }
2112 fi
2113 { echo "$as_me:$LINENO: result: yes" >&5
2114 echo "${ECHO_T}yes" >&6; }
2115 test "$program_prefix" != NONE &&
2116   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2117 # Use a double $ so make ignores it.
2118 test "$program_suffix" != NONE &&
2119   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2120 # Double any \ or $.  echo might interpret backslashes.
2121 # By default was `s,x,x', remove it if useless.
2122 cat <<\_ACEOF >conftest.sed
2123 s/[\\$]/&&/g;s/;s,x,x,$//
2124 _ACEOF
2125 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2126 rm -f conftest.sed
2127
2128 # expand $ac_aux_dir to an absolute path
2129 am_aux_dir=`cd $ac_aux_dir && pwd`
2130
2131 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2132 # Use eval to expand $SHELL
2133 if eval "$MISSING --run true"; then
2134   am_missing_run="$MISSING --run "
2135 else
2136   am_missing_run=
2137   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2138 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2139 fi
2140
2141 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2142   # Keeping the `.' argument allows $(mkdir_p) to be used without
2143   # argument.  Indeed, we sometimes output rules like
2144   #   $(mkdir_p) $(somedir)
2145   # where $(somedir) is conditionally defined.
2146   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2147   # expensive solution, as it forces Make to start a sub-shell.)
2148   mkdir_p='mkdir -p -- .'
2149 else
2150   # On NextStep and OpenStep, the `mkdir' command does not
2151   # recognize any option.  It will interpret all options as
2152   # directories to create, and then abort because `.' already
2153   # exists.
2154   for d in ./-p ./--version;
2155   do
2156     test -d $d && rmdir $d
2157   done
2158   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2159   if test -f "$ac_aux_dir/mkinstalldirs"; then
2160     mkdir_p='$(mkinstalldirs)'
2161   else
2162     mkdir_p='$(install_sh) -d'
2163   fi
2164 fi
2165
2166 for ac_prog in gawk mawk nawk awk
2167 do
2168   # Extract the first word of "$ac_prog", so it can be a program name with args.
2169 set dummy $ac_prog; ac_word=$2
2170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2172 if test "${ac_cv_prog_AWK+set}" = set; then
2173   echo $ECHO_N "(cached) $ECHO_C" >&6
2174 else
2175   if test -n "$AWK"; then
2176   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2177 else
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 for as_dir in $PATH
2180 do
2181   IFS=$as_save_IFS
2182   test -z "$as_dir" && as_dir=.
2183   for ac_exec_ext in '' $ac_executable_extensions; do
2184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2185     ac_cv_prog_AWK="$ac_prog"
2186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187     break 2
2188   fi
2189 done
2190 done
2191 IFS=$as_save_IFS
2192
2193 fi
2194 fi
2195 AWK=$ac_cv_prog_AWK
2196 if test -n "$AWK"; then
2197   { echo "$as_me:$LINENO: result: $AWK" >&5
2198 echo "${ECHO_T}$AWK" >&6; }
2199 else
2200   { echo "$as_me:$LINENO: result: no" >&5
2201 echo "${ECHO_T}no" >&6; }
2202 fi
2203
2204
2205   test -n "$AWK" && break
2206 done
2207
2208 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2209 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2210 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2211 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2212   echo $ECHO_N "(cached) $ECHO_C" >&6
2213 else
2214   cat >conftest.make <<\_ACEOF
2215 SHELL = /bin/sh
2216 all:
2217         @echo '@@@%%%=$(MAKE)=@@@%%%'
2218 _ACEOF
2219 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2220 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2221   *@@@%%%=?*=@@@%%%*)
2222     eval ac_cv_prog_make_${ac_make}_set=yes;;
2223   *)
2224     eval ac_cv_prog_make_${ac_make}_set=no;;
2225 esac
2226 rm -f conftest.make
2227 fi
2228 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2229   { echo "$as_me:$LINENO: result: yes" >&5
2230 echo "${ECHO_T}yes" >&6; }
2231   SET_MAKE=
2232 else
2233   { echo "$as_me:$LINENO: result: no" >&5
2234 echo "${ECHO_T}no" >&6; }
2235   SET_MAKE="MAKE=${MAKE-make}"
2236 fi
2237
2238 rm -rf .tst 2>/dev/null
2239 mkdir .tst 2>/dev/null
2240 if test -d .tst; then
2241   am__leading_dot=.
2242 else
2243   am__leading_dot=_
2244 fi
2245 rmdir .tst 2>/dev/null
2246
2247 # test to see if srcdir already configured
2248 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2249    test -f $srcdir/config.status; then
2250   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2251 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2252    { (exit 1); exit 1; }; }
2253 fi
2254
2255 # test whether we have cygpath
2256 if test -z "$CYGPATH_W"; then
2257   if (cygpath --version) >/dev/null 2>/dev/null; then
2258     CYGPATH_W='cygpath -w'
2259   else
2260     CYGPATH_W=echo
2261   fi
2262 fi
2263
2264
2265 # Define the identity of the package.
2266  PACKAGE='sharing-plugin-template'
2267  VERSION='0.1'
2268
2269
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE "$PACKAGE"
2272 _ACEOF
2273
2274
2275 cat >>confdefs.h <<_ACEOF
2276 #define VERSION "$VERSION"
2277 _ACEOF
2278
2279 # Some tools Automake needs.
2280
2281 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2282
2283
2284 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2285
2286
2287 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2288
2289
2290 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2291
2292
2293 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2294
2295
2296 AMTAR=${AMTAR-"${am_missing_run}tar"}
2297
2298 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2299
2300 # Installed binaries are usually stripped using `strip' when the user
2301 # run `make install-strip'.  However `strip' might not be the right
2302 # tool to use in cross-compilation environments, therefore Automake
2303 # will honor the `STRIP' environment variable to overrule this program.
2304 if test "$cross_compiling" != no; then
2305   if test -n "$ac_tool_prefix"; then
2306   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2307 set dummy ${ac_tool_prefix}strip; ac_word=$2
2308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2310 if test "${ac_cv_prog_STRIP+set}" = set; then
2311   echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313   if test -n "$STRIP"; then
2314   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2315 else
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 for as_dir in $PATH
2318 do
2319   IFS=$as_save_IFS
2320   test -z "$as_dir" && as_dir=.
2321   for ac_exec_ext in '' $ac_executable_extensions; do
2322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2323     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325     break 2
2326   fi
2327 done
2328 done
2329 IFS=$as_save_IFS
2330
2331 fi
2332 fi
2333 STRIP=$ac_cv_prog_STRIP
2334 if test -n "$STRIP"; then
2335   { echo "$as_me:$LINENO: result: $STRIP" >&5
2336 echo "${ECHO_T}$STRIP" >&6; }
2337 else
2338   { echo "$as_me:$LINENO: result: no" >&5
2339 echo "${ECHO_T}no" >&6; }
2340 fi
2341
2342
2343 fi
2344 if test -z "$ac_cv_prog_STRIP"; then
2345   ac_ct_STRIP=$STRIP
2346   # Extract the first word of "strip", so it can be a program name with args.
2347 set dummy strip; ac_word=$2
2348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2350 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2351   echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353   if test -n "$ac_ct_STRIP"; then
2354   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2355 else
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 for as_dir in $PATH
2358 do
2359   IFS=$as_save_IFS
2360   test -z "$as_dir" && as_dir=.
2361   for ac_exec_ext in '' $ac_executable_extensions; do
2362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2363     ac_cv_prog_ac_ct_STRIP="strip"
2364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365     break 2
2366   fi
2367 done
2368 done
2369 IFS=$as_save_IFS
2370
2371 fi
2372 fi
2373 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2374 if test -n "$ac_ct_STRIP"; then
2375   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2376 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2377 else
2378   { echo "$as_me:$LINENO: result: no" >&5
2379 echo "${ECHO_T}no" >&6; }
2380 fi
2381
2382   if test "x$ac_ct_STRIP" = x; then
2383     STRIP=":"
2384   else
2385     case $cross_compiling:$ac_tool_warned in
2386 yes:)
2387 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2388 whose name does not start with the host triplet.  If you think this
2389 configuration is useful to you, please write to autoconf@gnu.org." >&5
2390 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2391 whose name does not start with the host triplet.  If you think this
2392 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2393 ac_tool_warned=yes ;;
2394 esac
2395     STRIP=$ac_ct_STRIP
2396   fi
2397 else
2398   STRIP="$ac_cv_prog_STRIP"
2399 fi
2400
2401 fi
2402 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2403
2404 # We need awk for the "check" target.  The system "awk" is bad on
2405 # some platforms.
2406
2407
2408
2409
2410 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2411 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2412     # Check whether --enable-maintainer-mode was given.
2413 if test "${enable_maintainer_mode+set}" = set; then
2414   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2415 else
2416   USE_MAINTAINER_MODE=no
2417 fi
2418
2419   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2420 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2421
2422
2423 if test $USE_MAINTAINER_MODE = yes; then
2424   MAINTAINER_MODE_TRUE=
2425   MAINTAINER_MODE_FALSE='#'
2426 else
2427   MAINTAINER_MODE_TRUE='#'
2428   MAINTAINER_MODE_FALSE=
2429 fi
2430
2431   MAINT=$MAINTAINER_MODE_TRUE
2432
2433
2434 ac_config_headers="$ac_config_headers config.h"
2435
2436
2437
2438
2439 # Check whether --enable-shared was given.
2440 if test "${enable_shared+set}" = set; then
2441   enableval=$enable_shared; p=${PACKAGE-default}
2442     case $enableval in
2443     yes) enable_shared=yes ;;
2444     no) enable_shared=no ;;
2445     *)
2446       enable_shared=no
2447       # Look at the argument we got.  We use all the common list separators.
2448       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2449       for pkg in $enableval; do
2450         IFS="$lt_save_ifs"
2451         if test "X$pkg" = "X$p"; then
2452           enable_shared=yes
2453         fi
2454       done
2455       IFS="$lt_save_ifs"
2456       ;;
2457     esac
2458 else
2459   enable_shared=yes
2460 fi
2461
2462
2463 # Check whether --enable-static was given.
2464 if test "${enable_static+set}" = set; then
2465   enableval=$enable_static; p=${PACKAGE-default}
2466     case $enableval in
2467     yes) enable_static=yes ;;
2468     no) enable_static=no ;;
2469     *)
2470      enable_static=no
2471       # Look at the argument we got.  We use all the common list separators.
2472       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2473       for pkg in $enableval; do
2474         IFS="$lt_save_ifs"
2475         if test "X$pkg" = "X$p"; then
2476           enable_static=yes
2477         fi
2478       done
2479       IFS="$lt_save_ifs"
2480       ;;
2481     esac
2482 else
2483   enable_static=no
2484 fi
2485
2486
2487 DEPDIR="${am__leading_dot}deps"
2488
2489 ac_config_commands="$ac_config_commands depfiles"
2490
2491
2492 am_make=${MAKE-make}
2493 cat > confinc << 'END'
2494 am__doit:
2495         @echo done
2496 .PHONY: am__doit
2497 END
2498 # If we don't find an include directive, just comment out the code.
2499 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2500 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2501 am__include="#"
2502 am__quote=
2503 _am_result=none
2504 # First try GNU make style include.
2505 echo "include confinc" > confmf
2506 # We grep out `Entering directory' and `Leaving directory'
2507 # messages which can occur if `w' ends up in MAKEFLAGS.
2508 # In particular we don't look at `^make:' because GNU make might
2509 # be invoked under some other name (usually "gmake"), in which
2510 # case it prints its new name instead of `make'.
2511 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2512    am__include=include
2513    am__quote=
2514    _am_result=GNU
2515 fi
2516 # Now try BSD make style include.
2517 if test "$am__include" = "#"; then
2518    echo '.include "confinc"' > confmf
2519    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2520       am__include=.include
2521       am__quote="\""
2522       _am_result=BSD
2523    fi
2524 fi
2525
2526
2527 { echo "$as_me:$LINENO: result: $_am_result" >&5
2528 echo "${ECHO_T}$_am_result" >&6; }
2529 rm -f confinc confmf
2530
2531 # Check whether --enable-dependency-tracking was given.
2532 if test "${enable_dependency_tracking+set}" = set; then
2533   enableval=$enable_dependency_tracking;
2534 fi
2535
2536 if test "x$enable_dependency_tracking" != xno; then
2537   am_depcomp="$ac_aux_dir/depcomp"
2538   AMDEPBACKSLASH='\'
2539 fi
2540
2541
2542 if test "x$enable_dependency_tracking" != xno; then
2543   AMDEP_TRUE=
2544   AMDEP_FALSE='#'
2545 else
2546   AMDEP_TRUE='#'
2547   AMDEP_FALSE=
2548 fi
2549
2550
2551
2552 ac_ext=c
2553 ac_cpp='$CPP $CPPFLAGS'
2554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2557 if test -n "$ac_tool_prefix"; then
2558   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2559 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2562 if test "${ac_cv_prog_CC+set}" = set; then
2563   echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565   if test -n "$CC"; then
2566   ac_cv_prog_CC="$CC" # Let the user override the test.
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2570 do
2571   IFS=$as_save_IFS
2572   test -z "$as_dir" && as_dir=.
2573   for ac_exec_ext in '' $ac_executable_extensions; do
2574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577     break 2
2578   fi
2579 done
2580 done
2581 IFS=$as_save_IFS
2582
2583 fi
2584 fi
2585 CC=$ac_cv_prog_CC
2586 if test -n "$CC"; then
2587   { echo "$as_me:$LINENO: result: $CC" >&5
2588 echo "${ECHO_T}$CC" >&6; }
2589 else
2590   { echo "$as_me:$LINENO: result: no" >&5
2591 echo "${ECHO_T}no" >&6; }
2592 fi
2593
2594
2595 fi
2596 if test -z "$ac_cv_prog_CC"; then
2597   ac_ct_CC=$CC
2598   # Extract the first word of "gcc", so it can be a program name with args.
2599 set dummy gcc; ac_word=$2
2600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2602 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2603   echo $ECHO_N "(cached) $ECHO_C" >&6
2604 else
2605   if test -n "$ac_ct_CC"; then
2606   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2607 else
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2610 do
2611   IFS=$as_save_IFS
2612   test -z "$as_dir" && as_dir=.
2613   for ac_exec_ext in '' $ac_executable_extensions; do
2614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615     ac_cv_prog_ac_ct_CC="gcc"
2616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2617     break 2
2618   fi
2619 done
2620 done
2621 IFS=$as_save_IFS
2622
2623 fi
2624 fi
2625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2626 if test -n "$ac_ct_CC"; then
2627   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2628 echo "${ECHO_T}$ac_ct_CC" >&6; }
2629 else
2630   { echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6; }
2632 fi
2633
2634   if test "x$ac_ct_CC" = x; then
2635     CC=""
2636   else
2637     case $cross_compiling:$ac_tool_warned in
2638 yes:)
2639 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2640 whose name does not start with the host triplet.  If you think this
2641 configuration is useful to you, please write to autoconf@gnu.org." >&5
2642 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2643 whose name does not start with the host triplet.  If you think this
2644 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2645 ac_tool_warned=yes ;;
2646 esac
2647     CC=$ac_ct_CC
2648   fi
2649 else
2650   CC="$ac_cv_prog_CC"
2651 fi
2652
2653 if test -z "$CC"; then
2654           if test -n "$ac_tool_prefix"; then
2655     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2656 set dummy ${ac_tool_prefix}cc; ac_word=$2
2657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2659 if test "${ac_cv_prog_CC+set}" = set; then
2660   echo $ECHO_N "(cached) $ECHO_C" >&6
2661 else
2662   if test -n "$CC"; then
2663   ac_cv_prog_CC="$CC" # Let the user override the test.
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2667 do
2668   IFS=$as_save_IFS
2669   test -z "$as_dir" && as_dir=.
2670   for ac_exec_ext in '' $ac_executable_extensions; do
2671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672     ac_cv_prog_CC="${ac_tool_prefix}cc"
2673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674     break 2
2675   fi
2676 done
2677 done
2678 IFS=$as_save_IFS
2679
2680 fi
2681 fi
2682 CC=$ac_cv_prog_CC
2683 if test -n "$CC"; then
2684   { echo "$as_me:$LINENO: result: $CC" >&5
2685 echo "${ECHO_T}$CC" >&6; }
2686 else
2687   { echo "$as_me:$LINENO: result: no" >&5
2688 echo "${ECHO_T}no" >&6; }
2689 fi
2690
2691
2692   fi
2693 fi
2694 if test -z "$CC"; then
2695   # Extract the first word of "cc", so it can be a program name with args.
2696 set dummy cc; ac_word=$2
2697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2699 if test "${ac_cv_prog_CC+set}" = set; then
2700   echo $ECHO_N "(cached) $ECHO_C" >&6
2701 else
2702   if test -n "$CC"; then
2703   ac_cv_prog_CC="$CC" # Let the user override the test.
2704 else
2705   ac_prog_rejected=no
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709   IFS=$as_save_IFS
2710   test -z "$as_dir" && as_dir=.
2711   for ac_exec_ext in '' $ac_executable_extensions; do
2712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2714        ac_prog_rejected=yes
2715        continue
2716      fi
2717     ac_cv_prog_CC="cc"
2718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719     break 2
2720   fi
2721 done
2722 done
2723 IFS=$as_save_IFS
2724
2725 if test $ac_prog_rejected = yes; then
2726   # We found a bogon in the path, so make sure we never use it.
2727   set dummy $ac_cv_prog_CC
2728   shift
2729   if test $# != 0; then
2730     # We chose a different compiler from the bogus one.
2731     # However, it has the same basename, so the bogon will be chosen
2732     # first if we set CC to just the basename; use the full file name.
2733     shift
2734     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2735   fi
2736 fi
2737 fi
2738 fi
2739 CC=$ac_cv_prog_CC
2740 if test -n "$CC"; then
2741   { echo "$as_me:$LINENO: result: $CC" >&5
2742 echo "${ECHO_T}$CC" >&6; }
2743 else
2744   { echo "$as_me:$LINENO: result: no" >&5
2745 echo "${ECHO_T}no" >&6; }
2746 fi
2747
2748
2749 fi
2750 if test -z "$CC"; then
2751   if test -n "$ac_tool_prefix"; then
2752   for ac_prog in cl.exe
2753   do
2754     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2758 if test "${ac_cv_prog_CC+set}" = set; then
2759   echo $ECHO_N "(cached) $ECHO_C" >&6
2760 else
2761   if test -n "$CC"; then
2762   ac_cv_prog_CC="$CC" # Let the user override the test.
2763 else
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 for as_dir in $PATH
2766 do
2767   IFS=$as_save_IFS
2768   test -z "$as_dir" && as_dir=.
2769   for ac_exec_ext in '' $ac_executable_extensions; do
2770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2773     break 2
2774   fi
2775 done
2776 done
2777 IFS=$as_save_IFS
2778
2779 fi
2780 fi
2781 CC=$ac_cv_prog_CC
2782 if test -n "$CC"; then
2783   { echo "$as_me:$LINENO: result: $CC" >&5
2784 echo "${ECHO_T}$CC" >&6; }
2785 else
2786   { echo "$as_me:$LINENO: result: no" >&5
2787 echo "${ECHO_T}no" >&6; }
2788 fi
2789
2790
2791     test -n "$CC" && break
2792   done
2793 fi
2794 if test -z "$CC"; then
2795   ac_ct_CC=$CC
2796   for ac_prog in cl.exe
2797 do
2798   # Extract the first word of "$ac_prog", so it can be a program name with args.
2799 set dummy $ac_prog; ac_word=$2
2800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2802 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2803   echo $ECHO_N "(cached) $ECHO_C" >&6
2804 else
2805   if test -n "$ac_ct_CC"; then
2806   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2810 do
2811   IFS=$as_save_IFS
2812   test -z "$as_dir" && as_dir=.
2813   for ac_exec_ext in '' $ac_executable_extensions; do
2814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815     ac_cv_prog_ac_ct_CC="$ac_prog"
2816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2817     break 2
2818   fi
2819 done
2820 done
2821 IFS=$as_save_IFS
2822
2823 fi
2824 fi
2825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2826 if test -n "$ac_ct_CC"; then
2827   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2828 echo "${ECHO_T}$ac_ct_CC" >&6; }
2829 else
2830   { echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6; }
2832 fi
2833
2834
2835   test -n "$ac_ct_CC" && break
2836 done
2837
2838   if test "x$ac_ct_CC" = x; then
2839     CC=""
2840   else
2841     case $cross_compiling:$ac_tool_warned in
2842 yes:)
2843 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2844 whose name does not start with the host triplet.  If you think this
2845 configuration is useful to you, please write to autoconf@gnu.org." >&5
2846 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2847 whose name does not start with the host triplet.  If you think this
2848 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2849 ac_tool_warned=yes ;;
2850 esac
2851     CC=$ac_ct_CC
2852   fi
2853 fi
2854
2855 fi
2856
2857
2858 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2859 See \`config.log' for more details." >&5
2860 echo "$as_me: error: no acceptable C compiler found in \$PATH
2861 See \`config.log' for more details." >&2;}
2862    { (exit 1); exit 1; }; }
2863
2864 # Provide some information about the compiler.
2865 echo "$as_me:$LINENO: checking for C compiler version" >&5
2866 ac_compiler=`set X $ac_compile; echo $2`
2867 { (ac_try="$ac_compiler --version >&5"
2868 case "(($ac_try" in
2869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870   *) ac_try_echo=$ac_try;;
2871 esac
2872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2873   (eval "$ac_compiler --version >&5") 2>&5
2874   ac_status=$?
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); }
2877 { (ac_try="$ac_compiler -v >&5"
2878 case "(($ac_try" in
2879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880   *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883   (eval "$ac_compiler -v >&5") 2>&5
2884   ac_status=$?
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); }
2887 { (ac_try="$ac_compiler -V >&5"
2888 case "(($ac_try" in
2889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890   *) ac_try_echo=$ac_try;;
2891 esac
2892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893   (eval "$ac_compiler -V >&5") 2>&5
2894   ac_status=$?
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); }
2897
2898 cat >conftest.$ac_ext <<_ACEOF
2899 /* confdefs.h.  */
2900 _ACEOF
2901 cat confdefs.h >>conftest.$ac_ext
2902 cat >>conftest.$ac_ext <<_ACEOF
2903 /* end confdefs.h.  */
2904
2905 int
2906 main ()
2907 {
2908
2909   ;
2910   return 0;
2911 }
2912 _ACEOF
2913 ac_clean_files_save=$ac_clean_files
2914 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2915 # Try to create an executable without -o first, disregard a.out.
2916 # It will help us diagnose broken compilers, and finding out an intuition
2917 # of exeext.
2918 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2919 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2920 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2921 #
2922 # List of possible output files, starting from the most likely.
2923 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2924 # only as a last resort.  b.out is created by i960 compilers.
2925 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2926 #
2927 # The IRIX 6 linker writes into existing files which may not be
2928 # executable, retaining their permissions.  Remove them first so a
2929 # subsequent execution test works.
2930 ac_rmfiles=
2931 for ac_file in $ac_files
2932 do
2933   case $ac_file in
2934     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2935     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2936   esac
2937 done
2938 rm -f $ac_rmfiles
2939
2940 if { (ac_try="$ac_link_default"
2941 case "(($ac_try" in
2942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943   *) ac_try_echo=$ac_try;;
2944 esac
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946   (eval "$ac_link_default") 2>&5
2947   ac_status=$?
2948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949   (exit $ac_status); }; then
2950   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2951 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2952 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2953 # so that the user can short-circuit this test for compilers unknown to
2954 # Autoconf.
2955 for ac_file in $ac_files ''
2956 do
2957   test -f "$ac_file" || continue
2958   case $ac_file in
2959     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2960         ;;
2961     [ab].out )
2962         # We found the default executable, but exeext='' is most
2963         # certainly right.
2964         break;;
2965     *.* )
2966         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2967         then :; else
2968            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2969         fi
2970         # We set ac_cv_exeext here because the later test for it is not
2971         # safe: cross compilers may not add the suffix if given an `-o'
2972         # argument, so we may need to know it at that point already.
2973         # Even if this section looks crufty: it has the advantage of
2974         # actually working.
2975         break;;
2976     * )
2977         break;;
2978   esac
2979 done
2980 test "$ac_cv_exeext" = no && ac_cv_exeext=
2981
2982 else
2983   ac_file=''
2984 fi
2985
2986 { echo "$as_me:$LINENO: result: $ac_file" >&5
2987 echo "${ECHO_T}$ac_file" >&6; }
2988 if test -z "$ac_file"; then
2989   echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2991
2992 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2993 See \`config.log' for more details." >&5
2994 echo "$as_me: error: C compiler cannot create executables
2995 See \`config.log' for more details." >&2;}
2996    { (exit 77); exit 77; }; }
2997 fi
2998
2999 ac_exeext=$ac_cv_exeext
3000
3001 # Check that the compiler produces executables we can run.  If not, either
3002 # the compiler is broken, or we cross compile.
3003 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3004 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3005 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3006 # If not cross compiling, check that we can run a simple program.
3007 if test "$cross_compiling" != yes; then
3008   if { ac_try='./$ac_file'
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_try") 2>&5
3015   ac_status=$?
3016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017   (exit $ac_status); }; }; then
3018     cross_compiling=no
3019   else
3020     if test "$cross_compiling" = maybe; then
3021         cross_compiling=yes
3022     else
3023         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3024 If you meant to cross compile, use \`--host'.
3025 See \`config.log' for more details." >&5
3026 echo "$as_me: error: cannot run C compiled programs.
3027 If you meant to cross compile, use \`--host'.
3028 See \`config.log' for more details." >&2;}
3029    { (exit 1); exit 1; }; }
3030     fi
3031   fi
3032 fi
3033 { echo "$as_me:$LINENO: result: yes" >&5
3034 echo "${ECHO_T}yes" >&6; }
3035
3036 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3037 ac_clean_files=$ac_clean_files_save
3038 # Check that the compiler produces executables we can run.  If not, either
3039 # the compiler is broken, or we cross compile.
3040 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3041 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3042 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3043 echo "${ECHO_T}$cross_compiling" >&6; }
3044
3045 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3046 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3047 if { (ac_try="$ac_link"
3048 case "(($ac_try" in
3049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050   *) ac_try_echo=$ac_try;;
3051 esac
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053   (eval "$ac_link") 2>&5
3054   ac_status=$?
3055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); }; then
3057   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3058 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3059 # work properly (i.e., refer to `conftest.exe'), while it won't with
3060 # `rm'.
3061 for ac_file in conftest.exe conftest conftest.*; do
3062   test -f "$ac_file" || continue
3063   case $ac_file in
3064     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3065     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3066           break;;
3067     * ) break;;
3068   esac
3069 done
3070 else
3071   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3072 See \`config.log' for more details." >&5
3073 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3074 See \`config.log' for more details." >&2;}
3075    { (exit 1); exit 1; }; }
3076 fi
3077
3078 rm -f conftest$ac_cv_exeext
3079 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3080 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3081
3082 rm -f conftest.$ac_ext
3083 EXEEXT=$ac_cv_exeext
3084 ac_exeext=$EXEEXT
3085 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3086 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3087 if test "${ac_cv_objext+set}" = set; then
3088   echo $ECHO_N "(cached) $ECHO_C" >&6
3089 else
3090   cat >conftest.$ac_ext <<_ACEOF
3091 /* confdefs.h.  */
3092 _ACEOF
3093 cat confdefs.h >>conftest.$ac_ext
3094 cat >>conftest.$ac_ext <<_ACEOF
3095 /* end confdefs.h.  */
3096
3097 int
3098 main ()
3099 {
3100
3101   ;
3102   return 0;
3103 }
3104 _ACEOF
3105 rm -f conftest.o conftest.obj
3106 if { (ac_try="$ac_compile"
3107 case "(($ac_try" in
3108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109   *) ac_try_echo=$ac_try;;
3110 esac
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112   (eval "$ac_compile") 2>&5
3113   ac_status=$?
3114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); }; then
3116   for ac_file in conftest.o conftest.obj conftest.*; do
3117   test -f "$ac_file" || continue;
3118   case $ac_file in
3119     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3120     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3121        break;;
3122   esac
3123 done
3124 else
3125   echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3127
3128 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3129 See \`config.log' for more details." >&5
3130 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3131 See \`config.log' for more details." >&2;}
3132    { (exit 1); exit 1; }; }
3133 fi
3134
3135 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3136 fi
3137 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3138 echo "${ECHO_T}$ac_cv_objext" >&6; }
3139 OBJEXT=$ac_cv_objext
3140 ac_objext=$OBJEXT
3141 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3142 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3143 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146   cat >conftest.$ac_ext <<_ACEOF
3147 /* confdefs.h.  */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h.  */
3152
3153 int
3154 main ()
3155 {
3156 #ifndef __GNUC__
3157        choke me
3158 #endif
3159
3160   ;
3161   return 0;
3162 }
3163 _ACEOF
3164 rm -f conftest.$ac_objext
3165 if { (ac_try="$ac_compile"
3166 case "(($ac_try" in
3167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168   *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171   (eval "$ac_compile") 2>conftest.er1
3172   ac_status=$?
3173   grep -v '^ *+' conftest.er1 >conftest.err
3174   rm -f conftest.er1
3175   cat conftest.err >&5
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); } && {
3178          test -z "$ac_c_werror_flag" ||
3179          test ! -s conftest.err
3180        } && test -s conftest.$ac_objext; then
3181   ac_compiler_gnu=yes
3182 else
3183   echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3185
3186         ac_compiler_gnu=no
3187 fi
3188
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3191
3192 fi
3193 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3194 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3195 GCC=`test $ac_compiler_gnu = yes && echo yes`
3196 ac_test_CFLAGS=${CFLAGS+set}
3197 ac_save_CFLAGS=$CFLAGS
3198 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3199 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3200 if test "${ac_cv_prog_cc_g+set}" = set; then
3201   echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203   ac_save_c_werror_flag=$ac_c_werror_flag
3204    ac_c_werror_flag=yes
3205    ac_cv_prog_cc_g=no
3206    CFLAGS="-g"
3207    cat >conftest.$ac_ext <<_ACEOF
3208 /* confdefs.h.  */
3209 _ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h.  */
3213
3214 int
3215 main ()
3216 {
3217
3218   ;
3219   return 0;
3220 }
3221 _ACEOF
3222 rm -f conftest.$ac_objext
3223 if { (ac_try="$ac_compile"
3224 case "(($ac_try" in
3225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226   *) ac_try_echo=$ac_try;;
3227 esac
3228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3229   (eval "$ac_compile") 2>conftest.er1
3230   ac_status=$?
3231   grep -v '^ *+' conftest.er1 >conftest.err
3232   rm -f conftest.er1
3233   cat conftest.err >&5
3234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235   (exit $ac_status); } && {
3236          test -z "$ac_c_werror_flag" ||
3237          test ! -s conftest.err
3238        } && test -s conftest.$ac_objext; then
3239   ac_cv_prog_cc_g=yes
3240 else
3241   echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3243
3244         CFLAGS=""
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.  */
3251
3252 int
3253 main ()
3254 {
3255
3256   ;
3257   return 0;
3258 }
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   :
3278 else
3279   echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3281
3282         ac_c_werror_flag=$ac_save_c_werror_flag
3283          CFLAGS="-g"
3284          cat >conftest.$ac_ext <<_ACEOF
3285 /* confdefs.h.  */
3286 _ACEOF
3287 cat confdefs.h >>conftest.$ac_ext
3288 cat >>conftest.$ac_ext <<_ACEOF
3289 /* end confdefs.h.  */
3290
3291 int
3292 main ()
3293 {
3294
3295   ;
3296   return 0;
3297 }
3298 _ACEOF
3299 rm -f conftest.$ac_objext
3300 if { (ac_try="$ac_compile"
3301 case "(($ac_try" in
3302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303   *) ac_try_echo=$ac_try;;
3304 esac
3305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306   (eval "$ac_compile") 2>conftest.er1
3307   ac_status=$?
3308   grep -v '^ *+' conftest.er1 >conftest.err
3309   rm -f conftest.er1
3310   cat conftest.err >&5
3311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312   (exit $ac_status); } && {
3313          test -z "$ac_c_werror_flag" ||
3314          test ! -s conftest.err
3315        } && test -s conftest.$ac_objext; then
3316   ac_cv_prog_cc_g=yes
3317 else
3318   echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3320
3321
3322 fi
3323
3324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3325 fi
3326
3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3328 fi
3329
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331    ac_c_werror_flag=$ac_save_c_werror_flag
3332 fi
3333 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3334 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3335 if test "$ac_test_CFLAGS" = set; then
3336   CFLAGS=$ac_save_CFLAGS
3337 elif test $ac_cv_prog_cc_g = yes; then
3338   if test "$GCC" = yes; then
3339     CFLAGS="-g -O2"
3340   else
3341     CFLAGS="-g"
3342   fi
3343 else
3344   if test "$GCC" = yes; then
3345     CFLAGS="-O2"
3346   else
3347     CFLAGS=
3348   fi
3349 fi
3350 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3351 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3352 if test "${ac_cv_prog_cc_c89+set}" = set; then
3353   echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355   ac_cv_prog_cc_c89=no
3356 ac_save_CC=$CC
3357 cat >conftest.$ac_ext <<_ACEOF
3358 /* confdefs.h.  */
3359 _ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h.  */
3363 #include <stdarg.h>
3364 #include <stdio.h>
3365 #include <sys/types.h>
3366 #include <sys/stat.h>
3367 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3368 struct buf { int x; };
3369 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3370 static char *e (p, i)
3371      char **p;
3372      int i;
3373 {
3374   return p[i];
3375 }
3376 static char *f (char * (*g) (char **, int), char **p, ...)
3377 {
3378   char *s;
3379   va_list v;
3380   va_start (v,p);
3381   s = g (p, va_arg (v,int));
3382   va_end (v);
3383   return s;
3384 }
3385
3386 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3387    function prototypes and stuff, but not '\xHH' hex character constants.
3388    These don't provoke an error unfortunately, instead are silently treated
3389    as 'x'.  The following induces an error, until -std is added to get
3390    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3391    array size at least.  It's necessary to write '\x00'==0 to get something
3392    that's true only with -std.  */
3393 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3394
3395 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3396    inside strings and character constants.  */
3397 #define FOO(x) 'x'
3398 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3399
3400 int test (int i, double x);
3401 struct s1 {int (*f) (int a);};
3402 struct s2 {int (*f) (double a);};
3403 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3404 int argc;
3405 char **argv;
3406 int
3407 main ()
3408 {
3409 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3410   ;
3411   return 0;
3412 }
3413 _ACEOF
3414 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3415         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3416 do
3417   CC="$ac_save_CC $ac_arg"
3418   rm -f conftest.$ac_objext
3419 if { (ac_try="$ac_compile"
3420 case "(($ac_try" in
3421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422   *) ac_try_echo=$ac_try;;
3423 esac
3424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425   (eval "$ac_compile") 2>conftest.er1
3426   ac_status=$?
3427   grep -v '^ *+' conftest.er1 >conftest.err
3428   rm -f conftest.er1
3429   cat conftest.err >&5
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); } && {
3432          test -z "$ac_c_werror_flag" ||
3433          test ! -s conftest.err
3434        } && test -s conftest.$ac_objext; then
3435   ac_cv_prog_cc_c89=$ac_arg
3436 else
3437   echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3439
3440
3441 fi
3442
3443 rm -f core conftest.err conftest.$ac_objext
3444   test "x$ac_cv_prog_cc_c89" != "xno" && break
3445 done
3446 rm -f conftest.$ac_ext
3447 CC=$ac_save_CC
3448
3449 fi
3450 # AC_CACHE_VAL
3451 case "x$ac_cv_prog_cc_c89" in
3452   x)
3453     { echo "$as_me:$LINENO: result: none needed" >&5
3454 echo "${ECHO_T}none needed" >&6; } ;;
3455   xno)
3456     { echo "$as_me:$LINENO: result: unsupported" >&5
3457 echo "${ECHO_T}unsupported" >&6; } ;;
3458   *)
3459     CC="$CC $ac_cv_prog_cc_c89"
3460     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3461 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3462 esac
3463
3464
3465 ac_ext=c
3466 ac_cpp='$CPP $CPPFLAGS'
3467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3470
3471 depcc="$CC"   am_compiler_list=
3472
3473 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3474 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3475 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3476   echo $ECHO_N "(cached) $ECHO_C" >&6
3477 else
3478   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3479   # We make a subdir and do the tests there.  Otherwise we can end up
3480   # making bogus files that we don't know about and never remove.  For
3481   # instance it was reported that on HP-UX the gcc test will end up
3482   # making a dummy file named `D' -- because `-MD' means `put the output
3483   # in D'.
3484   mkdir conftest.dir
3485   # Copy depcomp to subdir because otherwise we won't find it if we're
3486   # using a relative directory.
3487   cp "$am_depcomp" conftest.dir
3488   cd conftest.dir
3489   # We will build objects and dependencies in a subdirectory because
3490   # it helps to detect inapplicable dependency modes.  For instance
3491   # both Tru64's cc and ICC support -MD to output dependencies as a
3492   # side effect of compilation, but ICC will put the dependencies in
3493   # the current directory while Tru64 will put them in the object
3494   # directory.
3495   mkdir sub
3496
3497   am_cv_CC_dependencies_compiler_type=none
3498   if test "$am_compiler_list" = ""; then
3499      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3500   fi
3501   for depmode in $am_compiler_list; do
3502     # Setup a source with many dependencies, because some compilers
3503     # like to wrap large dependency lists on column 80 (with \), and
3504     # we should not choose a depcomp mode which is confused by this.
3505     #
3506     # We need to recreate these files for each test, as the compiler may
3507     # overwrite some of them when testing with obscure command lines.
3508     # This happens at least with the AIX C compiler.
3509     : > sub/conftest.c
3510     for i in 1 2 3 4 5 6; do
3511       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3512       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3513       # Solaris 8's {/usr,}/bin/sh.
3514       touch sub/conftst$i.h
3515     done
3516     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3517
3518     case $depmode in
3519     nosideeffect)
3520       # after this tag, mechanisms are not by side-effect, so they'll
3521       # only be used when explicitly requested
3522       if test "x$enable_dependency_tracking" = xyes; then
3523         continue
3524       else
3525         break
3526       fi
3527       ;;
3528     none) break ;;
3529     esac
3530     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3531     # mode.  It turns out that the SunPro C++ compiler does not properly
3532     # handle `-M -o', and we need to detect this.
3533     if depmode=$depmode \
3534        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3535        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3536        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3537          >/dev/null 2>conftest.err &&
3538        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3539        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3540        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3541       # icc doesn't choke on unknown options, it will just issue warnings
3542       # or remarks (even with -Werror).  So we grep stderr for any message
3543       # that says an option was ignored or not supported.
3544       # When given -MP, icc 7.0 and 7.1 complain thusly:
3545       #   icc: Command line warning: ignoring option '-M'; no argument required
3546       # The diagnosis changed in icc 8.0:
3547       #   icc: Command line remark: option '-MP' not supported
3548       if (grep 'ignoring option' conftest.err ||
3549           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3550         am_cv_CC_dependencies_compiler_type=$depmode
3551         break
3552       fi
3553     fi
3554   done
3555
3556   cd ..
3557   rm -rf conftest.dir
3558 else
3559   am_cv_CC_dependencies_compiler_type=none
3560 fi
3561
3562 fi
3563 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3564 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3565 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3566
3567
3568
3569 if
3570   test "x$enable_dependency_tracking" != xno \
3571   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3572   am__fastdepCC_TRUE=
3573   am__fastdepCC_FALSE='#'
3574 else
3575   am__fastdepCC_TRUE='#'
3576   am__fastdepCC_FALSE=
3577 fi
3578
3579
3580
3581 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3582 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3583 if test "${ac_cv_search_strerror+set}" = set; then
3584   echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586   ac_func_search_save_LIBS=$LIBS
3587 cat >conftest.$ac_ext <<_ACEOF
3588 /* confdefs.h.  */
3589 _ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h.  */
3593
3594 /* Override any GCC internal prototype to avoid an error.
3595    Use char because int might match the return type of a GCC
3596    builtin and then its argument prototype would still apply.  */
3597 #ifdef __cplusplus
3598 extern "C"
3599 #endif
3600 char strerror ();
3601 int
3602 main ()
3603 {
3604 return strerror ();
3605   ;
3606   return 0;
3607 }
3608 _ACEOF
3609 for ac_lib in '' cposix; do
3610   if test -z "$ac_lib"; then
3611     ac_res="none required"
3612   else
3613     ac_res=-l$ac_lib
3614     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3615   fi
3616   rm -f conftest.$ac_objext conftest$ac_exeext
3617 if { (ac_try="$ac_link"
3618 case "(($ac_try" in
3619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620   *) ac_try_echo=$ac_try;;
3621 esac
3622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3623   (eval "$ac_link") 2>conftest.er1
3624   ac_status=$?
3625   grep -v '^ *+' conftest.er1 >conftest.err
3626   rm -f conftest.er1
3627   cat conftest.err >&5
3628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629   (exit $ac_status); } && {
3630          test -z "$ac_c_werror_flag" ||
3631          test ! -s conftest.err
3632        } && test -s conftest$ac_exeext &&
3633        $as_test_x conftest$ac_exeext; then
3634   ac_cv_search_strerror=$ac_res
3635 else
3636   echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3638
3639
3640 fi
3641
3642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3643       conftest$ac_exeext
3644   if test "${ac_cv_search_strerror+set}" = set; then
3645   break
3646 fi
3647 done
3648 if test "${ac_cv_search_strerror+set}" = set; then
3649   :
3650 else
3651   ac_cv_search_strerror=no
3652 fi
3653 rm conftest.$ac_ext
3654 LIBS=$ac_func_search_save_LIBS
3655 fi
3656 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3657 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3658 ac_res=$ac_cv_search_strerror
3659 if test "$ac_res" != no; then
3660   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3661
3662 fi
3663
3664 ac_ext=cpp
3665 ac_cpp='$CXXCPP $CPPFLAGS'
3666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3669 if test -z "$CXX"; then
3670   if test -n "$CCC"; then
3671     CXX=$CCC
3672   else
3673     if test -n "$ac_tool_prefix"; then
3674   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3675   do
3676     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3677 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3680 if test "${ac_cv_prog_CXX+set}" = set; then
3681   echo $ECHO_N "(cached) $ECHO_C" >&6
3682 else
3683   if test -n "$CXX"; then
3684   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3685 else
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH
3688 do
3689   IFS=$as_save_IFS
3690   test -z "$as_dir" && as_dir=.
3691   for ac_exec_ext in '' $ac_executable_extensions; do
3692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3693     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3695     break 2
3696   fi
3697 done
3698 done
3699 IFS=$as_save_IFS
3700
3701 fi
3702 fi
3703 CXX=$ac_cv_prog_CXX
3704 if test -n "$CXX"; then
3705   { echo "$as_me:$LINENO: result: $CXX" >&5
3706 echo "${ECHO_T}$CXX" >&6; }
3707 else
3708   { echo "$as_me:$LINENO: result: no" >&5
3709 echo "${ECHO_T}no" >&6; }
3710 fi
3711
3712
3713     test -n "$CXX" && break
3714   done
3715 fi
3716 if test -z "$CXX"; then
3717   ac_ct_CXX=$CXX
3718   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3719 do
3720   # Extract the first word of "$ac_prog", so it can be a program name with args.
3721 set dummy $ac_prog; ac_word=$2
3722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3724 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3725   echo $ECHO_N "(cached) $ECHO_C" >&6
3726 else
3727   if test -n "$ac_ct_CXX"; then
3728   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3729 else
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 for as_dir in $PATH
3732 do
3733   IFS=$as_save_IFS
3734   test -z "$as_dir" && as_dir=.
3735   for ac_exec_ext in '' $ac_executable_extensions; do
3736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3737     ac_cv_prog_ac_ct_CXX="$ac_prog"
3738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3739     break 2
3740   fi
3741 done
3742 done
3743 IFS=$as_save_IFS
3744
3745 fi
3746 fi
3747 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3748 if test -n "$ac_ct_CXX"; then
3749   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3750 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3751 else
3752   { echo "$as_me:$LINENO: result: no" >&5
3753 echo "${ECHO_T}no" >&6; }
3754 fi
3755
3756
3757   test -n "$ac_ct_CXX" && break
3758 done
3759
3760   if test "x$ac_ct_CXX" = x; then
3761     CXX="g++"
3762   else
3763     case $cross_compiling:$ac_tool_warned in
3764 yes:)
3765 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3766 whose name does not start with the host triplet.  If you think this
3767 configuration is useful to you, please write to autoconf@gnu.org." >&5
3768 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3769 whose name does not start with the host triplet.  If you think this
3770 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3771 ac_tool_warned=yes ;;
3772 esac
3773     CXX=$ac_ct_CXX
3774   fi
3775 fi
3776
3777   fi
3778 fi
3779 # Provide some information about the compiler.
3780 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3781 ac_compiler=`set X $ac_compile; echo $2`
3782 { (ac_try="$ac_compiler --version >&5"
3783 case "(($ac_try" in
3784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785   *) ac_try_echo=$ac_try;;
3786 esac
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788   (eval "$ac_compiler --version >&5") 2>&5
3789   ac_status=$?
3790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791   (exit $ac_status); }
3792 { (ac_try="$ac_compiler -v >&5"
3793 case "(($ac_try" in
3794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795   *) ac_try_echo=$ac_try;;
3796 esac
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798   (eval "$ac_compiler -v >&5") 2>&5
3799   ac_status=$?
3800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801   (exit $ac_status); }
3802 { (ac_try="$ac_compiler -V >&5"
3803 case "(($ac_try" in
3804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805   *) ac_try_echo=$ac_try;;
3806 esac
3807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3808   (eval "$ac_compiler -V >&5") 2>&5
3809   ac_status=$?
3810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811   (exit $ac_status); }
3812
3813 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3814 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3815 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3816   echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818   cat >conftest.$ac_ext <<_ACEOF
3819 /* confdefs.h.  */
3820 _ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h.  */
3824
3825 int
3826 main ()
3827 {
3828 #ifndef __GNUC__
3829        choke me
3830 #endif
3831
3832   ;
3833   return 0;
3834 }
3835 _ACEOF
3836 rm -f conftest.$ac_objext
3837 if { (ac_try="$ac_compile"
3838 case "(($ac_try" in
3839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840   *) ac_try_echo=$ac_try;;
3841 esac
3842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3843   (eval "$ac_compile") 2>conftest.er1
3844   ac_status=$?
3845   grep -v '^ *+' conftest.er1 >conftest.err
3846   rm -f conftest.er1
3847   cat conftest.err >&5
3848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849   (exit $ac_status); } && {
3850          test -z "$ac_cxx_werror_flag" ||
3851          test ! -s conftest.err
3852        } && test -s conftest.$ac_objext; then
3853   ac_compiler_gnu=yes
3854 else
3855   echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3857
3858         ac_compiler_gnu=no
3859 fi
3860
3861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3863
3864 fi
3865 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3866 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3867 GXX=`test $ac_compiler_gnu = yes && echo yes`
3868 ac_test_CXXFLAGS=${CXXFLAGS+set}
3869 ac_save_CXXFLAGS=$CXXFLAGS
3870 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3871 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3872 if test "${ac_cv_prog_cxx_g+set}" = set; then
3873   echo $ECHO_N "(cached) $ECHO_C" >&6
3874 else
3875   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3876    ac_cxx_werror_flag=yes
3877    ac_cv_prog_cxx_g=no
3878    CXXFLAGS="-g"
3879    cat >conftest.$ac_ext <<_ACEOF
3880 /* confdefs.h.  */
3881 _ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h.  */
3885
3886 int
3887 main ()
3888 {
3889
3890   ;
3891   return 0;
3892 }
3893 _ACEOF
3894 rm -f conftest.$ac_objext
3895 if { (ac_try="$ac_compile"
3896 case "(($ac_try" in
3897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898   *) ac_try_echo=$ac_try;;
3899 esac
3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901   (eval "$ac_compile") 2>conftest.er1
3902   ac_status=$?
3903   grep -v '^ *+' conftest.er1 >conftest.err
3904   rm -f conftest.er1
3905   cat conftest.err >&5
3906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907   (exit $ac_status); } && {
3908          test -z "$ac_cxx_werror_flag" ||
3909          test ! -s conftest.err
3910        } && test -s conftest.$ac_objext; then
3911   ac_cv_prog_cxx_g=yes
3912 else
3913   echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3915
3916         CXXFLAGS=""
3917       cat >conftest.$ac_ext <<_ACEOF
3918 /* confdefs.h.  */
3919 _ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h.  */
3923
3924 int
3925 main ()
3926 {
3927
3928   ;
3929   return 0;
3930 }
3931 _ACEOF
3932 rm -f conftest.$ac_objext
3933 if { (ac_try="$ac_compile"
3934 case "(($ac_try" in
3935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936   *) ac_try_echo=$ac_try;;
3937 esac
3938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3939   (eval "$ac_compile") 2>conftest.er1
3940   ac_status=$?
3941   grep -v '^ *+' conftest.er1 >conftest.err
3942   rm -f conftest.er1
3943   cat conftest.err >&5
3944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945   (exit $ac_status); } && {
3946          test -z "$ac_cxx_werror_flag" ||
3947          test ! -s conftest.err
3948        } && test -s conftest.$ac_objext; then
3949   :
3950 else
3951   echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3953
3954         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3955          CXXFLAGS="-g"
3956          cat >conftest.$ac_ext <<_ACEOF
3957 /* confdefs.h.  */
3958 _ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h.  */
3962
3963 int
3964 main ()
3965 {
3966
3967   ;
3968   return 0;
3969 }
3970 _ACEOF
3971 rm -f conftest.$ac_objext
3972 if { (ac_try="$ac_compile"
3973 case "(($ac_try" in
3974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975   *) ac_try_echo=$ac_try;;
3976 esac
3977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978   (eval "$ac_compile") 2>conftest.er1
3979   ac_status=$?
3980   grep -v '^ *+' conftest.er1 >conftest.err
3981   rm -f conftest.er1
3982   cat conftest.err >&5
3983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); } && {
3985          test -z "$ac_cxx_werror_flag" ||
3986          test ! -s conftest.err
3987        } && test -s conftest.$ac_objext; then
3988   ac_cv_prog_cxx_g=yes
3989 else
3990   echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3992
3993
3994 fi
3995
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997 fi
3998
3999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4000 fi
4001
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4004 fi
4005 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4006 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4007 if test "$ac_test_CXXFLAGS" = set; then
4008   CXXFLAGS=$ac_save_CXXFLAGS
4009 elif test $ac_cv_prog_cxx_g = yes; then
4010   if test "$GXX" = yes; then
4011     CXXFLAGS="-g -O2"
4012   else
4013     CXXFLAGS="-g"
4014   fi
4015 else
4016   if test "$GXX" = yes; then
4017     CXXFLAGS="-O2"
4018   else
4019     CXXFLAGS=
4020   fi
4021 fi
4022 ac_ext=c
4023 ac_cpp='$CPP $CPPFLAGS'
4024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4027
4028 depcc="$CXX"  am_compiler_list=
4029
4030 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4031 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4032 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4033   echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4036   # We make a subdir and do the tests there.  Otherwise we can end up
4037   # making bogus files that we don't know about and never remove.  For
4038   # instance it was reported that on HP-UX the gcc test will end up
4039   # making a dummy file named `D' -- because `-MD' means `put the output
4040   # in D'.
4041   mkdir conftest.dir
4042   # Copy depcomp to subdir because otherwise we won't find it if we're
4043   # using a relative directory.
4044   cp "$am_depcomp" conftest.dir
4045   cd conftest.dir
4046   # We will build objects and dependencies in a subdirectory because
4047   # it helps to detect inapplicable dependency modes.  For instance
4048   # both Tru64's cc and ICC support -MD to output dependencies as a
4049   # side effect of compilation, but ICC will put the dependencies in
4050   # the current directory while Tru64 will put them in the object
4051   # directory.
4052   mkdir sub
4053
4054   am_cv_CXX_dependencies_compiler_type=none
4055   if test "$am_compiler_list" = ""; then
4056      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4057   fi
4058   for depmode in $am_compiler_list; do
4059     # Setup a source with many dependencies, because some compilers
4060     # like to wrap large dependency lists on column 80 (with \), and
4061     # we should not choose a depcomp mode which is confused by this.
4062     #
4063     # We need to recreate these files for each test, as the compiler may
4064     # overwrite some of them when testing with obscure command lines.
4065     # This happens at least with the AIX C compiler.
4066     : > sub/conftest.c
4067     for i in 1 2 3 4 5 6; do
4068       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4069       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4070       # Solaris 8's {/usr,}/bin/sh.
4071       touch sub/conftst$i.h
4072     done
4073     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4074
4075     case $depmode in
4076     nosideeffect)
4077       # after this tag, mechanisms are not by side-effect, so they'll
4078       # only be used when explicitly requested
4079       if test "x$enable_dependency_tracking" = xyes; then
4080         continue
4081       else
4082         break
4083       fi
4084       ;;
4085     none) break ;;
4086     esac
4087     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4088     # mode.  It turns out that the SunPro C++ compiler does not properly
4089     # handle `-M -o', and we need to detect this.
4090     if depmode=$depmode \
4091        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4092        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4093        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4094          >/dev/null 2>conftest.err &&
4095        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4096        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4097        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4098       # icc doesn't choke on unknown options, it will just issue warnings
4099       # or remarks (even with -Werror).  So we grep stderr for any message
4100       # that says an option was ignored or not supported.
4101       # When given -MP, icc 7.0 and 7.1 complain thusly:
4102       #   icc: Command line warning: ignoring option '-M'; no argument required
4103       # The diagnosis changed in icc 8.0:
4104       #   icc: Command line remark: option '-MP' not supported
4105       if (grep 'ignoring option' conftest.err ||
4106           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4107         am_cv_CXX_dependencies_compiler_type=$depmode
4108         break
4109       fi
4110     fi
4111   done
4112
4113   cd ..
4114   rm -rf conftest.dir
4115 else
4116   am_cv_CXX_dependencies_compiler_type=none
4117 fi
4118
4119 fi
4120 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4121 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4122 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4123
4124
4125
4126 if
4127   test "x$enable_dependency_tracking" != xno \
4128   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4129   am__fastdepCXX_TRUE=
4130   am__fastdepCXX_FALSE='#'
4131 else
4132   am__fastdepCXX_TRUE='#'
4133   am__fastdepCXX_FALSE=
4134 fi
4135
4136
4137 ac_ext=c
4138 ac_cpp='$CPP $CPPFLAGS'
4139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4143 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4144 # On Suns, sometimes $CPP names a directory.
4145 if test -n "$CPP" && test -d "$CPP"; then
4146   CPP=
4147 fi
4148 if test -z "$CPP"; then
4149   if test "${ac_cv_prog_CPP+set}" = set; then
4150   echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152       # Double quotes because CPP needs to be expanded
4153     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4154     do
4155       ac_preproc_ok=false
4156 for ac_c_preproc_warn_flag in '' yes
4157 do
4158   # Use a header file that comes with gcc, so configuring glibc
4159   # with a fresh cross-compiler works.
4160   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4161   # <limits.h> exists even on freestanding compilers.
4162   # On the NeXT, cc -E runs the code through the compiler's parser,
4163   # not just through cpp. "Syntax error" is here to catch this case.
4164   cat >conftest.$ac_ext <<_ACEOF
4165 /* confdefs.h.  */
4166 _ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h.  */
4170 #ifdef __STDC__
4171 # include <limits.h>
4172 #else
4173 # include <assert.h>
4174 #endif
4175                      Syntax error
4176 _ACEOF
4177 if { (ac_try="$ac_cpp conftest.$ac_ext"
4178 case "(($ac_try" in
4179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180   *) ac_try_echo=$ac_try;;
4181 esac
4182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4183   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4184   ac_status=$?
4185   grep -v '^ *+' conftest.er1 >conftest.err
4186   rm -f conftest.er1
4187   cat conftest.err >&5
4188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189   (exit $ac_status); } >/dev/null && {
4190          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4191          test ! -s conftest.err
4192        }; then
4193   :
4194 else
4195   echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4197
4198   # Broken: fails on valid input.
4199 continue
4200 fi
4201
4202 rm -f conftest.err conftest.$ac_ext
4203
4204   # OK, works on sane cases.  Now check whether nonexistent headers
4205   # can be detected and how.
4206   cat >conftest.$ac_ext <<_ACEOF
4207 /* confdefs.h.  */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h.  */
4212 #include <ac_nonexistent.h>
4213 _ACEOF
4214 if { (ac_try="$ac_cpp conftest.$ac_ext"
4215 case "(($ac_try" in
4216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217   *) ac_try_echo=$ac_try;;
4218 esac
4219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4220   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4221   ac_status=$?
4222   grep -v '^ *+' conftest.er1 >conftest.err
4223   rm -f conftest.er1
4224   cat conftest.err >&5
4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); } >/dev/null && {
4227          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4228          test ! -s conftest.err
4229        }; then
4230   # Broken: success on invalid input.
4231 continue
4232 else
4233   echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4235
4236   # Passes both tests.
4237 ac_preproc_ok=:
4238 break
4239 fi
4240
4241 rm -f conftest.err conftest.$ac_ext
4242
4243 done
4244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4245 rm -f conftest.err conftest.$ac_ext
4246 if $ac_preproc_ok; then
4247   break
4248 fi
4249
4250     done
4251     ac_cv_prog_CPP=$CPP
4252
4253 fi
4254   CPP=$ac_cv_prog_CPP
4255 else
4256   ac_cv_prog_CPP=$CPP
4257 fi
4258 { echo "$as_me:$LINENO: result: $CPP" >&5
4259 echo "${ECHO_T}$CPP" >&6; }
4260 ac_preproc_ok=false
4261 for ac_c_preproc_warn_flag in '' yes
4262 do
4263   # Use a header file that comes with gcc, so configuring glibc
4264   # with a fresh cross-compiler works.
4265   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4266   # <limits.h> exists even on freestanding compilers.
4267   # On the NeXT, cc -E runs the code through the compiler's parser,
4268   # not just through cpp. "Syntax error" is here to catch this case.
4269   cat >conftest.$ac_ext <<_ACEOF
4270 /* confdefs.h.  */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h.  */
4275 #ifdef __STDC__
4276 # include <limits.h>
4277 #else
4278 # include <assert.h>
4279 #endif
4280                      Syntax error
4281 _ACEOF
4282 if { (ac_try="$ac_cpp conftest.$ac_ext"
4283 case "(($ac_try" in
4284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285   *) ac_try_echo=$ac_try;;
4286 esac
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4289   ac_status=$?
4290   grep -v '^ *+' conftest.er1 >conftest.err
4291   rm -f conftest.er1
4292   cat conftest.err >&5
4293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294   (exit $ac_status); } >/dev/null && {
4295          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4296          test ! -s conftest.err
4297        }; then
4298   :
4299 else
4300   echo "$as_me: failed program was:" >&5
4301 sed 's/^/| /' conftest.$ac_ext >&5
4302
4303   # Broken: fails on valid input.
4304 continue
4305 fi
4306
4307 rm -f conftest.err conftest.$ac_ext
4308
4309   # OK, works on sane cases.  Now check whether nonexistent headers
4310   # can be detected and how.
4311   cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h.  */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h.  */
4317 #include <ac_nonexistent.h>
4318 _ACEOF
4319 if { (ac_try="$ac_cpp conftest.$ac_ext"
4320 case "(($ac_try" in
4321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322   *) ac_try_echo=$ac_try;;
4323 esac
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4326   ac_status=$?
4327   grep -v '^ *+' conftest.er1 >conftest.err
4328   rm -f conftest.er1
4329   cat conftest.err >&5
4330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331   (exit $ac_status); } >/dev/null && {
4332          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4333          test ! -s conftest.err
4334        }; then
4335   # Broken: success on invalid input.
4336 continue
4337 else
4338   echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4340
4341   # Passes both tests.
4342 ac_preproc_ok=:
4343 break
4344 fi
4345
4346 rm -f conftest.err conftest.$ac_ext
4347
4348 done
4349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4350 rm -f conftest.err conftest.$ac_ext
4351 if $ac_preproc_ok; then
4352   :
4353 else
4354   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4355 See \`config.log' for more details." >&5
4356 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4357 See \`config.log' for more details." >&2;}
4358    { (exit 1); exit 1; }; }
4359 fi
4360
4361 ac_ext=c
4362 ac_cpp='$CPP $CPPFLAGS'
4363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4366
4367 ac_ext=c
4368 ac_cpp='$CPP $CPPFLAGS'
4369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4372 if test -n "$ac_tool_prefix"; then
4373   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4374 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4377 if test "${ac_cv_prog_CC+set}" = set; then
4378   echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380   if test -n "$CC"; then
4381   ac_cv_prog_CC="$CC" # Let the user override the test.
4382 else
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4385 do
4386   IFS=$as_save_IFS
4387   test -z "$as_dir" && as_dir=.
4388   for ac_exec_ext in '' $ac_executable_extensions; do
4389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392     break 2
4393   fi
4394 done
4395 done
4396 IFS=$as_save_IFS
4397
4398 fi
4399 fi
4400 CC=$ac_cv_prog_CC
4401 if test -n "$CC"; then
4402   { echo "$as_me:$LINENO: result: $CC" >&5
4403 echo "${ECHO_T}$CC" >&6; }
4404 else
4405   { echo "$as_me:$LINENO: result: no" >&5
4406 echo "${ECHO_T}no" >&6; }
4407 fi
4408
4409
4410 fi
4411 if test -z "$ac_cv_prog_CC"; then
4412   ac_ct_CC=$CC
4413   # Extract the first word of "gcc", so it can be a program name with args.
4414 set dummy gcc; ac_word=$2
4415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4417 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4418   echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420   if test -n "$ac_ct_CC"; then
4421   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4422 else
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4425 do
4426   IFS=$as_save_IFS
4427   test -z "$as_dir" && as_dir=.
4428   for ac_exec_ext in '' $ac_executable_extensions; do
4429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4430     ac_cv_prog_ac_ct_CC="gcc"
4431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432     break 2
4433   fi
4434 done
4435 done
4436 IFS=$as_save_IFS
4437
4438 fi
4439 fi
4440 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4441 if test -n "$ac_ct_CC"; then
4442   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4443 echo "${ECHO_T}$ac_ct_CC" >&6; }
4444 else
4445   { echo "$as_me:$LINENO: result: no" >&5
4446 echo "${ECHO_T}no" >&6; }
4447 fi
4448
4449   if test "x$ac_ct_CC" = x; then
4450     CC=""
4451   else
4452     case $cross_compiling:$ac_tool_warned in
4453 yes:)
4454 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4455 whose name does not start with the host triplet.  If you think this
4456 configuration is useful to you, please write to autoconf@gnu.org." >&5
4457 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4458 whose name does not start with the host triplet.  If you think this
4459 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4460 ac_tool_warned=yes ;;
4461 esac
4462     CC=$ac_ct_CC
4463   fi
4464 else
4465   CC="$ac_cv_prog_CC"
4466 fi
4467
4468 if test -z "$CC"; then
4469           if test -n "$ac_tool_prefix"; then
4470     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4471 set dummy ${ac_tool_prefix}cc; ac_word=$2
4472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4474 if test "${ac_cv_prog_CC+set}" = set; then
4475   echo $ECHO_N "(cached) $ECHO_C" >&6
4476 else
4477   if test -n "$CC"; then
4478   ac_cv_prog_CC="$CC" # Let the user override the test.
4479 else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4482 do
4483   IFS=$as_save_IFS
4484   test -z "$as_dir" && as_dir=.
4485   for ac_exec_ext in '' $ac_executable_extensions; do
4486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4487     ac_cv_prog_CC="${ac_tool_prefix}cc"
4488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489     break 2
4490   fi
4491 done
4492 done
4493 IFS=$as_save_IFS
4494
4495 fi
4496 fi
4497 CC=$ac_cv_prog_CC
4498 if test -n "$CC"; then
4499   { echo "$as_me:$LINENO: result: $CC" >&5
4500 echo "${ECHO_T}$CC" >&6; }
4501 else
4502   { echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6; }
4504 fi
4505
4506
4507   fi
4508 fi
4509 if test -z "$CC"; then
4510   # Extract the first word of "cc", so it can be a program name with args.
4511 set dummy cc; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_prog_CC+set}" = set; then
4515   echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517   if test -n "$CC"; then
4518   ac_cv_prog_CC="$CC" # Let the user override the test.
4519 else
4520   ac_prog_rejected=no
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524   IFS=$as_save_IFS
4525   test -z "$as_dir" && as_dir=.
4526   for ac_exec_ext in '' $ac_executable_extensions; do
4527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4529        ac_prog_rejected=yes
4530        continue
4531      fi
4532     ac_cv_prog_CC="cc"
4533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534     break 2
4535   fi
4536 done
4537 done
4538 IFS=$as_save_IFS
4539
4540 if test $ac_prog_rejected = yes; then
4541   # We found a bogon in the path, so make sure we never use it.
4542   set dummy $ac_cv_prog_CC
4543   shift
4544   if test $# != 0; then
4545     # We chose a different compiler from the bogus one.
4546     # However, it has the same basename, so the bogon will be chosen
4547     # first if we set CC to just the basename; use the full file name.
4548     shift
4549     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4550   fi
4551 fi
4552 fi
4553 fi
4554 CC=$ac_cv_prog_CC
4555 if test -n "$CC"; then
4556   { echo "$as_me:$LINENO: result: $CC" >&5
4557 echo "${ECHO_T}$CC" >&6; }
4558 else
4559   { echo "$as_me:$LINENO: result: no" >&5
4560 echo "${ECHO_T}no" >&6; }
4561 fi
4562
4563
4564 fi
4565 if test -z "$CC"; then
4566   if test -n "$ac_tool_prefix"; then
4567   for ac_prog in cl.exe
4568   do
4569     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4570 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4573 if test "${ac_cv_prog_CC+set}" = set; then
4574   echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576   if test -n "$CC"; then
4577   ac_cv_prog_CC="$CC" # Let the user override the test.
4578 else
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4581 do
4582   IFS=$as_save_IFS
4583   test -z "$as_dir" && as_dir=.
4584   for ac_exec_ext in '' $ac_executable_extensions; do
4585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588     break 2
4589   fi
4590 done
4591 done
4592 IFS=$as_save_IFS
4593
4594 fi
4595 fi
4596 CC=$ac_cv_prog_CC
4597 if test -n "$CC"; then
4598   { echo "$as_me:$LINENO: result: $CC" >&5
4599 echo "${ECHO_T}$CC" >&6; }
4600 else
4601   { echo "$as_me:$LINENO: result: no" >&5
4602 echo "${ECHO_T}no" >&6; }
4603 fi
4604
4605
4606     test -n "$CC" && break
4607   done
4608 fi
4609 if test -z "$CC"; then
4610   ac_ct_CC=$CC
4611   for ac_prog in cl.exe
4612 do
4613   # Extract the first word of "$ac_prog", so it can be a program name with args.
4614 set dummy $ac_prog; ac_word=$2
4615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4617 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4618   echo $ECHO_N "(cached) $ECHO_C" >&6
4619 else
4620   if test -n "$ac_ct_CC"; then
4621   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4622 else
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4625 do
4626   IFS=$as_save_IFS
4627   test -z "$as_dir" && as_dir=.
4628   for ac_exec_ext in '' $ac_executable_extensions; do
4629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630     ac_cv_prog_ac_ct_CC="$ac_prog"
4631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4632     break 2
4633   fi
4634 done
4635 done
4636 IFS=$as_save_IFS
4637
4638 fi
4639 fi
4640 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4641 if test -n "$ac_ct_CC"; then
4642   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4643 echo "${ECHO_T}$ac_ct_CC" >&6; }
4644 else
4645   { echo "$as_me:$LINENO: result: no" >&5
4646 echo "${ECHO_T}no" >&6; }
4647 fi
4648
4649
4650   test -n "$ac_ct_CC" && break
4651 done
4652
4653   if test "x$ac_ct_CC" = x; then
4654     CC=""
4655   else
4656     case $cross_compiling:$ac_tool_warned in
4657 yes:)
4658 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4659 whose name does not start with the host triplet.  If you think this
4660 configuration is useful to you, please write to autoconf@gnu.org." >&5
4661 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4662 whose name does not start with the host triplet.  If you think this
4663 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4664 ac_tool_warned=yes ;;
4665 esac
4666     CC=$ac_ct_CC
4667   fi
4668 fi
4669
4670 fi
4671
4672
4673 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4674 See \`config.log' for more details." >&5
4675 echo "$as_me: error: no acceptable C compiler found in \$PATH
4676 See \`config.log' for more details." >&2;}
4677    { (exit 1); exit 1; }; }
4678
4679 # Provide some information about the compiler.
4680 echo "$as_me:$LINENO: checking for C compiler version" >&5
4681 ac_compiler=`set X $ac_compile; echo $2`
4682 { (ac_try="$ac_compiler --version >&5"
4683 case "(($ac_try" in
4684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685   *) ac_try_echo=$ac_try;;
4686 esac
4687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4688   (eval "$ac_compiler --version >&5") 2>&5
4689   ac_status=$?
4690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691   (exit $ac_status); }
4692 { (ac_try="$ac_compiler -v >&5"
4693 case "(($ac_try" in
4694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695   *) ac_try_echo=$ac_try;;
4696 esac
4697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4698   (eval "$ac_compiler -v >&5") 2>&5
4699   ac_status=$?
4700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701   (exit $ac_status); }
4702 { (ac_try="$ac_compiler -V >&5"
4703 case "(($ac_try" in
4704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4705   *) ac_try_echo=$ac_try;;
4706 esac
4707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4708   (eval "$ac_compiler -V >&5") 2>&5
4709   ac_status=$?
4710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711   (exit $ac_status); }
4712
4713 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4714 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4715 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4716   echo $ECHO_N "(cached) $ECHO_C" >&6
4717 else
4718   cat >conftest.$ac_ext <<_ACEOF
4719 /* confdefs.h.  */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h.  */
4724
4725 int
4726 main ()
4727 {
4728 #ifndef __GNUC__
4729        choke me
4730 #endif
4731
4732   ;
4733   return 0;
4734 }
4735 _ACEOF
4736 rm -f conftest.$ac_objext
4737 if { (ac_try="$ac_compile"
4738 case "(($ac_try" in
4739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740   *) ac_try_echo=$ac_try;;
4741 esac
4742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743   (eval "$ac_compile") 2>conftest.er1
4744   ac_status=$?
4745   grep -v '^ *+' conftest.er1 >conftest.err
4746   rm -f conftest.er1
4747   cat conftest.err >&5
4748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749   (exit $ac_status); } && {
4750          test -z "$ac_c_werror_flag" ||
4751          test ! -s conftest.err
4752        } && test -s conftest.$ac_objext; then
4753   ac_compiler_gnu=yes
4754 else
4755   echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4757
4758         ac_compiler_gnu=no
4759 fi
4760
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4763
4764 fi
4765 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4766 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4767 GCC=`test $ac_compiler_gnu = yes && echo yes`
4768 ac_test_CFLAGS=${CFLAGS+set}
4769 ac_save_CFLAGS=$CFLAGS
4770 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4771 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4772 if test "${ac_cv_prog_cc_g+set}" = set; then
4773   echo $ECHO_N "(cached) $ECHO_C" >&6
4774 else
4775   ac_save_c_werror_flag=$ac_c_werror_flag
4776    ac_c_werror_flag=yes
4777    ac_cv_prog_cc_g=no
4778    CFLAGS="-g"
4779    cat >conftest.$ac_ext <<_ACEOF
4780 /* confdefs.h.  */
4781 _ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h.  */
4785
4786 int
4787 main ()
4788 {
4789
4790   ;
4791   return 0;
4792 }
4793 _ACEOF
4794 rm -f conftest.$ac_objext
4795 if { (ac_try="$ac_compile"
4796 case "(($ac_try" in
4797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798   *) ac_try_echo=$ac_try;;
4799 esac
4800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4801   (eval "$ac_compile") 2>conftest.er1
4802   ac_status=$?
4803   grep -v '^ *+' conftest.er1 >conftest.err
4804   rm -f conftest.er1
4805   cat conftest.err >&5
4806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807   (exit $ac_status); } && {
4808          test -z "$ac_c_werror_flag" ||
4809          test ! -s conftest.err
4810        } && test -s conftest.$ac_objext; then
4811   ac_cv_prog_cc_g=yes
4812 else
4813   echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4815
4816         CFLAGS=""
4817       cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h.  */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h.  */
4823
4824 int
4825 main ()
4826 {
4827
4828   ;
4829   return 0;
4830 }
4831 _ACEOF
4832 rm -f conftest.$ac_objext
4833 if { (ac_try="$ac_compile"
4834 case "(($ac_try" in
4835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836   *) ac_try_echo=$ac_try;;
4837 esac
4838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839   (eval "$ac_compile") 2>conftest.er1
4840   ac_status=$?
4841   grep -v '^ *+' conftest.er1 >conftest.err
4842   rm -f conftest.er1
4843   cat conftest.err >&5
4844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845   (exit $ac_status); } && {
4846          test -z "$ac_c_werror_flag" ||
4847          test ! -s conftest.err
4848        } && test -s conftest.$ac_objext; then
4849   :
4850 else
4851   echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4853
4854         ac_c_werror_flag=$ac_save_c_werror_flag
4855          CFLAGS="-g"
4856          cat >conftest.$ac_ext <<_ACEOF
4857 /* confdefs.h.  */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h.  */
4862
4863 int
4864 main ()
4865 {
4866
4867   ;
4868   return 0;
4869 }
4870 _ACEOF
4871 rm -f conftest.$ac_objext
4872 if { (ac_try="$ac_compile"
4873 case "(($ac_try" in
4874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875   *) ac_try_echo=$ac_try;;
4876 esac
4877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4878   (eval "$ac_compile") 2>conftest.er1
4879   ac_status=$?
4880   grep -v '^ *+' conftest.er1 >conftest.err
4881   rm -f conftest.er1
4882   cat conftest.err >&5
4883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884   (exit $ac_status); } && {
4885          test -z "$ac_c_werror_flag" ||
4886          test ! -s conftest.err
4887        } && test -s conftest.$ac_objext; then
4888   ac_cv_prog_cc_g=yes
4889 else
4890   echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4892
4893
4894 fi
4895
4896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4897 fi
4898
4899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900 fi
4901
4902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903    ac_c_werror_flag=$ac_save_c_werror_flag
4904 fi
4905 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4906 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4907 if test "$ac_test_CFLAGS" = set; then
4908   CFLAGS=$ac_save_CFLAGS
4909 elif test $ac_cv_prog_cc_g = yes; then
4910   if test "$GCC" = yes; then
4911     CFLAGS="-g -O2"
4912   else
4913     CFLAGS="-g"
4914   fi
4915 else
4916   if test "$GCC" = yes; then
4917     CFLAGS="-O2"
4918   else
4919     CFLAGS=
4920   fi
4921 fi
4922 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4923 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4924 if test "${ac_cv_prog_cc_c89+set}" = set; then
4925   echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927   ac_cv_prog_cc_c89=no
4928 ac_save_CC=$CC
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 <stdarg.h>
4936 #include <stdio.h>
4937 #include <sys/types.h>
4938 #include <sys/stat.h>
4939 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4940 struct buf { int x; };
4941 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4942 static char *e (p, i)
4943      char **p;
4944      int i;
4945 {
4946   return p[i];
4947 }
4948 static char *f (char * (*g) (char **, int), char **p, ...)
4949 {
4950   char *s;
4951   va_list v;
4952   va_start (v,p);
4953   s = g (p, va_arg (v,int));
4954   va_end (v);
4955   return s;
4956 }
4957
4958 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4959    function prototypes and stuff, but not '\xHH' hex character constants.
4960    These don't provoke an error unfortunately, instead are silently treated
4961    as 'x'.  The following induces an error, until -std is added to get
4962    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4963    array size at least.  It's necessary to write '\x00'==0 to get something
4964    that's true only with -std.  */
4965 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4966
4967 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4968    inside strings and character constants.  */
4969 #define FOO(x) 'x'
4970 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4971
4972 int test (int i, double x);
4973 struct s1 {int (*f) (int a);};
4974 struct s2 {int (*f) (double a);};
4975 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4976 int argc;
4977 char **argv;
4978 int
4979 main ()
4980 {
4981 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4982   ;
4983   return 0;
4984 }
4985 _ACEOF
4986 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4987         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4988 do
4989   CC="$ac_save_CC $ac_arg"
4990   rm -f conftest.$ac_objext
4991 if { (ac_try="$ac_compile"
4992 case "(($ac_try" in
4993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994   *) ac_try_echo=$ac_try;;
4995 esac
4996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4997   (eval "$ac_compile") 2>conftest.er1
4998   ac_status=$?
4999   grep -v '^ *+' conftest.er1 >conftest.err
5000   rm -f conftest.er1
5001   cat conftest.err >&5
5002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003   (exit $ac_status); } && {
5004          test -z "$ac_c_werror_flag" ||
5005          test ! -s conftest.err
5006        } && test -s conftest.$ac_objext; then
5007   ac_cv_prog_cc_c89=$ac_arg
5008 else
5009   echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5011
5012
5013 fi
5014
5015 rm -f core conftest.err conftest.$ac_objext
5016   test "x$ac_cv_prog_cc_c89" != "xno" && break
5017 done
5018 rm -f conftest.$ac_ext
5019 CC=$ac_save_CC
5020
5021 fi
5022 # AC_CACHE_VAL
5023 case "x$ac_cv_prog_cc_c89" in
5024   x)
5025     { echo "$as_me:$LINENO: result: none needed" >&5
5026 echo "${ECHO_T}none needed" >&6; } ;;
5027   xno)
5028     { echo "$as_me:$LINENO: result: unsupported" >&5
5029 echo "${ECHO_T}unsupported" >&6; } ;;
5030   *)
5031     CC="$CC $ac_cv_prog_cc_c89"
5032     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5033 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5034 esac
5035
5036
5037 ac_ext=c
5038 ac_cpp='$CPP $CPPFLAGS'
5039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5042
5043 depcc="$CC"   am_compiler_list=
5044
5045 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5046 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5047 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5048   echo $ECHO_N "(cached) $ECHO_C" >&6
5049 else
5050   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5051   # We make a subdir and do the tests there.  Otherwise we can end up
5052   # making bogus files that we don't know about and never remove.  For
5053   # instance it was reported that on HP-UX the gcc test will end up
5054   # making a dummy file named `D' -- because `-MD' means `put the output
5055   # in D'.
5056   mkdir conftest.dir
5057   # Copy depcomp to subdir because otherwise we won't find it if we're
5058   # using a relative directory.
5059   cp "$am_depcomp" conftest.dir
5060   cd conftest.dir
5061   # We will build objects and dependencies in a subdirectory because
5062   # it helps to detect inapplicable dependency modes.  For instance
5063   # both Tru64's cc and ICC support -MD to output dependencies as a
5064   # side effect of compilation, but ICC will put the dependencies in
5065   # the current directory while Tru64 will put them in the object
5066   # directory.
5067   mkdir sub
5068
5069   am_cv_CC_dependencies_compiler_type=none
5070   if test "$am_compiler_list" = ""; then
5071      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5072   fi
5073   for depmode in $am_compiler_list; do
5074     # Setup a source with many dependencies, because some compilers
5075     # like to wrap large dependency lists on column 80 (with \), and
5076     # we should not choose a depcomp mode which is confused by this.
5077     #
5078     # We need to recreate these files for each test, as the compiler may
5079     # overwrite some of them when testing with obscure command lines.
5080     # This happens at least with the AIX C compiler.
5081     : > sub/conftest.c
5082     for i in 1 2 3 4 5 6; do
5083       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5084       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5085       # Solaris 8's {/usr,}/bin/sh.
5086       touch sub/conftst$i.h
5087     done
5088     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5089
5090     case $depmode in
5091     nosideeffect)
5092       # after this tag, mechanisms are not by side-effect, so they'll
5093       # only be used when explicitly requested
5094       if test "x$enable_dependency_tracking" = xyes; then
5095         continue
5096       else
5097         break
5098       fi
5099       ;;
5100     none) break ;;
5101     esac
5102     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5103     # mode.  It turns out that the SunPro C++ compiler does not properly
5104     # handle `-M -o', and we need to detect this.
5105     if depmode=$depmode \
5106        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5107        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5108        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5109          >/dev/null 2>conftest.err &&
5110        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5111        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5112        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5113       # icc doesn't choke on unknown options, it will just issue warnings
5114       # or remarks (even with -Werror).  So we grep stderr for any message
5115       # that says an option was ignored or not supported.
5116       # When given -MP, icc 7.0 and 7.1 complain thusly:
5117       #   icc: Command line warning: ignoring option '-M'; no argument required
5118       # The diagnosis changed in icc 8.0:
5119       #   icc: Command line remark: option '-MP' not supported
5120       if (grep 'ignoring option' conftest.err ||
5121           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5122         am_cv_CC_dependencies_compiler_type=$depmode
5123         break
5124       fi
5125     fi
5126   done
5127
5128   cd ..
5129   rm -rf conftest.dir
5130 else
5131   am_cv_CC_dependencies_compiler_type=none
5132 fi
5133
5134 fi
5135 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5136 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5137 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5138
5139
5140
5141 if
5142   test "x$enable_dependency_tracking" != xno \
5143   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5144   am__fastdepCC_TRUE=
5145   am__fastdepCC_FALSE='#'
5146 else
5147   am__fastdepCC_TRUE='#'
5148   am__fastdepCC_FALSE=
5149 fi
5150
5151
5152 ac_ext=c
5153 ac_cpp='$CPP $CPPFLAGS'
5154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5157 if test -n "$ac_tool_prefix"; then
5158   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5159 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5162 if test "${ac_cv_prog_CC+set}" = set; then
5163   echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165   if test -n "$CC"; then
5166   ac_cv_prog_CC="$CC" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5170 do
5171   IFS=$as_save_IFS
5172   test -z "$as_dir" && as_dir=.
5173   for ac_exec_ext in '' $ac_executable_extensions; do
5174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177     break 2
5178   fi
5179 done
5180 done
5181 IFS=$as_save_IFS
5182
5183 fi
5184 fi
5185 CC=$ac_cv_prog_CC
5186 if test -n "$CC"; then
5187   { echo "$as_me:$LINENO: result: $CC" >&5
5188 echo "${ECHO_T}$CC" >&6; }
5189 else
5190   { echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6; }
5192 fi
5193
5194
5195 fi
5196 if test -z "$ac_cv_prog_CC"; then
5197   ac_ct_CC=$CC
5198   # Extract the first word of "gcc", so it can be a program name with args.
5199 set dummy gcc; ac_word=$2
5200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5203   echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205   if test -n "$ac_ct_CC"; then
5206   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5210 do
5211   IFS=$as_save_IFS
5212   test -z "$as_dir" && as_dir=.
5213   for ac_exec_ext in '' $ac_executable_extensions; do
5214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215     ac_cv_prog_ac_ct_CC="gcc"
5216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217     break 2
5218   fi
5219 done
5220 done
5221 IFS=$as_save_IFS
5222
5223 fi
5224 fi
5225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5226 if test -n "$ac_ct_CC"; then
5227   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5228 echo "${ECHO_T}$ac_ct_CC" >&6; }
5229 else
5230   { echo "$as_me:$LINENO: result: no" >&5
5231 echo "${ECHO_T}no" >&6; }
5232 fi
5233
5234   if test "x$ac_ct_CC" = x; then
5235     CC=""
5236   else
5237     case $cross_compiling:$ac_tool_warned in
5238 yes:)
5239 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5240 whose name does not start with the host triplet.  If you think this
5241 configuration is useful to you, please write to autoconf@gnu.org." >&5
5242 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5243 whose name does not start with the host triplet.  If you think this
5244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5245 ac_tool_warned=yes ;;
5246 esac
5247     CC=$ac_ct_CC
5248   fi
5249 else
5250   CC="$ac_cv_prog_CC"
5251 fi
5252
5253 if test -z "$CC"; then
5254           if test -n "$ac_tool_prefix"; then
5255     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5256 set dummy ${ac_tool_prefix}cc; ac_word=$2
5257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5259 if test "${ac_cv_prog_CC+set}" = set; then
5260   echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262   if test -n "$CC"; then
5263   ac_cv_prog_CC="$CC" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5267 do
5268   IFS=$as_save_IFS
5269   test -z "$as_dir" && as_dir=.
5270   for ac_exec_ext in '' $ac_executable_extensions; do
5271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5272     ac_cv_prog_CC="${ac_tool_prefix}cc"
5273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5274     break 2
5275   fi
5276 done
5277 done
5278 IFS=$as_save_IFS
5279
5280 fi
5281 fi
5282 CC=$ac_cv_prog_CC
5283 if test -n "$CC"; then
5284   { echo "$as_me:$LINENO: result: $CC" >&5
5285 echo "${ECHO_T}$CC" >&6; }
5286 else
5287   { echo "$as_me:$LINENO: result: no" >&5
5288 echo "${ECHO_T}no" >&6; }
5289 fi
5290
5291
5292   fi
5293 fi
5294 if test -z "$CC"; then
5295   # Extract the first word of "cc", so it can be a program name with args.
5296 set dummy cc; ac_word=$2
5297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5299 if test "${ac_cv_prog_CC+set}" = set; then
5300   echo $ECHO_N "(cached) $ECHO_C" >&6
5301 else
5302   if test -n "$CC"; then
5303   ac_cv_prog_CC="$CC" # Let the user override the test.
5304 else
5305   ac_prog_rejected=no
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH
5308 do
5309   IFS=$as_save_IFS
5310   test -z "$as_dir" && as_dir=.
5311   for ac_exec_ext in '' $ac_executable_extensions; do
5312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5313     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5314        ac_prog_rejected=yes
5315        continue
5316      fi
5317     ac_cv_prog_CC="cc"
5318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319     break 2
5320   fi
5321 done
5322 done
5323 IFS=$as_save_IFS
5324
5325 if test $ac_prog_rejected = yes; then
5326   # We found a bogon in the path, so make sure we never use it.
5327   set dummy $ac_cv_prog_CC
5328   shift
5329   if test $# != 0; then
5330     # We chose a different compiler from the bogus one.
5331     # However, it has the same basename, so the bogon will be chosen
5332     # first if we set CC to just the basename; use the full file name.
5333     shift
5334     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5335   fi
5336 fi
5337 fi
5338 fi
5339 CC=$ac_cv_prog_CC
5340 if test -n "$CC"; then
5341   { echo "$as_me:$LINENO: result: $CC" >&5
5342 echo "${ECHO_T}$CC" >&6; }
5343 else
5344   { echo "$as_me:$LINENO: result: no" >&5
5345 echo "${ECHO_T}no" >&6; }
5346 fi
5347
5348
5349 fi
5350 if test -z "$CC"; then
5351   if test -n "$ac_tool_prefix"; then
5352   for ac_prog in cl.exe
5353   do
5354     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5358 if test "${ac_cv_prog_CC+set}" = set; then
5359   echo $ECHO_N "(cached) $ECHO_C" >&6
5360 else
5361   if test -n "$CC"; then
5362   ac_cv_prog_CC="$CC" # Let the user override the test.
5363 else
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in $PATH
5366 do
5367   IFS=$as_save_IFS
5368   test -z "$as_dir" && as_dir=.
5369   for ac_exec_ext in '' $ac_executable_extensions; do
5370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5373     break 2
5374   fi
5375 done
5376 done
5377 IFS=$as_save_IFS
5378
5379 fi
5380 fi
5381 CC=$ac_cv_prog_CC
5382 if test -n "$CC"; then
5383   { echo "$as_me:$LINENO: result: $CC" >&5
5384 echo "${ECHO_T}$CC" >&6; }
5385 else
5386   { echo "$as_me:$LINENO: result: no" >&5
5387 echo "${ECHO_T}no" >&6; }
5388 fi
5389
5390
5391     test -n "$CC" && break
5392   done
5393 fi
5394 if test -z "$CC"; then
5395   ac_ct_CC=$CC
5396   for ac_prog in cl.exe
5397 do
5398   # Extract the first word of "$ac_prog", so it can be a program name with args.
5399 set dummy $ac_prog; ac_word=$2
5400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5402 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5403   echo $ECHO_N "(cached) $ECHO_C" >&6
5404 else
5405   if test -n "$ac_ct_CC"; then
5406   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5407 else
5408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 for as_dir in $PATH
5410 do
5411   IFS=$as_save_IFS
5412   test -z "$as_dir" && as_dir=.
5413   for ac_exec_ext in '' $ac_executable_extensions; do
5414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5415     ac_cv_prog_ac_ct_CC="$ac_prog"
5416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5417     break 2
5418   fi
5419 done
5420 done
5421 IFS=$as_save_IFS
5422
5423 fi
5424 fi
5425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5426 if test -n "$ac_ct_CC"; then
5427   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5428 echo "${ECHO_T}$ac_ct_CC" >&6; }
5429 else
5430   { echo "$as_me:$LINENO: result: no" >&5
5431 echo "${ECHO_T}no" >&6; }
5432 fi
5433
5434
5435   test -n "$ac_ct_CC" && break
5436 done
5437
5438   if test "x$ac_ct_CC" = x; then
5439     CC=""
5440   else
5441     case $cross_compiling:$ac_tool_warned in
5442 yes:)
5443 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5444 whose name does not start with the host triplet.  If you think this
5445 configuration is useful to you, please write to autoconf@gnu.org." >&5
5446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5447 whose name does not start with the host triplet.  If you think this
5448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5449 ac_tool_warned=yes ;;
5450 esac
5451     CC=$ac_ct_CC
5452   fi
5453 fi
5454
5455 fi
5456
5457
5458 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5459 See \`config.log' for more details." >&5
5460 echo "$as_me: error: no acceptable C compiler found in \$PATH
5461 See \`config.log' for more details." >&2;}
5462    { (exit 1); exit 1; }; }
5463
5464 # Provide some information about the compiler.
5465 echo "$as_me:$LINENO: checking for C compiler version" >&5
5466 ac_compiler=`set X $ac_compile; echo $2`
5467 { (ac_try="$ac_compiler --version >&5"
5468 case "(($ac_try" in
5469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5470   *) ac_try_echo=$ac_try;;
5471 esac
5472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5473   (eval "$ac_compiler --version >&5") 2>&5
5474   ac_status=$?
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); }
5477 { (ac_try="$ac_compiler -v >&5"
5478 case "(($ac_try" in
5479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480   *) ac_try_echo=$ac_try;;
5481 esac
5482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483   (eval "$ac_compiler -v >&5") 2>&5
5484   ac_status=$?
5485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486   (exit $ac_status); }
5487 { (ac_try="$ac_compiler -V >&5"
5488 case "(($ac_try" in
5489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490   *) ac_try_echo=$ac_try;;
5491 esac
5492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493   (eval "$ac_compiler -V >&5") 2>&5
5494   ac_status=$?
5495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496   (exit $ac_status); }
5497
5498 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5499 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5500 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5501   echo $ECHO_N "(cached) $ECHO_C" >&6
5502 else
5503   cat >conftest.$ac_ext <<_ACEOF
5504 /* confdefs.h.  */
5505 _ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h.  */
5509
5510 int
5511 main ()
5512 {
5513 #ifndef __GNUC__
5514        choke me
5515 #endif
5516
5517   ;
5518   return 0;
5519 }
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_c_werror_flag" ||
5536          test ! -s conftest.err
5537        } && test -s conftest.$ac_objext; then
5538   ac_compiler_gnu=yes
5539 else
5540   echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5542
5543         ac_compiler_gnu=no
5544 fi
5545
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5548
5549 fi
5550 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5551 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5552 GCC=`test $ac_compiler_gnu = yes && echo yes`
5553 ac_test_CFLAGS=${CFLAGS+set}
5554 ac_save_CFLAGS=$CFLAGS
5555 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5556 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5557 if test "${ac_cv_prog_cc_g+set}" = set; then
5558   echo $ECHO_N "(cached) $ECHO_C" >&6
5559 else
5560   ac_save_c_werror_flag=$ac_c_werror_flag
5561    ac_c_werror_flag=yes
5562    ac_cv_prog_cc_g=no
5563    CFLAGS="-g"
5564    cat >conftest.$ac_ext <<_ACEOF
5565 /* confdefs.h.  */
5566 _ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h.  */
5570
5571 int
5572 main ()
5573 {
5574
5575   ;
5576   return 0;
5577 }
5578 _ACEOF
5579 rm -f conftest.$ac_objext
5580 if { (ac_try="$ac_compile"
5581 case "(($ac_try" in
5582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583   *) ac_try_echo=$ac_try;;
5584 esac
5585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586   (eval "$ac_compile") 2>conftest.er1
5587   ac_status=$?
5588   grep -v '^ *+' conftest.er1 >conftest.err
5589   rm -f conftest.er1
5590   cat conftest.err >&5
5591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592   (exit $ac_status); } && {
5593          test -z "$ac_c_werror_flag" ||
5594          test ! -s conftest.err
5595        } && test -s conftest.$ac_objext; then
5596   ac_cv_prog_cc_g=yes
5597 else
5598   echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5600
5601         CFLAGS=""
5602       cat >conftest.$ac_ext <<_ACEOF
5603 /* confdefs.h.  */
5604 _ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h.  */
5608
5609 int
5610 main ()
5611 {
5612
5613   ;
5614   return 0;
5615 }
5616 _ACEOF
5617 rm -f conftest.$ac_objext
5618 if { (ac_try="$ac_compile"
5619 case "(($ac_try" in
5620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621   *) ac_try_echo=$ac_try;;
5622 esac
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624   (eval "$ac_compile") 2>conftest.er1
5625   ac_status=$?
5626   grep -v '^ *+' conftest.er1 >conftest.err
5627   rm -f conftest.er1
5628   cat conftest.err >&5
5629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630   (exit $ac_status); } && {
5631          test -z "$ac_c_werror_flag" ||
5632          test ! -s conftest.err
5633        } && test -s conftest.$ac_objext; then
5634   :
5635 else
5636   echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5638
5639         ac_c_werror_flag=$ac_save_c_werror_flag
5640          CFLAGS="-g"
5641          cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h.  */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h.  */
5647
5648 int
5649 main ()
5650 {
5651
5652   ;
5653   return 0;
5654 }
5655 _ACEOF
5656 rm -f conftest.$ac_objext
5657 if { (ac_try="$ac_compile"
5658 case "(($ac_try" in
5659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660   *) ac_try_echo=$ac_try;;
5661 esac
5662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663   (eval "$ac_compile") 2>conftest.er1
5664   ac_status=$?
5665   grep -v '^ *+' conftest.er1 >conftest.err
5666   rm -f conftest.er1
5667   cat conftest.err >&5
5668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669   (exit $ac_status); } && {
5670          test -z "$ac_c_werror_flag" ||
5671          test ! -s conftest.err
5672        } && test -s conftest.$ac_objext; then
5673   ac_cv_prog_cc_g=yes
5674 else
5675   echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5677
5678
5679 fi
5680
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 fi
5683
5684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685 fi
5686
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688    ac_c_werror_flag=$ac_save_c_werror_flag
5689 fi
5690 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5691 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5692 if test "$ac_test_CFLAGS" = set; then
5693   CFLAGS=$ac_save_CFLAGS
5694 elif test $ac_cv_prog_cc_g = yes; then
5695   if test "$GCC" = yes; then
5696     CFLAGS="-g -O2"
5697   else
5698     CFLAGS="-g"
5699   fi
5700 else
5701   if test "$GCC" = yes; then
5702     CFLAGS="-O2"
5703   else
5704     CFLAGS=
5705   fi
5706 fi
5707 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5708 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5709 if test "${ac_cv_prog_cc_c89+set}" = set; then
5710   echo $ECHO_N "(cached) $ECHO_C" >&6
5711 else
5712   ac_cv_prog_cc_c89=no
5713 ac_save_CC=$CC
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 #include <stdarg.h>
5721 #include <stdio.h>
5722 #include <sys/types.h>
5723 #include <sys/stat.h>
5724 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5725 struct buf { int x; };
5726 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5727 static char *e (p, i)
5728      char **p;
5729      int i;
5730 {
5731   return p[i];
5732 }
5733 static char *f (char * (*g) (char **, int), char **p, ...)
5734 {
5735   char *s;
5736   va_list v;
5737   va_start (v,p);
5738   s = g (p, va_arg (v,int));
5739   va_end (v);
5740   return s;
5741 }
5742
5743 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5744    function prototypes and stuff, but not '\xHH' hex character constants.
5745    These don't provoke an error unfortunately, instead are silently treated
5746    as 'x'.  The following induces an error, until -std is added to get
5747    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5748    array size at least.  It's necessary to write '\x00'==0 to get something
5749    that's true only with -std.  */
5750 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5751
5752 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5753    inside strings and character constants.  */
5754 #define FOO(x) 'x'
5755 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5756
5757 int test (int i, double x);
5758 struct s1 {int (*f) (int a);};
5759 struct s2 {int (*f) (double a);};
5760 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5761 int argc;
5762 char **argv;
5763 int
5764 main ()
5765 {
5766 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5767   ;
5768   return 0;
5769 }
5770 _ACEOF
5771 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5772         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5773 do
5774   CC="$ac_save_CC $ac_arg"
5775   rm -f conftest.$ac_objext
5776 if { (ac_try="$ac_compile"
5777 case "(($ac_try" in
5778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779   *) ac_try_echo=$ac_try;;
5780 esac
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782   (eval "$ac_compile") 2>conftest.er1
5783   ac_status=$?
5784   grep -v '^ *+' conftest.er1 >conftest.err
5785   rm -f conftest.er1
5786   cat conftest.err >&5
5787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788   (exit $ac_status); } && {
5789          test -z "$ac_c_werror_flag" ||
5790          test ! -s conftest.err
5791        } && test -s conftest.$ac_objext; then
5792   ac_cv_prog_cc_c89=$ac_arg
5793 else
5794   echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5796
5797
5798 fi
5799
5800 rm -f core conftest.err conftest.$ac_objext
5801   test "x$ac_cv_prog_cc_c89" != "xno" && break
5802 done
5803 rm -f conftest.$ac_ext
5804 CC=$ac_save_CC
5805
5806 fi
5807 # AC_CACHE_VAL
5808 case "x$ac_cv_prog_cc_c89" in
5809   x)
5810     { echo "$as_me:$LINENO: result: none needed" >&5
5811 echo "${ECHO_T}none needed" >&6; } ;;
5812   xno)
5813     { echo "$as_me:$LINENO: result: unsupported" >&5
5814 echo "${ECHO_T}unsupported" >&6; } ;;
5815   *)
5816     CC="$CC $ac_cv_prog_cc_c89"
5817     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5818 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5819 esac
5820
5821
5822 ac_ext=c
5823 ac_cpp='$CPP $CPPFLAGS'
5824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5827
5828 depcc="$CC"   am_compiler_list=
5829
5830 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5831 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5832 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5833   echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5836   # We make a subdir and do the tests there.  Otherwise we can end up
5837   # making bogus files that we don't know about and never remove.  For
5838   # instance it was reported that on HP-UX the gcc test will end up
5839   # making a dummy file named `D' -- because `-MD' means `put the output
5840   # in D'.
5841   mkdir conftest.dir
5842   # Copy depcomp to subdir because otherwise we won't find it if we're
5843   # using a relative directory.
5844   cp "$am_depcomp" conftest.dir
5845   cd conftest.dir
5846   # We will build objects and dependencies in a subdirectory because
5847   # it helps to detect inapplicable dependency modes.  For instance
5848   # both Tru64's cc and ICC support -MD to output dependencies as a
5849   # side effect of compilation, but ICC will put the dependencies in
5850   # the current directory while Tru64 will put them in the object
5851   # directory.
5852   mkdir sub
5853
5854   am_cv_CC_dependencies_compiler_type=none
5855   if test "$am_compiler_list" = ""; then
5856      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5857   fi
5858   for depmode in $am_compiler_list; do
5859     # Setup a source with many dependencies, because some compilers
5860     # like to wrap large dependency lists on column 80 (with \), and
5861     # we should not choose a depcomp mode which is confused by this.
5862     #
5863     # We need to recreate these files for each test, as the compiler may
5864     # overwrite some of them when testing with obscure command lines.
5865     # This happens at least with the AIX C compiler.
5866     : > sub/conftest.c
5867     for i in 1 2 3 4 5 6; do
5868       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5869       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5870       # Solaris 8's {/usr,}/bin/sh.
5871       touch sub/conftst$i.h
5872     done
5873     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5874
5875     case $depmode in
5876     nosideeffect)
5877       # after this tag, mechanisms are not by side-effect, so they'll
5878       # only be used when explicitly requested
5879       if test "x$enable_dependency_tracking" = xyes; then
5880         continue
5881       else
5882         break
5883       fi
5884       ;;
5885     none) break ;;
5886     esac
5887     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5888     # mode.  It turns out that the SunPro C++ compiler does not properly
5889     # handle `-M -o', and we need to detect this.
5890     if depmode=$depmode \
5891        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5892        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5893        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5894          >/dev/null 2>conftest.err &&
5895        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5896        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5897        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5898       # icc doesn't choke on unknown options, it will just issue warnings
5899       # or remarks (even with -Werror).  So we grep stderr for any message
5900       # that says an option was ignored or not supported.
5901       # When given -MP, icc 7.0 and 7.1 complain thusly:
5902       #   icc: Command line warning: ignoring option '-M'; no argument required
5903       # The diagnosis changed in icc 8.0:
5904       #   icc: Command line remark: option '-MP' not supported
5905       if (grep 'ignoring option' conftest.err ||
5906           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5907         am_cv_CC_dependencies_compiler_type=$depmode
5908         break
5909       fi
5910     fi
5911   done
5912
5913   cd ..
5914   rm -rf conftest.dir
5915 else
5916   am_cv_CC_dependencies_compiler_type=none
5917 fi
5918
5919 fi
5920 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5921 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5922 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5923
5924
5925
5926 if
5927   test "x$enable_dependency_tracking" != xno \
5928   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5929   am__fastdepCC_TRUE=
5930   am__fastdepCC_FALSE='#'
5931 else
5932   am__fastdepCC_TRUE='#'
5933   am__fastdepCC_FALSE=
5934 fi
5935
5936
5937
5938 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5939
5940
5941 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5942 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5943 if test "${ac_cv_path_GREP+set}" = set; then
5944   echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946   # Extract the first word of "grep ggrep" to use in msg output
5947 if test -z "$GREP"; then
5948 set dummy grep ggrep; ac_prog_name=$2
5949 if test "${ac_cv_path_GREP+set}" = set; then
5950   echo $ECHO_N "(cached) $ECHO_C" >&6
5951 else
5952   ac_path_GREP_found=false
5953 # Loop through the user's path and test for each of PROGNAME-LIST
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5956 do
5957   IFS=$as_save_IFS
5958   test -z "$as_dir" && as_dir=.
5959   for ac_prog in grep ggrep; do
5960   for ac_exec_ext in '' $ac_executable_extensions; do
5961     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5962     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5963     # Check for GNU ac_path_GREP and select it if it is found.
5964   # Check for GNU $ac_path_GREP
5965 case `"$ac_path_GREP" --version 2>&1` in
5966 *GNU*)
5967   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5968 *)
5969   ac_count=0
5970   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5971   while :
5972   do
5973     cat "conftest.in" "conftest.in" >"conftest.tmp"
5974     mv "conftest.tmp" "conftest.in"
5975     cp "conftest.in" "conftest.nl"
5976     echo 'GREP' >> "conftest.nl"
5977     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5978     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5979     ac_count=`expr $ac_count + 1`
5980     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5981       # Best one so far, save it but keep looking for a better one
5982       ac_cv_path_GREP="$ac_path_GREP"
5983       ac_path_GREP_max=$ac_count
5984     fi
5985     # 10*(2^10) chars as input seems more than enough
5986     test $ac_count -gt 10 && break
5987   done
5988   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5989 esac
5990
5991
5992     $ac_path_GREP_found && break 3
5993   done
5994 done
5995
5996 done
5997 IFS=$as_save_IFS
5998
5999
6000 fi
6001
6002 GREP="$ac_cv_path_GREP"
6003 if test -z "$GREP"; then
6004   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6005 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6006    { (exit 1); exit 1; }; }
6007 fi
6008
6009 else
6010   ac_cv_path_GREP=$GREP
6011 fi
6012
6013
6014 fi
6015 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6016 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6017  GREP="$ac_cv_path_GREP"
6018
6019
6020 { echo "$as_me:$LINENO: checking for egrep" >&5
6021 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6022 if test "${ac_cv_path_EGREP+set}" = set; then
6023   echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6026    then ac_cv_path_EGREP="$GREP -E"
6027    else
6028      # Extract the first word of "egrep" to use in msg output
6029 if test -z "$EGREP"; then
6030 set dummy egrep; ac_prog_name=$2
6031 if test "${ac_cv_path_EGREP+set}" = set; then
6032   echo $ECHO_N "(cached) $ECHO_C" >&6
6033 else
6034   ac_path_EGREP_found=false
6035 # Loop through the user's path and test for each of PROGNAME-LIST
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6038 do
6039   IFS=$as_save_IFS
6040   test -z "$as_dir" && as_dir=.
6041   for ac_prog in egrep; do
6042   for ac_exec_ext in '' $ac_executable_extensions; do
6043     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6044     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6045     # Check for GNU ac_path_EGREP and select it if it is found.
6046   # Check for GNU $ac_path_EGREP
6047 case `"$ac_path_EGREP" --version 2>&1` in
6048 *GNU*)
6049   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6050 *)
6051   ac_count=0
6052   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6053   while :
6054   do
6055     cat "conftest.in" "conftest.in" >"conftest.tmp"
6056     mv "conftest.tmp" "conftest.in"
6057     cp "conftest.in" "conftest.nl"
6058     echo 'EGREP' >> "conftest.nl"
6059     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6060     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6061     ac_count=`expr $ac_count + 1`
6062     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6063       # Best one so far, save it but keep looking for a better one
6064       ac_cv_path_EGREP="$ac_path_EGREP"
6065       ac_path_EGREP_max=$ac_count
6066     fi
6067     # 10*(2^10) chars as input seems more than enough
6068     test $ac_count -gt 10 && break
6069   done
6070   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6071 esac
6072
6073
6074     $ac_path_EGREP_found && break 3
6075   done
6076 done
6077
6078 done
6079 IFS=$as_save_IFS
6080
6081
6082 fi
6083
6084 EGREP="$ac_cv_path_EGREP"
6085 if test -z "$EGREP"; then
6086   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6087 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6088    { (exit 1); exit 1; }; }
6089 fi
6090
6091 else
6092   ac_cv_path_EGREP=$EGREP
6093 fi
6094
6095
6096    fi
6097 fi
6098 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6099 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6100  EGREP="$ac_cv_path_EGREP"
6101
6102
6103 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6104 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6105 if test "${ac_cv_header_stdc+set}" = set; then
6106   echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108   cat >conftest.$ac_ext <<_ACEOF
6109 /* confdefs.h.  */
6110 _ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h.  */
6114 #include <stdlib.h>
6115 #include <stdarg.h>
6116 #include <string.h>
6117 #include <float.h>
6118
6119 int
6120 main ()
6121 {
6122
6123   ;
6124   return 0;
6125 }
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_c_werror_flag" ||
6142          test ! -s conftest.err
6143        } && test -s conftest.$ac_objext; then
6144   ac_cv_header_stdc=yes
6145 else
6146   echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6148
6149         ac_cv_header_stdc=no
6150 fi
6151
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153
6154 if test $ac_cv_header_stdc = yes; then
6155   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6156   cat >conftest.$ac_ext <<_ACEOF
6157 /* confdefs.h.  */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h.  */
6162 #include <string.h>
6163
6164 _ACEOF
6165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6166   $EGREP "memchr" >/dev/null 2>&1; then
6167   :
6168 else
6169   ac_cv_header_stdc=no
6170 fi
6171 rm -f conftest*
6172
6173 fi
6174
6175 if test $ac_cv_header_stdc = yes; then
6176   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6177   cat >conftest.$ac_ext <<_ACEOF
6178 /* confdefs.h.  */
6179 _ACEOF
6180 cat confdefs.h >>conftest.$ac_ext
6181 cat >>conftest.$ac_ext <<_ACEOF
6182 /* end confdefs.h.  */
6183 #include <stdlib.h>
6184
6185 _ACEOF
6186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6187   $EGREP "free" >/dev/null 2>&1; then
6188   :
6189 else
6190   ac_cv_header_stdc=no
6191 fi
6192 rm -f conftest*
6193
6194 fi
6195
6196 if test $ac_cv_header_stdc = yes; then
6197   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6198   if test "$cross_compiling" = yes; then
6199   :
6200 else
6201   cat >conftest.$ac_ext <<_ACEOF
6202 /* confdefs.h.  */
6203 _ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h.  */
6207 #include <ctype.h>
6208 #include <stdlib.h>
6209 #if ((' ' & 0x0FF) == 0x020)
6210 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6211 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6212 #else
6213 # define ISLOWER(c) \
6214                    (('a' <= (c) && (c) <= 'i') \
6215                      || ('j' <= (c) && (c) <= 'r') \
6216                      || ('s' <= (c) && (c) <= 'z'))
6217 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6218 #endif
6219
6220 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6221 int
6222 main ()
6223 {
6224   int i;
6225   for (i = 0; i < 256; i++)
6226     if (XOR (islower (i), ISLOWER (i))
6227         || toupper (i) != TOUPPER (i))
6228       return 2;
6229   return 0;
6230 }
6231 _ACEOF
6232 rm -f conftest$ac_exeext
6233 if { (ac_try="$ac_link"
6234 case "(($ac_try" in
6235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236   *) ac_try_echo=$ac_try;;
6237 esac
6238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239   (eval "$ac_link") 2>&5
6240   ac_status=$?
6241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6243   { (case "(($ac_try" in
6244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245   *) ac_try_echo=$ac_try;;
6246 esac
6247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248   (eval "$ac_try") 2>&5
6249   ac_status=$?
6250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251   (exit $ac_status); }; }; then
6252   :
6253 else
6254   echo "$as_me: program exited with status $ac_status" >&5
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6257
6258 ( exit $ac_status )
6259 ac_cv_header_stdc=no
6260 fi
6261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6262 fi
6263
6264
6265 fi
6266 fi
6267 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6268 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6269 if test $ac_cv_header_stdc = yes; then
6270
6271 cat >>confdefs.h <<\_ACEOF
6272 #define STDC_HEADERS 1
6273 _ACEOF
6274
6275 fi
6276
6277 # Find a good install program.  We prefer a C program (faster),
6278 # so one script is as good as another.  But avoid the broken or
6279 # incompatible versions:
6280 # SysV /etc/install, /usr/sbin/install
6281 # SunOS /usr/etc/install
6282 # IRIX /sbin/install
6283 # AIX /bin/install
6284 # AmigaOS /C/install, which installs bootblocks on floppy discs
6285 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6286 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6287 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6288 # OS/2's system install, which has a completely different semantic
6289 # ./install, which can be erroneously created by make from ./install.sh.
6290 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6291 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6292 if test -z "$INSTALL"; then
6293 if test "${ac_cv_path_install+set}" = set; then
6294   echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 for as_dir in $PATH
6298 do
6299   IFS=$as_save_IFS
6300   test -z "$as_dir" && as_dir=.
6301   # Account for people who put trailing slashes in PATH elements.
6302 case $as_dir/ in
6303   ./ | .// | /cC/* | \
6304   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6305   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6306   /usr/ucb/* ) ;;
6307   *)
6308     # OSF1 and SCO ODT 3.0 have their own names for install.
6309     # Don't use installbsd from OSF since it installs stuff as root
6310     # by default.
6311     for ac_prog in ginstall scoinst install; do
6312       for ac_exec_ext in '' $ac_executable_extensions; do
6313         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6314           if test $ac_prog = install &&
6315             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6316             # AIX install.  It has an incompatible calling convention.
6317             :
6318           elif test $ac_prog = install &&
6319             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6320             # program-specific install script used by HP pwplus--don't use.
6321             :
6322           else
6323             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6324             break 3
6325           fi
6326         fi
6327       done
6328     done
6329     ;;
6330 esac
6331 done
6332 IFS=$as_save_IFS
6333
6334
6335 fi
6336   if test "${ac_cv_path_install+set}" = set; then
6337     INSTALL=$ac_cv_path_install
6338   else
6339     # As a last resort, use the slow shell script.  Don't cache a
6340     # value for INSTALL within a source directory, because that will
6341     # break other packages using the cache if that directory is
6342     # removed, or if the value is a relative name.
6343     INSTALL=$ac_install_sh
6344   fi
6345 fi
6346 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6347 echo "${ECHO_T}$INSTALL" >&6; }
6348
6349 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6350 # It thinks the first close brace ends the variable substitution.
6351 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6352
6353 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6354
6355 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6356
6357 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6358 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6359 LN_S=$as_ln_s
6360 if test "$LN_S" = "ln -s"; then
6361   { echo "$as_me:$LINENO: result: yes" >&5
6362 echo "${ECHO_T}yes" >&6; }
6363 else
6364   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6365 echo "${ECHO_T}no, using $LN_S" >&6; }
6366 fi
6367
6368 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6369 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
6370 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6371 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6372   echo $ECHO_N "(cached) $ECHO_C" >&6
6373 else
6374   cat >conftest.make <<\_ACEOF
6375 SHELL = /bin/sh
6376 all:
6377         @echo '@@@%%%=$(MAKE)=@@@%%%'
6378 _ACEOF
6379 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6380 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6381   *@@@%%%=?*=@@@%%%*)
6382     eval ac_cv_prog_make_${ac_make}_set=yes;;
6383   *)
6384     eval ac_cv_prog_make_${ac_make}_set=no;;
6385 esac
6386 rm -f conftest.make
6387 fi
6388 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6389   { echo "$as_me:$LINENO: result: yes" >&5
6390 echo "${ECHO_T}yes" >&6; }
6391   SET_MAKE=
6392 else
6393   { echo "$as_me:$LINENO: result: no" >&5
6394 echo "${ECHO_T}no" >&6; }
6395   SET_MAKE="MAKE=${MAKE-make}"
6396 fi
6397
6398 # Check whether --enable-fast-install was given.
6399 if test "${enable_fast_install+set}" = set; then
6400   enableval=$enable_fast_install; p=${PACKAGE-default}
6401     case $enableval in
6402     yes) enable_fast_install=yes ;;
6403     no) enable_fast_install=no ;;
6404     *)
6405       enable_fast_install=no
6406       # Look at the argument we got.  We use all the common list separators.
6407       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6408       for pkg in $enableval; do
6409         IFS="$lt_save_ifs"
6410         if test "X$pkg" = "X$p"; then
6411           enable_fast_install=yes
6412         fi
6413       done
6414       IFS="$lt_save_ifs"
6415       ;;
6416     esac
6417 else
6418   enable_fast_install=yes
6419 fi
6420
6421
6422 # Make sure we can run config.sub.
6423 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6424   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6425 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6426    { (exit 1); exit 1; }; }
6427
6428 { echo "$as_me:$LINENO: checking build system type" >&5
6429 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
6430 if test "${ac_cv_build+set}" = set; then
6431   echo $ECHO_N "(cached) $ECHO_C" >&6
6432 else
6433   ac_build_alias=$build_alias
6434 test "x$ac_build_alias" = x &&
6435   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6436 test "x$ac_build_alias" = x &&
6437   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6438 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6439    { (exit 1); exit 1; }; }
6440 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6441   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6442 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6443    { (exit 1); exit 1; }; }
6444
6445 fi
6446 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6447 echo "${ECHO_T}$ac_cv_build" >&6; }
6448 case $ac_cv_build in
6449 *-*-*) ;;
6450 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6451 echo "$as_me: error: invalid value of canonical build" >&2;}
6452    { (exit 1); exit 1; }; };;
6453 esac
6454 build=$ac_cv_build
6455 ac_save_IFS=$IFS; IFS='-'
6456 set x $ac_cv_build
6457 shift
6458 build_cpu=$1
6459 build_vendor=$2
6460 shift; shift
6461 # Remember, the first character of IFS is used to create $*,
6462 # except with old shells:
6463 build_os=$*
6464 IFS=$ac_save_IFS
6465 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6466
6467
6468 { echo "$as_me:$LINENO: checking host system type" >&5
6469 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
6470 if test "${ac_cv_host+set}" = set; then
6471   echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473   if test "x$host_alias" = x; then
6474   ac_cv_host=$ac_cv_build
6475 else
6476   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6477     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6478 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6479    { (exit 1); exit 1; }; }
6480 fi
6481
6482 fi
6483 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6484 echo "${ECHO_T}$ac_cv_host" >&6; }
6485 case $ac_cv_host in
6486 *-*-*) ;;
6487 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6488 echo "$as_me: error: invalid value of canonical host" >&2;}
6489    { (exit 1); exit 1; }; };;
6490 esac
6491 host=$ac_cv_host
6492 ac_save_IFS=$IFS; IFS='-'
6493 set x $ac_cv_host
6494 shift
6495 host_cpu=$1
6496 host_vendor=$2
6497 shift; shift
6498 # Remember, the first character of IFS is used to create $*,
6499 # except with old shells:
6500 host_os=$*
6501 IFS=$ac_save_IFS
6502 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6503
6504
6505 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6506 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6507 if test "${lt_cv_path_SED+set}" = set; then
6508   echo $ECHO_N "(cached) $ECHO_C" >&6
6509 else
6510   # Loop through the user's path and test for sed and gsed.
6511 # Then use that list of sed's as ones to test for truncation.
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6514 do
6515   IFS=$as_save_IFS
6516   test -z "$as_dir" && as_dir=.
6517   for lt_ac_prog in sed gsed; do
6518     for ac_exec_ext in '' $ac_executable_extensions; do
6519       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6520         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6521       fi
6522     done
6523   done
6524 done
6525 IFS=$as_save_IFS
6526 lt_ac_max=0
6527 lt_ac_count=0
6528 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6529 # along with /bin/sed that truncates output.
6530 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6531   test ! -f $lt_ac_sed && continue
6532   cat /dev/null > conftest.in
6533   lt_ac_count=0
6534   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6535   # Check for GNU sed and select it if it is found.
6536   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6537     lt_cv_path_SED=$lt_ac_sed
6538     break
6539   fi
6540   while true; do
6541     cat conftest.in conftest.in >conftest.tmp
6542     mv conftest.tmp conftest.in
6543     cp conftest.in conftest.nl
6544     echo >>conftest.nl
6545     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6546     cmp -s conftest.out conftest.nl || break
6547     # 10000 chars as input seems more than enough
6548     test $lt_ac_count -gt 10 && break
6549     lt_ac_count=`expr $lt_ac_count + 1`
6550     if test $lt_ac_count -gt $lt_ac_max; then
6551       lt_ac_max=$lt_ac_count
6552       lt_cv_path_SED=$lt_ac_sed
6553     fi
6554   done
6555 done
6556
6557 fi
6558
6559 SED=$lt_cv_path_SED
6560
6561 { echo "$as_me:$LINENO: result: $SED" >&5
6562 echo "${ECHO_T}$SED" >&6; }
6563
6564
6565 # Check whether --with-gnu-ld was given.
6566 if test "${with_gnu_ld+set}" = set; then
6567   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6568 else
6569   with_gnu_ld=no
6570 fi
6571
6572 ac_prog=ld
6573 if test "$GCC" = yes; then
6574   # Check if gcc -print-prog-name=ld gives a path.
6575   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6576 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6577   case $host in
6578   *-*-mingw*)
6579     # gcc leaves a trailing carriage return which upsets mingw
6580     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6581   *)
6582     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6583   esac
6584   case $ac_prog in
6585     # Accept absolute paths.
6586     [\\/]* | ?:[\\/]*)
6587       re_direlt='/[^/][^/]*/\.\./'
6588       # Canonicalize the pathname of ld
6589       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6590       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6591         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6592       done
6593       test -z "$LD" && LD="$ac_prog"
6594       ;;
6595   "")
6596     # If it fails, then pretend we aren't using GCC.
6597     ac_prog=ld
6598     ;;
6599   *)
6600     # If it is relative, then search for the first ld in PATH.
6601     with_gnu_ld=unknown
6602     ;;
6603   esac
6604 elif test "$with_gnu_ld" = yes; then
6605   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6606 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6607 else
6608   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6609 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6610 fi
6611 if test "${lt_cv_path_LD+set}" = set; then
6612   echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614   if test -z "$LD"; then
6615   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6616   for ac_dir in $PATH; do
6617     IFS="$lt_save_ifs"
6618     test -z "$ac_dir" && ac_dir=.
6619     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6620       lt_cv_path_LD="$ac_dir/$ac_prog"
6621       # Check to see if the program is GNU ld.  I'd rather use --version,
6622       # but apparently some variants of GNU ld only accept -v.
6623       # Break only if it was the GNU/non-GNU ld that we prefer.
6624       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6625       *GNU* | *'with BFD'*)
6626         test "$with_gnu_ld" != no && break
6627         ;;
6628       *)
6629         test "$with_gnu_ld" != yes && break
6630         ;;
6631       esac
6632     fi
6633   done
6634   IFS="$lt_save_ifs"
6635 else
6636   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6637 fi
6638 fi
6639
6640 LD="$lt_cv_path_LD"
6641 if test -n "$LD"; then
6642   { echo "$as_me:$LINENO: result: $LD" >&5
6643 echo "${ECHO_T}$LD" >&6; }
6644 else
6645   { echo "$as_me:$LINENO: result: no" >&5
6646 echo "${ECHO_T}no" >&6; }
6647 fi
6648 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6649 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6650    { (exit 1); exit 1; }; }
6651 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6652 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6653 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6654   echo $ECHO_N "(cached) $ECHO_C" >&6
6655 else
6656   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6657 case `$LD -v 2>&1 </dev/null` in
6658 *GNU* | *'with BFD'*)
6659   lt_cv_prog_gnu_ld=yes
6660   ;;
6661 *)
6662   lt_cv_prog_gnu_ld=no
6663   ;;
6664 esac
6665 fi
6666 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6667 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6668 with_gnu_ld=$lt_cv_prog_gnu_ld
6669
6670
6671 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6672 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6673 if test "${lt_cv_ld_reload_flag+set}" = set; then
6674   echo $ECHO_N "(cached) $ECHO_C" >&6
6675 else
6676   lt_cv_ld_reload_flag='-r'
6677 fi
6678 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6679 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6680 reload_flag=$lt_cv_ld_reload_flag
6681 case $reload_flag in
6682 "" | " "*) ;;
6683 *) reload_flag=" $reload_flag" ;;
6684 esac
6685 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6686 case $host_os in
6687   darwin*)
6688     if test "$GCC" = yes; then
6689       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6690     else
6691       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6692     fi
6693     ;;
6694 esac
6695
6696 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6697 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6698 if test "${lt_cv_path_NM+set}" = set; then
6699   echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701   if test -n "$NM"; then
6702   # Let the user override the test.
6703   lt_cv_path_NM="$NM"
6704 else
6705   lt_nm_to_check="${ac_tool_prefix}nm"
6706   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6707     lt_nm_to_check="$lt_nm_to_check nm"
6708   fi
6709   for lt_tmp_nm in $lt_nm_to_check; do
6710     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6711     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6712       IFS="$lt_save_ifs"
6713       test -z "$ac_dir" && ac_dir=.
6714       tmp_nm="$ac_dir/$lt_tmp_nm"
6715       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6716         # Check to see if the nm accepts a BSD-compat flag.
6717         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6718         #   nm: unknown option "B" ignored
6719         # Tru64's nm complains that /dev/null is an invalid object file
6720         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6721         */dev/null* | *'Invalid file or object type'*)
6722           lt_cv_path_NM="$tmp_nm -B"
6723           break
6724           ;;
6725         *)
6726           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6727           */dev/null*)
6728             lt_cv_path_NM="$tmp_nm -p"
6729             break
6730             ;;
6731           *)
6732             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6733             continue # so that we can try to find one that supports BSD flags
6734             ;;
6735           esac
6736           ;;
6737         esac
6738       fi
6739     done
6740     IFS="$lt_save_ifs"
6741   done
6742   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6743 fi
6744 fi
6745 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6746 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6747 NM="$lt_cv_path_NM"
6748
6749 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6750 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6751 if test "${lt_cv_deplibs_check_method+set}" = set; then
6752   echo $ECHO_N "(cached) $ECHO_C" >&6
6753 else
6754   lt_cv_file_magic_cmd='$MAGIC_CMD'
6755 lt_cv_file_magic_test_file=
6756 lt_cv_deplibs_check_method='unknown'
6757 # Need to set the preceding variable on all platforms that support
6758 # interlibrary dependencies.
6759 # 'none' -- dependencies not supported.
6760 # `unknown' -- same as none, but documents that we really don't know.
6761 # 'pass_all' -- all dependencies passed with no checks.
6762 # 'test_compile' -- check by making test program.
6763 # 'file_magic [[regex]]' -- check by looking for files in library path
6764 # which responds to the $file_magic_cmd with a given extended regex.
6765 # If you have `file' or equivalent on your system and you're not sure
6766 # whether `pass_all' will *always* work, you probably want this one.
6767
6768 case $host_os in
6769 aix[4-9]*)
6770   lt_cv_deplibs_check_method=pass_all
6771   ;;
6772
6773 beos*)
6774   lt_cv_deplibs_check_method=pass_all
6775   ;;
6776
6777 bsdi[45]*)
6778   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6779   lt_cv_file_magic_cmd='/usr/bin/file -L'
6780   lt_cv_file_magic_test_file=/shlib/libc.so
6781   ;;
6782
6783 cygwin*)
6784   # func_win32_libid is a shell function defined in ltmain.sh
6785   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6786   lt_cv_file_magic_cmd='func_win32_libid'
6787   ;;
6788
6789 mingw* | pw32*)
6790   # Base MSYS/MinGW do not provide the 'file' command needed by
6791   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6792   # unless we find 'file', for example because we are cross-compiling.
6793   if ( file / ) >/dev/null 2>&1; then
6794     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6795     lt_cv_file_magic_cmd='func_win32_libid'
6796   else
6797     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6798     lt_cv_file_magic_cmd='$OBJDUMP -f'
6799   fi
6800   ;;
6801
6802 darwin* | rhapsody*)
6803   lt_cv_deplibs_check_method=pass_all
6804   ;;
6805
6806 freebsd* | dragonfly*)
6807   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6808     case $host_cpu in
6809     i*86 )
6810       # Not sure whether the presence of OpenBSD here was a mistake.
6811       # Let's accept both of them until this is cleared up.
6812       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6813       lt_cv_file_magic_cmd=/usr/bin/file
6814       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6815       ;;
6816     esac
6817   else
6818     lt_cv_deplibs_check_method=pass_all
6819   fi
6820   ;;
6821
6822 gnu*)
6823   lt_cv_deplibs_check_method=pass_all
6824   ;;
6825
6826 hpux10.20* | hpux11*)
6827   lt_cv_file_magic_cmd=/usr/bin/file
6828   case $host_cpu in
6829   ia64*)
6830     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6831     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6832     ;;
6833   hppa*64*)
6834     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]'
6835     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6836     ;;
6837   *)
6838     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6839     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6840     ;;
6841   esac
6842   ;;
6843
6844 interix[3-9]*)
6845   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6846   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6847   ;;
6848
6849 irix5* | irix6* | nonstopux*)
6850   case $LD in
6851   *-32|*"-32 ") libmagic=32-bit;;
6852   *-n32|*"-n32 ") libmagic=N32;;
6853   *-64|*"-64 ") libmagic=64-bit;;
6854   *) libmagic=never-match;;
6855   esac
6856   lt_cv_deplibs_check_method=pass_all
6857   ;;
6858
6859 # This must be Linux ELF.
6860 linux* | k*bsd*-gnu)
6861   lt_cv_deplibs_check_method=pass_all
6862   ;;
6863
6864 netbsd*)
6865   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6866     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6867   else
6868     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6869   fi
6870   ;;
6871
6872 newos6*)
6873   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6874   lt_cv_file_magic_cmd=/usr/bin/file
6875   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6876   ;;
6877
6878 nto-qnx*)
6879   lt_cv_deplibs_check_method=unknown
6880   ;;
6881
6882 openbsd*)
6883   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6884     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6885   else
6886     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6887   fi
6888   ;;
6889
6890 osf3* | osf4* | osf5*)
6891   lt_cv_deplibs_check_method=pass_all
6892   ;;
6893
6894 rdos*)
6895   lt_cv_deplibs_check_method=pass_all
6896   ;;
6897
6898 solaris*)
6899   lt_cv_deplibs_check_method=pass_all
6900   ;;
6901
6902 sysv4 | sysv4.3*)
6903   case $host_vendor in
6904   motorola)
6905     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]'
6906     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6907     ;;
6908   ncr)
6909     lt_cv_deplibs_check_method=pass_all
6910     ;;
6911   sequent)
6912     lt_cv_file_magic_cmd='/bin/file'
6913     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6914     ;;
6915   sni)
6916     lt_cv_file_magic_cmd='/bin/file'
6917     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6918     lt_cv_file_magic_test_file=/lib/libc.so
6919     ;;
6920   siemens)
6921     lt_cv_deplibs_check_method=pass_all
6922     ;;
6923   pc)
6924     lt_cv_deplibs_check_method=pass_all
6925     ;;
6926   esac
6927   ;;
6928
6929 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6930   lt_cv_deplibs_check_method=pass_all
6931   ;;
6932 esac
6933
6934 fi
6935 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6936 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6937 file_magic_cmd=$lt_cv_file_magic_cmd
6938 deplibs_check_method=$lt_cv_deplibs_check_method
6939 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6940
6941
6942
6943
6944 # If no C compiler was specified, use CC.
6945 LTCC=${LTCC-"$CC"}
6946
6947 # If no C compiler flags were specified, use CFLAGS.
6948 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6949
6950 # Allow CC to be a program name with arguments.
6951 compiler=$CC
6952
6953 # Check whether --enable-libtool-lock was given.
6954 if test "${enable_libtool_lock+set}" = set; then
6955   enableval=$enable_libtool_lock;
6956 fi
6957
6958 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6959
6960 # Some flags need to be propagated to the compiler or linker for good
6961 # libtool support.
6962 case $host in
6963 ia64-*-hpux*)
6964   # Find out which ABI we are using.
6965   echo 'int i;' > conftest.$ac_ext
6966   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6967   (eval $ac_compile) 2>&5
6968   ac_status=$?
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); }; then
6971     case `/usr/bin/file conftest.$ac_objext` in
6972     *ELF-32*)
6973       HPUX_IA64_MODE="32"
6974       ;;
6975     *ELF-64*)
6976       HPUX_IA64_MODE="64"
6977       ;;
6978     esac
6979   fi
6980   rm -rf conftest*
6981   ;;
6982 *-*-irix6*)
6983   # Find out which ABI we are using.
6984   echo '#line 6984 "configure"' > conftest.$ac_ext
6985   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6986   (eval $ac_compile) 2>&5
6987   ac_status=$?
6988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989   (exit $ac_status); }; then
6990    if test "$lt_cv_prog_gnu_ld" = yes; then
6991     case `/usr/bin/file conftest.$ac_objext` in
6992     *32-bit*)
6993       LD="${LD-ld} -melf32bsmip"
6994       ;;
6995     *N32*)
6996       LD="${LD-ld} -melf32bmipn32"
6997       ;;
6998     *64-bit*)
6999       LD="${LD-ld} -melf64bmip"
7000       ;;
7001     esac
7002    else
7003     case `/usr/bin/file conftest.$ac_objext` in
7004     *32-bit*)
7005       LD="${LD-ld} -32"
7006       ;;
7007     *N32*)
7008       LD="${LD-ld} -n32"
7009       ;;
7010     *64-bit*)
7011       LD="${LD-ld} -64"
7012       ;;
7013     esac
7014    fi
7015   fi
7016   rm -rf conftest*
7017   ;;
7018
7019 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7020 s390*-*linux*|sparc*-*linux*)
7021   # Find out which ABI we are using.
7022   echo 'int i;' > conftest.$ac_ext
7023   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7024   (eval $ac_compile) 2>&5
7025   ac_status=$?
7026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027   (exit $ac_status); }; then
7028     case `/usr/bin/file conftest.o` in
7029     *32-bit*)
7030       case $host in
7031         x86_64-*kfreebsd*-gnu)
7032           LD="${LD-ld} -m elf_i386_fbsd"
7033           ;;
7034         x86_64-*linux*)
7035           LD="${LD-ld} -m elf_i386"
7036           ;;
7037         ppc64-*linux*|powerpc64-*linux*)
7038           LD="${LD-ld} -m elf32ppclinux"
7039           ;;
7040         s390x-*linux*)
7041           LD="${LD-ld} -m elf_s390"
7042           ;;
7043         sparc64-*linux*)
7044           LD="${LD-ld} -m elf32_sparc"
7045           ;;
7046       esac
7047       ;;
7048     *64-bit*)
7049       case $host in
7050         x86_64-*kfreebsd*-gnu)
7051           LD="${LD-ld} -m elf_x86_64_fbsd"
7052           ;;
7053         x86_64-*linux*)
7054           LD="${LD-ld} -m elf_x86_64"
7055           ;;
7056         ppc*-*linux*|powerpc*-*linux*)
7057           LD="${LD-ld} -m elf64ppc"
7058           ;;
7059         s390*-*linux*)
7060           LD="${LD-ld} -m elf64_s390"
7061           ;;
7062         sparc*-*linux*)
7063           LD="${LD-ld} -m elf64_sparc"
7064           ;;
7065       esac
7066       ;;
7067     esac
7068   fi
7069   rm -rf conftest*
7070   ;;
7071
7072 *-*-sco3.2v5*)
7073   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7074   SAVE_CFLAGS="$CFLAGS"
7075   CFLAGS="$CFLAGS -belf"
7076   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7077 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7078 if test "${lt_cv_cc_needs_belf+set}" = set; then
7079   echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081   ac_ext=c
7082 ac_cpp='$CPP $CPPFLAGS'
7083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7086
7087      cat >conftest.$ac_ext <<_ACEOF
7088 /* confdefs.h.  */
7089 _ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h.  */
7093
7094 int
7095 main ()
7096 {
7097
7098   ;
7099   return 0;
7100 }
7101 _ACEOF
7102 rm -f conftest.$ac_objext conftest$ac_exeext
7103 if { (ac_try="$ac_link"
7104 case "(($ac_try" in
7105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7106   *) ac_try_echo=$ac_try;;
7107 esac
7108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7109   (eval "$ac_link") 2>conftest.er1
7110   ac_status=$?
7111   grep -v '^ *+' conftest.er1 >conftest.err
7112   rm -f conftest.er1
7113   cat conftest.err >&5
7114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115   (exit $ac_status); } && {
7116          test -z "$ac_c_werror_flag" ||
7117          test ! -s conftest.err
7118        } && test -s conftest$ac_exeext &&
7119        $as_test_x conftest$ac_exeext; then
7120   lt_cv_cc_needs_belf=yes
7121 else
7122   echo "$as_me: failed program was:" >&5
7123 sed 's/^/| /' conftest.$ac_ext >&5
7124
7125         lt_cv_cc_needs_belf=no
7126 fi
7127
7128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7129       conftest$ac_exeext conftest.$ac_ext
7130      ac_ext=c
7131 ac_cpp='$CPP $CPPFLAGS'
7132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7135
7136 fi
7137 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7138 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7139   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7140     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7141     CFLAGS="$SAVE_CFLAGS"
7142   fi
7143   ;;
7144 sparc*-*solaris*)
7145   # Find out which ABI we are using.
7146   echo 'int i;' > conftest.$ac_ext
7147   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7148   (eval $ac_compile) 2>&5
7149   ac_status=$?
7150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151   (exit $ac_status); }; then
7152     case `/usr/bin/file conftest.o` in
7153     *64-bit*)
7154       case $lt_cv_prog_gnu_ld in
7155       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7156       *)
7157         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7158           LD="${LD-ld} -64"
7159         fi
7160         ;;
7161       esac
7162       ;;
7163     esac
7164   fi
7165   rm -rf conftest*
7166   ;;
7167
7168
7169 esac
7170
7171 need_locks="$enable_libtool_lock"
7172
7173
7174 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7185                   inttypes.h stdint.h unistd.h
7186 do
7187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7191   echo $ECHO_N "(cached) $ECHO_C" >&6
7192 else
7193   cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h.  */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h.  */
7199 $ac_includes_default
7200
7201 #include <$ac_header>
7202 _ACEOF
7203 rm -f conftest.$ac_objext
7204 if { (ac_try="$ac_compile"
7205 case "(($ac_try" in
7206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7207   *) ac_try_echo=$ac_try;;
7208 esac
7209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7210   (eval "$ac_compile") 2>conftest.er1
7211   ac_status=$?
7212   grep -v '^ *+' conftest.er1 >conftest.err
7213   rm -f conftest.er1
7214   cat conftest.err >&5
7215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216   (exit $ac_status); } && {
7217          test -z "$ac_c_werror_flag" ||
7218          test ! -s conftest.err
7219        } && test -s conftest.$ac_objext; then
7220   eval "$as_ac_Header=yes"
7221 else
7222   echo "$as_me: failed program was:" >&5
7223 sed 's/^/| /' conftest.$ac_ext >&5
7224
7225         eval "$as_ac_Header=no"
7226 fi
7227
7228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7229 fi
7230 ac_res=`eval echo '${'$as_ac_Header'}'`
7231                { echo "$as_me:$LINENO: result: $ac_res" >&5
7232 echo "${ECHO_T}$ac_res" >&6; }
7233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7234   cat >>confdefs.h <<_ACEOF
7235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7236 _ACEOF
7237
7238 fi
7239
7240 done
7241
7242
7243
7244 for ac_header in dlfcn.h
7245 do
7246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7248   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7251   echo $ECHO_N "(cached) $ECHO_C" >&6
7252 fi
7253 ac_res=`eval echo '${'$as_ac_Header'}'`
7254                { echo "$as_me:$LINENO: result: $ac_res" >&5
7255 echo "${ECHO_T}$ac_res" >&6; }
7256 else
7257   # Is the header compilable?
7258 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7260 cat >conftest.$ac_ext <<_ACEOF
7261 /* confdefs.h.  */
7262 _ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h.  */
7266 $ac_includes_default
7267 #include <$ac_header>
7268 _ACEOF
7269 rm -f conftest.$ac_objext
7270 if { (ac_try="$ac_compile"
7271 case "(($ac_try" in
7272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7273   *) ac_try_echo=$ac_try;;
7274 esac
7275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7276   (eval "$ac_compile") 2>conftest.er1
7277   ac_status=$?
7278   grep -v '^ *+' conftest.er1 >conftest.err
7279   rm -f conftest.er1
7280   cat conftest.err >&5
7281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282   (exit $ac_status); } && {
7283          test -z "$ac_c_werror_flag" ||
7284          test ! -s conftest.err
7285        } && test -s conftest.$ac_objext; then
7286   ac_header_compiler=yes
7287 else
7288   echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7290
7291         ac_header_compiler=no
7292 fi
7293
7294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7296 echo "${ECHO_T}$ac_header_compiler" >&6; }
7297
7298 # Is the header present?
7299 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7301 cat >conftest.$ac_ext <<_ACEOF
7302 /* confdefs.h.  */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h.  */
7307 #include <$ac_header>
7308 _ACEOF
7309 if { (ac_try="$ac_cpp conftest.$ac_ext"
7310 case "(($ac_try" in
7311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7312   *) ac_try_echo=$ac_try;;
7313 esac
7314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7315   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7316   ac_status=$?
7317   grep -v '^ *+' conftest.er1 >conftest.err
7318   rm -f conftest.er1
7319   cat conftest.err >&5
7320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321   (exit $ac_status); } >/dev/null && {
7322          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7323          test ! -s conftest.err
7324        }; then
7325   ac_header_preproc=yes
7326 else
7327   echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.$ac_ext >&5
7329
7330   ac_header_preproc=no
7331 fi
7332
7333 rm -f conftest.err conftest.$ac_ext
7334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7335 echo "${ECHO_T}$ac_header_preproc" >&6; }
7336
7337 # So?  What about this header?
7338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7339   yes:no: )
7340     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7342     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7344     ac_header_preproc=yes
7345     ;;
7346   no:yes:* )
7347     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7349     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7350 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7351     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7353     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7354 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7357     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7359
7360     ;;
7361 esac
7362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7365   echo $ECHO_N "(cached) $ECHO_C" >&6
7366 else
7367   eval "$as_ac_Header=\$ac_header_preproc"
7368 fi
7369 ac_res=`eval echo '${'$as_ac_Header'}'`
7370                { echo "$as_me:$LINENO: result: $ac_res" >&5
7371 echo "${ECHO_T}$ac_res" >&6; }
7372
7373 fi
7374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7375   cat >>confdefs.h <<_ACEOF
7376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7377 _ACEOF
7378
7379 fi
7380
7381 done
7382
7383
7384
7385 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7386     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7387     (test "X$CXX" != "Xg++"))) ; then
7388   ac_ext=cpp
7389 ac_cpp='$CXXCPP $CPPFLAGS'
7390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7393 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7394 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7395 if test -z "$CXXCPP"; then
7396   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7397   echo $ECHO_N "(cached) $ECHO_C" >&6
7398 else
7399       # Double quotes because CXXCPP needs to be expanded
7400     for CXXCPP in "$CXX -E" "/lib/cpp"
7401     do
7402       ac_preproc_ok=false
7403 for ac_cxx_preproc_warn_flag in '' yes
7404 do
7405   # Use a header file that comes with gcc, so configuring glibc
7406   # with a fresh cross-compiler works.
7407   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7408   # <limits.h> exists even on freestanding compilers.
7409   # On the NeXT, cc -E runs the code through the compiler's parser,
7410   # not just through cpp. "Syntax error" is here to catch this case.
7411   cat >conftest.$ac_ext <<_ACEOF
7412 /* confdefs.h.  */
7413 _ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h.  */
7417 #ifdef __STDC__
7418 # include <limits.h>
7419 #else
7420 # include <assert.h>
7421 #endif
7422                      Syntax error
7423 _ACEOF
7424 if { (ac_try="$ac_cpp conftest.$ac_ext"
7425 case "(($ac_try" in
7426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7427   *) ac_try_echo=$ac_try;;
7428 esac
7429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7430   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7431   ac_status=$?
7432   grep -v '^ *+' conftest.er1 >conftest.err
7433   rm -f conftest.er1
7434   cat conftest.err >&5
7435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436   (exit $ac_status); } >/dev/null && {
7437          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7438          test ! -s conftest.err
7439        }; then
7440   :
7441 else
7442   echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7444
7445   # Broken: fails on valid input.
7446 continue
7447 fi
7448
7449 rm -f conftest.err conftest.$ac_ext
7450
7451   # OK, works on sane cases.  Now check whether nonexistent headers
7452   # can be detected and how.
7453   cat >conftest.$ac_ext <<_ACEOF
7454 /* confdefs.h.  */
7455 _ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h.  */
7459 #include <ac_nonexistent.h>
7460 _ACEOF
7461 if { (ac_try="$ac_cpp conftest.$ac_ext"
7462 case "(($ac_try" in
7463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7464   *) ac_try_echo=$ac_try;;
7465 esac
7466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7467   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7468   ac_status=$?
7469   grep -v '^ *+' conftest.er1 >conftest.err
7470   rm -f conftest.er1
7471   cat conftest.err >&5
7472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473   (exit $ac_status); } >/dev/null && {
7474          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7475          test ! -s conftest.err
7476        }; then
7477   # Broken: success on invalid input.
7478 continue
7479 else
7480   echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.$ac_ext >&5
7482
7483   # Passes both tests.
7484 ac_preproc_ok=:
7485 break
7486 fi
7487
7488 rm -f conftest.err conftest.$ac_ext
7489
7490 done
7491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7492 rm -f conftest.err conftest.$ac_ext
7493 if $ac_preproc_ok; then
7494   break
7495 fi
7496
7497     done
7498     ac_cv_prog_CXXCPP=$CXXCPP
7499
7500 fi
7501   CXXCPP=$ac_cv_prog_CXXCPP
7502 else
7503   ac_cv_prog_CXXCPP=$CXXCPP
7504 fi
7505 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7506 echo "${ECHO_T}$CXXCPP" >&6; }
7507 ac_preproc_ok=false
7508 for ac_cxx_preproc_warn_flag in '' yes
7509 do
7510   # Use a header file that comes with gcc, so configuring glibc
7511   # with a fresh cross-compiler works.
7512   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7513   # <limits.h> exists even on freestanding compilers.
7514   # On the NeXT, cc -E runs the code through the compiler's parser,
7515   # not just through cpp. "Syntax error" is here to catch this case.
7516   cat >conftest.$ac_ext <<_ACEOF
7517 /* confdefs.h.  */
7518 _ACEOF
7519 cat confdefs.h >>conftest.$ac_ext
7520 cat >>conftest.$ac_ext <<_ACEOF
7521 /* end confdefs.h.  */
7522 #ifdef __STDC__
7523 # include <limits.h>
7524 #else
7525 # include <assert.h>
7526 #endif
7527                      Syntax error
7528 _ACEOF
7529 if { (ac_try="$ac_cpp conftest.$ac_ext"
7530 case "(($ac_try" in
7531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532   *) ac_try_echo=$ac_try;;
7533 esac
7534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7535   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7536   ac_status=$?
7537   grep -v '^ *+' conftest.er1 >conftest.err
7538   rm -f conftest.er1
7539   cat conftest.err >&5
7540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541   (exit $ac_status); } >/dev/null && {
7542          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7543          test ! -s conftest.err
7544        }; then
7545   :
7546 else
7547   echo "$as_me: failed program was:" >&5
7548 sed 's/^/| /' conftest.$ac_ext >&5
7549
7550   # Broken: fails on valid input.
7551 continue
7552 fi
7553
7554 rm -f conftest.err conftest.$ac_ext
7555
7556   # OK, works on sane cases.  Now check whether nonexistent headers
7557   # can be detected and how.
7558   cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h.  */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h.  */
7564 #include <ac_nonexistent.h>
7565 _ACEOF
7566 if { (ac_try="$ac_cpp conftest.$ac_ext"
7567 case "(($ac_try" in
7568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7569   *) ac_try_echo=$ac_try;;
7570 esac
7571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7572   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7573   ac_status=$?
7574   grep -v '^ *+' conftest.er1 >conftest.err
7575   rm -f conftest.er1
7576   cat conftest.err >&5
7577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578   (exit $ac_status); } >/dev/null && {
7579          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7580          test ! -s conftest.err
7581        }; then
7582   # Broken: success on invalid input.
7583 continue
7584 else
7585   echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7587
7588   # Passes both tests.
7589 ac_preproc_ok=:
7590 break
7591 fi
7592
7593 rm -f conftest.err conftest.$ac_ext
7594
7595 done
7596 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7597 rm -f conftest.err conftest.$ac_ext
7598 if $ac_preproc_ok; then
7599   :
7600 else
7601   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7602 See \`config.log' for more details." >&5
7603 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7604 See \`config.log' for more details." >&2;}
7605    { (exit 1); exit 1; }; }
7606 fi
7607
7608 ac_ext=cpp
7609 ac_cpp='$CXXCPP $CPPFLAGS'
7610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7613
7614 fi
7615
7616
7617 ac_ext=f
7618 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7619 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7620 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7621 if test -n "$ac_tool_prefix"; then
7622   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
7623   do
7624     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7625 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7628 if test "${ac_cv_prog_F77+set}" = set; then
7629   echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7631   if test -n "$F77"; then
7632   ac_cv_prog_F77="$F77" # Let the user override the test.
7633 else
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635 for as_dir in $PATH
7636 do
7637   IFS=$as_save_IFS
7638   test -z "$as_dir" && as_dir=.
7639   for ac_exec_ext in '' $ac_executable_extensions; do
7640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7641     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7643     break 2
7644   fi
7645 done
7646 done
7647 IFS=$as_save_IFS
7648
7649 fi
7650 fi
7651 F77=$ac_cv_prog_F77
7652 if test -n "$F77"; then
7653   { echo "$as_me:$LINENO: result: $F77" >&5
7654 echo "${ECHO_T}$F77" >&6; }
7655 else
7656   { echo "$as_me:$LINENO: result: no" >&5
7657 echo "${ECHO_T}no" >&6; }
7658 fi
7659
7660
7661     test -n "$F77" && break
7662   done
7663 fi
7664 if test -z "$F77"; then
7665   ac_ct_F77=$F77
7666   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
7667 do
7668   # Extract the first word of "$ac_prog", so it can be a program name with args.
7669 set dummy $ac_prog; ac_word=$2
7670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7672 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7673   echo $ECHO_N "(cached) $ECHO_C" >&6
7674 else
7675   if test -n "$ac_ct_F77"; then
7676   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7677 else
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH
7680 do
7681   IFS=$as_save_IFS
7682   test -z "$as_dir" && as_dir=.
7683   for ac_exec_ext in '' $ac_executable_extensions; do
7684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7685     ac_cv_prog_ac_ct_F77="$ac_prog"
7686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7687     break 2
7688   fi
7689 done
7690 done
7691 IFS=$as_save_IFS
7692
7693 fi
7694 fi
7695 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7696 if test -n "$ac_ct_F77"; then
7697   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7698 echo "${ECHO_T}$ac_ct_F77" >&6; }
7699 else
7700   { echo "$as_me:$LINENO: result: no" >&5
7701 echo "${ECHO_T}no" >&6; }
7702 fi
7703
7704
7705   test -n "$ac_ct_F77" && break
7706 done
7707
7708   if test "x$ac_ct_F77" = x; then
7709     F77=""
7710   else
7711     case $cross_compiling:$ac_tool_warned in
7712 yes:)
7713 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7714 whose name does not start with the host triplet.  If you think this
7715 configuration is useful to you, please write to autoconf@gnu.org." >&5
7716 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7717 whose name does not start with the host triplet.  If you think this
7718 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7719 ac_tool_warned=yes ;;
7720 esac
7721     F77=$ac_ct_F77
7722   fi
7723 fi
7724
7725
7726 # Provide some information about the compiler.
7727 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7728 ac_compiler=`set X $ac_compile; echo $2`
7729 { (ac_try="$ac_compiler --version >&5"
7730 case "(($ac_try" in
7731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732   *) ac_try_echo=$ac_try;;
7733 esac
7734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7735   (eval "$ac_compiler --version >&5") 2>&5
7736   ac_status=$?
7737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738   (exit $ac_status); }
7739 { (ac_try="$ac_compiler -v >&5"
7740 case "(($ac_try" in
7741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7742   *) ac_try_echo=$ac_try;;
7743 esac
7744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7745   (eval "$ac_compiler -v >&5") 2>&5
7746   ac_status=$?
7747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748   (exit $ac_status); }
7749 { (ac_try="$ac_compiler -V >&5"
7750 case "(($ac_try" in
7751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7752   *) ac_try_echo=$ac_try;;
7753 esac
7754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7755   (eval "$ac_compiler -V >&5") 2>&5
7756   ac_status=$?
7757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758   (exit $ac_status); }
7759 rm -f a.out
7760
7761 # If we don't use `.F' as extension, the preprocessor is not run on the
7762 # input file.  (Note that this only needs to work for GNU compilers.)
7763 ac_save_ext=$ac_ext
7764 ac_ext=F
7765 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7766 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7767 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7768   echo $ECHO_N "(cached) $ECHO_C" >&6
7769 else
7770   cat >conftest.$ac_ext <<_ACEOF
7771       program main
7772 #ifndef __GNUC__
7773        choke me
7774 #endif
7775
7776       end
7777 _ACEOF
7778 rm -f conftest.$ac_objext
7779 if { (ac_try="$ac_compile"
7780 case "(($ac_try" in
7781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782   *) ac_try_echo=$ac_try;;
7783 esac
7784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785   (eval "$ac_compile") 2>conftest.er1
7786   ac_status=$?
7787   grep -v '^ *+' conftest.er1 >conftest.err
7788   rm -f conftest.er1
7789   cat conftest.err >&5
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); } && {
7792          test -z "$ac_f77_werror_flag" ||
7793          test ! -s conftest.err
7794        } && test -s conftest.$ac_objext; then
7795   ac_compiler_gnu=yes
7796 else
7797   echo "$as_me: failed program was:" >&5
7798 sed 's/^/| /' conftest.$ac_ext >&5
7799
7800         ac_compiler_gnu=no
7801 fi
7802
7803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7804 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7805
7806 fi
7807 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7808 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7809 ac_ext=$ac_save_ext
7810 ac_test_FFLAGS=${FFLAGS+set}
7811 ac_save_FFLAGS=$FFLAGS
7812 FFLAGS=
7813 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7814 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7815 if test "${ac_cv_prog_f77_g+set}" = set; then
7816   echo $ECHO_N "(cached) $ECHO_C" >&6
7817 else
7818   FFLAGS=-g
7819 cat >conftest.$ac_ext <<_ACEOF
7820       program main
7821
7822       end
7823 _ACEOF
7824 rm -f conftest.$ac_objext
7825 if { (ac_try="$ac_compile"
7826 case "(($ac_try" in
7827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7828   *) ac_try_echo=$ac_try;;
7829 esac
7830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7831   (eval "$ac_compile") 2>conftest.er1
7832   ac_status=$?
7833   grep -v '^ *+' conftest.er1 >conftest.err
7834   rm -f conftest.er1
7835   cat conftest.err >&5
7836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837   (exit $ac_status); } && {
7838          test -z "$ac_f77_werror_flag" ||
7839          test ! -s conftest.err
7840        } && test -s conftest.$ac_objext; then
7841   ac_cv_prog_f77_g=yes
7842 else
7843   echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.$ac_ext >&5
7845
7846         ac_cv_prog_f77_g=no
7847 fi
7848
7849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7850
7851 fi
7852 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7853 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7854 if test "$ac_test_FFLAGS" = set; then
7855   FFLAGS=$ac_save_FFLAGS
7856 elif test $ac_cv_prog_f77_g = yes; then
7857   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7858     FFLAGS="-g -O2"
7859   else
7860     FFLAGS="-g"
7861   fi
7862 else
7863   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7864     FFLAGS="-O2"
7865   else
7866     FFLAGS=
7867   fi
7868 fi
7869
7870 G77=`test $ac_compiler_gnu = yes && echo yes`
7871 ac_ext=c
7872 ac_cpp='$CPP $CPPFLAGS'
7873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7876
7877
7878
7879 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7880 # find the maximum length of command line arguments
7881 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7882 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7883 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7884   echo $ECHO_N "(cached) $ECHO_C" >&6
7885 else
7886     i=0
7887   teststring="ABCD"
7888
7889   case $build_os in
7890   msdosdjgpp*)
7891     # On DJGPP, this test can blow up pretty badly due to problems in libc
7892     # (any single argument exceeding 2000 bytes causes a buffer overrun
7893     # during glob expansion).  Even if it were fixed, the result of this
7894     # check would be larger than it should be.
7895     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7896     ;;
7897
7898   gnu*)
7899     # Under GNU Hurd, this test is not required because there is
7900     # no limit to the length of command line arguments.
7901     # Libtool will interpret -1 as no limit whatsoever
7902     lt_cv_sys_max_cmd_len=-1;
7903     ;;
7904
7905   cygwin* | mingw*)
7906     # On Win9x/ME, this test blows up -- it succeeds, but takes
7907     # about 5 minutes as the teststring grows exponentially.
7908     # Worse, since 9x/ME are not pre-emptively multitasking,
7909     # you end up with a "frozen" computer, even though with patience
7910     # the test eventually succeeds (with a max line length of 256k).
7911     # Instead, let's just punt: use the minimum linelength reported by
7912     # all of the supported platforms: 8192 (on NT/2K/XP).
7913     lt_cv_sys_max_cmd_len=8192;
7914     ;;
7915
7916   amigaos*)
7917     # On AmigaOS with pdksh, this test takes hours, literally.
7918     # So we just punt and use a minimum line length of 8192.
7919     lt_cv_sys_max_cmd_len=8192;
7920     ;;
7921
7922   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7923     # This has been around since 386BSD, at least.  Likely further.
7924     if test -x /sbin/sysctl; then
7925       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7926     elif test -x /usr/sbin/sysctl; then
7927       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7928     else
7929       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7930     fi
7931     # And add a safety zone
7932     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7933     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7934     ;;
7935
7936   interix*)
7937     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7938     lt_cv_sys_max_cmd_len=196608
7939     ;;
7940
7941   osf*)
7942     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7943     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7944     # nice to cause kernel panics so lets avoid the loop below.
7945     # First set a reasonable default.
7946     lt_cv_sys_max_cmd_len=16384
7947     #
7948     if test -x /sbin/sysconfig; then
7949       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7950         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7951       esac
7952     fi
7953     ;;
7954   sco3.2v5*)
7955     lt_cv_sys_max_cmd_len=102400
7956     ;;
7957   sysv5* | sco5v6* | sysv4.2uw2*)
7958     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7959     if test -n "$kargmax"; then
7960       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7961     else
7962       lt_cv_sys_max_cmd_len=32768
7963     fi
7964     ;;
7965   *)
7966     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7967     if test -n "$lt_cv_sys_max_cmd_len"; then
7968       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7969       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7970     else
7971       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7972       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7973                = "XX$teststring") >/dev/null 2>&1 &&
7974               new_result=`expr "X$teststring" : ".*" 2>&1` &&
7975               lt_cv_sys_max_cmd_len=$new_result &&
7976               test $i != 17 # 1/2 MB should be enough
7977       do
7978         i=`expr $i + 1`
7979         teststring=$teststring$teststring
7980       done
7981       teststring=
7982       # Add a significant safety factor because C++ compilers can tack on massive
7983       # amounts of additional arguments before passing them to the linker.
7984       # It appears as though 1/2 is a usable value.
7985       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7986     fi
7987     ;;
7988   esac
7989
7990 fi
7991
7992 if test -n $lt_cv_sys_max_cmd_len ; then
7993   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7994 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7995 else
7996   { echo "$as_me:$LINENO: result: none" >&5
7997 echo "${ECHO_T}none" >&6; }
7998 fi
7999
8000
8001
8002
8003
8004 # Check for command to grab the raw symbol name followed by C symbol from nm.
8005 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8006 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8007 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8008   echo $ECHO_N "(cached) $ECHO_C" >&6
8009 else
8010
8011 # These are sane defaults that work on at least a few old systems.
8012 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8013
8014 # Character class describing NM global symbol codes.
8015 symcode='[BCDEGRST]'
8016
8017 # Regexp to match symbols that can be accessed directly from C.
8018 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8019
8020 # Transform an extracted symbol line into a proper C declaration
8021 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8022
8023 # Transform an extracted symbol line into symbol name and symbol address
8024 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'"
8025
8026 # Define system-specific variables.
8027 case $host_os in
8028 aix*)
8029   symcode='[BCDT]'
8030   ;;
8031 cygwin* | mingw* | pw32*)
8032   symcode='[ABCDGISTW]'
8033   ;;
8034 hpux*) # Its linker distinguishes data from code symbols
8035   if test "$host_cpu" = ia64; then
8036     symcode='[ABCDEGRST]'
8037   fi
8038   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8039   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'"
8040   ;;
8041 linux* | k*bsd*-gnu)
8042   if test "$host_cpu" = ia64; then
8043     symcode='[ABCDGIRSTW]'
8044     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8045     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'"
8046   fi
8047   ;;
8048 irix* | nonstopux*)
8049   symcode='[BCDEGRST]'
8050   ;;
8051 osf*)
8052   symcode='[BCDEGQRST]'
8053   ;;
8054 solaris*)
8055   symcode='[BDRT]'
8056   ;;
8057 sco3.2v5*)
8058   symcode='[DT]'
8059   ;;
8060 sysv4.2uw2*)
8061   symcode='[DT]'
8062   ;;
8063 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8064   symcode='[ABDT]'
8065   ;;
8066 sysv4)
8067   symcode='[DFNSTU]'
8068   ;;
8069 esac
8070
8071 # Handle CRLF in mingw tool chain
8072 opt_cr=
8073 case $build_os in
8074 mingw*)
8075   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8076   ;;
8077 esac
8078
8079 # If we're using GNU nm, then use its standard symbol codes.
8080 case `$NM -V 2>&1` in
8081 *GNU* | *'with BFD'*)
8082   symcode='[ABCDGIRSTW]' ;;
8083 esac
8084
8085 # Try without a prefix undercore, then with it.
8086 for ac_symprfx in "" "_"; do
8087
8088   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8089   symxfrm="\\1 $ac_symprfx\\2 \\2"
8090
8091   # Write the raw and C identifiers.
8092   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8093
8094   # Check to see that the pipe works correctly.
8095   pipe_works=no
8096
8097   rm -f conftest*
8098   cat > conftest.$ac_ext <<EOF
8099 #ifdef __cplusplus
8100 extern "C" {
8101 #endif
8102 char nm_test_var;
8103 void nm_test_func(){}
8104 #ifdef __cplusplus
8105 }
8106 #endif
8107 int main(){nm_test_var='a';nm_test_func();return(0);}
8108 EOF
8109
8110   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8111   (eval $ac_compile) 2>&5
8112   ac_status=$?
8113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114   (exit $ac_status); }; then
8115     # Now try to grab the symbols.
8116     nlist=conftest.nm
8117     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8118   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8119   ac_status=$?
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); } && test -s "$nlist"; then
8122       # Try sorting and uniquifying the output.
8123       if sort "$nlist" | uniq > "$nlist"T; then
8124         mv -f "$nlist"T "$nlist"
8125       else
8126         rm -f "$nlist"T
8127       fi
8128
8129       # Make sure that we snagged all the symbols we need.
8130       if grep ' nm_test_var$' "$nlist" >/dev/null; then
8131         if grep ' nm_test_func$' "$nlist" >/dev/null; then
8132           cat <<EOF > conftest.$ac_ext
8133 #ifdef __cplusplus
8134 extern "C" {
8135 #endif
8136
8137 EOF
8138           # Now generate the symbol file.
8139           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8140
8141           cat <<EOF >> conftest.$ac_ext
8142 #if defined (__STDC__) && __STDC__
8143 # define lt_ptr_t void *
8144 #else
8145 # define lt_ptr_t char *
8146 # define const
8147 #endif
8148
8149 /* The mapping between symbol names and symbols. */
8150 const struct {
8151   const char *name;
8152   lt_ptr_t address;
8153 }
8154 lt_preloaded_symbols[] =
8155 {
8156 EOF
8157           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8158           cat <<\EOF >> conftest.$ac_ext
8159   {0, (lt_ptr_t) 0}
8160 };
8161
8162 #ifdef __cplusplus
8163 }
8164 #endif
8165 EOF
8166           # Now try linking the two files.
8167           mv conftest.$ac_objext conftstm.$ac_objext
8168           lt_save_LIBS="$LIBS"
8169           lt_save_CFLAGS="$CFLAGS"
8170           LIBS="conftstm.$ac_objext"
8171           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8172           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8173   (eval $ac_link) 2>&5
8174   ac_status=$?
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); } && test -s conftest${ac_exeext}; then
8177             pipe_works=yes
8178           fi
8179           LIBS="$lt_save_LIBS"
8180           CFLAGS="$lt_save_CFLAGS"
8181         else
8182           echo "cannot find nm_test_func in $nlist" >&5
8183         fi
8184       else
8185         echo "cannot find nm_test_var in $nlist" >&5
8186       fi
8187     else
8188       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8189     fi
8190   else
8191     echo "$progname: failed program was:" >&5
8192     cat conftest.$ac_ext >&5
8193   fi
8194   rm -rf conftest* conftst*
8195
8196   # Do not use the global_symbol_pipe unless it works.
8197   if test "$pipe_works" = yes; then
8198     break
8199   else
8200     lt_cv_sys_global_symbol_pipe=
8201   fi
8202 done
8203
8204 fi
8205
8206 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8207   lt_cv_sys_global_symbol_to_cdecl=
8208 fi
8209 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8210   { echo "$as_me:$LINENO: result: failed" >&5
8211 echo "${ECHO_T}failed" >&6; }
8212 else
8213   { echo "$as_me:$LINENO: result: ok" >&5
8214 echo "${ECHO_T}ok" >&6; }
8215 fi
8216
8217 { echo "$as_me:$LINENO: checking for objdir" >&5
8218 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8219 if test "${lt_cv_objdir+set}" = set; then
8220   echo $ECHO_N "(cached) $ECHO_C" >&6
8221 else
8222   rm -f .libs 2>/dev/null
8223 mkdir .libs 2>/dev/null
8224 if test -d .libs; then
8225   lt_cv_objdir=.libs
8226 else
8227   # MS-DOS does not allow filenames that begin with a dot.
8228   lt_cv_objdir=_libs
8229 fi
8230 rmdir .libs 2>/dev/null
8231 fi
8232 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8233 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8234 objdir=$lt_cv_objdir
8235
8236
8237
8238
8239
8240 case $host_os in
8241 aix3*)
8242   # AIX sometimes has problems with the GCC collect2 program.  For some
8243   # reason, if we set the COLLECT_NAMES environment variable, the problems
8244   # vanish in a puff of smoke.
8245   if test "X${COLLECT_NAMES+set}" != Xset; then
8246     COLLECT_NAMES=
8247     export COLLECT_NAMES
8248   fi
8249   ;;
8250 esac
8251
8252 # Sed substitution that helps us do robust quoting.  It backslashifies
8253 # metacharacters that are still active within double-quoted strings.
8254 Xsed='sed -e 1s/^X//'
8255 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8256
8257 # Same as above, but do not quote variable references.
8258 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8259
8260 # Sed substitution to delay expansion of an escaped shell variable in a
8261 # double_quote_subst'ed string.
8262 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8263
8264 # Sed substitution to avoid accidental globbing in evaled expressions
8265 no_glob_subst='s/\*/\\\*/g'
8266
8267 # Constants:
8268 rm="rm -f"
8269
8270 # Global variables:
8271 default_ofile=libtool
8272 can_build_shared=yes
8273
8274 # All known linkers require a `.a' archive for static linking (except MSVC,
8275 # which needs '.lib').
8276 libext=a
8277 ltmain="$ac_aux_dir/ltmain.sh"
8278 ofile="$default_ofile"
8279 with_gnu_ld="$lt_cv_prog_gnu_ld"
8280
8281 if test -n "$ac_tool_prefix"; then
8282   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8283 set dummy ${ac_tool_prefix}ar; ac_word=$2
8284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8286 if test "${ac_cv_prog_AR+set}" = set; then
8287   echo $ECHO_N "(cached) $ECHO_C" >&6
8288 else
8289   if test -n "$AR"; then
8290   ac_cv_prog_AR="$AR" # Let the user override the test.
8291 else
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293 for as_dir in $PATH
8294 do
8295   IFS=$as_save_IFS
8296   test -z "$as_dir" && as_dir=.
8297   for ac_exec_ext in '' $ac_executable_extensions; do
8298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8299     ac_cv_prog_AR="${ac_tool_prefix}ar"
8300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8301     break 2
8302   fi
8303 done
8304 done
8305 IFS=$as_save_IFS
8306
8307 fi
8308 fi
8309 AR=$ac_cv_prog_AR
8310 if test -n "$AR"; then
8311   { echo "$as_me:$LINENO: result: $AR" >&5
8312 echo "${ECHO_T}$AR" >&6; }
8313 else
8314   { echo "$as_me:$LINENO: result: no" >&5
8315 echo "${ECHO_T}no" >&6; }
8316 fi
8317
8318
8319 fi
8320 if test -z "$ac_cv_prog_AR"; then
8321   ac_ct_AR=$AR
8322   # Extract the first word of "ar", so it can be a program name with args.
8323 set dummy ar; ac_word=$2
8324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8326 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8327   echo $ECHO_N "(cached) $ECHO_C" >&6
8328 else
8329   if test -n "$ac_ct_AR"; then
8330   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8331 else
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 for as_dir in $PATH
8334 do
8335   IFS=$as_save_IFS
8336   test -z "$as_dir" && as_dir=.
8337   for ac_exec_ext in '' $ac_executable_extensions; do
8338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8339     ac_cv_prog_ac_ct_AR="ar"
8340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8341     break 2
8342   fi
8343 done
8344 done
8345 IFS=$as_save_IFS
8346
8347 fi
8348 fi
8349 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8350 if test -n "$ac_ct_AR"; then
8351   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8352 echo "${ECHO_T}$ac_ct_AR" >&6; }
8353 else
8354   { echo "$as_me:$LINENO: result: no" >&5
8355 echo "${ECHO_T}no" >&6; }
8356 fi
8357
8358   if test "x$ac_ct_AR" = x; then
8359     AR="false"
8360   else
8361     case $cross_compiling:$ac_tool_warned in
8362 yes:)
8363 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8364 whose name does not start with the host triplet.  If you think this
8365 configuration is useful to you, please write to autoconf@gnu.org." >&5
8366 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8367 whose name does not start with the host triplet.  If you think this
8368 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8369 ac_tool_warned=yes ;;
8370 esac
8371     AR=$ac_ct_AR
8372   fi
8373 else
8374   AR="$ac_cv_prog_AR"
8375 fi
8376
8377 if test -n "$ac_tool_prefix"; then
8378   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8379 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8382 if test "${ac_cv_prog_RANLIB+set}" = set; then
8383   echo $ECHO_N "(cached) $ECHO_C" >&6
8384 else
8385   if test -n "$RANLIB"; then
8386   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8387 else
8388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389 for as_dir in $PATH
8390 do
8391   IFS=$as_save_IFS
8392   test -z "$as_dir" && as_dir=.
8393   for ac_exec_ext in '' $ac_executable_extensions; do
8394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8395     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8397     break 2
8398   fi
8399 done
8400 done
8401 IFS=$as_save_IFS
8402
8403 fi
8404 fi
8405 RANLIB=$ac_cv_prog_RANLIB
8406 if test -n "$RANLIB"; then
8407   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8408 echo "${ECHO_T}$RANLIB" >&6; }
8409 else
8410   { echo "$as_me:$LINENO: result: no" >&5
8411 echo "${ECHO_T}no" >&6; }
8412 fi
8413
8414
8415 fi
8416 if test -z "$ac_cv_prog_RANLIB"; then
8417   ac_ct_RANLIB=$RANLIB
8418   # Extract the first word of "ranlib", so it can be a program name with args.
8419 set dummy ranlib; ac_word=$2
8420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8422 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8423   echo $ECHO_N "(cached) $ECHO_C" >&6
8424 else
8425   if test -n "$ac_ct_RANLIB"; then
8426   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8427 else
8428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8429 for as_dir in $PATH
8430 do
8431   IFS=$as_save_IFS
8432   test -z "$as_dir" && as_dir=.
8433   for ac_exec_ext in '' $ac_executable_extensions; do
8434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8435     ac_cv_prog_ac_ct_RANLIB="ranlib"
8436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8437     break 2
8438   fi
8439 done
8440 done
8441 IFS=$as_save_IFS
8442
8443 fi
8444 fi
8445 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8446 if test -n "$ac_ct_RANLIB"; then
8447   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8448 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8449 else
8450   { echo "$as_me:$LINENO: result: no" >&5
8451 echo "${ECHO_T}no" >&6; }
8452 fi
8453
8454   if test "x$ac_ct_RANLIB" = x; then
8455     RANLIB=":"
8456   else
8457     case $cross_compiling:$ac_tool_warned in
8458 yes:)
8459 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8460 whose name does not start with the host triplet.  If you think this
8461 configuration is useful to you, please write to autoconf@gnu.org." >&5
8462 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8463 whose name does not start with the host triplet.  If you think this
8464 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8465 ac_tool_warned=yes ;;
8466 esac
8467     RANLIB=$ac_ct_RANLIB
8468   fi
8469 else
8470   RANLIB="$ac_cv_prog_RANLIB"
8471 fi
8472
8473 if test -n "$ac_tool_prefix"; then
8474   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8475 set dummy ${ac_tool_prefix}strip; ac_word=$2
8476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8478 if test "${ac_cv_prog_STRIP+set}" = set; then
8479   echo $ECHO_N "(cached) $ECHO_C" >&6
8480 else
8481   if test -n "$STRIP"; then
8482   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8483 else
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485 for as_dir in $PATH
8486 do
8487   IFS=$as_save_IFS
8488   test -z "$as_dir" && as_dir=.
8489   for ac_exec_ext in '' $ac_executable_extensions; do
8490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8491     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8493     break 2
8494   fi
8495 done
8496 done
8497 IFS=$as_save_IFS
8498
8499 fi
8500 fi
8501 STRIP=$ac_cv_prog_STRIP
8502 if test -n "$STRIP"; then
8503   { echo "$as_me:$LINENO: result: $STRIP" >&5
8504 echo "${ECHO_T}$STRIP" >&6; }
8505 else
8506   { echo "$as_me:$LINENO: result: no" >&5
8507 echo "${ECHO_T}no" >&6; }
8508 fi
8509
8510
8511 fi
8512 if test -z "$ac_cv_prog_STRIP"; then
8513   ac_ct_STRIP=$STRIP
8514   # Extract the first word of "strip", so it can be a program name with args.
8515 set dummy strip; ac_word=$2
8516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8518 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8519   echo $ECHO_N "(cached) $ECHO_C" >&6
8520 else
8521   if test -n "$ac_ct_STRIP"; then
8522   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8523 else
8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525 for as_dir in $PATH
8526 do
8527   IFS=$as_save_IFS
8528   test -z "$as_dir" && as_dir=.
8529   for ac_exec_ext in '' $ac_executable_extensions; do
8530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8531     ac_cv_prog_ac_ct_STRIP="strip"
8532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8533     break 2
8534   fi
8535 done
8536 done
8537 IFS=$as_save_IFS
8538
8539 fi
8540 fi
8541 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8542 if test -n "$ac_ct_STRIP"; then
8543   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8544 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8545 else
8546   { echo "$as_me:$LINENO: result: no" >&5
8547 echo "${ECHO_T}no" >&6; }
8548 fi
8549
8550   if test "x$ac_ct_STRIP" = x; then
8551     STRIP=":"
8552   else
8553     case $cross_compiling:$ac_tool_warned in
8554 yes:)
8555 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8556 whose name does not start with the host triplet.  If you think this
8557 configuration is useful to you, please write to autoconf@gnu.org." >&5
8558 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8559 whose name does not start with the host triplet.  If you think this
8560 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8561 ac_tool_warned=yes ;;
8562 esac
8563     STRIP=$ac_ct_STRIP
8564   fi
8565 else
8566   STRIP="$ac_cv_prog_STRIP"
8567 fi
8568
8569
8570 old_CC="$CC"
8571 old_CFLAGS="$CFLAGS"
8572
8573 # Set sane defaults for various variables
8574 test -z "$AR" && AR=ar
8575 test -z "$AR_FLAGS" && AR_FLAGS=cru
8576 test -z "$AS" && AS=as
8577 test -z "$CC" && CC=cc
8578 test -z "$LTCC" && LTCC=$CC
8579 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8580 test -z "$DLLTOOL" && DLLTOOL=dlltool
8581 test -z "$LD" && LD=ld
8582 test -z "$LN_S" && LN_S="ln -s"
8583 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8584 test -z "$NM" && NM=nm
8585 test -z "$SED" && SED=sed
8586 test -z "$OBJDUMP" && OBJDUMP=objdump
8587 test -z "$RANLIB" && RANLIB=:
8588 test -z "$STRIP" && STRIP=:
8589 test -z "$ac_objext" && ac_objext=o
8590
8591 # Determine commands to create old-style static archives.
8592 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8593 old_postinstall_cmds='chmod 644 $oldlib'
8594 old_postuninstall_cmds=
8595
8596 if test -n "$RANLIB"; then
8597   case $host_os in
8598   openbsd*)
8599     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8600     ;;
8601   *)
8602     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8603     ;;
8604   esac
8605   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8606 fi
8607
8608 for cc_temp in $compiler""; do
8609   case $cc_temp in
8610     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8611     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8612     \-*) ;;
8613     *) break;;
8614   esac
8615 done
8616 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8617
8618
8619 # Only perform the check for file, if the check method requires it
8620 case $deplibs_check_method in
8621 file_magic*)
8622   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8623     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8624 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8625 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8626   echo $ECHO_N "(cached) $ECHO_C" >&6
8627 else
8628   case $MAGIC_CMD in
8629 [\\/*] |  ?:[\\/]*)
8630   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8631   ;;
8632 *)
8633   lt_save_MAGIC_CMD="$MAGIC_CMD"
8634   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8635   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8636   for ac_dir in $ac_dummy; do
8637     IFS="$lt_save_ifs"
8638     test -z "$ac_dir" && ac_dir=.
8639     if test -f $ac_dir/${ac_tool_prefix}file; then
8640       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8641       if test -n "$file_magic_test_file"; then
8642         case $deplibs_check_method in
8643         "file_magic "*)
8644           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8645           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8646           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8647             $EGREP "$file_magic_regex" > /dev/null; then
8648             :
8649           else
8650             cat <<EOF 1>&2
8651
8652 *** Warning: the command libtool uses to detect shared libraries,
8653 *** $file_magic_cmd, produces output that libtool cannot recognize.
8654 *** The result is that libtool may fail to recognize shared libraries
8655 *** as such.  This will affect the creation of libtool libraries that
8656 *** depend on shared libraries, but programs linked with such libtool
8657 *** libraries will work regardless of this problem.  Nevertheless, you
8658 *** may want to report the problem to your system manager and/or to
8659 *** bug-libtool@gnu.org
8660
8661 EOF
8662           fi ;;
8663         esac
8664       fi
8665       break
8666     fi
8667   done
8668   IFS="$lt_save_ifs"
8669   MAGIC_CMD="$lt_save_MAGIC_CMD"
8670   ;;
8671 esac
8672 fi
8673
8674 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8675 if test -n "$MAGIC_CMD"; then
8676   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8677 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8678 else
8679   { echo "$as_me:$LINENO: result: no" >&5
8680 echo "${ECHO_T}no" >&6; }
8681 fi
8682
8683 if test -z "$lt_cv_path_MAGIC_CMD"; then
8684   if test -n "$ac_tool_prefix"; then
8685     { echo "$as_me:$LINENO: checking for file" >&5
8686 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8687 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8688   echo $ECHO_N "(cached) $ECHO_C" >&6
8689 else
8690   case $MAGIC_CMD in
8691 [\\/*] |  ?:[\\/]*)
8692   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8693   ;;
8694 *)
8695   lt_save_MAGIC_CMD="$MAGIC_CMD"
8696   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8697   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8698   for ac_dir in $ac_dummy; do
8699     IFS="$lt_save_ifs"
8700     test -z "$ac_dir" && ac_dir=.
8701     if test -f $ac_dir/file; then
8702       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8703       if test -n "$file_magic_test_file"; then
8704         case $deplibs_check_method in
8705         "file_magic "*)
8706           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8707           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8708           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8709             $EGREP "$file_magic_regex" > /dev/null; then
8710             :
8711           else
8712             cat <<EOF 1>&2
8713
8714 *** Warning: the command libtool uses to detect shared libraries,
8715 *** $file_magic_cmd, produces output that libtool cannot recognize.
8716 *** The result is that libtool may fail to recognize shared libraries
8717 *** as such.  This will affect the creation of libtool libraries that
8718 *** depend on shared libraries, but programs linked with such libtool
8719 *** libraries will work regardless of this problem.  Nevertheless, you
8720 *** may want to report the problem to your system manager and/or to
8721 *** bug-libtool@gnu.org
8722
8723 EOF
8724           fi ;;
8725         esac
8726       fi
8727       break
8728     fi
8729   done
8730   IFS="$lt_save_ifs"
8731   MAGIC_CMD="$lt_save_MAGIC_CMD"
8732   ;;
8733 esac
8734 fi
8735
8736 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8737 if test -n "$MAGIC_CMD"; then
8738   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8739 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8740 else
8741   { echo "$as_me:$LINENO: result: no" >&5
8742 echo "${ECHO_T}no" >&6; }
8743 fi
8744
8745   else
8746     MAGIC_CMD=:
8747   fi
8748 fi
8749
8750   fi
8751   ;;
8752 esac
8753
8754
8755   case $host_os in
8756     rhapsody* | darwin*)
8757     if test -n "$ac_tool_prefix"; then
8758   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8759 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8762 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8763   echo $ECHO_N "(cached) $ECHO_C" >&6
8764 else
8765   if test -n "$DSYMUTIL"; then
8766   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8767 else
8768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8769 for as_dir in $PATH
8770 do
8771   IFS=$as_save_IFS
8772   test -z "$as_dir" && as_dir=.
8773   for ac_exec_ext in '' $ac_executable_extensions; do
8774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8775     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8777     break 2
8778   fi
8779 done
8780 done
8781 IFS=$as_save_IFS
8782
8783 fi
8784 fi
8785 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8786 if test -n "$DSYMUTIL"; then
8787   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8788 echo "${ECHO_T}$DSYMUTIL" >&6; }
8789 else
8790   { echo "$as_me:$LINENO: result: no" >&5
8791 echo "${ECHO_T}no" >&6; }
8792 fi
8793
8794
8795 fi
8796 if test -z "$ac_cv_prog_DSYMUTIL"; then
8797   ac_ct_DSYMUTIL=$DSYMUTIL
8798   # Extract the first word of "dsymutil", so it can be a program name with args.
8799 set dummy dsymutil; ac_word=$2
8800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8802 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8803   echo $ECHO_N "(cached) $ECHO_C" >&6
8804 else
8805   if test -n "$ac_ct_DSYMUTIL"; then
8806   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8807 else
8808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8809 for as_dir in $PATH
8810 do
8811   IFS=$as_save_IFS
8812   test -z "$as_dir" && as_dir=.
8813   for ac_exec_ext in '' $ac_executable_extensions; do
8814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8815     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8817     break 2
8818   fi
8819 done
8820 done
8821 IFS=$as_save_IFS
8822
8823 fi
8824 fi
8825 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8826 if test -n "$ac_ct_DSYMUTIL"; then
8827   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8828 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
8829 else
8830   { echo "$as_me:$LINENO: result: no" >&5
8831 echo "${ECHO_T}no" >&6; }
8832 fi
8833
8834   if test "x$ac_ct_DSYMUTIL" = x; then
8835     DSYMUTIL=":"
8836   else
8837     case $cross_compiling:$ac_tool_warned in
8838 yes:)
8839 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8840 whose name does not start with the host triplet.  If you think this
8841 configuration is useful to you, please write to autoconf@gnu.org." >&5
8842 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8843 whose name does not start with the host triplet.  If you think this
8844 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8845 ac_tool_warned=yes ;;
8846 esac
8847     DSYMUTIL=$ac_ct_DSYMUTIL
8848   fi
8849 else
8850   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8851 fi
8852
8853     if test -n "$ac_tool_prefix"; then
8854   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8855 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8858 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8859   echo $ECHO_N "(cached) $ECHO_C" >&6
8860 else
8861   if test -n "$NMEDIT"; then
8862   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8863 else
8864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8865 for as_dir in $PATH
8866 do
8867   IFS=$as_save_IFS
8868   test -z "$as_dir" && as_dir=.
8869   for ac_exec_ext in '' $ac_executable_extensions; do
8870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8871     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8873     break 2
8874   fi
8875 done
8876 done
8877 IFS=$as_save_IFS
8878
8879 fi
8880 fi
8881 NMEDIT=$ac_cv_prog_NMEDIT
8882 if test -n "$NMEDIT"; then
8883   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
8884 echo "${ECHO_T}$NMEDIT" >&6; }
8885 else
8886   { echo "$as_me:$LINENO: result: no" >&5
8887 echo "${ECHO_T}no" >&6; }
8888 fi
8889
8890
8891 fi
8892 if test -z "$ac_cv_prog_NMEDIT"; then
8893   ac_ct_NMEDIT=$NMEDIT
8894   # Extract the first word of "nmedit", so it can be a program name with args.
8895 set dummy nmedit; ac_word=$2
8896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8898 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8899   echo $ECHO_N "(cached) $ECHO_C" >&6
8900 else
8901   if test -n "$ac_ct_NMEDIT"; then
8902   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8903 else
8904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8905 for as_dir in $PATH
8906 do
8907   IFS=$as_save_IFS
8908   test -z "$as_dir" && as_dir=.
8909   for ac_exec_ext in '' $ac_executable_extensions; do
8910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8911     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8913     break 2
8914   fi
8915 done
8916 done
8917 IFS=$as_save_IFS
8918
8919 fi
8920 fi
8921 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8922 if test -n "$ac_ct_NMEDIT"; then
8923   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8924 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
8925 else
8926   { echo "$as_me:$LINENO: result: no" >&5
8927 echo "${ECHO_T}no" >&6; }
8928 fi
8929
8930   if test "x$ac_ct_NMEDIT" = x; then
8931     NMEDIT=":"
8932   else
8933     case $cross_compiling:$ac_tool_warned in
8934 yes:)
8935 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8936 whose name does not start with the host triplet.  If you think this
8937 configuration is useful to you, please write to autoconf@gnu.org." >&5
8938 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8939 whose name does not start with the host triplet.  If you think this
8940 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8941 ac_tool_warned=yes ;;
8942 esac
8943     NMEDIT=$ac_ct_NMEDIT
8944   fi
8945 else
8946   NMEDIT="$ac_cv_prog_NMEDIT"
8947 fi
8948
8949
8950     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8951 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
8952 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8953   echo $ECHO_N "(cached) $ECHO_C" >&6
8954 else
8955   lt_cv_apple_cc_single_mod=no
8956       if test -z "${LT_MULTI_MODULE}"; then
8957    # By default we will add the -single_module flag. You can override
8958    # by either setting the environment variable LT_MULTI_MODULE
8959    # non-empty at configure time, or by adding -multi_module to the
8960    # link flags.
8961    echo "int foo(void){return 1;}" > conftest.c
8962    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8963      -dynamiclib ${wl}-single_module conftest.c
8964    if test -f libconftest.dylib; then
8965      lt_cv_apple_cc_single_mod=yes
8966      rm -rf libconftest.dylib*
8967    fi
8968    rm conftest.c
8969       fi
8970 fi
8971 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8972 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
8973     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8974 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
8975 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8976   echo $ECHO_N "(cached) $ECHO_C" >&6
8977 else
8978   lt_cv_ld_exported_symbols_list=no
8979       save_LDFLAGS=$LDFLAGS
8980       echo "_main" > conftest.sym
8981       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8982       cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h.  */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h.  */
8988
8989 int
8990 main ()
8991 {
8992
8993   ;
8994   return 0;
8995 }
8996 _ACEOF
8997 rm -f conftest.$ac_objext conftest$ac_exeext
8998 if { (ac_try="$ac_link"
8999 case "(($ac_try" in
9000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9001   *) ac_try_echo=$ac_try;;
9002 esac
9003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004   (eval "$ac_link") 2>conftest.er1
9005   ac_status=$?
9006   grep -v '^ *+' conftest.er1 >conftest.err
9007   rm -f conftest.er1
9008   cat conftest.err >&5
9009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010   (exit $ac_status); } && {
9011          test -z "$ac_c_werror_flag" ||
9012          test ! -s conftest.err
9013        } && test -s conftest$ac_exeext &&
9014        $as_test_x conftest$ac_exeext; then
9015   lt_cv_ld_exported_symbols_list=yes
9016 else
9017   echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9019
9020         lt_cv_ld_exported_symbols_list=no
9021 fi
9022
9023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9024       conftest$ac_exeext conftest.$ac_ext
9025    LDFLAGS="$save_LDFLAGS"
9026
9027 fi
9028 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
9029 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
9030     case $host_os in
9031     rhapsody* | darwin1.[0123])
9032       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9033     darwin1.*)
9034      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9035     darwin*)
9036       # if running on 10.5 or later, the deployment target defaults
9037       # to the OS version, if on x86, and 10.4, the deployment
9038       # target defaults to 10.4. Don't you love it?
9039       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9040    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9041      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9042    10.[012]*)
9043      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9044    10.*)
9045      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9046       esac
9047     ;;
9048   esac
9049     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9050       _lt_dar_single_mod='$single_module'
9051     fi
9052     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9053       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9054     else
9055       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
9056     fi
9057     if test "$DSYMUTIL" != ":"; then
9058       _lt_dsymutil="~$DSYMUTIL \$lib || :"
9059     else
9060       _lt_dsymutil=
9061     fi
9062     ;;
9063   esac
9064
9065
9066 enable_dlopen=no
9067 enable_win32_dll=no
9068
9069 # Check whether --enable-libtool-lock was given.
9070 if test "${enable_libtool_lock+set}" = set; then
9071   enableval=$enable_libtool_lock;
9072 fi
9073
9074 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9075
9076
9077 # Check whether --with-pic was given.
9078 if test "${with_pic+set}" = set; then
9079   withval=$with_pic; pic_mode="$withval"
9080 else
9081   pic_mode=default
9082 fi
9083
9084 test -z "$pic_mode" && pic_mode=default
9085
9086 # Use C for the default configuration in the libtool script
9087 tagname=
9088 lt_save_CC="$CC"
9089 ac_ext=c
9090 ac_cpp='$CPP $CPPFLAGS'
9091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9094
9095
9096 # Source file extension for C test sources.
9097 ac_ext=c
9098
9099 # Object file extension for compiled C test sources.
9100 objext=o
9101 objext=$objext
9102
9103 # Code to be used in simple compile tests
9104 lt_simple_compile_test_code="int some_variable = 0;"
9105
9106 # Code to be used in simple link tests
9107 lt_simple_link_test_code='int main(){return(0);}'
9108
9109
9110 # If no C compiler was specified, use CC.
9111 LTCC=${LTCC-"$CC"}
9112
9113 # If no C compiler flags were specified, use CFLAGS.
9114 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9115
9116 # Allow CC to be a program name with arguments.
9117 compiler=$CC
9118
9119
9120 # save warnings/boilerplate of simple test code
9121 ac_outfile=conftest.$ac_objext
9122 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9123 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9124 _lt_compiler_boilerplate=`cat conftest.err`
9125 $rm conftest*
9126
9127 ac_outfile=conftest.$ac_objext
9128 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9129 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9130 _lt_linker_boilerplate=`cat conftest.err`
9131 $rm -r conftest*
9132
9133
9134
9135 lt_prog_compiler_no_builtin_flag=
9136
9137 if test "$GCC" = yes; then
9138   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9139
9140
9141 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9142 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9143 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9144   echo $ECHO_N "(cached) $ECHO_C" >&6
9145 else
9146   lt_cv_prog_compiler_rtti_exceptions=no
9147   ac_outfile=conftest.$ac_objext
9148    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9149    lt_compiler_flag="-fno-rtti -fno-exceptions"
9150    # Insert the option either (1) after the last *FLAGS variable, or
9151    # (2) before a word containing "conftest.", or (3) at the end.
9152    # Note that $ac_compile itself does not contain backslashes and begins
9153    # with a dollar sign (not a hyphen), so the echo should work correctly.
9154    # The option is referenced via a variable to avoid confusing sed.
9155    lt_compile=`echo "$ac_compile" | $SED \
9156    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9157    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9158    -e 's:$: $lt_compiler_flag:'`
9159    (eval echo "\"\$as_me:9159: $lt_compile\"" >&5)
9160    (eval "$lt_compile" 2>conftest.err)
9161    ac_status=$?
9162    cat conftest.err >&5
9163    echo "$as_me:9163: \$? = $ac_status" >&5
9164    if (exit $ac_status) && test -s "$ac_outfile"; then
9165      # The compiler can only warn and ignore the option if not recognized
9166      # So say no if there are warnings other than the usual output.
9167      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9168      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9169      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9170        lt_cv_prog_compiler_rtti_exceptions=yes
9171      fi
9172    fi
9173    $rm conftest*
9174
9175 fi
9176 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9177 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9178
9179 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9180     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9181 else
9182     :
9183 fi
9184
9185 fi
9186
9187 lt_prog_compiler_wl=
9188 lt_prog_compiler_pic=
9189 lt_prog_compiler_static=
9190
9191 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9192 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9193
9194   if test "$GCC" = yes; then
9195     lt_prog_compiler_wl='-Wl,'
9196     lt_prog_compiler_static='-static'
9197
9198     case $host_os in
9199       aix*)
9200       # All AIX code is PIC.
9201       if test "$host_cpu" = ia64; then
9202         # AIX 5 now supports IA64 processor
9203         lt_prog_compiler_static='-Bstatic'
9204       fi
9205       ;;
9206
9207     amigaos*)
9208       # FIXME: we need at least 68020 code to build shared libraries, but
9209       # adding the `-m68020' flag to GCC prevents building anything better,
9210       # like `-m68040'.
9211       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9212       ;;
9213
9214     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9215       # PIC is the default for these OSes.
9216       ;;
9217
9218     mingw* | cygwin* | pw32* | os2*)
9219       # This hack is so that the source file can tell whether it is being
9220       # built for inclusion in a dll (and should export symbols for example).
9221       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9222       # (--disable-auto-import) libraries
9223       lt_prog_compiler_pic='-DDLL_EXPORT'
9224       ;;
9225
9226     darwin* | rhapsody*)
9227       # PIC is the default on this platform
9228       # Common symbols not allowed in MH_DYLIB files
9229       lt_prog_compiler_pic='-fno-common'
9230       ;;
9231
9232     interix[3-9]*)
9233       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9234       # Instead, we relocate shared libraries at runtime.
9235       ;;
9236
9237     msdosdjgpp*)
9238       # Just because we use GCC doesn't mean we suddenly get shared libraries
9239       # on systems that don't support them.
9240       lt_prog_compiler_can_build_shared=no
9241       enable_shared=no
9242       ;;
9243
9244     sysv4*MP*)
9245       if test -d /usr/nec; then
9246         lt_prog_compiler_pic=-Kconform_pic
9247       fi
9248       ;;
9249
9250     hpux*)
9251       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9252       # not for PA HP-UX.
9253       case $host_cpu in
9254       hppa*64*|ia64*)
9255         # +Z the default
9256         ;;
9257       *)
9258         lt_prog_compiler_pic='-fPIC'
9259         ;;
9260       esac
9261       ;;
9262
9263     *)
9264       lt_prog_compiler_pic='-fPIC'
9265       ;;
9266     esac
9267   else
9268     # PORTME Check for flag to pass linker flags through the system compiler.
9269     case $host_os in
9270     aix*)
9271       lt_prog_compiler_wl='-Wl,'
9272       if test "$host_cpu" = ia64; then
9273         # AIX 5 now supports IA64 processor
9274         lt_prog_compiler_static='-Bstatic'
9275       else
9276         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9277       fi
9278       ;;
9279       darwin*)
9280         # PIC is the default on this platform
9281         # Common symbols not allowed in MH_DYLIB files
9282        case $cc_basename in
9283          xlc*)
9284          lt_prog_compiler_pic='-qnocommon'
9285          lt_prog_compiler_wl='-Wl,'
9286          ;;
9287        esac
9288        ;;
9289
9290     mingw* | cygwin* | pw32* | os2*)
9291       # This hack is so that the source file can tell whether it is being
9292       # built for inclusion in a dll (and should export symbols for example).
9293       lt_prog_compiler_pic='-DDLL_EXPORT'
9294       ;;
9295
9296     hpux9* | hpux10* | hpux11*)
9297       lt_prog_compiler_wl='-Wl,'
9298       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9299       # not for PA HP-UX.
9300       case $host_cpu in
9301       hppa*64*|ia64*)
9302         # +Z the default
9303         ;;
9304       *)
9305         lt_prog_compiler_pic='+Z'
9306         ;;
9307       esac
9308       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9309       lt_prog_compiler_static='${wl}-a ${wl}archive'
9310       ;;
9311
9312     irix5* | irix6* | nonstopux*)
9313       lt_prog_compiler_wl='-Wl,'
9314       # PIC (with -KPIC) is the default.
9315       lt_prog_compiler_static='-non_shared'
9316       ;;
9317
9318     newsos6)
9319       lt_prog_compiler_pic='-KPIC'
9320       lt_prog_compiler_static='-Bstatic'
9321       ;;
9322
9323     linux* | k*bsd*-gnu)
9324       case $cc_basename in
9325       icc* | ecc*)
9326         lt_prog_compiler_wl='-Wl,'
9327         lt_prog_compiler_pic='-KPIC'
9328         lt_prog_compiler_static='-static'
9329         ;;
9330       pgcc* | pgf77* | pgf90* | pgf95*)
9331         # Portland Group compilers (*not* the Pentium gcc compiler,
9332         # which looks to be a dead project)
9333         lt_prog_compiler_wl='-Wl,'
9334         lt_prog_compiler_pic='-fpic'
9335         lt_prog_compiler_static='-Bstatic'
9336         ;;
9337       ccc*)
9338         lt_prog_compiler_wl='-Wl,'
9339         # All Alpha code is PIC.
9340         lt_prog_compiler_static='-non_shared'
9341         ;;
9342       *)
9343         case `$CC -V 2>&1 | sed 5q` in
9344         *Sun\ C*)
9345           # Sun C 5.9
9346           lt_prog_compiler_pic='-KPIC'
9347           lt_prog_compiler_static='-Bstatic'
9348           lt_prog_compiler_wl='-Wl,'
9349           ;;
9350         *Sun\ F*)
9351           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9352           lt_prog_compiler_pic='-KPIC'
9353           lt_prog_compiler_static='-Bstatic'
9354           lt_prog_compiler_wl=''
9355           ;;
9356         esac
9357         ;;
9358       esac
9359       ;;
9360
9361     osf3* | osf4* | osf5*)
9362       lt_prog_compiler_wl='-Wl,'
9363       # All OSF/1 code is PIC.
9364       lt_prog_compiler_static='-non_shared'
9365       ;;
9366
9367     rdos*)
9368       lt_prog_compiler_static='-non_shared'
9369       ;;
9370
9371     solaris*)
9372       lt_prog_compiler_pic='-KPIC'
9373       lt_prog_compiler_static='-Bstatic'
9374       case $cc_basename in
9375       f77* | f90* | f95*)
9376         lt_prog_compiler_wl='-Qoption ld ';;
9377       *)
9378         lt_prog_compiler_wl='-Wl,';;
9379       esac
9380       ;;
9381
9382     sunos4*)
9383       lt_prog_compiler_wl='-Qoption ld '
9384       lt_prog_compiler_pic='-PIC'
9385       lt_prog_compiler_static='-Bstatic'
9386       ;;
9387
9388     sysv4 | sysv4.2uw2* | sysv4.3*)
9389       lt_prog_compiler_wl='-Wl,'
9390       lt_prog_compiler_pic='-KPIC'
9391       lt_prog_compiler_static='-Bstatic'
9392       ;;
9393
9394     sysv4*MP*)
9395       if test -d /usr/nec ;then
9396         lt_prog_compiler_pic='-Kconform_pic'
9397         lt_prog_compiler_static='-Bstatic'
9398       fi
9399       ;;
9400
9401     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9402       lt_prog_compiler_wl='-Wl,'
9403       lt_prog_compiler_pic='-KPIC'
9404       lt_prog_compiler_static='-Bstatic'
9405       ;;
9406
9407     unicos*)
9408       lt_prog_compiler_wl='-Wl,'
9409       lt_prog_compiler_can_build_shared=no
9410       ;;
9411
9412     uts4*)
9413       lt_prog_compiler_pic='-pic'
9414       lt_prog_compiler_static='-Bstatic'
9415       ;;
9416
9417     *)
9418       lt_prog_compiler_can_build_shared=no
9419       ;;
9420     esac
9421   fi
9422
9423 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9424 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9425
9426 #
9427 # Check to make sure the PIC flag actually works.
9428 #
9429 if test -n "$lt_prog_compiler_pic"; then
9430
9431 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9432 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9433 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9434   echo $ECHO_N "(cached) $ECHO_C" >&6
9435 else
9436   lt_cv_prog_compiler_pic_works=no
9437   ac_outfile=conftest.$ac_objext
9438    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9439    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9440    # Insert the option either (1) after the last *FLAGS variable, or
9441    # (2) before a word containing "conftest.", or (3) at the end.
9442    # Note that $ac_compile itself does not contain backslashes and begins
9443    # with a dollar sign (not a hyphen), so the echo should work correctly.
9444    # The option is referenced via a variable to avoid confusing sed.
9445    lt_compile=`echo "$ac_compile" | $SED \
9446    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9447    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9448    -e 's:$: $lt_compiler_flag:'`
9449    (eval echo "\"\$as_me:9449: $lt_compile\"" >&5)
9450    (eval "$lt_compile" 2>conftest.err)
9451    ac_status=$?
9452    cat conftest.err >&5
9453    echo "$as_me:9453: \$? = $ac_status" >&5
9454    if (exit $ac_status) && test -s "$ac_outfile"; then
9455      # The compiler can only warn and ignore the option if not recognized
9456      # So say no if there are warnings other than the usual output.
9457      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9458      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9459      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9460        lt_cv_prog_compiler_pic_works=yes
9461      fi
9462    fi
9463    $rm conftest*
9464
9465 fi
9466 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9467 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9468
9469 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9470     case $lt_prog_compiler_pic in
9471      "" | " "*) ;;
9472      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9473      esac
9474 else
9475     lt_prog_compiler_pic=
9476      lt_prog_compiler_can_build_shared=no
9477 fi
9478
9479 fi
9480 case $host_os in
9481   # For platforms which do not support PIC, -DPIC is meaningless:
9482   *djgpp*)
9483     lt_prog_compiler_pic=
9484     ;;
9485   *)
9486     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9487     ;;
9488 esac
9489
9490 #
9491 # Check to make sure the static flag actually works.
9492 #
9493 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9494 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9495 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9496 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9497   echo $ECHO_N "(cached) $ECHO_C" >&6
9498 else
9499   lt_cv_prog_compiler_static_works=no
9500    save_LDFLAGS="$LDFLAGS"
9501    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9502    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9503    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9504      # The linker can only warn and ignore the option if not recognized
9505      # So say no if there are warnings
9506      if test -s conftest.err; then
9507        # Append any errors to the config.log.
9508        cat conftest.err 1>&5
9509        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9510        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9511        if diff conftest.exp conftest.er2 >/dev/null; then
9512          lt_cv_prog_compiler_static_works=yes
9513        fi
9514      else
9515        lt_cv_prog_compiler_static_works=yes
9516      fi
9517    fi
9518    $rm -r conftest*
9519    LDFLAGS="$save_LDFLAGS"
9520
9521 fi
9522 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9523 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9524
9525 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9526     :
9527 else
9528     lt_prog_compiler_static=
9529 fi
9530
9531
9532 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9533 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9534 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9535   echo $ECHO_N "(cached) $ECHO_C" >&6
9536 else
9537   lt_cv_prog_compiler_c_o=no
9538    $rm -r conftest 2>/dev/null
9539    mkdir conftest
9540    cd conftest
9541    mkdir out
9542    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9543
9544    lt_compiler_flag="-o out/conftest2.$ac_objext"
9545    # Insert the option either (1) after the last *FLAGS variable, or
9546    # (2) before a word containing "conftest.", or (3) at the end.
9547    # Note that $ac_compile itself does not contain backslashes and begins
9548    # with a dollar sign (not a hyphen), so the echo should work correctly.
9549    lt_compile=`echo "$ac_compile" | $SED \
9550    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9551    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9552    -e 's:$: $lt_compiler_flag:'`
9553    (eval echo "\"\$as_me:9553: $lt_compile\"" >&5)
9554    (eval "$lt_compile" 2>out/conftest.err)
9555    ac_status=$?
9556    cat out/conftest.err >&5
9557    echo "$as_me:9557: \$? = $ac_status" >&5
9558    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9559    then
9560      # The compiler can only warn and ignore the option if not recognized
9561      # So say no if there are warnings
9562      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9563      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9564      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9565        lt_cv_prog_compiler_c_o=yes
9566      fi
9567    fi
9568    chmod u+w . 2>&5
9569    $rm conftest*
9570    # SGI C++ compiler will create directory out/ii_files/ for
9571    # template instantiation
9572    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9573    $rm out/* && rmdir out
9574    cd ..
9575    rmdir conftest
9576    $rm conftest*
9577
9578 fi
9579 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9580 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9581
9582
9583 hard_links="nottested"
9584 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9585   # do not overwrite the value of need_locks provided by the user
9586   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9587 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9588   hard_links=yes
9589   $rm conftest*
9590   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9591   touch conftest.a
9592   ln conftest.a conftest.b 2>&5 || hard_links=no
9593   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9594   { echo "$as_me:$LINENO: result: $hard_links" >&5
9595 echo "${ECHO_T}$hard_links" >&6; }
9596   if test "$hard_links" = no; then
9597     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9598 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9599     need_locks=warn
9600   fi
9601 else
9602   need_locks=no
9603 fi
9604
9605 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9606 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9607
9608   runpath_var=
9609   allow_undefined_flag=
9610   enable_shared_with_static_runtimes=no
9611   archive_cmds=
9612   archive_expsym_cmds=
9613   old_archive_From_new_cmds=
9614   old_archive_from_expsyms_cmds=
9615   export_dynamic_flag_spec=
9616   whole_archive_flag_spec=
9617   thread_safe_flag_spec=
9618   hardcode_libdir_flag_spec=
9619   hardcode_libdir_flag_spec_ld=
9620   hardcode_libdir_separator=
9621   hardcode_direct=no
9622   hardcode_minus_L=no
9623   hardcode_shlibpath_var=unsupported
9624   link_all_deplibs=unknown
9625   hardcode_automatic=no
9626   module_cmds=
9627   module_expsym_cmds=
9628   always_export_symbols=no
9629   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9630   # include_expsyms should be a list of space-separated symbols to be *always*
9631   # included in the symbol list
9632   include_expsyms=
9633   # exclude_expsyms can be an extended regexp of symbols to exclude
9634   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9635   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9636   # as well as any symbol that contains `d'.
9637   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9638   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9639   # platforms (ab)use it in PIC code, but their linkers get confused if
9640   # the symbol is explicitly referenced.  Since portable code cannot
9641   # rely on this symbol name, it's probably fine to never include it in
9642   # preloaded symbol tables.
9643   # Exclude shared library initialization/finalization symbols.
9644   extract_expsyms_cmds=
9645   # Just being paranoid about ensuring that cc_basename is set.
9646   for cc_temp in $compiler""; do
9647   case $cc_temp in
9648     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9649     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9650     \-*) ;;
9651     *) break;;
9652   esac
9653 done
9654 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9655
9656   case $host_os in
9657   cygwin* | mingw* | pw32*)
9658     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9659     # When not using gcc, we currently assume that we are using
9660     # Microsoft Visual C++.
9661     if test "$GCC" != yes; then
9662       with_gnu_ld=no
9663     fi
9664     ;;
9665   interix*)
9666     # we just hope/assume this is gcc and not c89 (= MSVC++)
9667     with_gnu_ld=yes
9668     ;;
9669   openbsd*)
9670     with_gnu_ld=no
9671     ;;
9672   esac
9673
9674   ld_shlibs=yes
9675   if test "$with_gnu_ld" = yes; then
9676     # If archive_cmds runs LD, not CC, wlarc should be empty
9677     wlarc='${wl}'
9678
9679     # Set some defaults for GNU ld with shared library support. These
9680     # are reset later if shared libraries are not supported. Putting them
9681     # here allows them to be overridden if necessary.
9682     runpath_var=LD_RUN_PATH
9683     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9684     export_dynamic_flag_spec='${wl}--export-dynamic'
9685     # ancient GNU ld didn't support --whole-archive et. al.
9686     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9687         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9688       else
9689         whole_archive_flag_spec=
9690     fi
9691     supports_anon_versioning=no
9692     case `$LD -v 2>/dev/null` in
9693       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9694       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9695       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9696       *\ 2.11.*) ;; # other 2.11 versions
9697       *) supports_anon_versioning=yes ;;
9698     esac
9699
9700     # See if GNU ld supports shared libraries.
9701     case $host_os in
9702     aix[3-9]*)
9703       # On AIX/PPC, the GNU linker is very broken
9704       if test "$host_cpu" != ia64; then
9705         ld_shlibs=no
9706         cat <<EOF 1>&2
9707
9708 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9709 *** to be unable to reliably create shared libraries on AIX.
9710 *** Therefore, libtool is disabling shared libraries support.  If you
9711 *** really care for shared libraries, you may want to modify your PATH
9712 *** so that a non-GNU linker is found, and then restart.
9713
9714 EOF
9715       fi
9716       ;;
9717
9718     amigaos*)
9719       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)'
9720       hardcode_libdir_flag_spec='-L$libdir'
9721       hardcode_minus_L=yes
9722
9723       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9724       # that the semantics of dynamic libraries on AmigaOS, at least up
9725       # to version 4, is to share data among multiple programs linked
9726       # with the same dynamic library.  Since this doesn't match the
9727       # behavior of shared libraries on other platforms, we can't use
9728       # them.
9729       ld_shlibs=no
9730       ;;
9731
9732     beos*)
9733       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9734         allow_undefined_flag=unsupported
9735         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9736         # support --undefined.  This deserves some investigation.  FIXME
9737         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9738       else
9739         ld_shlibs=no
9740       fi
9741       ;;
9742
9743     cygwin* | mingw* | pw32*)
9744       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9745       # as there is no search path for DLLs.
9746       hardcode_libdir_flag_spec='-L$libdir'
9747       allow_undefined_flag=unsupported
9748       always_export_symbols=no
9749       enable_shared_with_static_runtimes=yes
9750       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9751
9752       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9753         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9754         # If the export-symbols file already is a .def file (1st line
9755         # is EXPORTS), use it as is; otherwise, prepend...
9756         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9757           cp $export_symbols $output_objdir/$soname.def;
9758         else
9759           echo EXPORTS > $output_objdir/$soname.def;
9760           cat $export_symbols >> $output_objdir/$soname.def;
9761         fi~
9762         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9763       else
9764         ld_shlibs=no
9765       fi
9766       ;;
9767
9768     interix[3-9]*)
9769       hardcode_direct=no
9770       hardcode_shlibpath_var=no
9771       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9772       export_dynamic_flag_spec='${wl}-E'
9773       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9774       # Instead, shared libraries are loaded at an image base (0x10000000 by
9775       # default) and relocated if they conflict, which is a slow very memory
9776       # consuming and fragmenting process.  To avoid this, we pick a random,
9777       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9778       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9779       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9780       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'
9781       ;;
9782
9783     gnu* | linux* | k*bsd*-gnu)
9784       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9785         tmp_addflag=
9786         case $cc_basename,$host_cpu in
9787         pgcc*)                          # Portland Group C compiler
9788           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'
9789           tmp_addflag=' $pic_flag'
9790           ;;
9791         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9792           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'
9793           tmp_addflag=' $pic_flag -Mnomain' ;;
9794         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9795           tmp_addflag=' -i_dynamic' ;;
9796         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9797           tmp_addflag=' -i_dynamic -nofor_main' ;;
9798         ifc* | ifort*)                  # Intel Fortran compiler
9799           tmp_addflag=' -nofor_main' ;;
9800         esac
9801         case `$CC -V 2>&1 | sed 5q` in
9802         *Sun\ C*)                       # Sun C 5.9
9803           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'
9804           tmp_sharedflag='-G' ;;
9805         *Sun\ F*)                       # Sun Fortran 8.3
9806           tmp_sharedflag='-G' ;;
9807         *)
9808           tmp_sharedflag='-shared' ;;
9809         esac
9810         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9811
9812         if test $supports_anon_versioning = yes; then
9813           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9814   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9815   $echo "local: *; };" >> $output_objdir/$libname.ver~
9816           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9817         fi
9818       else
9819         ld_shlibs=no
9820       fi
9821       ;;
9822
9823     netbsd*)
9824       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9825         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9826         wlarc=
9827       else
9828         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9829         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9830       fi
9831       ;;
9832
9833     solaris*)
9834       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9835         ld_shlibs=no
9836         cat <<EOF 1>&2
9837
9838 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9839 *** create shared libraries on Solaris systems.  Therefore, libtool
9840 *** is disabling shared libraries support.  We urge you to upgrade GNU
9841 *** binutils to release 2.9.1 or newer.  Another option is to modify
9842 *** your PATH or compiler configuration so that the native linker is
9843 *** used, and then restart.
9844
9845 EOF
9846       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9847         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9848         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9849       else
9850         ld_shlibs=no
9851       fi
9852       ;;
9853
9854     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9855       case `$LD -v 2>&1` in
9856         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9857         ld_shlibs=no
9858         cat <<_LT_EOF 1>&2
9859
9860 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9861 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9862 *** is disabling shared libraries support.  We urge you to upgrade GNU
9863 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9864 *** your PATH or compiler configuration so that the native linker is
9865 *** used, and then restart.
9866
9867 _LT_EOF
9868         ;;
9869         *)
9870           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9871             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9872             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9873             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9874           else
9875             ld_shlibs=no
9876           fi
9877         ;;
9878       esac
9879       ;;
9880
9881     sunos4*)
9882       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9883       wlarc=
9884       hardcode_direct=yes
9885       hardcode_shlibpath_var=no
9886       ;;
9887
9888     *)
9889       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9890         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9891         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9892       else
9893         ld_shlibs=no
9894       fi
9895       ;;
9896     esac
9897
9898     if test "$ld_shlibs" = no; then
9899       runpath_var=
9900       hardcode_libdir_flag_spec=
9901       export_dynamic_flag_spec=
9902       whole_archive_flag_spec=
9903     fi
9904   else
9905     # PORTME fill in a description of your system's linker (not GNU ld)
9906     case $host_os in
9907     aix3*)
9908       allow_undefined_flag=unsupported
9909       always_export_symbols=yes
9910       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'
9911       # Note: this linker hardcodes the directories in LIBPATH if there
9912       # are no directories specified by -L.
9913       hardcode_minus_L=yes
9914       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9915         # Neither direct hardcoding nor static linking is supported with a
9916         # broken collect2.
9917         hardcode_direct=unsupported
9918       fi
9919       ;;
9920
9921     aix[4-9]*)
9922       if test "$host_cpu" = ia64; then
9923         # On IA64, the linker does run time linking by default, so we don't
9924         # have to do anything special.
9925         aix_use_runtimelinking=no
9926         exp_sym_flag='-Bexport'
9927         no_entry_flag=""
9928       else
9929         # If we're using GNU nm, then we don't want the "-C" option.
9930         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9931         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9932           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'
9933         else
9934           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'
9935         fi
9936         aix_use_runtimelinking=no
9937
9938         # Test if we are trying to use run time linking or normal
9939         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9940         # need to do runtime linking.
9941         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9942           for ld_flag in $LDFLAGS; do
9943           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9944             aix_use_runtimelinking=yes
9945             break
9946           fi
9947           done
9948           ;;
9949         esac
9950
9951         exp_sym_flag='-bexport'
9952         no_entry_flag='-bnoentry'
9953       fi
9954
9955       # When large executables or shared objects are built, AIX ld can
9956       # have problems creating the table of contents.  If linking a library
9957       # or program results in "error TOC overflow" add -mminimal-toc to
9958       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9959       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9960
9961       archive_cmds=''
9962       hardcode_direct=yes
9963       hardcode_libdir_separator=':'
9964       link_all_deplibs=yes
9965
9966       if test "$GCC" = yes; then
9967         case $host_os in aix4.[012]|aix4.[012].*)
9968         # We only want to do this on AIX 4.2 and lower, the check
9969         # below for broken collect2 doesn't work under 4.3+
9970           collect2name=`${CC} -print-prog-name=collect2`
9971           if test -f "$collect2name" && \
9972            strings "$collect2name" | grep resolve_lib_name >/dev/null
9973           then
9974           # We have reworked collect2
9975           :
9976           else
9977           # We have old collect2
9978           hardcode_direct=unsupported
9979           # It fails to find uninstalled libraries when the uninstalled
9980           # path is not listed in the libpath.  Setting hardcode_minus_L
9981           # to unsupported forces relinking
9982           hardcode_minus_L=yes
9983           hardcode_libdir_flag_spec='-L$libdir'
9984           hardcode_libdir_separator=
9985           fi
9986           ;;
9987         esac
9988         shared_flag='-shared'
9989         if test "$aix_use_runtimelinking" = yes; then
9990           shared_flag="$shared_flag "'${wl}-G'
9991         fi
9992       else
9993         # not using gcc
9994         if test "$host_cpu" = ia64; then
9995         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9996         # chokes on -Wl,-G. The following line is correct:
9997           shared_flag='-G'
9998         else
9999           if test "$aix_use_runtimelinking" = yes; then
10000             shared_flag='${wl}-G'
10001           else
10002             shared_flag='${wl}-bM:SRE'
10003           fi
10004         fi
10005       fi
10006
10007       # It seems that -bexpall does not export symbols beginning with
10008       # underscore (_), so it is better to generate a list of symbols to export.
10009       always_export_symbols=yes
10010       if test "$aix_use_runtimelinking" = yes; then
10011         # Warning - without using the other runtime loading flags (-brtl),
10012         # -berok will link without error, but may produce a broken library.
10013         allow_undefined_flag='-berok'
10014        # Determine the default libpath from the value encoded in an empty executable.
10015        cat >conftest.$ac_ext <<_ACEOF
10016 /* confdefs.h.  */
10017 _ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h.  */
10021
10022 int
10023 main ()
10024 {
10025
10026   ;
10027   return 0;
10028 }
10029 _ACEOF
10030 rm -f conftest.$ac_objext conftest$ac_exeext
10031 if { (ac_try="$ac_link"
10032 case "(($ac_try" in
10033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10034   *) ac_try_echo=$ac_try;;
10035 esac
10036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10037   (eval "$ac_link") 2>conftest.er1
10038   ac_status=$?
10039   grep -v '^ *+' conftest.er1 >conftest.err
10040   rm -f conftest.er1
10041   cat conftest.err >&5
10042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043   (exit $ac_status); } && {
10044          test -z "$ac_c_werror_flag" ||
10045          test ! -s conftest.err
10046        } && test -s conftest$ac_exeext &&
10047        $as_test_x conftest$ac_exeext; then
10048
10049 lt_aix_libpath_sed='
10050     /Import File Strings/,/^$/ {
10051         /^0/ {
10052             s/^0  *\(.*\)$/\1/
10053             p
10054         }
10055     }'
10056 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10057 # Check for a 64-bit object if we didn't find anything.
10058 if test -z "$aix_libpath"; then
10059   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10060 fi
10061 else
10062   echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10064
10065
10066 fi
10067
10068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10069       conftest$ac_exeext conftest.$ac_ext
10070 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10071
10072        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10073         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"
10074        else
10075         if test "$host_cpu" = ia64; then
10076           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10077           allow_undefined_flag="-z nodefs"
10078           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"
10079         else
10080          # Determine the default libpath from the value encoded in an empty executable.
10081          cat >conftest.$ac_ext <<_ACEOF
10082 /* confdefs.h.  */
10083 _ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h.  */
10087
10088 int
10089 main ()
10090 {
10091
10092   ;
10093   return 0;
10094 }
10095 _ACEOF
10096 rm -f conftest.$ac_objext conftest$ac_exeext
10097 if { (ac_try="$ac_link"
10098 case "(($ac_try" in
10099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100   *) ac_try_echo=$ac_try;;
10101 esac
10102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103   (eval "$ac_link") 2>conftest.er1
10104   ac_status=$?
10105   grep -v '^ *+' conftest.er1 >conftest.err
10106   rm -f conftest.er1
10107   cat conftest.err >&5
10108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109   (exit $ac_status); } && {
10110          test -z "$ac_c_werror_flag" ||
10111          test ! -s conftest.err
10112        } && test -s conftest$ac_exeext &&
10113        $as_test_x conftest$ac_exeext; then
10114
10115 lt_aix_libpath_sed='
10116     /Import File Strings/,/^$/ {
10117         /^0/ {
10118             s/^0  *\(.*\)$/\1/
10119             p
10120         }
10121     }'
10122 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10123 # Check for a 64-bit object if we didn't find anything.
10124 if test -z "$aix_libpath"; then
10125   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10126 fi
10127 else
10128   echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10130
10131
10132 fi
10133
10134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10135       conftest$ac_exeext conftest.$ac_ext
10136 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10137
10138          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10139           # Warning - without using the other run time loading flags,
10140           # -berok will link without error, but may produce a broken library.
10141           no_undefined_flag=' ${wl}-bernotok'
10142           allow_undefined_flag=' ${wl}-berok'
10143           # Exported symbols can be pulled into shared objects from archives
10144           whole_archive_flag_spec='$convenience'
10145           archive_cmds_need_lc=yes
10146           # This is similar to how AIX traditionally builds its shared libraries.
10147           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'
10148         fi
10149       fi
10150       ;;
10151
10152     amigaos*)
10153       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)'
10154       hardcode_libdir_flag_spec='-L$libdir'
10155       hardcode_minus_L=yes
10156       # see comment about different semantics on the GNU ld section
10157       ld_shlibs=no
10158       ;;
10159
10160     bsdi[45]*)
10161       export_dynamic_flag_spec=-rdynamic
10162       ;;
10163
10164     cygwin* | mingw* | pw32*)
10165       # When not using gcc, we currently assume that we are using
10166       # Microsoft Visual C++.
10167       # hardcode_libdir_flag_spec is actually meaningless, as there is
10168       # no search path for DLLs.
10169       hardcode_libdir_flag_spec=' '
10170       allow_undefined_flag=unsupported
10171       # Tell ltmain to make .lib files, not .a files.
10172       libext=lib
10173       # Tell ltmain to make .dll files, not .so files.
10174       shrext_cmds=".dll"
10175       # FIXME: Setting linknames here is a bad hack.
10176       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10177       # The linker will automatically build a .lib file if we build a DLL.
10178       old_archive_From_new_cmds='true'
10179       # FIXME: Should let the user specify the lib program.
10180       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10181       fix_srcfile_path='`cygpath -w "$srcfile"`'
10182       enable_shared_with_static_runtimes=yes
10183       ;;
10184
10185     darwin* | rhapsody*)
10186       case $host_os in
10187         rhapsody* | darwin1.[012])
10188          allow_undefined_flag='${wl}-undefined ${wl}suppress'
10189          ;;
10190        *) # Darwin 1.3 on
10191          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10192            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10193          else
10194            case ${MACOSX_DEPLOYMENT_TARGET} in
10195              10.[012])
10196                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10197                ;;
10198              10.*)
10199                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10200                ;;
10201            esac
10202          fi
10203          ;;
10204       esac
10205       archive_cmds_need_lc=no
10206       hardcode_direct=no
10207       hardcode_automatic=yes
10208       hardcode_shlibpath_var=unsupported
10209       whole_archive_flag_spec=''
10210       link_all_deplibs=yes
10211     if test "$GCC" = yes ; then
10212         output_verbose_link_cmd='echo'
10213         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10214         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10215         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}"
10216         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}"
10217     else
10218       case $cc_basename in
10219         xlc*)
10220          output_verbose_link_cmd='echo'
10221          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10222          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10223           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10224          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}'
10225           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}'
10226           ;;
10227        *)
10228          ld_shlibs=no
10229           ;;
10230       esac
10231     fi
10232       ;;
10233
10234     dgux*)
10235       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10236       hardcode_libdir_flag_spec='-L$libdir'
10237       hardcode_shlibpath_var=no
10238       ;;
10239
10240     freebsd1*)
10241       ld_shlibs=no
10242       ;;
10243
10244     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10245     # support.  Future versions do this automatically, but an explicit c++rt0.o
10246     # does not break anything, and helps significantly (at the cost of a little
10247     # extra space).
10248     freebsd2.2*)
10249       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10250       hardcode_libdir_flag_spec='-R$libdir'
10251       hardcode_direct=yes
10252       hardcode_shlibpath_var=no
10253       ;;
10254
10255     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10256     freebsd2*)
10257       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10258       hardcode_direct=yes
10259       hardcode_minus_L=yes
10260       hardcode_shlibpath_var=no
10261       ;;
10262
10263     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10264     freebsd* | dragonfly*)
10265       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10266       hardcode_libdir_flag_spec='-R$libdir'
10267       hardcode_direct=yes
10268       hardcode_shlibpath_var=no
10269       ;;
10270
10271     hpux9*)
10272       if test "$GCC" = yes; then
10273         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'
10274       else
10275         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'
10276       fi
10277       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10278       hardcode_libdir_separator=:
10279       hardcode_direct=yes
10280
10281       # hardcode_minus_L: Not really in the search PATH,
10282       # but as the default location of the library.
10283       hardcode_minus_L=yes
10284       export_dynamic_flag_spec='${wl}-E'
10285       ;;
10286
10287     hpux10*)
10288       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10289         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10290       else
10291         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10292       fi
10293       if test "$with_gnu_ld" = no; then
10294         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10295         hardcode_libdir_separator=:
10296
10297         hardcode_direct=yes
10298         export_dynamic_flag_spec='${wl}-E'
10299
10300         # hardcode_minus_L: Not really in the search PATH,
10301         # but as the default location of the library.
10302         hardcode_minus_L=yes
10303       fi
10304       ;;
10305
10306     hpux11*)
10307       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10308         case $host_cpu in
10309         hppa*64*)
10310           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10311           ;;
10312         ia64*)
10313           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10314           ;;
10315         *)
10316           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10317           ;;
10318         esac
10319       else
10320         case $host_cpu in
10321         hppa*64*)
10322           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10323           ;;
10324         ia64*)
10325           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10326           ;;
10327         *)
10328           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10329           ;;
10330         esac
10331       fi
10332       if test "$with_gnu_ld" = no; then
10333         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10334         hardcode_libdir_separator=:
10335
10336         case $host_cpu in
10337         hppa*64*|ia64*)
10338           hardcode_libdir_flag_spec_ld='+b $libdir'
10339           hardcode_direct=no
10340           hardcode_shlibpath_var=no
10341           ;;
10342         *)
10343           hardcode_direct=yes
10344           export_dynamic_flag_spec='${wl}-E'
10345
10346           # hardcode_minus_L: Not really in the search PATH,
10347           # but as the default location of the library.
10348           hardcode_minus_L=yes
10349           ;;
10350         esac
10351       fi
10352       ;;
10353
10354     irix5* | irix6* | nonstopux*)
10355       if test "$GCC" = yes; then
10356         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'
10357       else
10358         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'
10359         hardcode_libdir_flag_spec_ld='-rpath $libdir'
10360       fi
10361       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10362       hardcode_libdir_separator=:
10363       link_all_deplibs=yes
10364       ;;
10365
10366     netbsd*)
10367       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10368         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10369       else
10370         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10371       fi
10372       hardcode_libdir_flag_spec='-R$libdir'
10373       hardcode_direct=yes
10374       hardcode_shlibpath_var=no
10375       ;;
10376
10377     newsos6)
10378       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10379       hardcode_direct=yes
10380       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10381       hardcode_libdir_separator=:
10382       hardcode_shlibpath_var=no
10383       ;;
10384
10385     openbsd*)
10386       if test -f /usr/libexec/ld.so; then
10387         hardcode_direct=yes
10388         hardcode_shlibpath_var=no
10389         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10390           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10391           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10392           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10393           export_dynamic_flag_spec='${wl}-E'
10394         else
10395           case $host_os in
10396            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10397              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10398              hardcode_libdir_flag_spec='-R$libdir'
10399              ;;
10400            *)
10401              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10402              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10403              ;;
10404           esac
10405         fi
10406       else
10407         ld_shlibs=no
10408       fi
10409       ;;
10410
10411     os2*)
10412       hardcode_libdir_flag_spec='-L$libdir'
10413       hardcode_minus_L=yes
10414       allow_undefined_flag=unsupported
10415       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'
10416       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10417       ;;
10418
10419     osf3*)
10420       if test "$GCC" = yes; then
10421         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10422         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'
10423       else
10424         allow_undefined_flag=' -expect_unresolved \*'
10425         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'
10426       fi
10427       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10428       hardcode_libdir_separator=:
10429       ;;
10430
10431     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10432       if test "$GCC" = yes; then
10433         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10434         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'
10435         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10436       else
10437         allow_undefined_flag=' -expect_unresolved \*'
10438         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'
10439         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10440         $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'
10441
10442         # Both c and cxx compiler support -rpath directly
10443         hardcode_libdir_flag_spec='-rpath $libdir'
10444       fi
10445       hardcode_libdir_separator=:
10446       ;;
10447
10448     solaris*)
10449       no_undefined_flag=' -z text'
10450       if test "$GCC" = yes; then
10451         wlarc='${wl}'
10452         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10453         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10454           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10455       else
10456         wlarc=''
10457         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10458         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10459         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10460       fi
10461       hardcode_libdir_flag_spec='-R$libdir'
10462       hardcode_shlibpath_var=no
10463       case $host_os in
10464       solaris2.[0-5] | solaris2.[0-5].*) ;;
10465       *)
10466         # The compiler driver will combine and reorder linker options,
10467         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10468         # but is careful enough not to reorder.
10469         # Supported since Solaris 2.6 (maybe 2.5.1?)
10470         if test "$GCC" = yes; then
10471           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10472         else
10473           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10474         fi
10475         ;;
10476       esac
10477       link_all_deplibs=yes
10478       ;;
10479
10480     sunos4*)
10481       if test "x$host_vendor" = xsequent; then
10482         # Use $CC to link under sequent, because it throws in some extra .o
10483         # files that make .init and .fini sections work.
10484         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10485       else
10486         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10487       fi
10488       hardcode_libdir_flag_spec='-L$libdir'
10489       hardcode_direct=yes
10490       hardcode_minus_L=yes
10491       hardcode_shlibpath_var=no
10492       ;;
10493
10494     sysv4)
10495       case $host_vendor in
10496         sni)
10497           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10498           hardcode_direct=yes # is this really true???
10499         ;;
10500         siemens)
10501           ## LD is ld it makes a PLAMLIB
10502           ## CC just makes a GrossModule.
10503           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10504           reload_cmds='$CC -r -o $output$reload_objs'
10505           hardcode_direct=no
10506         ;;
10507         motorola)
10508           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10509           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10510         ;;
10511       esac
10512       runpath_var='LD_RUN_PATH'
10513       hardcode_shlibpath_var=no
10514       ;;
10515
10516     sysv4.3*)
10517       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10518       hardcode_shlibpath_var=no
10519       export_dynamic_flag_spec='-Bexport'
10520       ;;
10521
10522     sysv4*MP*)
10523       if test -d /usr/nec; then
10524         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10525         hardcode_shlibpath_var=no
10526         runpath_var=LD_RUN_PATH
10527         hardcode_runpath_var=yes
10528         ld_shlibs=yes
10529       fi
10530       ;;
10531
10532     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10533       no_undefined_flag='${wl}-z,text'
10534       archive_cmds_need_lc=no
10535       hardcode_shlibpath_var=no
10536       runpath_var='LD_RUN_PATH'
10537
10538       if test "$GCC" = yes; then
10539         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10540         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10541       else
10542         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10543         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10544       fi
10545       ;;
10546
10547     sysv5* | sco3.2v5* | sco5v6*)
10548       # Note: We can NOT use -z defs as we might desire, because we do not
10549       # link with -lc, and that would cause any symbols used from libc to
10550       # always be unresolved, which means just about no library would
10551       # ever link correctly.  If we're not using GNU ld we use -z text
10552       # though, which does catch some bad symbols but isn't as heavy-handed
10553       # as -z defs.
10554       no_undefined_flag='${wl}-z,text'
10555       allow_undefined_flag='${wl}-z,nodefs'
10556       archive_cmds_need_lc=no
10557       hardcode_shlibpath_var=no
10558       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10559       hardcode_libdir_separator=':'
10560       link_all_deplibs=yes
10561       export_dynamic_flag_spec='${wl}-Bexport'
10562       runpath_var='LD_RUN_PATH'
10563
10564       if test "$GCC" = yes; then
10565         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10566         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10567       else
10568         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10569         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10570       fi
10571       ;;
10572
10573     uts4*)
10574       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10575       hardcode_libdir_flag_spec='-L$libdir'
10576       hardcode_shlibpath_var=no
10577       ;;
10578
10579     *)
10580       ld_shlibs=no
10581       ;;
10582     esac
10583   fi
10584
10585 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10586 echo "${ECHO_T}$ld_shlibs" >&6; }
10587 test "$ld_shlibs" = no && can_build_shared=no
10588
10589 #
10590 # Do we need to explicitly link libc?
10591 #
10592 case "x$archive_cmds_need_lc" in
10593 x|xyes)
10594   # Assume -lc should be added
10595   archive_cmds_need_lc=yes
10596
10597   if test "$enable_shared" = yes && test "$GCC" = yes; then
10598     case $archive_cmds in
10599     *'~'*)
10600       # FIXME: we may have to deal with multi-command sequences.
10601       ;;
10602     '$CC '*)
10603       # Test whether the compiler implicitly links with -lc since on some
10604       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10605       # to ld, don't add -lc before -lgcc.
10606       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10607 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10608       $rm conftest*
10609       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10610
10611       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10612   (eval $ac_compile) 2>&5
10613   ac_status=$?
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); } 2>conftest.err; then
10616         soname=conftest
10617         lib=conftest
10618         libobjs=conftest.$ac_objext
10619         deplibs=
10620         wl=$lt_prog_compiler_wl
10621         pic_flag=$lt_prog_compiler_pic
10622         compiler_flags=-v
10623         linker_flags=-v
10624         verstring=
10625         output_objdir=.
10626         libname=conftest
10627         lt_save_allow_undefined_flag=$allow_undefined_flag
10628         allow_undefined_flag=
10629         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10630   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10631   ac_status=$?
10632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   (exit $ac_status); }
10634         then
10635           archive_cmds_need_lc=no
10636         else
10637           archive_cmds_need_lc=yes
10638         fi
10639         allow_undefined_flag=$lt_save_allow_undefined_flag
10640       else
10641         cat conftest.err 1>&5
10642       fi
10643       $rm conftest*
10644       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10645 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10646       ;;
10647     esac
10648   fi
10649   ;;
10650 esac
10651
10652 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10653 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10654 library_names_spec=
10655 libname_spec='lib$name'
10656 soname_spec=
10657 shrext_cmds=".so"
10658 postinstall_cmds=
10659 postuninstall_cmds=
10660 finish_cmds=
10661 finish_eval=
10662 shlibpath_var=
10663 shlibpath_overrides_runpath=unknown
10664 version_type=none
10665 dynamic_linker="$host_os ld.so"
10666 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10667
10668 if test "$GCC" = yes; then
10669   case $host_os in
10670     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10671     *) lt_awk_arg="/^libraries:/" ;;
10672   esac
10673   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10674   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10675     # if the path contains ";" then we assume it to be the separator
10676     # otherwise default to the standard path separator (i.e. ":") - it is
10677     # assumed that no part of a normal pathname contains ";" but that should
10678     # okay in the real world where ";" in dirpaths is itself problematic.
10679     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10680   else
10681     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10682   fi
10683   # Ok, now we have the path, separated by spaces, we can step through it
10684   # and add multilib dir if necessary.
10685   lt_tmp_lt_search_path_spec=
10686   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10687   for lt_sys_path in $lt_search_path_spec; do
10688     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10689       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10690     else
10691       test -d "$lt_sys_path" && \
10692         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10693     fi
10694   done
10695   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10696 BEGIN {RS=" "; FS="/|\n";} {
10697   lt_foo="";
10698   lt_count=0;
10699   for (lt_i = NF; lt_i > 0; lt_i--) {
10700     if ($lt_i != "" && $lt_i != ".") {
10701       if ($lt_i == "..") {
10702         lt_count++;
10703       } else {
10704         if (lt_count == 0) {
10705           lt_foo="/" $lt_i lt_foo;
10706         } else {
10707           lt_count--;
10708         }
10709       }
10710     }
10711   }
10712   if (lt_foo != "") { lt_freq[lt_foo]++; }
10713   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10714 }'`
10715   sys_lib_search_path_spec=`echo $lt_search_path_spec`
10716 else
10717   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10718 fi
10719 need_lib_prefix=unknown
10720 hardcode_into_libs=no
10721
10722 # when you set need_version to no, make sure it does not cause -set_version
10723 # flags to be left without arguments
10724 need_version=unknown
10725
10726 case $host_os in
10727 aix3*)
10728   version_type=linux
10729   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10730   shlibpath_var=LIBPATH
10731
10732   # AIX 3 has no versioning support, so we append a major version to the name.
10733   soname_spec='${libname}${release}${shared_ext}$major'
10734   ;;
10735
10736 aix[4-9]*)
10737   version_type=linux
10738   need_lib_prefix=no
10739   need_version=no
10740   hardcode_into_libs=yes
10741   if test "$host_cpu" = ia64; then
10742     # AIX 5 supports IA64
10743     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10744     shlibpath_var=LD_LIBRARY_PATH
10745   else
10746     # With GCC up to 2.95.x, collect2 would create an import file
10747     # for dependence libraries.  The import file would start with
10748     # the line `#! .'.  This would cause the generated library to
10749     # depend on `.', always an invalid library.  This was fixed in
10750     # development snapshots of GCC prior to 3.0.
10751     case $host_os in
10752       aix4 | aix4.[01] | aix4.[01].*)
10753       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10754            echo ' yes '
10755            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10756         :
10757       else
10758         can_build_shared=no
10759       fi
10760       ;;
10761     esac
10762     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10763     # soname into executable. Probably we can add versioning support to
10764     # collect2, so additional links can be useful in future.
10765     if test "$aix_use_runtimelinking" = yes; then
10766       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10767       # instead of lib<name>.a to let people know that these are not
10768       # typical AIX shared libraries.
10769       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10770     else
10771       # We preserve .a as extension for shared libraries through AIX4.2
10772       # and later when we are not doing run time linking.
10773       library_names_spec='${libname}${release}.a $libname.a'
10774       soname_spec='${libname}${release}${shared_ext}$major'
10775     fi
10776     shlibpath_var=LIBPATH
10777   fi
10778   ;;
10779
10780 amigaos*)
10781   library_names_spec='$libname.ixlibrary $libname.a'
10782   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10783   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'
10784   ;;
10785
10786 beos*)
10787   library_names_spec='${libname}${shared_ext}'
10788   dynamic_linker="$host_os ld.so"
10789   shlibpath_var=LIBRARY_PATH
10790   ;;
10791
10792 bsdi[45]*)
10793   version_type=linux
10794   need_version=no
10795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10796   soname_spec='${libname}${release}${shared_ext}$major'
10797   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10798   shlibpath_var=LD_LIBRARY_PATH
10799   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10800   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10801   # the default ld.so.conf also contains /usr/contrib/lib and
10802   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10803   # libtool to hard-code these into programs
10804   ;;
10805
10806 cygwin* | mingw* | pw32*)
10807   version_type=windows
10808   shrext_cmds=".dll"
10809   need_version=no
10810   need_lib_prefix=no
10811
10812   case $GCC,$host_os in
10813   yes,cygwin* | yes,mingw* | yes,pw32*)
10814     library_names_spec='$libname.dll.a'
10815     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10816     postinstall_cmds='base_file=`basename \${file}`~
10817       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10818       dldir=$destdir/`dirname \$dlpath`~
10819       test -d \$dldir || mkdir -p \$dldir~
10820       $install_prog $dir/$dlname \$dldir/$dlname~
10821       chmod a+x \$dldir/$dlname'
10822     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10823       dlpath=$dir/\$dldll~
10824        $rm \$dlpath'
10825     shlibpath_overrides_runpath=yes
10826
10827     case $host_os in
10828     cygwin*)
10829       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10830       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10831       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10832       ;;
10833     mingw*)
10834       # MinGW DLLs use traditional 'lib' prefix
10835       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10836       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10837       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10838         # It is most probably a Windows format PATH printed by
10839         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10840         # path with ; separators, and with drive letters. We can handle the
10841         # drive letters (cygwin fileutils understands them), so leave them,
10842         # especially as we might pass files found there to a mingw objdump,
10843         # which wouldn't understand a cygwinified path. Ahh.
10844         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10845       else
10846         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10847       fi
10848       ;;
10849     pw32*)
10850       # pw32 DLLs use 'pw' prefix rather than 'lib'
10851       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10852       ;;
10853     esac
10854     ;;
10855
10856   *)
10857     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10858     ;;
10859   esac
10860   dynamic_linker='Win32 ld.exe'
10861   # FIXME: first we should search . and the directory the executable is in
10862   shlibpath_var=PATH
10863   ;;
10864
10865 darwin* | rhapsody*)
10866   dynamic_linker="$host_os dyld"
10867   version_type=darwin
10868   need_lib_prefix=no
10869   need_version=no
10870   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10871   soname_spec='${libname}${release}${major}$shared_ext'
10872   shlibpath_overrides_runpath=yes
10873   shlibpath_var=DYLD_LIBRARY_PATH
10874   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10875
10876   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10877   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10878   ;;
10879
10880 dgux*)
10881   version_type=linux
10882   need_lib_prefix=no
10883   need_version=no
10884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10885   soname_spec='${libname}${release}${shared_ext}$major'
10886   shlibpath_var=LD_LIBRARY_PATH
10887   ;;
10888
10889 freebsd1*)
10890   dynamic_linker=no
10891   ;;
10892
10893 freebsd* | dragonfly*)
10894   # DragonFly does not have aout.  When/if they implement a new
10895   # versioning mechanism, adjust this.
10896   if test -x /usr/bin/objformat; then
10897     objformat=`/usr/bin/objformat`
10898   else
10899     case $host_os in
10900     freebsd[123]*) objformat=aout ;;
10901     *) objformat=elf ;;
10902     esac
10903   fi
10904   version_type=freebsd-$objformat
10905   case $version_type in
10906     freebsd-elf*)
10907       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10908       need_version=no
10909       need_lib_prefix=no
10910       ;;
10911     freebsd-*)
10912       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10913       need_version=yes
10914       ;;
10915   esac
10916   shlibpath_var=LD_LIBRARY_PATH
10917   case $host_os in
10918   freebsd2*)
10919     shlibpath_overrides_runpath=yes
10920     ;;
10921   freebsd3.[01]* | freebsdelf3.[01]*)
10922     shlibpath_overrides_runpath=yes
10923     hardcode_into_libs=yes
10924     ;;
10925   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10926   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10927     shlibpath_overrides_runpath=no
10928     hardcode_into_libs=yes
10929     ;;
10930   *) # from 4.6 on, and DragonFly
10931     shlibpath_overrides_runpath=yes
10932     hardcode_into_libs=yes
10933     ;;
10934   esac
10935   ;;
10936
10937 gnu*)
10938   version_type=linux
10939   need_lib_prefix=no
10940   need_version=no
10941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10942   soname_spec='${libname}${release}${shared_ext}$major'
10943   shlibpath_var=LD_LIBRARY_PATH
10944   hardcode_into_libs=yes
10945   ;;
10946
10947 hpux9* | hpux10* | hpux11*)
10948   # Give a soname corresponding to the major version so that dld.sl refuses to
10949   # link against other versions.
10950   version_type=sunos
10951   need_lib_prefix=no
10952   need_version=no
10953   case $host_cpu in
10954   ia64*)
10955     shrext_cmds='.so'
10956     hardcode_into_libs=yes
10957     dynamic_linker="$host_os dld.so"
10958     shlibpath_var=LD_LIBRARY_PATH
10959     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10960     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10961     soname_spec='${libname}${release}${shared_ext}$major'
10962     if test "X$HPUX_IA64_MODE" = X32; then
10963       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10964     else
10965       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10966     fi
10967     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10968     ;;
10969    hppa*64*)
10970      shrext_cmds='.sl'
10971      hardcode_into_libs=yes
10972      dynamic_linker="$host_os dld.sl"
10973      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10974      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10975      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10976      soname_spec='${libname}${release}${shared_ext}$major'
10977      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10978      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10979      ;;
10980    *)
10981     shrext_cmds='.sl'
10982     dynamic_linker="$host_os dld.sl"
10983     shlibpath_var=SHLIB_PATH
10984     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10985     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986     soname_spec='${libname}${release}${shared_ext}$major'
10987     ;;
10988   esac
10989   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10990   postinstall_cmds='chmod 555 $lib'
10991   ;;
10992
10993 interix[3-9]*)
10994   version_type=linux
10995   need_lib_prefix=no
10996   need_version=no
10997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10998   soname_spec='${libname}${release}${shared_ext}$major'
10999   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11000   shlibpath_var=LD_LIBRARY_PATH
11001   shlibpath_overrides_runpath=no
11002   hardcode_into_libs=yes
11003   ;;
11004
11005 irix5* | irix6* | nonstopux*)
11006   case $host_os in
11007     nonstopux*) version_type=nonstopux ;;
11008     *)
11009         if test "$lt_cv_prog_gnu_ld" = yes; then
11010                 version_type=linux
11011         else
11012                 version_type=irix
11013         fi ;;
11014   esac
11015   need_lib_prefix=no
11016   need_version=no
11017   soname_spec='${libname}${release}${shared_ext}$major'
11018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11019   case $host_os in
11020   irix5* | nonstopux*)
11021     libsuff= shlibsuff=
11022     ;;
11023   *)
11024     case $LD in # libtool.m4 will add one of these switches to LD
11025     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11026       libsuff= shlibsuff= libmagic=32-bit;;
11027     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11028       libsuff=32 shlibsuff=N32 libmagic=N32;;
11029     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11030       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11031     *) libsuff= shlibsuff= libmagic=never-match;;
11032     esac
11033     ;;
11034   esac
11035   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11036   shlibpath_overrides_runpath=no
11037   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11038   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11039   hardcode_into_libs=yes
11040   ;;
11041
11042 # No shared lib support for Linux oldld, aout, or coff.
11043 linux*oldld* | linux*aout* | linux*coff*)
11044   dynamic_linker=no
11045   ;;
11046
11047 # This must be Linux ELF.
11048 linux* | k*bsd*-gnu)
11049   version_type=linux
11050   need_lib_prefix=no
11051   need_version=no
11052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11053   soname_spec='${libname}${release}${shared_ext}$major'
11054   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11055   shlibpath_var=LD_LIBRARY_PATH
11056   shlibpath_overrides_runpath=no
11057   # This implies no fast_install, which is unacceptable.
11058   # Some rework will be needed to allow for fast_install
11059   # before this can be enabled.
11060   hardcode_into_libs=yes
11061
11062   # Append ld.so.conf contents to the search path
11063   if test -f /etc/ld.so.conf; then
11064     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' ' '`
11065     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11066   fi
11067
11068   # We used to test for /lib/ld.so.1 and disable shared libraries on
11069   # powerpc, because MkLinux only supported shared libraries with the
11070   # GNU dynamic linker.  Since this was broken with cross compilers,
11071   # most powerpc-linux boxes support dynamic linking these days and
11072   # people can always --disable-shared, the test was removed, and we
11073   # assume the GNU/Linux dynamic linker is in use.
11074   dynamic_linker='GNU/Linux ld.so'
11075   ;;
11076
11077 netbsd*)
11078   version_type=sunos
11079   need_lib_prefix=no
11080   need_version=no
11081   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11082     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11083     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11084     dynamic_linker='NetBSD (a.out) ld.so'
11085   else
11086     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11087     soname_spec='${libname}${release}${shared_ext}$major'
11088     dynamic_linker='NetBSD ld.elf_so'
11089   fi
11090   shlibpath_var=LD_LIBRARY_PATH
11091   shlibpath_overrides_runpath=yes
11092   hardcode_into_libs=yes
11093   ;;
11094
11095 newsos6)
11096   version_type=linux
11097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098   shlibpath_var=LD_LIBRARY_PATH
11099   shlibpath_overrides_runpath=yes
11100   ;;
11101
11102 nto-qnx*)
11103   version_type=linux
11104   need_lib_prefix=no
11105   need_version=no
11106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107   soname_spec='${libname}${release}${shared_ext}$major'
11108   shlibpath_var=LD_LIBRARY_PATH
11109   shlibpath_overrides_runpath=yes
11110   ;;
11111
11112 openbsd*)
11113   version_type=sunos
11114   sys_lib_dlsearch_path_spec="/usr/lib"
11115   need_lib_prefix=no
11116   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11117   case $host_os in
11118     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11119     *)                         need_version=no  ;;
11120   esac
11121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11122   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11123   shlibpath_var=LD_LIBRARY_PATH
11124   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11125     case $host_os in
11126       openbsd2.[89] | openbsd2.[89].*)
11127         shlibpath_overrides_runpath=no
11128         ;;
11129       *)
11130         shlibpath_overrides_runpath=yes
11131         ;;
11132       esac
11133   else
11134     shlibpath_overrides_runpath=yes
11135   fi
11136   ;;
11137
11138 os2*)
11139   libname_spec='$name'
11140   shrext_cmds=".dll"
11141   need_lib_prefix=no
11142   library_names_spec='$libname${shared_ext} $libname.a'
11143   dynamic_linker='OS/2 ld.exe'
11144   shlibpath_var=LIBPATH
11145   ;;
11146
11147 osf3* | osf4* | osf5*)
11148   version_type=osf
11149   need_lib_prefix=no
11150   need_version=no
11151   soname_spec='${libname}${release}${shared_ext}$major'
11152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153   shlibpath_var=LD_LIBRARY_PATH
11154   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11155   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11156   ;;
11157
11158 rdos*)
11159   dynamic_linker=no
11160   ;;
11161
11162 solaris*)
11163   version_type=linux
11164   need_lib_prefix=no
11165   need_version=no
11166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11167   soname_spec='${libname}${release}${shared_ext}$major'
11168   shlibpath_var=LD_LIBRARY_PATH
11169   shlibpath_overrides_runpath=yes
11170   hardcode_into_libs=yes
11171   # ldd complains unless libraries are executable
11172   postinstall_cmds='chmod +x $lib'
11173   ;;
11174
11175 sunos4*)
11176   version_type=sunos
11177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11178   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11179   shlibpath_var=LD_LIBRARY_PATH
11180   shlibpath_overrides_runpath=yes
11181   if test "$with_gnu_ld" = yes; then
11182     need_lib_prefix=no
11183   fi
11184   need_version=yes
11185   ;;
11186
11187 sysv4 | sysv4.3*)
11188   version_type=linux
11189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11190   soname_spec='${libname}${release}${shared_ext}$major'
11191   shlibpath_var=LD_LIBRARY_PATH
11192   case $host_vendor in
11193     sni)
11194       shlibpath_overrides_runpath=no
11195       need_lib_prefix=no
11196       export_dynamic_flag_spec='${wl}-Blargedynsym'
11197       runpath_var=LD_RUN_PATH
11198       ;;
11199     siemens)
11200       need_lib_prefix=no
11201       ;;
11202     motorola)
11203       need_lib_prefix=no
11204       need_version=no
11205       shlibpath_overrides_runpath=no
11206       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11207       ;;
11208   esac
11209   ;;
11210
11211 sysv4*MP*)
11212   if test -d /usr/nec ;then
11213     version_type=linux
11214     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11215     soname_spec='$libname${shared_ext}.$major'
11216     shlibpath_var=LD_LIBRARY_PATH
11217   fi
11218   ;;
11219
11220 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11221   version_type=freebsd-elf
11222   need_lib_prefix=no
11223   need_version=no
11224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11225   soname_spec='${libname}${release}${shared_ext}$major'
11226   shlibpath_var=LD_LIBRARY_PATH
11227   hardcode_into_libs=yes
11228   if test "$with_gnu_ld" = yes; then
11229     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11230     shlibpath_overrides_runpath=no
11231   else
11232     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11233     shlibpath_overrides_runpath=yes
11234     case $host_os in
11235       sco3.2v5*)
11236         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11237         ;;
11238     esac
11239   fi
11240   sys_lib_dlsearch_path_spec='/usr/lib'
11241   ;;
11242
11243 uts4*)
11244   version_type=linux
11245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11246   soname_spec='${libname}${release}${shared_ext}$major'
11247   shlibpath_var=LD_LIBRARY_PATH
11248   ;;
11249
11250 *)
11251   dynamic_linker=no
11252   ;;
11253 esac
11254 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11255 echo "${ECHO_T}$dynamic_linker" >&6; }
11256 test "$dynamic_linker" = no && can_build_shared=no
11257
11258 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11259   echo $ECHO_N "(cached) $ECHO_C" >&6
11260 else
11261   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
11262 fi
11263
11264 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11265 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11266   echo $ECHO_N "(cached) $ECHO_C" >&6
11267 else
11268   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
11269 fi
11270
11271 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11272
11273 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11274 if test "$GCC" = yes; then
11275   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11276 fi
11277
11278 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11279 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11280 hardcode_action=
11281 if test -n "$hardcode_libdir_flag_spec" || \
11282    test -n "$runpath_var" || \
11283    test "X$hardcode_automatic" = "Xyes" ; then
11284
11285   # We can hardcode non-existant directories.
11286   if test "$hardcode_direct" != no &&
11287      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11288      # have to relink, otherwise we might link with an installed library
11289      # when we should be linking with a yet-to-be-installed one
11290      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11291      test "$hardcode_minus_L" != no; then
11292     # Linking always hardcodes the temporary library directory.
11293     hardcode_action=relink
11294   else
11295     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11296     hardcode_action=immediate
11297   fi
11298 else
11299   # We cannot hardcode anything, or else we can only hardcode existing
11300   # directories.
11301   hardcode_action=unsupported
11302 fi
11303 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
11304 echo "${ECHO_T}$hardcode_action" >&6; }
11305
11306 if test "$hardcode_action" = relink; then
11307   # Fast installation is not supported
11308   enable_fast_install=no
11309 elif test "$shlibpath_overrides_runpath" = yes ||
11310      test "$enable_shared" = no; then
11311   # Fast installation is not necessary
11312   enable_fast_install=needless
11313 fi
11314
11315 striplib=
11316 old_striplib=
11317 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11318 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11319 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11320   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11321   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11322   { echo "$as_me:$LINENO: result: yes" >&5
11323 echo "${ECHO_T}yes" >&6; }
11324 else
11325 # FIXME - insert some real tests, host_os isn't really good enough
11326   case $host_os in
11327    darwin*)
11328        if test -n "$STRIP" ; then
11329          striplib="$STRIP -x"
11330          old_striplib="$STRIP -S"
11331          { echo "$as_me:$LINENO: result: yes" >&5
11332 echo "${ECHO_T}yes" >&6; }
11333        else
11334   { echo "$as_me:$LINENO: result: no" >&5
11335 echo "${ECHO_T}no" >&6; }
11336 fi
11337        ;;
11338    *)
11339   { echo "$as_me:$LINENO: result: no" >&5
11340 echo "${ECHO_T}no" >&6; }
11341     ;;
11342   esac
11343 fi
11344
11345 if test "x$enable_dlopen" != xyes; then
11346   enable_dlopen=unknown
11347   enable_dlopen_self=unknown
11348   enable_dlopen_self_static=unknown
11349 else
11350   lt_cv_dlopen=no
11351   lt_cv_dlopen_libs=
11352
11353   case $host_os in
11354   beos*)
11355     lt_cv_dlopen="load_add_on"
11356     lt_cv_dlopen_libs=
11357     lt_cv_dlopen_self=yes
11358     ;;
11359
11360   mingw* | pw32*)
11361     lt_cv_dlopen="LoadLibrary"
11362     lt_cv_dlopen_libs=
11363    ;;
11364
11365   cygwin*)
11366     lt_cv_dlopen="dlopen"
11367     lt_cv_dlopen_libs=
11368    ;;
11369
11370   darwin*)
11371   # if libdl is installed we need to link against it
11372     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11373 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11374 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11375   echo $ECHO_N "(cached) $ECHO_C" >&6
11376 else
11377   ac_check_lib_save_LIBS=$LIBS
11378 LIBS="-ldl  $LIBS"
11379 cat >conftest.$ac_ext <<_ACEOF
11380 /* confdefs.h.  */
11381 _ACEOF
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h.  */
11385
11386 /* Override any GCC internal prototype to avoid an error.
11387    Use char because int might match the return type of a GCC
11388    builtin and then its argument prototype would still apply.  */
11389 #ifdef __cplusplus
11390 extern "C"
11391 #endif
11392 char dlopen ();
11393 int
11394 main ()
11395 {
11396 return dlopen ();
11397   ;
11398   return 0;
11399 }
11400 _ACEOF
11401 rm -f conftest.$ac_objext conftest$ac_exeext
11402 if { (ac_try="$ac_link"
11403 case "(($ac_try" in
11404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405   *) ac_try_echo=$ac_try;;
11406 esac
11407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408   (eval "$ac_link") 2>conftest.er1
11409   ac_status=$?
11410   grep -v '^ *+' conftest.er1 >conftest.err
11411   rm -f conftest.er1
11412   cat conftest.err >&5
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); } && {
11415          test -z "$ac_c_werror_flag" ||
11416          test ! -s conftest.err
11417        } && test -s conftest$ac_exeext &&
11418        $as_test_x conftest$ac_exeext; then
11419   ac_cv_lib_dl_dlopen=yes
11420 else
11421   echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.$ac_ext >&5
11423
11424         ac_cv_lib_dl_dlopen=no
11425 fi
11426
11427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11428       conftest$ac_exeext conftest.$ac_ext
11429 LIBS=$ac_check_lib_save_LIBS
11430 fi
11431 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11432 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11433 if test $ac_cv_lib_dl_dlopen = yes; then
11434   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11435 else
11436
11437     lt_cv_dlopen="dyld"
11438     lt_cv_dlopen_libs=
11439     lt_cv_dlopen_self=yes
11440
11441 fi
11442
11443    ;;
11444
11445   *)
11446     { echo "$as_me:$LINENO: checking for shl_load" >&5
11447 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11448 if test "${ac_cv_func_shl_load+set}" = set; then
11449   echo $ECHO_N "(cached) $ECHO_C" >&6
11450 else
11451   cat >conftest.$ac_ext <<_ACEOF
11452 /* confdefs.h.  */
11453 _ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h.  */
11457 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11458    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11459 #define shl_load innocuous_shl_load
11460
11461 /* System header to define __stub macros and hopefully few prototypes,
11462     which can conflict with char shl_load (); below.
11463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11464     <limits.h> exists even on freestanding compilers.  */
11465
11466 #ifdef __STDC__
11467 # include <limits.h>
11468 #else
11469 # include <assert.h>
11470 #endif
11471
11472 #undef shl_load
11473
11474 /* Override any GCC internal prototype to avoid an error.
11475    Use char because int might match the return type of a GCC
11476    builtin and then its argument prototype would still apply.  */
11477 #ifdef __cplusplus
11478 extern "C"
11479 #endif
11480 char shl_load ();
11481 /* The GNU C library defines this for functions which it implements
11482     to always fail with ENOSYS.  Some functions are actually named
11483     something starting with __ and the normal name is an alias.  */
11484 #if defined __stub_shl_load || defined __stub___shl_load
11485 choke me
11486 #endif
11487
11488 int
11489 main ()
11490 {
11491 return shl_load ();
11492   ;
11493   return 0;
11494 }
11495 _ACEOF
11496 rm -f conftest.$ac_objext conftest$ac_exeext
11497 if { (ac_try="$ac_link"
11498 case "(($ac_try" in
11499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500   *) ac_try_echo=$ac_try;;
11501 esac
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503   (eval "$ac_link") 2>conftest.er1
11504   ac_status=$?
11505   grep -v '^ *+' conftest.er1 >conftest.err
11506   rm -f conftest.er1
11507   cat conftest.err >&5
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); } && {
11510          test -z "$ac_c_werror_flag" ||
11511          test ! -s conftest.err
11512        } && test -s conftest$ac_exeext &&
11513        $as_test_x conftest$ac_exeext; then
11514   ac_cv_func_shl_load=yes
11515 else
11516   echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11518
11519         ac_cv_func_shl_load=no
11520 fi
11521
11522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11523       conftest$ac_exeext conftest.$ac_ext
11524 fi
11525 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11526 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11527 if test $ac_cv_func_shl_load = yes; then
11528   lt_cv_dlopen="shl_load"
11529 else
11530   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11531 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11532 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11533   echo $ECHO_N "(cached) $ECHO_C" >&6
11534 else
11535   ac_check_lib_save_LIBS=$LIBS
11536 LIBS="-ldld  $LIBS"
11537 cat >conftest.$ac_ext <<_ACEOF
11538 /* confdefs.h.  */
11539 _ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h.  */
11543
11544 /* Override any GCC internal prototype to avoid an error.
11545    Use char because int might match the return type of a GCC
11546    builtin and then its argument prototype would still apply.  */
11547 #ifdef __cplusplus
11548 extern "C"
11549 #endif
11550 char shl_load ();
11551 int
11552 main ()
11553 {
11554 return shl_load ();
11555   ;
11556   return 0;
11557 }
11558 _ACEOF
11559 rm -f conftest.$ac_objext conftest$ac_exeext
11560 if { (ac_try="$ac_link"
11561 case "(($ac_try" in
11562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11563   *) ac_try_echo=$ac_try;;
11564 esac
11565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11566   (eval "$ac_link") 2>conftest.er1
11567   ac_status=$?
11568   grep -v '^ *+' conftest.er1 >conftest.err
11569   rm -f conftest.er1
11570   cat conftest.err >&5
11571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572   (exit $ac_status); } && {
11573          test -z "$ac_c_werror_flag" ||
11574          test ! -s conftest.err
11575        } && test -s conftest$ac_exeext &&
11576        $as_test_x conftest$ac_exeext; then
11577   ac_cv_lib_dld_shl_load=yes
11578 else
11579   echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.$ac_ext >&5
11581
11582         ac_cv_lib_dld_shl_load=no
11583 fi
11584
11585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11586       conftest$ac_exeext conftest.$ac_ext
11587 LIBS=$ac_check_lib_save_LIBS
11588 fi
11589 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11590 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11591 if test $ac_cv_lib_dld_shl_load = yes; then
11592   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11593 else
11594   { echo "$as_me:$LINENO: checking for dlopen" >&5
11595 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11596 if test "${ac_cv_func_dlopen+set}" = set; then
11597   echo $ECHO_N "(cached) $ECHO_C" >&6
11598 else
11599   cat >conftest.$ac_ext <<_ACEOF
11600 /* confdefs.h.  */
11601 _ACEOF
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h.  */
11605 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11606    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11607 #define dlopen innocuous_dlopen
11608
11609 /* System header to define __stub macros and hopefully few prototypes,
11610     which can conflict with char dlopen (); below.
11611     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11612     <limits.h> exists even on freestanding compilers.  */
11613
11614 #ifdef __STDC__
11615 # include <limits.h>
11616 #else
11617 # include <assert.h>
11618 #endif
11619
11620 #undef dlopen
11621
11622 /* Override any GCC internal prototype to avoid an error.
11623    Use char because int might match the return type of a GCC
11624    builtin and then its argument prototype would still apply.  */
11625 #ifdef __cplusplus
11626 extern "C"
11627 #endif
11628 char dlopen ();
11629 /* The GNU C library defines this for functions which it implements
11630     to always fail with ENOSYS.  Some functions are actually named
11631     something starting with __ and the normal name is an alias.  */
11632 #if defined __stub_dlopen || defined __stub___dlopen
11633 choke me
11634 #endif
11635
11636 int
11637 main ()
11638 {
11639 return dlopen ();
11640   ;
11641   return 0;
11642 }
11643 _ACEOF
11644 rm -f conftest.$ac_objext conftest$ac_exeext
11645 if { (ac_try="$ac_link"
11646 case "(($ac_try" in
11647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11648   *) ac_try_echo=$ac_try;;
11649 esac
11650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11651   (eval "$ac_link") 2>conftest.er1
11652   ac_status=$?
11653   grep -v '^ *+' conftest.er1 >conftest.err
11654   rm -f conftest.er1
11655   cat conftest.err >&5
11656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657   (exit $ac_status); } && {
11658          test -z "$ac_c_werror_flag" ||
11659          test ! -s conftest.err
11660        } && test -s conftest$ac_exeext &&
11661        $as_test_x conftest$ac_exeext; then
11662   ac_cv_func_dlopen=yes
11663 else
11664   echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11666
11667         ac_cv_func_dlopen=no
11668 fi
11669
11670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11671       conftest$ac_exeext conftest.$ac_ext
11672 fi
11673 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11674 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11675 if test $ac_cv_func_dlopen = yes; then
11676   lt_cv_dlopen="dlopen"
11677 else
11678   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11679 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11680 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11681   echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683   ac_check_lib_save_LIBS=$LIBS
11684 LIBS="-ldl  $LIBS"
11685 cat >conftest.$ac_ext <<_ACEOF
11686 /* confdefs.h.  */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h.  */
11691
11692 /* Override any GCC internal prototype to avoid an error.
11693    Use char because int might match the return type of a GCC
11694    builtin and then its argument prototype would still apply.  */
11695 #ifdef __cplusplus
11696 extern "C"
11697 #endif
11698 char dlopen ();
11699 int
11700 main ()
11701 {
11702 return dlopen ();
11703   ;
11704   return 0;
11705 }
11706 _ACEOF
11707 rm -f conftest.$ac_objext conftest$ac_exeext
11708 if { (ac_try="$ac_link"
11709 case "(($ac_try" in
11710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711   *) ac_try_echo=$ac_try;;
11712 esac
11713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11714   (eval "$ac_link") 2>conftest.er1
11715   ac_status=$?
11716   grep -v '^ *+' conftest.er1 >conftest.err
11717   rm -f conftest.er1
11718   cat conftest.err >&5
11719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720   (exit $ac_status); } && {
11721          test -z "$ac_c_werror_flag" ||
11722          test ! -s conftest.err
11723        } && test -s conftest$ac_exeext &&
11724        $as_test_x conftest$ac_exeext; then
11725   ac_cv_lib_dl_dlopen=yes
11726 else
11727   echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11729
11730         ac_cv_lib_dl_dlopen=no
11731 fi
11732
11733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11734       conftest$ac_exeext conftest.$ac_ext
11735 LIBS=$ac_check_lib_save_LIBS
11736 fi
11737 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11738 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11739 if test $ac_cv_lib_dl_dlopen = yes; then
11740   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11741 else
11742   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11743 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11744 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11745   echo $ECHO_N "(cached) $ECHO_C" >&6
11746 else
11747   ac_check_lib_save_LIBS=$LIBS
11748 LIBS="-lsvld  $LIBS"
11749 cat >conftest.$ac_ext <<_ACEOF
11750 /* confdefs.h.  */
11751 _ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h.  */
11755
11756 /* Override any GCC internal prototype to avoid an error.
11757    Use char because int might match the return type of a GCC
11758    builtin and then its argument prototype would still apply.  */
11759 #ifdef __cplusplus
11760 extern "C"
11761 #endif
11762 char dlopen ();
11763 int
11764 main ()
11765 {
11766 return dlopen ();
11767   ;
11768   return 0;
11769 }
11770 _ACEOF
11771 rm -f conftest.$ac_objext conftest$ac_exeext
11772 if { (ac_try="$ac_link"
11773 case "(($ac_try" in
11774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775   *) ac_try_echo=$ac_try;;
11776 esac
11777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778   (eval "$ac_link") 2>conftest.er1
11779   ac_status=$?
11780   grep -v '^ *+' conftest.er1 >conftest.err
11781   rm -f conftest.er1
11782   cat conftest.err >&5
11783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784   (exit $ac_status); } && {
11785          test -z "$ac_c_werror_flag" ||
11786          test ! -s conftest.err
11787        } && test -s conftest$ac_exeext &&
11788        $as_test_x conftest$ac_exeext; then
11789   ac_cv_lib_svld_dlopen=yes
11790 else
11791   echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.$ac_ext >&5
11793
11794         ac_cv_lib_svld_dlopen=no
11795 fi
11796
11797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11798       conftest$ac_exeext conftest.$ac_ext
11799 LIBS=$ac_check_lib_save_LIBS
11800 fi
11801 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11802 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11803 if test $ac_cv_lib_svld_dlopen = yes; then
11804   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11805 else
11806   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11807 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11808 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11809   echo $ECHO_N "(cached) $ECHO_C" >&6
11810 else
11811   ac_check_lib_save_LIBS=$LIBS
11812 LIBS="-ldld  $LIBS"
11813 cat >conftest.$ac_ext <<_ACEOF
11814 /* confdefs.h.  */
11815 _ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h.  */
11819
11820 /* Override any GCC internal prototype to avoid an error.
11821    Use char because int might match the return type of a GCC
11822    builtin and then its argument prototype would still apply.  */
11823 #ifdef __cplusplus
11824 extern "C"
11825 #endif
11826 char dld_link ();
11827 int
11828 main ()
11829 {
11830 return dld_link ();
11831   ;
11832   return 0;
11833 }
11834 _ACEOF
11835 rm -f conftest.$ac_objext conftest$ac_exeext
11836 if { (ac_try="$ac_link"
11837 case "(($ac_try" in
11838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839   *) ac_try_echo=$ac_try;;
11840 esac
11841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842   (eval "$ac_link") 2>conftest.er1
11843   ac_status=$?
11844   grep -v '^ *+' conftest.er1 >conftest.err
11845   rm -f conftest.er1
11846   cat conftest.err >&5
11847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848   (exit $ac_status); } && {
11849          test -z "$ac_c_werror_flag" ||
11850          test ! -s conftest.err
11851        } && test -s conftest$ac_exeext &&
11852        $as_test_x conftest$ac_exeext; then
11853   ac_cv_lib_dld_dld_link=yes
11854 else
11855   echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11857
11858         ac_cv_lib_dld_dld_link=no
11859 fi
11860
11861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11862       conftest$ac_exeext conftest.$ac_ext
11863 LIBS=$ac_check_lib_save_LIBS
11864 fi
11865 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11866 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11867 if test $ac_cv_lib_dld_dld_link = yes; then
11868   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11869 fi
11870
11871
11872 fi
11873
11874
11875 fi
11876
11877
11878 fi
11879
11880
11881 fi
11882
11883
11884 fi
11885
11886     ;;
11887   esac
11888
11889   if test "x$lt_cv_dlopen" != xno; then
11890     enable_dlopen=yes
11891   else
11892     enable_dlopen=no
11893   fi
11894
11895   case $lt_cv_dlopen in
11896   dlopen)
11897     save_CPPFLAGS="$CPPFLAGS"
11898     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11899
11900     save_LDFLAGS="$LDFLAGS"
11901     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11902
11903     save_LIBS="$LIBS"
11904     LIBS="$lt_cv_dlopen_libs $LIBS"
11905
11906     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11907 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11908 if test "${lt_cv_dlopen_self+set}" = set; then
11909   echo $ECHO_N "(cached) $ECHO_C" >&6
11910 else
11911           if test "$cross_compiling" = yes; then :
11912   lt_cv_dlopen_self=cross
11913 else
11914   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11915   lt_status=$lt_dlunknown
11916   cat > conftest.$ac_ext <<EOF
11917 #line 11917 "configure"
11918 #include "confdefs.h"
11919
11920 #if HAVE_DLFCN_H
11921 #include <dlfcn.h>
11922 #endif
11923
11924 #include <stdio.h>
11925
11926 #ifdef RTLD_GLOBAL
11927 #  define LT_DLGLOBAL           RTLD_GLOBAL
11928 #else
11929 #  ifdef DL_GLOBAL
11930 #    define LT_DLGLOBAL         DL_GLOBAL
11931 #  else
11932 #    define LT_DLGLOBAL         0
11933 #  endif
11934 #endif
11935
11936 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11937    find out it does not work in some platform. */
11938 #ifndef LT_DLLAZY_OR_NOW
11939 #  ifdef RTLD_LAZY
11940 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11941 #  else
11942 #    ifdef DL_LAZY
11943 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11944 #    else
11945 #      ifdef RTLD_NOW
11946 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11947 #      else
11948 #        ifdef DL_NOW
11949 #          define LT_DLLAZY_OR_NOW      DL_NOW
11950 #        else
11951 #          define LT_DLLAZY_OR_NOW      0
11952 #        endif
11953 #      endif
11954 #    endif
11955 #  endif
11956 #endif
11957
11958 #ifdef __cplusplus
11959 extern "C" void exit (int);
11960 #endif
11961
11962 void fnord() { int i=42;}
11963 int main ()
11964 {
11965   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11966   int status = $lt_dlunknown;
11967
11968   if (self)
11969     {
11970       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11971       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11972       /* dlclose (self); */
11973     }
11974   else
11975     puts (dlerror ());
11976
11977     exit (status);
11978 }
11979 EOF
11980   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11981   (eval $ac_link) 2>&5
11982   ac_status=$?
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11985     (./conftest; exit; ) >&5 2>/dev/null
11986     lt_status=$?
11987     case x$lt_status in
11988       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11989       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11990       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11991     esac
11992   else :
11993     # compilation failed
11994     lt_cv_dlopen_self=no
11995   fi
11996 fi
11997 rm -fr conftest*
11998
11999
12000 fi
12001 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12002 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12003
12004     if test "x$lt_cv_dlopen_self" = xyes; then
12005       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12006       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12007 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12008 if test "${lt_cv_dlopen_self_static+set}" = set; then
12009   echo $ECHO_N "(cached) $ECHO_C" >&6
12010 else
12011           if test "$cross_compiling" = yes; then :
12012   lt_cv_dlopen_self_static=cross
12013 else
12014   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12015   lt_status=$lt_dlunknown
12016   cat > conftest.$ac_ext <<EOF
12017 #line 12017 "configure"
12018 #include "confdefs.h"
12019
12020 #if HAVE_DLFCN_H
12021 #include <dlfcn.h>
12022 #endif
12023
12024 #include <stdio.h>
12025
12026 #ifdef RTLD_GLOBAL
12027 #  define LT_DLGLOBAL           RTLD_GLOBAL
12028 #else
12029 #  ifdef DL_GLOBAL
12030 #    define LT_DLGLOBAL         DL_GLOBAL
12031 #  else
12032 #    define LT_DLGLOBAL         0
12033 #  endif
12034 #endif
12035
12036 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12037    find out it does not work in some platform. */
12038 #ifndef LT_DLLAZY_OR_NOW
12039 #  ifdef RTLD_LAZY
12040 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12041 #  else
12042 #    ifdef DL_LAZY
12043 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12044 #    else
12045 #      ifdef RTLD_NOW
12046 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12047 #      else
12048 #        ifdef DL_NOW
12049 #          define LT_DLLAZY_OR_NOW      DL_NOW
12050 #        else
12051 #          define LT_DLLAZY_OR_NOW      0
12052 #        endif
12053 #      endif
12054 #    endif
12055 #  endif
12056 #endif
12057
12058 #ifdef __cplusplus
12059 extern "C" void exit (int);
12060 #endif
12061
12062 void fnord() { int i=42;}
12063 int main ()
12064 {
12065   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12066   int status = $lt_dlunknown;
12067
12068   if (self)
12069     {
12070       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12071       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12072       /* dlclose (self); */
12073     }
12074   else
12075     puts (dlerror ());
12076
12077     exit (status);
12078 }
12079 EOF
12080   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12081   (eval $ac_link) 2>&5
12082   ac_status=$?
12083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12085     (./conftest; exit; ) >&5 2>/dev/null
12086     lt_status=$?
12087     case x$lt_status in
12088       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12089       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12090       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12091     esac
12092   else :
12093     # compilation failed
12094     lt_cv_dlopen_self_static=no
12095   fi
12096 fi
12097 rm -fr conftest*
12098
12099
12100 fi
12101 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12102 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12103     fi
12104
12105     CPPFLAGS="$save_CPPFLAGS"
12106     LDFLAGS="$save_LDFLAGS"
12107     LIBS="$save_LIBS"
12108     ;;
12109   esac
12110
12111   case $lt_cv_dlopen_self in
12112   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12113   *) enable_dlopen_self=unknown ;;
12114   esac
12115
12116   case $lt_cv_dlopen_self_static in
12117   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12118   *) enable_dlopen_self_static=unknown ;;
12119   esac
12120 fi
12121
12122
12123 # Report which library types will actually be built
12124 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12125 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12126 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12127 echo "${ECHO_T}$can_build_shared" >&6; }
12128
12129 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12130 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12131 test "$can_build_shared" = "no" && enable_shared=no
12132
12133 # On AIX, shared libraries and static libraries use the same namespace, and
12134 # are all built from PIC.
12135 case $host_os in
12136 aix3*)
12137   test "$enable_shared" = yes && enable_static=no
12138   if test -n "$RANLIB"; then
12139     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12140     postinstall_cmds='$RANLIB $lib'
12141   fi
12142   ;;
12143
12144 aix[4-9]*)
12145   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12146     test "$enable_shared" = yes && enable_static=no
12147   fi
12148     ;;
12149 esac
12150 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12151 echo "${ECHO_T}$enable_shared" >&6; }
12152
12153 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12154 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12155 # Make sure either enable_shared or enable_static is yes.
12156 test "$enable_shared" = yes || enable_static=yes
12157 { echo "$as_me:$LINENO: result: $enable_static" >&5
12158 echo "${ECHO_T}$enable_static" >&6; }
12159
12160 # The else clause should only fire when bootstrapping the
12161 # libtool distribution, otherwise you forgot to ship ltmain.sh
12162 # with your package, and you will get complaints that there are
12163 # no rules to generate ltmain.sh.
12164 if test -f "$ltmain"; then
12165   # See if we are running on zsh, and set the options which allow our commands through
12166   # without removal of \ escapes.
12167   if test -n "${ZSH_VERSION+set}" ; then
12168     setopt NO_GLOB_SUBST
12169   fi
12170   # Now quote all the things that may contain metacharacters while being
12171   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12172   # variables and quote the copies for generation of the libtool script.
12173   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12174     SED SHELL STRIP \
12175     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12176     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12177     deplibs_check_method reload_flag reload_cmds need_locks \
12178     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12179     lt_cv_sys_global_symbol_to_c_name_address \
12180     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12181     old_postinstall_cmds old_postuninstall_cmds \
12182     compiler \
12183     CC \
12184     LD \
12185     lt_prog_compiler_wl \
12186     lt_prog_compiler_pic \
12187     lt_prog_compiler_static \
12188     lt_prog_compiler_no_builtin_flag \
12189     export_dynamic_flag_spec \
12190     thread_safe_flag_spec \
12191     whole_archive_flag_spec \
12192     enable_shared_with_static_runtimes \
12193     old_archive_cmds \
12194     old_archive_from_new_cmds \
12195     predep_objects \
12196     postdep_objects \
12197     predeps \
12198     postdeps \
12199     compiler_lib_search_path \
12200     compiler_lib_search_dirs \
12201     archive_cmds \
12202     archive_expsym_cmds \
12203     postinstall_cmds \
12204     postuninstall_cmds \
12205     old_archive_from_expsyms_cmds \
12206     allow_undefined_flag \
12207     no_undefined_flag \
12208     export_symbols_cmds \
12209     hardcode_libdir_flag_spec \
12210     hardcode_libdir_flag_spec_ld \
12211     hardcode_libdir_separator \
12212     hardcode_automatic \
12213     module_cmds \
12214     module_expsym_cmds \
12215     lt_cv_prog_compiler_c_o \
12216     fix_srcfile_path \
12217     exclude_expsyms \
12218     include_expsyms; do
12219
12220     case $var in
12221     old_archive_cmds | \
12222     old_archive_from_new_cmds | \
12223     archive_cmds | \
12224     archive_expsym_cmds | \
12225     module_cmds | \
12226     module_expsym_cmds | \
12227     old_archive_from_expsyms_cmds | \
12228     export_symbols_cmds | \
12229     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12230     postinstall_cmds | postuninstall_cmds | \
12231     old_postinstall_cmds | old_postuninstall_cmds | \
12232     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12233       # Double-quote double-evaled strings.
12234       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12235       ;;
12236     *)
12237       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12238       ;;
12239     esac
12240   done
12241
12242   case $lt_echo in
12243   *'\$0 --fallback-echo"')
12244     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12245     ;;
12246   esac
12247
12248 cfgfile="${ofile}T"
12249   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12250   $rm -f "$cfgfile"
12251   { echo "$as_me:$LINENO: creating $ofile" >&5
12252 echo "$as_me: creating $ofile" >&6;}
12253
12254   cat <<__EOF__ >> "$cfgfile"
12255 #! $SHELL
12256
12257 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12258 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12259 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12260 #
12261 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
12262 # Free Software Foundation, Inc.
12263 #
12264 # This file is part of GNU Libtool:
12265 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12266 #
12267 # This program is free software; you can redistribute it and/or modify
12268 # it under the terms of the GNU General Public License as published by
12269 # the Free Software Foundation; either version 2 of the License, or
12270 # (at your option) any later version.
12271 #
12272 # This program is distributed in the hope that it will be useful, but
12273 # WITHOUT ANY WARRANTY; without even the implied warranty of
12274 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12275 # General Public License for more details.
12276 #
12277 # You should have received a copy of the GNU General Public License
12278 # along with this program; if not, write to the Free Software
12279 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12280 #
12281 # As a special exception to the GNU General Public License, if you
12282 # distribute this file as part of a program that contains a
12283 # configuration script generated by Autoconf, you may include it under
12284 # the same distribution terms that you use for the rest of that program.
12285
12286 # A sed program that does not truncate output.
12287 SED=$lt_SED
12288
12289 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12290 Xsed="$SED -e 1s/^X//"
12291
12292 # The HP-UX ksh and POSIX shell print the target directory to stdout
12293 # if CDPATH is set.
12294 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12295
12296 # The names of the tagged configurations supported by this script.
12297 available_tags=
12298
12299 # ### BEGIN LIBTOOL CONFIG
12300
12301 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12302
12303 # Shell to use when invoking shell scripts.
12304 SHELL=$lt_SHELL
12305
12306 # Whether or not to build shared libraries.
12307 build_libtool_libs=$enable_shared
12308
12309 # Whether or not to build static libraries.
12310 build_old_libs=$enable_static
12311
12312 # Whether or not to add -lc for building shared libraries.
12313 build_libtool_need_lc=$archive_cmds_need_lc
12314
12315 # Whether or not to disallow shared libs when runtime libs are static
12316 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12317
12318 # Whether or not to optimize for fast installation.
12319 fast_install=$enable_fast_install
12320
12321 # The host system.
12322 host_alias=$host_alias
12323 host=$host
12324 host_os=$host_os
12325
12326 # The build system.
12327 build_alias=$build_alias
12328 build=$build
12329 build_os=$build_os
12330
12331 # An echo program that does not interpret backslashes.
12332 echo=$lt_echo
12333
12334 # The archiver.
12335 AR=$lt_AR
12336 AR_FLAGS=$lt_AR_FLAGS
12337
12338 # A C compiler.
12339 LTCC=$lt_LTCC
12340
12341 # LTCC compiler flags.
12342 LTCFLAGS=$lt_LTCFLAGS
12343
12344 # A language-specific compiler.
12345 CC=$lt_compiler
12346
12347 # Is the compiler the GNU C compiler?
12348 with_gcc=$GCC
12349
12350 # An ERE matcher.
12351 EGREP=$lt_EGREP
12352
12353 # The linker used to build libraries.
12354 LD=$lt_LD
12355
12356 # Whether we need hard or soft links.
12357 LN_S=$lt_LN_S
12358
12359 # A BSD-compatible nm program.
12360 NM=$lt_NM
12361
12362 # A symbol stripping program
12363 STRIP=$lt_STRIP
12364
12365 # Used to examine libraries when file_magic_cmd begins "file"
12366 MAGIC_CMD=$MAGIC_CMD
12367
12368 # Used on cygwin: DLL creation program.
12369 DLLTOOL="$DLLTOOL"
12370
12371 # Used on cygwin: object dumper.
12372 OBJDUMP="$OBJDUMP"
12373
12374 # Used on cygwin: assembler.
12375 AS="$AS"
12376
12377 # The name of the directory that contains temporary libtool files.
12378 objdir=$objdir
12379
12380 # How to create reloadable object files.
12381 reload_flag=$lt_reload_flag
12382 reload_cmds=$lt_reload_cmds
12383
12384 # How to pass a linker flag through the compiler.
12385 wl=$lt_lt_prog_compiler_wl
12386
12387 # Object file suffix (normally "o").
12388 objext="$ac_objext"
12389
12390 # Old archive suffix (normally "a").
12391 libext="$libext"
12392
12393 # Shared library suffix (normally ".so").
12394 shrext_cmds='$shrext_cmds'
12395
12396 # Executable file suffix (normally "").
12397 exeext="$exeext"
12398
12399 # Additional compiler flags for building library objects.
12400 pic_flag=$lt_lt_prog_compiler_pic
12401 pic_mode=$pic_mode
12402
12403 # What is the maximum length of a command?
12404 max_cmd_len=$lt_cv_sys_max_cmd_len
12405
12406 # Does compiler simultaneously support -c and -o options?
12407 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12408
12409 # Must we lock files when doing compilation?
12410 need_locks=$lt_need_locks
12411
12412 # Do we need the lib prefix for modules?
12413 need_lib_prefix=$need_lib_prefix
12414
12415 # Do we need a version for libraries?
12416 need_version=$need_version
12417
12418 # Whether dlopen is supported.
12419 dlopen_support=$enable_dlopen
12420
12421 # Whether dlopen of programs is supported.
12422 dlopen_self=$enable_dlopen_self
12423
12424 # Whether dlopen of statically linked programs is supported.
12425 dlopen_self_static=$enable_dlopen_self_static
12426
12427 # Compiler flag to prevent dynamic linking.
12428 link_static_flag=$lt_lt_prog_compiler_static
12429
12430 # Compiler flag to turn off builtin functions.
12431 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12432
12433 # Compiler flag to allow reflexive dlopens.
12434 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12435
12436 # Compiler flag to generate shared objects directly from archives.
12437 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12438
12439 # Compiler flag to generate thread-safe objects.
12440 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12441
12442 # Library versioning type.
12443 version_type=$version_type
12444
12445 # Format of library name prefix.
12446 libname_spec=$lt_libname_spec
12447
12448 # List of archive names.  First name is the real one, the rest are links.
12449 # The last name is the one that the linker finds with -lNAME.
12450 library_names_spec=$lt_library_names_spec
12451
12452 # The coded name of the library, if different from the real name.
12453 soname_spec=$lt_soname_spec
12454
12455 # Commands used to build and install an old-style archive.
12456 RANLIB=$lt_RANLIB
12457 old_archive_cmds=$lt_old_archive_cmds
12458 old_postinstall_cmds=$lt_old_postinstall_cmds
12459 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12460
12461 # Create an old-style archive from a shared archive.
12462 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12463
12464 # Create a temporary old-style archive to link instead of a shared archive.
12465 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12466
12467 # Commands used to build and install a shared archive.
12468 archive_cmds=$lt_archive_cmds
12469 archive_expsym_cmds=$lt_archive_expsym_cmds
12470 postinstall_cmds=$lt_postinstall_cmds
12471 postuninstall_cmds=$lt_postuninstall_cmds
12472
12473 # Commands used to build a loadable module (assumed same as above if empty)
12474 module_cmds=$lt_module_cmds
12475 module_expsym_cmds=$lt_module_expsym_cmds
12476
12477 # Commands to strip libraries.
12478 old_striplib=$lt_old_striplib
12479 striplib=$lt_striplib
12480
12481 # Dependencies to place before the objects being linked to create a
12482 # shared library.
12483 predep_objects=$lt_predep_objects
12484
12485 # Dependencies to place after the objects being linked to create a
12486 # shared library.
12487 postdep_objects=$lt_postdep_objects
12488
12489 # Dependencies to place before the objects being linked to create a
12490 # shared library.
12491 predeps=$lt_predeps
12492
12493 # Dependencies to place after the objects being linked to create a
12494 # shared library.
12495 postdeps=$lt_postdeps
12496
12497 # The directories searched by this compiler when creating a shared
12498 # library
12499 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
12500
12501 # The library search path used internally by the compiler when linking
12502 # a shared library.
12503 compiler_lib_search_path=$lt_compiler_lib_search_path
12504
12505 # Method to check whether dependent libraries are shared objects.
12506 deplibs_check_method=$lt_deplibs_check_method
12507
12508 # Command to use when deplibs_check_method == file_magic.
12509 file_magic_cmd=$lt_file_magic_cmd
12510
12511 # Flag that allows shared libraries with undefined symbols to be built.
12512 allow_undefined_flag=$lt_allow_undefined_flag
12513
12514 # Flag that forces no undefined symbols.
12515 no_undefined_flag=$lt_no_undefined_flag
12516
12517 # Commands used to finish a libtool library installation in a directory.
12518 finish_cmds=$lt_finish_cmds
12519
12520 # Same as above, but a single script fragment to be evaled but not shown.
12521 finish_eval=$lt_finish_eval
12522
12523 # Take the output of nm and produce a listing of raw symbols and C names.
12524 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12525
12526 # Transform the output of nm in a proper C declaration
12527 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12528
12529 # Transform the output of nm in a C name address pair
12530 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12531
12532 # This is the shared library runtime path variable.
12533 runpath_var=$runpath_var
12534
12535 # This is the shared library path variable.
12536 shlibpath_var=$shlibpath_var
12537
12538 # Is shlibpath searched before the hard-coded library search path?
12539 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12540
12541 # How to hardcode a shared library path into an executable.
12542 hardcode_action=$hardcode_action
12543
12544 # Whether we should hardcode library paths into libraries.
12545 hardcode_into_libs=$hardcode_into_libs
12546
12547 # Flag to hardcode \$libdir into a binary during linking.
12548 # This must work even if \$libdir does not exist.
12549 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12550
12551 # If ld is used when linking, flag to hardcode \$libdir into
12552 # a binary during linking. This must work even if \$libdir does
12553 # not exist.
12554 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12555
12556 # Whether we need a single -rpath flag with a separated argument.
12557 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12558
12559 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12560 # resulting binary.
12561 hardcode_direct=$hardcode_direct
12562
12563 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12564 # resulting binary.
12565 hardcode_minus_L=$hardcode_minus_L
12566
12567 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12568 # the resulting binary.
12569 hardcode_shlibpath_var=$hardcode_shlibpath_var
12570
12571 # Set to yes if building a shared library automatically hardcodes DIR into the library
12572 # and all subsequent libraries and executables linked against it.
12573 hardcode_automatic=$hardcode_automatic
12574
12575 # Variables whose values should be saved in libtool wrapper scripts and
12576 # restored at relink time.
12577 variables_saved_for_relink="$variables_saved_for_relink"
12578
12579 # Whether libtool must link a program against all its dependency libraries.
12580 link_all_deplibs=$link_all_deplibs
12581
12582 # Compile-time system search path for libraries
12583 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12584
12585 # Run-time system search path for libraries
12586 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12587
12588 # Fix the shell variable \$srcfile for the compiler.
12589 fix_srcfile_path=$lt_fix_srcfile_path
12590
12591 # Set to yes if exported symbols are required.
12592 always_export_symbols=$always_export_symbols
12593
12594 # The commands to list exported symbols.
12595 export_symbols_cmds=$lt_export_symbols_cmds
12596
12597 # The commands to extract the exported symbol list from a shared archive.
12598 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12599
12600 # Symbols that should not be listed in the preloaded symbols.
12601 exclude_expsyms=$lt_exclude_expsyms
12602
12603 # Symbols that must always be exported.
12604 include_expsyms=$lt_include_expsyms
12605
12606 # ### END LIBTOOL CONFIG
12607
12608 __EOF__
12609
12610
12611   case $host_os in
12612   aix3*)
12613     cat <<\EOF >> "$cfgfile"
12614
12615 # AIX sometimes has problems with the GCC collect2 program.  For some
12616 # reason, if we set the COLLECT_NAMES environment variable, the problems
12617 # vanish in a puff of smoke.
12618 if test "X${COLLECT_NAMES+set}" != Xset; then
12619   COLLECT_NAMES=
12620   export COLLECT_NAMES
12621 fi
12622 EOF
12623     ;;
12624   esac
12625
12626   # We use sed instead of cat because bash on DJGPP gets confused if
12627   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12628   # text mode, it properly converts lines to CR/LF.  This bash problem
12629   # is reportedly fixed, but why not run on old versions too?
12630   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12631
12632   mv -f "$cfgfile" "$ofile" || \
12633     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12634   chmod +x "$ofile"
12635
12636 else
12637   # If there is no Makefile yet, we rely on a make rule to execute
12638   # `config.status --recheck' to rerun these tests and create the
12639   # libtool script then.
12640   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12641   if test -f "$ltmain_in"; then
12642     test -f Makefile && make "$ltmain"
12643   fi
12644 fi
12645
12646
12647 ac_ext=c
12648 ac_cpp='$CPP $CPPFLAGS'
12649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12652
12653 CC="$lt_save_CC"
12654
12655
12656 # Check whether --with-tags was given.
12657 if test "${with_tags+set}" = set; then
12658   withval=$with_tags; tagnames="$withval"
12659 fi
12660
12661
12662 if test -f "$ltmain" && test -n "$tagnames"; then
12663   if test ! -f "${ofile}"; then
12664     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12665 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12666   fi
12667
12668   if test -z "$LTCC"; then
12669     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12670     if test -z "$LTCC"; then
12671       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12672 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12673     else
12674       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12675 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12676     fi
12677   fi
12678   if test -z "$LTCFLAGS"; then
12679     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12680   fi
12681
12682   # Extract list of available tagged configurations in $ofile.
12683   # Note that this assumes the entire list is on one line.
12684   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12685
12686   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12687   for tagname in $tagnames; do
12688     IFS="$lt_save_ifs"
12689     # Check whether tagname contains only valid characters
12690     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12691     "") ;;
12692     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12693 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12694    { (exit 1); exit 1; }; }
12695         ;;
12696     esac
12697
12698     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12699     then
12700       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12701 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12702    { (exit 1); exit 1; }; }
12703     fi
12704
12705     # Update the list of available tags.
12706     if test -n "$tagname"; then
12707       echo appending configuration tag \"$tagname\" to $ofile
12708
12709       case $tagname in
12710       CXX)
12711         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12712             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12713             (test "X$CXX" != "Xg++"))) ; then
12714           ac_ext=cpp
12715 ac_cpp='$CXXCPP $CPPFLAGS'
12716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12719
12720
12721
12722
12723 archive_cmds_need_lc_CXX=no
12724 allow_undefined_flag_CXX=
12725 always_export_symbols_CXX=no
12726 archive_expsym_cmds_CXX=
12727 export_dynamic_flag_spec_CXX=
12728 hardcode_direct_CXX=no
12729 hardcode_libdir_flag_spec_CXX=
12730 hardcode_libdir_flag_spec_ld_CXX=
12731 hardcode_libdir_separator_CXX=
12732 hardcode_minus_L_CXX=no
12733 hardcode_shlibpath_var_CXX=unsupported
12734 hardcode_automatic_CXX=no
12735 module_cmds_CXX=
12736 module_expsym_cmds_CXX=
12737 link_all_deplibs_CXX=unknown
12738 old_archive_cmds_CXX=$old_archive_cmds
12739 no_undefined_flag_CXX=
12740 whole_archive_flag_spec_CXX=
12741 enable_shared_with_static_runtimes_CXX=no
12742
12743 # Dependencies to place before and after the object being linked:
12744 predep_objects_CXX=
12745 postdep_objects_CXX=
12746 predeps_CXX=
12747 postdeps_CXX=
12748 compiler_lib_search_path_CXX=
12749 compiler_lib_search_dirs_CXX=
12750
12751 # Source file extension for C++ test sources.
12752 ac_ext=cpp
12753
12754 # Object file extension for compiled C++ test sources.
12755 objext=o
12756 objext_CXX=$objext
12757
12758 # Code to be used in simple compile tests
12759 lt_simple_compile_test_code="int some_variable = 0;"
12760
12761 # Code to be used in simple link tests
12762 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12763
12764 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12765
12766 # If no C compiler was specified, use CC.
12767 LTCC=${LTCC-"$CC"}
12768
12769 # If no C compiler flags were specified, use CFLAGS.
12770 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12771
12772 # Allow CC to be a program name with arguments.
12773 compiler=$CC
12774
12775
12776 # save warnings/boilerplate of simple test code
12777 ac_outfile=conftest.$ac_objext
12778 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12779 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12780 _lt_compiler_boilerplate=`cat conftest.err`
12781 $rm conftest*
12782
12783 ac_outfile=conftest.$ac_objext
12784 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12785 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12786 _lt_linker_boilerplate=`cat conftest.err`
12787 $rm -r conftest*
12788
12789
12790 # Allow CC to be a program name with arguments.
12791 lt_save_CC=$CC
12792 lt_save_LD=$LD
12793 lt_save_GCC=$GCC
12794 GCC=$GXX
12795 lt_save_with_gnu_ld=$with_gnu_ld
12796 lt_save_path_LD=$lt_cv_path_LD
12797 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12798   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12799 else
12800   $as_unset lt_cv_prog_gnu_ld
12801 fi
12802 if test -n "${lt_cv_path_LDCXX+set}"; then
12803   lt_cv_path_LD=$lt_cv_path_LDCXX
12804 else
12805   $as_unset lt_cv_path_LD
12806 fi
12807 test -z "${LDCXX+set}" || LD=$LDCXX
12808 CC=${CXX-"c++"}
12809 compiler=$CC
12810 compiler_CXX=$CC
12811 for cc_temp in $compiler""; do
12812   case $cc_temp in
12813     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12814     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12815     \-*) ;;
12816     *) break;;
12817   esac
12818 done
12819 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12820
12821
12822 # We don't want -fno-exception wen compiling C++ code, so set the
12823 # no_builtin_flag separately
12824 if test "$GXX" = yes; then
12825   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12826 else
12827   lt_prog_compiler_no_builtin_flag_CXX=
12828 fi
12829
12830 if test "$GXX" = yes; then
12831   # Set up default GNU C++ configuration
12832
12833
12834 # Check whether --with-gnu-ld was given.
12835 if test "${with_gnu_ld+set}" = set; then
12836   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12837 else
12838   with_gnu_ld=no
12839 fi
12840
12841 ac_prog=ld
12842 if test "$GCC" = yes; then
12843   # Check if gcc -print-prog-name=ld gives a path.
12844   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12845 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12846   case $host in
12847   *-*-mingw*)
12848     # gcc leaves a trailing carriage return which upsets mingw
12849     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12850   *)
12851     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12852   esac
12853   case $ac_prog in
12854     # Accept absolute paths.
12855     [\\/]* | ?:[\\/]*)
12856       re_direlt='/[^/][^/]*/\.\./'
12857       # Canonicalize the pathname of ld
12858       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12859       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12860         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12861       done
12862       test -z "$LD" && LD="$ac_prog"
12863       ;;
12864   "")
12865     # If it fails, then pretend we aren't using GCC.
12866     ac_prog=ld
12867     ;;
12868   *)
12869     # If it is relative, then search for the first ld in PATH.
12870     with_gnu_ld=unknown
12871     ;;
12872   esac
12873 elif test "$with_gnu_ld" = yes; then
12874   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12875 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12876 else
12877   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12878 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12879 fi
12880 if test "${lt_cv_path_LD+set}" = set; then
12881   echo $ECHO_N "(cached) $ECHO_C" >&6
12882 else
12883   if test -z "$LD"; then
12884   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12885   for ac_dir in $PATH; do
12886     IFS="$lt_save_ifs"
12887     test -z "$ac_dir" && ac_dir=.
12888     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12889       lt_cv_path_LD="$ac_dir/$ac_prog"
12890       # Check to see if the program is GNU ld.  I'd rather use --version,
12891       # but apparently some variants of GNU ld only accept -v.
12892       # Break only if it was the GNU/non-GNU ld that we prefer.
12893       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12894       *GNU* | *'with BFD'*)
12895         test "$with_gnu_ld" != no && break
12896         ;;
12897       *)
12898         test "$with_gnu_ld" != yes && break
12899         ;;
12900       esac
12901     fi
12902   done
12903   IFS="$lt_save_ifs"
12904 else
12905   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12906 fi
12907 fi
12908
12909 LD="$lt_cv_path_LD"
12910 if test -n "$LD"; then
12911   { echo "$as_me:$LINENO: result: $LD" >&5
12912 echo "${ECHO_T}$LD" >&6; }
12913 else
12914   { echo "$as_me:$LINENO: result: no" >&5
12915 echo "${ECHO_T}no" >&6; }
12916 fi
12917 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12918 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12919    { (exit 1); exit 1; }; }
12920 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12921 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12922 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12923   echo $ECHO_N "(cached) $ECHO_C" >&6
12924 else
12925   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12926 case `$LD -v 2>&1 </dev/null` in
12927 *GNU* | *'with BFD'*)
12928   lt_cv_prog_gnu_ld=yes
12929   ;;
12930 *)
12931   lt_cv_prog_gnu_ld=no
12932   ;;
12933 esac
12934 fi
12935 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12936 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12937 with_gnu_ld=$lt_cv_prog_gnu_ld
12938
12939
12940
12941   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12942   # archiving commands below assume that GNU ld is being used.
12943   if test "$with_gnu_ld" = yes; then
12944     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12945     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'
12946
12947     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12948     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12949
12950     # If archive_cmds runs LD, not CC, wlarc should be empty
12951     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12952     #     investigate it a little bit more. (MM)
12953     wlarc='${wl}'
12954
12955     # ancient GNU ld didn't support --whole-archive et. al.
12956     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12957         grep 'no-whole-archive' > /dev/null; then
12958       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12959     else
12960       whole_archive_flag_spec_CXX=
12961     fi
12962   else
12963     with_gnu_ld=no
12964     wlarc=
12965
12966     # A generic and very simple default shared library creation
12967     # command for GNU C++ for the case where it uses the native
12968     # linker, instead of GNU ld.  If possible, this setting should
12969     # overridden to take advantage of the native linker features on
12970     # the platform it is being used on.
12971     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12972   fi
12973
12974   # Commands to make compiler produce verbose output that lists
12975   # what "hidden" libraries, object files and flags are used when
12976   # linking a shared library.
12977   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12978
12979 else
12980   GXX=no
12981   with_gnu_ld=no
12982   wlarc=
12983 fi
12984
12985 # PORTME: fill in a description of your system's C++ link characteristics
12986 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12987 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12988 ld_shlibs_CXX=yes
12989 case $host_os in
12990   aix3*)
12991     # FIXME: insert proper C++ library support
12992     ld_shlibs_CXX=no
12993     ;;
12994   aix[4-9]*)
12995     if test "$host_cpu" = ia64; then
12996       # On IA64, the linker does run time linking by default, so we don't
12997       # have to do anything special.
12998       aix_use_runtimelinking=no
12999       exp_sym_flag='-Bexport'
13000       no_entry_flag=""
13001     else
13002       aix_use_runtimelinking=no
13003
13004       # Test if we are trying to use run time linking or normal
13005       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13006       # need to do runtime linking.
13007       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13008         for ld_flag in $LDFLAGS; do
13009           case $ld_flag in
13010           *-brtl*)
13011             aix_use_runtimelinking=yes
13012             break
13013             ;;
13014           esac
13015         done
13016         ;;
13017       esac
13018
13019       exp_sym_flag='-bexport'
13020       no_entry_flag='-bnoentry'
13021     fi
13022
13023     # When large executables or shared objects are built, AIX ld can
13024     # have problems creating the table of contents.  If linking a library
13025     # or program results in "error TOC overflow" add -mminimal-toc to
13026     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13027     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13028
13029     archive_cmds_CXX=''
13030     hardcode_direct_CXX=yes
13031     hardcode_libdir_separator_CXX=':'
13032     link_all_deplibs_CXX=yes
13033
13034     if test "$GXX" = yes; then
13035       case $host_os in aix4.[012]|aix4.[012].*)
13036       # We only want to do this on AIX 4.2 and lower, the check
13037       # below for broken collect2 doesn't work under 4.3+
13038         collect2name=`${CC} -print-prog-name=collect2`
13039         if test -f "$collect2name" && \
13040            strings "$collect2name" | grep resolve_lib_name >/dev/null
13041         then
13042           # We have reworked collect2
13043           :
13044         else
13045           # We have old collect2
13046           hardcode_direct_CXX=unsupported
13047           # It fails to find uninstalled libraries when the uninstalled
13048           # path is not listed in the libpath.  Setting hardcode_minus_L
13049           # to unsupported forces relinking
13050           hardcode_minus_L_CXX=yes
13051           hardcode_libdir_flag_spec_CXX='-L$libdir'
13052           hardcode_libdir_separator_CXX=
13053         fi
13054         ;;
13055       esac
13056       shared_flag='-shared'
13057       if test "$aix_use_runtimelinking" = yes; then
13058         shared_flag="$shared_flag "'${wl}-G'
13059       fi
13060     else
13061       # not using gcc
13062       if test "$host_cpu" = ia64; then
13063         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13064         # chokes on -Wl,-G. The following line is correct:
13065         shared_flag='-G'
13066       else
13067         if test "$aix_use_runtimelinking" = yes; then
13068           shared_flag='${wl}-G'
13069         else
13070           shared_flag='${wl}-bM:SRE'
13071         fi
13072       fi
13073     fi
13074
13075     # It seems that -bexpall does not export symbols beginning with
13076     # underscore (_), so it is better to generate a list of symbols to export.
13077     always_export_symbols_CXX=yes
13078     if test "$aix_use_runtimelinking" = yes; then
13079       # Warning - without using the other runtime loading flags (-brtl),
13080       # -berok will link without error, but may produce a broken library.
13081       allow_undefined_flag_CXX='-berok'
13082       # Determine the default libpath from the value encoded in an empty executable.
13083       cat >conftest.$ac_ext <<_ACEOF
13084 /* confdefs.h.  */
13085 _ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h.  */
13089
13090 int
13091 main ()
13092 {
13093
13094   ;
13095   return 0;
13096 }
13097 _ACEOF
13098 rm -f conftest.$ac_objext conftest$ac_exeext
13099 if { (ac_try="$ac_link"
13100 case "(($ac_try" in
13101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13102   *) ac_try_echo=$ac_try;;
13103 esac
13104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13105   (eval "$ac_link") 2>conftest.er1
13106   ac_status=$?
13107   grep -v '^ *+' conftest.er1 >conftest.err
13108   rm -f conftest.er1
13109   cat conftest.err >&5
13110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111   (exit $ac_status); } && {
13112          test -z "$ac_cxx_werror_flag" ||
13113          test ! -s conftest.err
13114        } && test -s conftest$ac_exeext &&
13115        $as_test_x conftest$ac_exeext; then
13116
13117 lt_aix_libpath_sed='
13118     /Import File Strings/,/^$/ {
13119         /^0/ {
13120             s/^0  *\(.*\)$/\1/
13121             p
13122         }
13123     }'
13124 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13125 # Check for a 64-bit object if we didn't find anything.
13126 if test -z "$aix_libpath"; then
13127   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13128 fi
13129 else
13130   echo "$as_me: failed program was:" >&5
13131 sed 's/^/| /' conftest.$ac_ext >&5
13132
13133
13134 fi
13135
13136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13137       conftest$ac_exeext conftest.$ac_ext
13138 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13139
13140       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13141
13142       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"
13143      else
13144       if test "$host_cpu" = ia64; then
13145         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13146         allow_undefined_flag_CXX="-z nodefs"
13147         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"
13148       else
13149         # Determine the default libpath from the value encoded in an empty executable.
13150         cat >conftest.$ac_ext <<_ACEOF
13151 /* confdefs.h.  */
13152 _ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h.  */
13156
13157 int
13158 main ()
13159 {
13160
13161   ;
13162   return 0;
13163 }
13164 _ACEOF
13165 rm -f conftest.$ac_objext conftest$ac_exeext
13166 if { (ac_try="$ac_link"
13167 case "(($ac_try" in
13168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169   *) ac_try_echo=$ac_try;;
13170 esac
13171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172   (eval "$ac_link") 2>conftest.er1
13173   ac_status=$?
13174   grep -v '^ *+' conftest.er1 >conftest.err
13175   rm -f conftest.er1
13176   cat conftest.err >&5
13177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178   (exit $ac_status); } && {
13179          test -z "$ac_cxx_werror_flag" ||
13180          test ! -s conftest.err
13181        } && test -s conftest$ac_exeext &&
13182        $as_test_x conftest$ac_exeext; then
13183
13184 lt_aix_libpath_sed='
13185     /Import File Strings/,/^$/ {
13186         /^0/ {
13187             s/^0  *\(.*\)$/\1/
13188             p
13189         }
13190     }'
13191 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13192 # Check for a 64-bit object if we didn't find anything.
13193 if test -z "$aix_libpath"; then
13194   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13195 fi
13196 else
13197   echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13199
13200
13201 fi
13202
13203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13204       conftest$ac_exeext conftest.$ac_ext
13205 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13206
13207         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13208         # Warning - without using the other run time loading flags,
13209         # -berok will link without error, but may produce a broken library.
13210         no_undefined_flag_CXX=' ${wl}-bernotok'
13211         allow_undefined_flag_CXX=' ${wl}-berok'
13212         # Exported symbols can be pulled into shared objects from archives
13213         whole_archive_flag_spec_CXX='$convenience'
13214         archive_cmds_need_lc_CXX=yes
13215         # This is similar to how AIX traditionally builds its shared libraries.
13216         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'
13217       fi
13218     fi
13219     ;;
13220
13221   beos*)
13222     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13223       allow_undefined_flag_CXX=unsupported
13224       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13225       # support --undefined.  This deserves some investigation.  FIXME
13226       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13227     else
13228       ld_shlibs_CXX=no
13229     fi
13230     ;;
13231
13232   chorus*)
13233     case $cc_basename in
13234       *)
13235         # FIXME: insert proper C++ library support
13236         ld_shlibs_CXX=no
13237         ;;
13238     esac
13239     ;;
13240
13241   cygwin* | mingw* | pw32*)
13242     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13243     # as there is no search path for DLLs.
13244     hardcode_libdir_flag_spec_CXX='-L$libdir'
13245     allow_undefined_flag_CXX=unsupported
13246     always_export_symbols_CXX=no
13247     enable_shared_with_static_runtimes_CXX=yes
13248
13249     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13250       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'
13251       # If the export-symbols file already is a .def file (1st line
13252       # is EXPORTS), use it as is; otherwise, prepend...
13253       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13254         cp $export_symbols $output_objdir/$soname.def;
13255       else
13256         echo EXPORTS > $output_objdir/$soname.def;
13257         cat $export_symbols >> $output_objdir/$soname.def;
13258       fi~
13259       $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'
13260     else
13261       ld_shlibs_CXX=no
13262     fi
13263   ;;
13264       darwin* | rhapsody*)
13265       archive_cmds_need_lc_CXX=no
13266       hardcode_direct_CXX=no
13267       hardcode_automatic_CXX=yes
13268       hardcode_shlibpath_var_CXX=unsupported
13269       whole_archive_flag_spec_CXX=''
13270       link_all_deplibs_CXX=yes
13271       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13272       if test "$GXX" = yes ; then
13273       output_verbose_link_cmd='echo'
13274       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}"
13275       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13276       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}"
13277       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}"
13278       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13279         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}"
13280         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}"
13281       fi
13282       else
13283       case $cc_basename in
13284         xlc*)
13285          output_verbose_link_cmd='echo'
13286           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'
13287           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13288           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13289           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}'
13290           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}'
13291           ;;
13292        *)
13293          ld_shlibs_CXX=no
13294           ;;
13295       esac
13296       fi
13297         ;;
13298
13299   dgux*)
13300     case $cc_basename in
13301       ec++*)
13302         # FIXME: insert proper C++ library support
13303         ld_shlibs_CXX=no
13304         ;;
13305       ghcx*)
13306         # Green Hills C++ Compiler
13307         # FIXME: insert proper C++ library support
13308         ld_shlibs_CXX=no
13309         ;;
13310       *)
13311         # FIXME: insert proper C++ library support
13312         ld_shlibs_CXX=no
13313         ;;
13314     esac
13315     ;;
13316   freebsd[12]*)
13317     # C++ shared libraries reported to be fairly broken before switch to ELF
13318     ld_shlibs_CXX=no
13319     ;;
13320   freebsd-elf*)
13321     archive_cmds_need_lc_CXX=no
13322     ;;
13323   freebsd* | dragonfly*)
13324     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13325     # conventions
13326     ld_shlibs_CXX=yes
13327     ;;
13328   gnu*)
13329     ;;
13330   hpux9*)
13331     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13332     hardcode_libdir_separator_CXX=:
13333     export_dynamic_flag_spec_CXX='${wl}-E'
13334     hardcode_direct_CXX=yes
13335     hardcode_minus_L_CXX=yes # Not in the search PATH,
13336                                 # but as the default
13337                                 # location of the library.
13338
13339     case $cc_basename in
13340     CC*)
13341       # FIXME: insert proper C++ library support
13342       ld_shlibs_CXX=no
13343       ;;
13344     aCC*)
13345       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'
13346       # Commands to make compiler produce verbose output that lists
13347       # what "hidden" libraries, object files and flags are used when
13348       # linking a shared library.
13349       #
13350       # There doesn't appear to be a way to prevent this compiler from
13351       # explicitly linking system object files so we need to strip them
13352       # from the output so that they don't get included in the library
13353       # dependencies.
13354       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'
13355       ;;
13356     *)
13357       if test "$GXX" = yes; then
13358         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'
13359       else
13360         # FIXME: insert proper C++ library support
13361         ld_shlibs_CXX=no
13362       fi
13363       ;;
13364     esac
13365     ;;
13366   hpux10*|hpux11*)
13367     if test $with_gnu_ld = no; then
13368       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13369       hardcode_libdir_separator_CXX=:
13370
13371       case $host_cpu in
13372       hppa*64*|ia64*) ;;
13373       *)
13374         export_dynamic_flag_spec_CXX='${wl}-E'
13375         ;;
13376       esac
13377     fi
13378     case $host_cpu in
13379     hppa*64*|ia64*)
13380       hardcode_direct_CXX=no
13381       hardcode_shlibpath_var_CXX=no
13382       ;;
13383     *)
13384       hardcode_direct_CXX=yes
13385       hardcode_minus_L_CXX=yes # Not in the search PATH,
13386                                               # but as the default
13387                                               # location of the library.
13388       ;;
13389     esac
13390
13391     case $cc_basename in
13392       CC*)
13393         # FIXME: insert proper C++ library support
13394         ld_shlibs_CXX=no
13395         ;;
13396       aCC*)
13397         case $host_cpu in
13398         hppa*64*)
13399           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13400           ;;
13401         ia64*)
13402           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13403           ;;
13404         *)
13405           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13406           ;;
13407         esac
13408         # Commands to make compiler produce verbose output that lists
13409         # what "hidden" libraries, object files and flags are used when
13410         # linking a shared library.
13411         #
13412         # There doesn't appear to be a way to prevent this compiler from
13413         # explicitly linking system object files so we need to strip them
13414         # from the output so that they don't get included in the library
13415         # dependencies.
13416         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'
13417         ;;
13418       *)
13419         if test "$GXX" = yes; then
13420           if test $with_gnu_ld = no; then
13421             case $host_cpu in
13422             hppa*64*)
13423               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13424               ;;
13425             ia64*)
13426               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13427               ;;
13428             *)
13429               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'
13430               ;;
13431             esac
13432           fi
13433         else
13434           # FIXME: insert proper C++ library support
13435           ld_shlibs_CXX=no
13436         fi
13437         ;;
13438     esac
13439     ;;
13440   interix[3-9]*)
13441     hardcode_direct_CXX=no
13442     hardcode_shlibpath_var_CXX=no
13443     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13444     export_dynamic_flag_spec_CXX='${wl}-E'
13445     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13446     # Instead, shared libraries are loaded at an image base (0x10000000 by
13447     # default) and relocated if they conflict, which is a slow very memory
13448     # consuming and fragmenting process.  To avoid this, we pick a random,
13449     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13450     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13451     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'
13452     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'
13453     ;;
13454   irix5* | irix6*)
13455     case $cc_basename in
13456       CC*)
13457         # SGI C++
13458         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'
13459
13460         # Archives containing C++ object files must be created using
13461         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13462         # necessary to make sure instantiated templates are included
13463         # in the archive.
13464         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13465         ;;
13466       *)
13467         if test "$GXX" = yes; then
13468           if test "$with_gnu_ld" = no; then
13469             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'
13470           else
13471             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'
13472           fi
13473         fi
13474         link_all_deplibs_CXX=yes
13475         ;;
13476     esac
13477     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13478     hardcode_libdir_separator_CXX=:
13479     ;;
13480   linux* | k*bsd*-gnu)
13481     case $cc_basename in
13482       KCC*)
13483         # Kuck and Associates, Inc. (KAI) C++ Compiler
13484
13485         # KCC will only create a shared library if the output file
13486         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13487         # to its proper name (with version) after linking.
13488         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'
13489         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'
13490         # Commands to make compiler produce verbose output that lists
13491         # what "hidden" libraries, object files and flags are used when
13492         # linking a shared library.
13493         #
13494         # There doesn't appear to be a way to prevent this compiler from
13495         # explicitly linking system object files so we need to strip them
13496         # from the output so that they don't get included in the library
13497         # dependencies.
13498         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'
13499
13500         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13501         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13502
13503         # Archives containing C++ object files must be created using
13504         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13505         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13506         ;;
13507       icpc*)
13508         # Intel C++
13509         with_gnu_ld=yes
13510         # version 8.0 and above of icpc choke on multiply defined symbols
13511         # if we add $predep_objects and $postdep_objects, however 7.1 and
13512         # earlier do not add the objects themselves.
13513         case `$CC -V 2>&1` in
13514         *"Version 7."*)
13515           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13516           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'
13517           ;;
13518         *)  # Version 8.0 or newer
13519           tmp_idyn=
13520           case $host_cpu in
13521             ia64*) tmp_idyn=' -i_dynamic';;
13522           esac
13523           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13524           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'
13525           ;;
13526         esac
13527         archive_cmds_need_lc_CXX=no
13528         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13529         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13530         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13531         ;;
13532       pgCC* | pgcpp*)
13533         # Portland Group C++ compiler
13534         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13535         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'
13536
13537         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13538         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13539         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'
13540         ;;
13541       cxx*)
13542         # Compaq C++
13543         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13544         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'
13545
13546         runpath_var=LD_RUN_PATH
13547         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13548         hardcode_libdir_separator_CXX=:
13549
13550         # Commands to make compiler produce verbose output that lists
13551         # what "hidden" libraries, object files and flags are used when
13552         # linking a shared library.
13553         #
13554         # There doesn't appear to be a way to prevent this compiler from
13555         # explicitly linking system object files so we need to strip them
13556         # from the output so that they don't get included in the library
13557         # dependencies.
13558         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'
13559         ;;
13560       *)
13561         case `$CC -V 2>&1 | sed 5q` in
13562         *Sun\ C*)
13563           # Sun C++ 5.9
13564           no_undefined_flag_CXX=' -zdefs'
13565           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13566           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'
13567           hardcode_libdir_flag_spec_CXX='-R$libdir'
13568           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'
13569
13570           # Not sure whether something based on
13571           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13572           # would be better.
13573           output_verbose_link_cmd='echo'
13574
13575           # Archives containing C++ object files must be created using
13576           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13577           # necessary to make sure instantiated templates are included
13578           # in the archive.
13579           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13580           ;;
13581         esac
13582         ;;
13583     esac
13584     ;;
13585   lynxos*)
13586     # FIXME: insert proper C++ library support
13587     ld_shlibs_CXX=no
13588     ;;
13589   m88k*)
13590     # FIXME: insert proper C++ library support
13591     ld_shlibs_CXX=no
13592     ;;
13593   mvs*)
13594     case $cc_basename in
13595       cxx*)
13596         # FIXME: insert proper C++ library support
13597         ld_shlibs_CXX=no
13598         ;;
13599       *)
13600         # FIXME: insert proper C++ library support
13601         ld_shlibs_CXX=no
13602         ;;
13603     esac
13604     ;;
13605   netbsd*)
13606     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13607       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13608       wlarc=
13609       hardcode_libdir_flag_spec_CXX='-R$libdir'
13610       hardcode_direct_CXX=yes
13611       hardcode_shlibpath_var_CXX=no
13612     fi
13613     # Workaround some broken pre-1.5 toolchains
13614     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13615     ;;
13616   openbsd2*)
13617     # C++ shared libraries are fairly broken
13618     ld_shlibs_CXX=no
13619     ;;
13620   openbsd*)
13621     if test -f /usr/libexec/ld.so; then
13622       hardcode_direct_CXX=yes
13623       hardcode_shlibpath_var_CXX=no
13624       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13625       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13626       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13627         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13628         export_dynamic_flag_spec_CXX='${wl}-E'
13629         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13630       fi
13631       output_verbose_link_cmd='echo'
13632     else
13633       ld_shlibs_CXX=no
13634     fi
13635     ;;
13636   osf3*)
13637     case $cc_basename in
13638       KCC*)
13639         # Kuck and Associates, Inc. (KAI) C++ Compiler
13640
13641         # KCC will only create a shared library if the output file
13642         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13643         # to its proper name (with version) after linking.
13644         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'
13645
13646         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13647         hardcode_libdir_separator_CXX=:
13648
13649         # Archives containing C++ object files must be created using
13650         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13651         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13652
13653         ;;
13654       RCC*)
13655         # Rational C++ 2.4.1
13656         # FIXME: insert proper C++ library support
13657         ld_shlibs_CXX=no
13658         ;;
13659       cxx*)
13660         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13661         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'
13662
13663         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13664         hardcode_libdir_separator_CXX=:
13665
13666         # Commands to make compiler produce verbose output that lists
13667         # what "hidden" libraries, object files and flags are used when
13668         # linking a shared library.
13669         #
13670         # There doesn't appear to be a way to prevent this compiler from
13671         # explicitly linking system object files so we need to strip them
13672         # from the output so that they don't get included in the library
13673         # dependencies.
13674         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'
13675         ;;
13676       *)
13677         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13678           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13679           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'
13680
13681           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13682           hardcode_libdir_separator_CXX=:
13683
13684           # Commands to make compiler produce verbose output that lists
13685           # what "hidden" libraries, object files and flags are used when
13686           # linking a shared library.
13687           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13688
13689         else
13690           # FIXME: insert proper C++ library support
13691           ld_shlibs_CXX=no
13692         fi
13693         ;;
13694     esac
13695     ;;
13696   osf4* | osf5*)
13697     case $cc_basename in
13698       KCC*)
13699         # Kuck and Associates, Inc. (KAI) C++ Compiler
13700
13701         # KCC will only create a shared library if the output file
13702         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13703         # to its proper name (with version) after linking.
13704         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'
13705
13706         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13707         hardcode_libdir_separator_CXX=:
13708
13709         # Archives containing C++ object files must be created using
13710         # the KAI C++ compiler.
13711         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13712         ;;
13713       RCC*)
13714         # Rational C++ 2.4.1
13715         # FIXME: insert proper C++ library support
13716         ld_shlibs_CXX=no
13717         ;;
13718       cxx*)
13719         allow_undefined_flag_CXX=' -expect_unresolved \*'
13720         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'
13721         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13722           echo "-hidden">> $lib.exp~
13723           $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~
13724           $rm $lib.exp'
13725
13726         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13727         hardcode_libdir_separator_CXX=:
13728
13729         # Commands to make compiler produce verbose output that lists
13730         # what "hidden" libraries, object files and flags are used when
13731         # linking a shared library.
13732         #
13733         # There doesn't appear to be a way to prevent this compiler from
13734         # explicitly linking system object files so we need to strip them
13735         # from the output so that they don't get included in the library
13736         # dependencies.
13737         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'
13738         ;;
13739       *)
13740         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13741           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13742          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'
13743
13744           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13745           hardcode_libdir_separator_CXX=:
13746
13747           # Commands to make compiler produce verbose output that lists
13748           # what "hidden" libraries, object files and flags are used when
13749           # linking a shared library.
13750           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13751
13752         else
13753           # FIXME: insert proper C++ library support
13754           ld_shlibs_CXX=no
13755         fi
13756         ;;
13757     esac
13758     ;;
13759   psos*)
13760     # FIXME: insert proper C++ library support
13761     ld_shlibs_CXX=no
13762     ;;
13763   sunos4*)
13764     case $cc_basename in
13765       CC*)
13766         # Sun C++ 4.x
13767         # FIXME: insert proper C++ library support
13768         ld_shlibs_CXX=no
13769         ;;
13770       lcc*)
13771         # Lucid
13772         # FIXME: insert proper C++ library support
13773         ld_shlibs_CXX=no
13774         ;;
13775       *)
13776         # FIXME: insert proper C++ library support
13777         ld_shlibs_CXX=no
13778         ;;
13779     esac
13780     ;;
13781   solaris*)
13782     case $cc_basename in
13783       CC*)
13784         # Sun C++ 4.2, 5.x and Centerline C++
13785         archive_cmds_need_lc_CXX=yes
13786         no_undefined_flag_CXX=' -zdefs'
13787         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13788         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13789         $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'
13790
13791         hardcode_libdir_flag_spec_CXX='-R$libdir'
13792         hardcode_shlibpath_var_CXX=no
13793         case $host_os in
13794           solaris2.[0-5] | solaris2.[0-5].*) ;;
13795           *)
13796             # The compiler driver will combine and reorder linker options,
13797             # but understands `-z linker_flag'.
13798             # Supported since Solaris 2.6 (maybe 2.5.1?)
13799             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13800             ;;
13801         esac
13802         link_all_deplibs_CXX=yes
13803
13804         output_verbose_link_cmd='echo'
13805
13806         # Archives containing C++ object files must be created using
13807         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13808         # necessary to make sure instantiated templates are included
13809         # in the archive.
13810         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13811         ;;
13812       gcx*)
13813         # Green Hills C++ Compiler
13814         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13815
13816         # The C++ compiler must be used to create the archive.
13817         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13818         ;;
13819       *)
13820         # GNU C++ compiler with Solaris linker
13821         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13822           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13823           if $CC --version | grep -v '^2\.7' > /dev/null; then
13824             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13825             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13826                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13827
13828             # Commands to make compiler produce verbose output that lists
13829             # what "hidden" libraries, object files and flags are used when
13830             # linking a shared library.
13831             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13832           else
13833             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13834             # platform.
13835             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13836             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13837                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13838
13839             # Commands to make compiler produce verbose output that lists
13840             # what "hidden" libraries, object files and flags are used when
13841             # linking a shared library.
13842             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13843           fi
13844
13845           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13846           case $host_os in
13847           solaris2.[0-5] | solaris2.[0-5].*) ;;
13848           *)
13849             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13850             ;;
13851           esac
13852         fi
13853         ;;
13854     esac
13855     ;;
13856   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13857     no_undefined_flag_CXX='${wl}-z,text'
13858     archive_cmds_need_lc_CXX=no
13859     hardcode_shlibpath_var_CXX=no
13860     runpath_var='LD_RUN_PATH'
13861
13862     case $cc_basename in
13863       CC*)
13864         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13865         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13866         ;;
13867       *)
13868         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13869         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13870         ;;
13871     esac
13872     ;;
13873   sysv5* | sco3.2v5* | sco5v6*)
13874     # Note: We can NOT use -z defs as we might desire, because we do not
13875     # link with -lc, and that would cause any symbols used from libc to
13876     # always be unresolved, which means just about no library would
13877     # ever link correctly.  If we're not using GNU ld we use -z text
13878     # though, which does catch some bad symbols but isn't as heavy-handed
13879     # as -z defs.
13880     # For security reasons, it is highly recommended that you always
13881     # use absolute paths for naming shared libraries, and exclude the
13882     # DT_RUNPATH tag from executables and libraries.  But doing so
13883     # requires that you compile everything twice, which is a pain.
13884     # So that behaviour is only enabled if SCOABSPATH is set to a
13885     # non-empty value in the environment.  Most likely only useful for
13886     # creating official distributions of packages.
13887     # This is a hack until libtool officially supports absolute path
13888     # names for shared libraries.
13889     no_undefined_flag_CXX='${wl}-z,text'
13890     allow_undefined_flag_CXX='${wl}-z,nodefs'
13891     archive_cmds_need_lc_CXX=no
13892     hardcode_shlibpath_var_CXX=no
13893     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13894     hardcode_libdir_separator_CXX=':'
13895     link_all_deplibs_CXX=yes
13896     export_dynamic_flag_spec_CXX='${wl}-Bexport'
13897     runpath_var='LD_RUN_PATH'
13898
13899     case $cc_basename in
13900       CC*)
13901         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13902         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13903         ;;
13904       *)
13905         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13906         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13907         ;;
13908     esac
13909     ;;
13910   tandem*)
13911     case $cc_basename in
13912       NCC*)
13913         # NonStop-UX NCC 3.20
13914         # FIXME: insert proper C++ library support
13915         ld_shlibs_CXX=no
13916         ;;
13917       *)
13918         # FIXME: insert proper C++ library support
13919         ld_shlibs_CXX=no
13920         ;;
13921     esac
13922     ;;
13923   vxworks*)
13924     # FIXME: insert proper C++ library support
13925     ld_shlibs_CXX=no
13926     ;;
13927   *)
13928     # FIXME: insert proper C++ library support
13929     ld_shlibs_CXX=no
13930     ;;
13931 esac
13932 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13933 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13934 test "$ld_shlibs_CXX" = no && can_build_shared=no
13935
13936 GCC_CXX="$GXX"
13937 LD_CXX="$LD"
13938
13939 cat > conftest.$ac_ext <<EOF
13940 class Foo
13941 {
13942 public:
13943   Foo (void) { a = 0; }
13944 private:
13945   int a;
13946 };
13947 EOF
13948
13949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13950   (eval $ac_compile) 2>&5
13951   ac_status=$?
13952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); }; then
13954   # Parse the compiler output and extract the necessary
13955   # objects, libraries and library flags.
13956
13957   # Sentinel used to keep track of whether or not we are before
13958   # the conftest object file.
13959   pre_test_object_deps_done=no
13960
13961   # The `*' in the case matches for architectures that use `case' in
13962   # $output_verbose_cmd can trigger glob expansion during the loop
13963   # eval without this substitution.
13964   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13965
13966   for p in `eval $output_verbose_link_cmd`; do
13967     case $p in
13968
13969     -L* | -R* | -l*)
13970        # Some compilers place space between "-{L,R}" and the path.
13971        # Remove the space.
13972        if test $p = "-L" \
13973           || test $p = "-R"; then
13974          prev=$p
13975          continue
13976        else
13977          prev=
13978        fi
13979
13980        if test "$pre_test_object_deps_done" = no; then
13981          case $p in
13982          -L* | -R*)
13983            # Internal compiler library paths should come after those
13984            # provided the user.  The postdeps already come after the
13985            # user supplied libs so there is no need to process them.
13986            if test -z "$compiler_lib_search_path_CXX"; then
13987              compiler_lib_search_path_CXX="${prev}${p}"
13988            else
13989              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13990            fi
13991            ;;
13992          # The "-l" case would never come before the object being
13993          # linked, so don't bother handling this case.
13994          esac
13995        else
13996          if test -z "$postdeps_CXX"; then
13997            postdeps_CXX="${prev}${p}"
13998          else
13999            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14000          fi
14001        fi
14002        ;;
14003
14004     *.$objext)
14005        # This assumes that the test object file only shows up
14006        # once in the compiler output.
14007        if test "$p" = "conftest.$objext"; then
14008          pre_test_object_deps_done=yes
14009          continue
14010        fi
14011
14012        if test "$pre_test_object_deps_done" = no; then
14013          if test -z "$predep_objects_CXX"; then
14014            predep_objects_CXX="$p"
14015          else
14016            predep_objects_CXX="$predep_objects_CXX $p"
14017          fi
14018        else
14019          if test -z "$postdep_objects_CXX"; then
14020            postdep_objects_CXX="$p"
14021          else
14022            postdep_objects_CXX="$postdep_objects_CXX $p"
14023          fi
14024        fi
14025        ;;
14026
14027     *) ;; # Ignore the rest.
14028
14029     esac
14030   done
14031
14032   # Clean up.
14033   rm -f a.out a.exe
14034 else
14035   echo "libtool.m4: error: problem compiling CXX test program"
14036 fi
14037
14038 $rm -f confest.$objext
14039
14040 compiler_lib_search_dirs_CXX=
14041 if test -n "$compiler_lib_search_path_CXX"; then
14042   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14043 fi
14044
14045 # PORTME: override above test on systems where it is broken
14046 case $host_os in
14047 interix[3-9]*)
14048   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14049   # hack all around it, let's just trust "g++" to DTRT.
14050   predep_objects_CXX=
14051   postdep_objects_CXX=
14052   postdeps_CXX=
14053   ;;
14054
14055 linux*)
14056   case `$CC -V 2>&1 | sed 5q` in
14057   *Sun\ C*)
14058     # Sun C++ 5.9
14059     #
14060     # The more standards-conforming stlport4 library is
14061     # incompatible with the Cstd library. Avoid specifying
14062     # it if it's in CXXFLAGS. Ignore libCrun as
14063     # -library=stlport4 depends on it.
14064     case " $CXX $CXXFLAGS " in
14065     *" -library=stlport4 "*)
14066       solaris_use_stlport4=yes
14067       ;;
14068     esac
14069     if test "$solaris_use_stlport4" != yes; then
14070       postdeps_CXX='-library=Cstd -library=Crun'
14071     fi
14072     ;;
14073   esac
14074   ;;
14075
14076 solaris*)
14077   case $cc_basename in
14078   CC*)
14079     # The more standards-conforming stlport4 library is
14080     # incompatible with the Cstd library. Avoid specifying
14081     # it if it's in CXXFLAGS. Ignore libCrun as
14082     # -library=stlport4 depends on it.
14083     case " $CXX $CXXFLAGS " in
14084     *" -library=stlport4 "*)
14085       solaris_use_stlport4=yes
14086       ;;
14087     esac
14088
14089     # Adding this requires a known-good setup of shared libraries for
14090     # Sun compiler versions before 5.6, else PIC objects from an old
14091     # archive will be linked into the output, leading to subtle bugs.
14092     if test "$solaris_use_stlport4" != yes; then
14093       postdeps_CXX='-library=Cstd -library=Crun'
14094     fi
14095     ;;
14096   esac
14097   ;;
14098 esac
14099
14100 case " $postdeps_CXX " in
14101 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14102 esac
14103
14104 lt_prog_compiler_wl_CXX=
14105 lt_prog_compiler_pic_CXX=
14106 lt_prog_compiler_static_CXX=
14107
14108 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14109 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14110
14111   # C++ specific cases for pic, static, wl, etc.
14112   if test "$GXX" = yes; then
14113     lt_prog_compiler_wl_CXX='-Wl,'
14114     lt_prog_compiler_static_CXX='-static'
14115
14116     case $host_os in
14117     aix*)
14118       # All AIX code is PIC.
14119       if test "$host_cpu" = ia64; then
14120         # AIX 5 now supports IA64 processor
14121         lt_prog_compiler_static_CXX='-Bstatic'
14122       fi
14123       ;;
14124     amigaos*)
14125       # FIXME: we need at least 68020 code to build shared libraries, but
14126       # adding the `-m68020' flag to GCC prevents building anything better,
14127       # like `-m68040'.
14128       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14129       ;;
14130     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14131       # PIC is the default for these OSes.
14132       ;;
14133     mingw* | cygwin* | os2* | pw32*)
14134       # This hack is so that the source file can tell whether it is being
14135       # built for inclusion in a dll (and should export symbols for example).
14136       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14137       # (--disable-auto-import) libraries
14138       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14139       ;;
14140     darwin* | rhapsody*)
14141       # PIC is the default on this platform
14142       # Common symbols not allowed in MH_DYLIB files
14143       lt_prog_compiler_pic_CXX='-fno-common'
14144       ;;
14145     *djgpp*)
14146       # DJGPP does not support shared libraries at all
14147       lt_prog_compiler_pic_CXX=
14148       ;;
14149     interix[3-9]*)
14150       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14151       # Instead, we relocate shared libraries at runtime.
14152       ;;
14153     sysv4*MP*)
14154       if test -d /usr/nec; then
14155         lt_prog_compiler_pic_CXX=-Kconform_pic
14156       fi
14157       ;;
14158     hpux*)
14159       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14160       # not for PA HP-UX.
14161       case $host_cpu in
14162       hppa*64*|ia64*)
14163         ;;
14164       *)
14165         lt_prog_compiler_pic_CXX='-fPIC'
14166         ;;
14167       esac
14168       ;;
14169     *)
14170       lt_prog_compiler_pic_CXX='-fPIC'
14171       ;;
14172     esac
14173   else
14174     case $host_os in
14175       aix[4-9]*)
14176         # All AIX code is PIC.
14177         if test "$host_cpu" = ia64; then
14178           # AIX 5 now supports IA64 processor
14179           lt_prog_compiler_static_CXX='-Bstatic'
14180         else
14181           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14182         fi
14183         ;;
14184       chorus*)
14185         case $cc_basename in
14186         cxch68*)
14187           # Green Hills C++ Compiler
14188           # _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"
14189           ;;
14190         esac
14191         ;;
14192        darwin*)
14193          # PIC is the default on this platform
14194          # Common symbols not allowed in MH_DYLIB files
14195          case $cc_basename in
14196            xlc*)
14197            lt_prog_compiler_pic_CXX='-qnocommon'
14198            lt_prog_compiler_wl_CXX='-Wl,'
14199            ;;
14200          esac
14201        ;;
14202       dgux*)
14203         case $cc_basename in
14204           ec++*)
14205             lt_prog_compiler_pic_CXX='-KPIC'
14206             ;;
14207           ghcx*)
14208             # Green Hills C++ Compiler
14209             lt_prog_compiler_pic_CXX='-pic'
14210             ;;
14211           *)
14212             ;;
14213         esac
14214         ;;
14215       freebsd* | dragonfly*)
14216         # FreeBSD uses GNU C++
14217         ;;
14218       hpux9* | hpux10* | hpux11*)
14219         case $cc_basename in
14220           CC*)
14221             lt_prog_compiler_wl_CXX='-Wl,'
14222             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14223             if test "$host_cpu" != ia64; then
14224               lt_prog_compiler_pic_CXX='+Z'
14225             fi
14226             ;;
14227           aCC*)
14228             lt_prog_compiler_wl_CXX='-Wl,'
14229             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14230             case $host_cpu in
14231             hppa*64*|ia64*)
14232               # +Z the default
14233               ;;
14234             *)
14235               lt_prog_compiler_pic_CXX='+Z'
14236               ;;
14237             esac
14238             ;;
14239           *)
14240             ;;
14241         esac
14242         ;;
14243       interix*)
14244         # This is c89, which is MS Visual C++ (no shared libs)
14245         # Anyone wants to do a port?
14246         ;;
14247       irix5* | irix6* | nonstopux*)
14248         case $cc_basename in
14249           CC*)
14250             lt_prog_compiler_wl_CXX='-Wl,'
14251             lt_prog_compiler_static_CXX='-non_shared'
14252             # CC pic flag -KPIC is the default.
14253             ;;
14254           *)
14255             ;;
14256         esac
14257         ;;
14258       linux* | k*bsd*-gnu)
14259         case $cc_basename in
14260           KCC*)
14261             # KAI C++ Compiler
14262             lt_prog_compiler_wl_CXX='--backend -Wl,'
14263             lt_prog_compiler_pic_CXX='-fPIC'
14264             ;;
14265           icpc* | ecpc*)
14266             # Intel C++
14267             lt_prog_compiler_wl_CXX='-Wl,'
14268             lt_prog_compiler_pic_CXX='-KPIC'
14269             lt_prog_compiler_static_CXX='-static'
14270             ;;
14271           pgCC* | pgcpp*)
14272             # Portland Group C++ compiler.
14273             lt_prog_compiler_wl_CXX='-Wl,'
14274             lt_prog_compiler_pic_CXX='-fpic'
14275             lt_prog_compiler_static_CXX='-Bstatic'
14276             ;;
14277           cxx*)
14278             # Compaq C++
14279             # Make sure the PIC flag is empty.  It appears that all Alpha
14280             # Linux and Compaq Tru64 Unix objects are PIC.
14281             lt_prog_compiler_pic_CXX=
14282             lt_prog_compiler_static_CXX='-non_shared'
14283             ;;
14284           *)
14285             case `$CC -V 2>&1 | sed 5q` in
14286             *Sun\ C*)
14287               # Sun C++ 5.9
14288               lt_prog_compiler_pic_CXX='-KPIC'
14289               lt_prog_compiler_static_CXX='-Bstatic'
14290               lt_prog_compiler_wl_CXX='-Qoption ld '
14291               ;;
14292             esac
14293             ;;
14294         esac
14295         ;;
14296       lynxos*)
14297         ;;
14298       m88k*)
14299         ;;
14300       mvs*)
14301         case $cc_basename in
14302           cxx*)
14303             lt_prog_compiler_pic_CXX='-W c,exportall'
14304             ;;
14305           *)
14306             ;;
14307         esac
14308         ;;
14309       netbsd*)
14310         ;;
14311       osf3* | osf4* | osf5*)
14312         case $cc_basename in
14313           KCC*)
14314             lt_prog_compiler_wl_CXX='--backend -Wl,'
14315             ;;
14316           RCC*)
14317             # Rational C++ 2.4.1
14318             lt_prog_compiler_pic_CXX='-pic'
14319             ;;
14320           cxx*)
14321             # Digital/Compaq C++
14322             lt_prog_compiler_wl_CXX='-Wl,'
14323             # Make sure the PIC flag is empty.  It appears that all Alpha
14324             # Linux and Compaq Tru64 Unix objects are PIC.
14325             lt_prog_compiler_pic_CXX=
14326             lt_prog_compiler_static_CXX='-non_shared'
14327             ;;
14328           *)
14329             ;;
14330         esac
14331         ;;
14332       psos*)
14333         ;;
14334       solaris*)
14335         case $cc_basename in
14336           CC*)
14337             # Sun C++ 4.2, 5.x and Centerline C++
14338             lt_prog_compiler_pic_CXX='-KPIC'
14339             lt_prog_compiler_static_CXX='-Bstatic'
14340             lt_prog_compiler_wl_CXX='-Qoption ld '
14341             ;;
14342           gcx*)
14343             # Green Hills C++ Compiler
14344             lt_prog_compiler_pic_CXX='-PIC'
14345             ;;
14346           *)
14347             ;;
14348         esac
14349         ;;
14350       sunos4*)
14351         case $cc_basename in
14352           CC*)
14353             # Sun C++ 4.x
14354             lt_prog_compiler_pic_CXX='-pic'
14355             lt_prog_compiler_static_CXX='-Bstatic'
14356             ;;
14357           lcc*)
14358             # Lucid
14359             lt_prog_compiler_pic_CXX='-pic'
14360             ;;
14361           *)
14362             ;;
14363         esac
14364         ;;
14365       tandem*)
14366         case $cc_basename in
14367           NCC*)
14368             # NonStop-UX NCC 3.20
14369             lt_prog_compiler_pic_CXX='-KPIC'
14370             ;;
14371           *)
14372             ;;
14373         esac
14374         ;;
14375       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14376         case $cc_basename in
14377           CC*)
14378             lt_prog_compiler_wl_CXX='-Wl,'
14379             lt_prog_compiler_pic_CXX='-KPIC'
14380             lt_prog_compiler_static_CXX='-Bstatic'
14381             ;;
14382         esac
14383         ;;
14384       vxworks*)
14385         ;;
14386       *)
14387         lt_prog_compiler_can_build_shared_CXX=no
14388         ;;
14389     esac
14390   fi
14391
14392 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14393 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14394
14395 #
14396 # Check to make sure the PIC flag actually works.
14397 #
14398 if test -n "$lt_prog_compiler_pic_CXX"; then
14399
14400 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14401 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14402 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14403   echo $ECHO_N "(cached) $ECHO_C" >&6
14404 else
14405   lt_cv_prog_compiler_pic_works_CXX=no
14406   ac_outfile=conftest.$ac_objext
14407    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14408    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14409    # Insert the option either (1) after the last *FLAGS variable, or
14410    # (2) before a word containing "conftest.", or (3) at the end.
14411    # Note that $ac_compile itself does not contain backslashes and begins
14412    # with a dollar sign (not a hyphen), so the echo should work correctly.
14413    # The option is referenced via a variable to avoid confusing sed.
14414    lt_compile=`echo "$ac_compile" | $SED \
14415    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14416    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14417    -e 's:$: $lt_compiler_flag:'`
14418    (eval echo "\"\$as_me:14418: $lt_compile\"" >&5)
14419    (eval "$lt_compile" 2>conftest.err)
14420    ac_status=$?
14421    cat conftest.err >&5
14422    echo "$as_me:14422: \$? = $ac_status" >&5
14423    if (exit $ac_status) && test -s "$ac_outfile"; then
14424      # The compiler can only warn and ignore the option if not recognized
14425      # So say no if there are warnings other than the usual output.
14426      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14427      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14428      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14429        lt_cv_prog_compiler_pic_works_CXX=yes
14430      fi
14431    fi
14432    $rm conftest*
14433
14434 fi
14435 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14436 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14437
14438 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14439     case $lt_prog_compiler_pic_CXX in
14440      "" | " "*) ;;
14441      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14442      esac
14443 else
14444     lt_prog_compiler_pic_CXX=
14445      lt_prog_compiler_can_build_shared_CXX=no
14446 fi
14447
14448 fi
14449 case $host_os in
14450   # For platforms which do not support PIC, -DPIC is meaningless:
14451   *djgpp*)
14452     lt_prog_compiler_pic_CXX=
14453     ;;
14454   *)
14455     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14456     ;;
14457 esac
14458
14459 #
14460 # Check to make sure the static flag actually works.
14461 #
14462 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14463 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14464 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14465 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14466   echo $ECHO_N "(cached) $ECHO_C" >&6
14467 else
14468   lt_cv_prog_compiler_static_works_CXX=no
14469    save_LDFLAGS="$LDFLAGS"
14470    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14471    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14472    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14473      # The linker can only warn and ignore the option if not recognized
14474      # So say no if there are warnings
14475      if test -s conftest.err; then
14476        # Append any errors to the config.log.
14477        cat conftest.err 1>&5
14478        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14479        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14480        if diff conftest.exp conftest.er2 >/dev/null; then
14481          lt_cv_prog_compiler_static_works_CXX=yes
14482        fi
14483      else
14484        lt_cv_prog_compiler_static_works_CXX=yes
14485      fi
14486    fi
14487    $rm -r conftest*
14488    LDFLAGS="$save_LDFLAGS"
14489
14490 fi
14491 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14492 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14493
14494 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14495     :
14496 else
14497     lt_prog_compiler_static_CXX=
14498 fi
14499
14500
14501 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14502 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14503 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14504   echo $ECHO_N "(cached) $ECHO_C" >&6
14505 else
14506   lt_cv_prog_compiler_c_o_CXX=no
14507    $rm -r conftest 2>/dev/null
14508    mkdir conftest
14509    cd conftest
14510    mkdir out
14511    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14512
14513    lt_compiler_flag="-o out/conftest2.$ac_objext"
14514    # Insert the option either (1) after the last *FLAGS variable, or
14515    # (2) before a word containing "conftest.", or (3) at the end.
14516    # Note that $ac_compile itself does not contain backslashes and begins
14517    # with a dollar sign (not a hyphen), so the echo should work correctly.
14518    lt_compile=`echo "$ac_compile" | $SED \
14519    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14520    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14521    -e 's:$: $lt_compiler_flag:'`
14522    (eval echo "\"\$as_me:14522: $lt_compile\"" >&5)
14523    (eval "$lt_compile" 2>out/conftest.err)
14524    ac_status=$?
14525    cat out/conftest.err >&5
14526    echo "$as_me:14526: \$? = $ac_status" >&5
14527    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14528    then
14529      # The compiler can only warn and ignore the option if not recognized
14530      # So say no if there are warnings
14531      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14532      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14533      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14534        lt_cv_prog_compiler_c_o_CXX=yes
14535      fi
14536    fi
14537    chmod u+w . 2>&5
14538    $rm conftest*
14539    # SGI C++ compiler will create directory out/ii_files/ for
14540    # template instantiation
14541    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14542    $rm out/* && rmdir out
14543    cd ..
14544    rmdir conftest
14545    $rm conftest*
14546
14547 fi
14548 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14549 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14550
14551
14552 hard_links="nottested"
14553 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14554   # do not overwrite the value of need_locks provided by the user
14555   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14556 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14557   hard_links=yes
14558   $rm conftest*
14559   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14560   touch conftest.a
14561   ln conftest.a conftest.b 2>&5 || hard_links=no
14562   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14563   { echo "$as_me:$LINENO: result: $hard_links" >&5
14564 echo "${ECHO_T}$hard_links" >&6; }
14565   if test "$hard_links" = no; then
14566     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14567 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14568     need_locks=warn
14569   fi
14570 else
14571   need_locks=no
14572 fi
14573
14574 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14575 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14576
14577   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14578   case $host_os in
14579   aix[4-9]*)
14580     # If we're using GNU nm, then we don't want the "-C" option.
14581     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14582     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14583       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'
14584     else
14585       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'
14586     fi
14587     ;;
14588   pw32*)
14589     export_symbols_cmds_CXX="$ltdll_cmds"
14590   ;;
14591   cygwin* | mingw*)
14592     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'
14593   ;;
14594   *)
14595     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14596   ;;
14597   esac
14598   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14599
14600 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14601 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14602 test "$ld_shlibs_CXX" = no && can_build_shared=no
14603
14604 #
14605 # Do we need to explicitly link libc?
14606 #
14607 case "x$archive_cmds_need_lc_CXX" in
14608 x|xyes)
14609   # Assume -lc should be added
14610   archive_cmds_need_lc_CXX=yes
14611
14612   if test "$enable_shared" = yes && test "$GCC" = yes; then
14613     case $archive_cmds_CXX in
14614     *'~'*)
14615       # FIXME: we may have to deal with multi-command sequences.
14616       ;;
14617     '$CC '*)
14618       # Test whether the compiler implicitly links with -lc since on some
14619       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14620       # to ld, don't add -lc before -lgcc.
14621       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14622 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14623       $rm conftest*
14624       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14625
14626       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14627   (eval $ac_compile) 2>&5
14628   ac_status=$?
14629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630   (exit $ac_status); } 2>conftest.err; then
14631         soname=conftest
14632         lib=conftest
14633         libobjs=conftest.$ac_objext
14634         deplibs=
14635         wl=$lt_prog_compiler_wl_CXX
14636         pic_flag=$lt_prog_compiler_pic_CXX
14637         compiler_flags=-v
14638         linker_flags=-v
14639         verstring=
14640         output_objdir=.
14641         libname=conftest
14642         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14643         allow_undefined_flag_CXX=
14644         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14645   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14646   ac_status=$?
14647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648   (exit $ac_status); }
14649         then
14650           archive_cmds_need_lc_CXX=no
14651         else
14652           archive_cmds_need_lc_CXX=yes
14653         fi
14654         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14655       else
14656         cat conftest.err 1>&5
14657       fi
14658       $rm conftest*
14659       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14660 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14661       ;;
14662     esac
14663   fi
14664   ;;
14665 esac
14666
14667 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14668 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14669 library_names_spec=
14670 libname_spec='lib$name'
14671 soname_spec=
14672 shrext_cmds=".so"
14673 postinstall_cmds=
14674 postuninstall_cmds=
14675 finish_cmds=
14676 finish_eval=
14677 shlibpath_var=
14678 shlibpath_overrides_runpath=unknown
14679 version_type=none
14680 dynamic_linker="$host_os ld.so"
14681 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14682
14683 need_lib_prefix=unknown
14684 hardcode_into_libs=no
14685
14686 # when you set need_version to no, make sure it does not cause -set_version
14687 # flags to be left without arguments
14688 need_version=unknown
14689
14690 case $host_os in
14691 aix3*)
14692   version_type=linux
14693   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14694   shlibpath_var=LIBPATH
14695
14696   # AIX 3 has no versioning support, so we append a major version to the name.
14697   soname_spec='${libname}${release}${shared_ext}$major'
14698   ;;
14699
14700 aix[4-9]*)
14701   version_type=linux
14702   need_lib_prefix=no
14703   need_version=no
14704   hardcode_into_libs=yes
14705   if test "$host_cpu" = ia64; then
14706     # AIX 5 supports IA64
14707     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14708     shlibpath_var=LD_LIBRARY_PATH
14709   else
14710     # With GCC up to 2.95.x, collect2 would create an import file
14711     # for dependence libraries.  The import file would start with
14712     # the line `#! .'.  This would cause the generated library to
14713     # depend on `.', always an invalid library.  This was fixed in
14714     # development snapshots of GCC prior to 3.0.
14715     case $host_os in
14716       aix4 | aix4.[01] | aix4.[01].*)
14717       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14718            echo ' yes '
14719            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14720         :
14721       else
14722         can_build_shared=no
14723       fi
14724       ;;
14725     esac
14726     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14727     # soname into executable. Probably we can add versioning support to
14728     # collect2, so additional links can be useful in future.
14729     if test "$aix_use_runtimelinking" = yes; then
14730       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14731       # instead of lib<name>.a to let people know that these are not
14732       # typical AIX shared libraries.
14733       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14734     else
14735       # We preserve .a as extension for shared libraries through AIX4.2
14736       # and later when we are not doing run time linking.
14737       library_names_spec='${libname}${release}.a $libname.a'
14738       soname_spec='${libname}${release}${shared_ext}$major'
14739     fi
14740     shlibpath_var=LIBPATH
14741   fi
14742   ;;
14743
14744 amigaos*)
14745   library_names_spec='$libname.ixlibrary $libname.a'
14746   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14747   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'
14748   ;;
14749
14750 beos*)
14751   library_names_spec='${libname}${shared_ext}'
14752   dynamic_linker="$host_os ld.so"
14753   shlibpath_var=LIBRARY_PATH
14754   ;;
14755
14756 bsdi[45]*)
14757   version_type=linux
14758   need_version=no
14759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14760   soname_spec='${libname}${release}${shared_ext}$major'
14761   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14762   shlibpath_var=LD_LIBRARY_PATH
14763   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14764   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14765   # the default ld.so.conf also contains /usr/contrib/lib and
14766   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14767   # libtool to hard-code these into programs
14768   ;;
14769
14770 cygwin* | mingw* | pw32*)
14771   version_type=windows
14772   shrext_cmds=".dll"
14773   need_version=no
14774   need_lib_prefix=no
14775
14776   case $GCC,$host_os in
14777   yes,cygwin* | yes,mingw* | yes,pw32*)
14778     library_names_spec='$libname.dll.a'
14779     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14780     postinstall_cmds='base_file=`basename \${file}`~
14781       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14782       dldir=$destdir/`dirname \$dlpath`~
14783       test -d \$dldir || mkdir -p \$dldir~
14784       $install_prog $dir/$dlname \$dldir/$dlname~
14785       chmod a+x \$dldir/$dlname'
14786     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14787       dlpath=$dir/\$dldll~
14788        $rm \$dlpath'
14789     shlibpath_overrides_runpath=yes
14790
14791     case $host_os in
14792     cygwin*)
14793       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14794       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14795       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14796       ;;
14797     mingw*)
14798       # MinGW DLLs use traditional 'lib' prefix
14799       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14800       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14801       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14802         # It is most probably a Windows format PATH printed by
14803         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14804         # path with ; separators, and with drive letters. We can handle the
14805         # drive letters (cygwin fileutils understands them), so leave them,
14806         # especially as we might pass files found there to a mingw objdump,
14807         # which wouldn't understand a cygwinified path. Ahh.
14808         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14809       else
14810         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14811       fi
14812       ;;
14813     pw32*)
14814       # pw32 DLLs use 'pw' prefix rather than 'lib'
14815       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14816       ;;
14817     esac
14818     ;;
14819
14820   *)
14821     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14822     ;;
14823   esac
14824   dynamic_linker='Win32 ld.exe'
14825   # FIXME: first we should search . and the directory the executable is in
14826   shlibpath_var=PATH
14827   ;;
14828
14829 darwin* | rhapsody*)
14830   dynamic_linker="$host_os dyld"
14831   version_type=darwin
14832   need_lib_prefix=no
14833   need_version=no
14834   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14835   soname_spec='${libname}${release}${major}$shared_ext'
14836   shlibpath_overrides_runpath=yes
14837   shlibpath_var=DYLD_LIBRARY_PATH
14838   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14839
14840   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14841   ;;
14842
14843 dgux*)
14844   version_type=linux
14845   need_lib_prefix=no
14846   need_version=no
14847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14848   soname_spec='${libname}${release}${shared_ext}$major'
14849   shlibpath_var=LD_LIBRARY_PATH
14850   ;;
14851
14852 freebsd1*)
14853   dynamic_linker=no
14854   ;;
14855
14856 freebsd* | dragonfly*)
14857   # DragonFly does not have aout.  When/if they implement a new
14858   # versioning mechanism, adjust this.
14859   if test -x /usr/bin/objformat; then
14860     objformat=`/usr/bin/objformat`
14861   else
14862     case $host_os in
14863     freebsd[123]*) objformat=aout ;;
14864     *) objformat=elf ;;
14865     esac
14866   fi
14867   version_type=freebsd-$objformat
14868   case $version_type in
14869     freebsd-elf*)
14870       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14871       need_version=no
14872       need_lib_prefix=no
14873       ;;
14874     freebsd-*)
14875       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14876       need_version=yes
14877       ;;
14878   esac
14879   shlibpath_var=LD_LIBRARY_PATH
14880   case $host_os in
14881   freebsd2*)
14882     shlibpath_overrides_runpath=yes
14883     ;;
14884   freebsd3.[01]* | freebsdelf3.[01]*)
14885     shlibpath_overrides_runpath=yes
14886     hardcode_into_libs=yes
14887     ;;
14888   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14889   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14890     shlibpath_overrides_runpath=no
14891     hardcode_into_libs=yes
14892     ;;
14893   *) # from 4.6 on, and DragonFly
14894     shlibpath_overrides_runpath=yes
14895     hardcode_into_libs=yes
14896     ;;
14897   esac
14898   ;;
14899
14900 gnu*)
14901   version_type=linux
14902   need_lib_prefix=no
14903   need_version=no
14904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14905   soname_spec='${libname}${release}${shared_ext}$major'
14906   shlibpath_var=LD_LIBRARY_PATH
14907   hardcode_into_libs=yes
14908   ;;
14909
14910 hpux9* | hpux10* | hpux11*)
14911   # Give a soname corresponding to the major version so that dld.sl refuses to
14912   # link against other versions.
14913   version_type=sunos
14914   need_lib_prefix=no
14915   need_version=no
14916   case $host_cpu in
14917   ia64*)
14918     shrext_cmds='.so'
14919     hardcode_into_libs=yes
14920     dynamic_linker="$host_os dld.so"
14921     shlibpath_var=LD_LIBRARY_PATH
14922     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14923     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14924     soname_spec='${libname}${release}${shared_ext}$major'
14925     if test "X$HPUX_IA64_MODE" = X32; then
14926       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14927     else
14928       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14929     fi
14930     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14931     ;;
14932    hppa*64*)
14933      shrext_cmds='.sl'
14934      hardcode_into_libs=yes
14935      dynamic_linker="$host_os dld.sl"
14936      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14937      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14938      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939      soname_spec='${libname}${release}${shared_ext}$major'
14940      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14941      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14942      ;;
14943    *)
14944     shrext_cmds='.sl'
14945     dynamic_linker="$host_os dld.sl"
14946     shlibpath_var=SHLIB_PATH
14947     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14948     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949     soname_spec='${libname}${release}${shared_ext}$major'
14950     ;;
14951   esac
14952   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14953   postinstall_cmds='chmod 555 $lib'
14954   ;;
14955
14956 interix[3-9]*)
14957   version_type=linux
14958   need_lib_prefix=no
14959   need_version=no
14960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14961   soname_spec='${libname}${release}${shared_ext}$major'
14962   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14963   shlibpath_var=LD_LIBRARY_PATH
14964   shlibpath_overrides_runpath=no
14965   hardcode_into_libs=yes
14966   ;;
14967
14968 irix5* | irix6* | nonstopux*)
14969   case $host_os in
14970     nonstopux*) version_type=nonstopux ;;
14971     *)
14972         if test "$lt_cv_prog_gnu_ld" = yes; then
14973                 version_type=linux
14974         else
14975                 version_type=irix
14976         fi ;;
14977   esac
14978   need_lib_prefix=no
14979   need_version=no
14980   soname_spec='${libname}${release}${shared_ext}$major'
14981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14982   case $host_os in
14983   irix5* | nonstopux*)
14984     libsuff= shlibsuff=
14985     ;;
14986   *)
14987     case $LD in # libtool.m4 will add one of these switches to LD
14988     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14989       libsuff= shlibsuff= libmagic=32-bit;;
14990     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14991       libsuff=32 shlibsuff=N32 libmagic=N32;;
14992     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14993       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14994     *) libsuff= shlibsuff= libmagic=never-match;;
14995     esac
14996     ;;
14997   esac
14998   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14999   shlibpath_overrides_runpath=no
15000   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15001   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15002   hardcode_into_libs=yes
15003   ;;
15004
15005 # No shared lib support for Linux oldld, aout, or coff.
15006 linux*oldld* | linux*aout* | linux*coff*)
15007   dynamic_linker=no
15008   ;;
15009
15010 # This must be Linux ELF.
15011 linux* | k*bsd*-gnu)
15012   version_type=linux
15013   need_lib_prefix=no
15014   need_version=no
15015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15016   soname_spec='${libname}${release}${shared_ext}$major'
15017   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15018   shlibpath_var=LD_LIBRARY_PATH
15019   shlibpath_overrides_runpath=no
15020   # This implies no fast_install, which is unacceptable.
15021   # Some rework will be needed to allow for fast_install
15022   # before this can be enabled.
15023   hardcode_into_libs=yes
15024
15025   # Append ld.so.conf contents to the search path
15026   if test -f /etc/ld.so.conf; then
15027     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' ' '`
15028     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15029   fi
15030
15031   # We used to test for /lib/ld.so.1 and disable shared libraries on
15032   # powerpc, because MkLinux only supported shared libraries with the
15033   # GNU dynamic linker.  Since this was broken with cross compilers,
15034   # most powerpc-linux boxes support dynamic linking these days and
15035   # people can always --disable-shared, the test was removed, and we
15036   # assume the GNU/Linux dynamic linker is in use.
15037   dynamic_linker='GNU/Linux ld.so'
15038   ;;
15039
15040 netbsd*)
15041   version_type=sunos
15042   need_lib_prefix=no
15043   need_version=no
15044   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15045     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15046     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15047     dynamic_linker='NetBSD (a.out) ld.so'
15048   else
15049     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15050     soname_spec='${libname}${release}${shared_ext}$major'
15051     dynamic_linker='NetBSD ld.elf_so'
15052   fi
15053   shlibpath_var=LD_LIBRARY_PATH
15054   shlibpath_overrides_runpath=yes
15055   hardcode_into_libs=yes
15056   ;;
15057
15058 newsos6)
15059   version_type=linux
15060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15061   shlibpath_var=LD_LIBRARY_PATH
15062   shlibpath_overrides_runpath=yes
15063   ;;
15064
15065 nto-qnx*)
15066   version_type=linux
15067   need_lib_prefix=no
15068   need_version=no
15069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15070   soname_spec='${libname}${release}${shared_ext}$major'
15071   shlibpath_var=LD_LIBRARY_PATH
15072   shlibpath_overrides_runpath=yes
15073   ;;
15074
15075 openbsd*)
15076   version_type=sunos
15077   sys_lib_dlsearch_path_spec="/usr/lib"
15078   need_lib_prefix=no
15079   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15080   case $host_os in
15081     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15082     *)                         need_version=no  ;;
15083   esac
15084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15085   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15086   shlibpath_var=LD_LIBRARY_PATH
15087   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15088     case $host_os in
15089       openbsd2.[89] | openbsd2.[89].*)
15090         shlibpath_overrides_runpath=no
15091         ;;
15092       *)
15093         shlibpath_overrides_runpath=yes
15094         ;;
15095       esac
15096   else
15097     shlibpath_overrides_runpath=yes
15098   fi
15099   ;;
15100
15101 os2*)
15102   libname_spec='$name'
15103   shrext_cmds=".dll"
15104   need_lib_prefix=no
15105   library_names_spec='$libname${shared_ext} $libname.a'
15106   dynamic_linker='OS/2 ld.exe'
15107   shlibpath_var=LIBPATH
15108   ;;
15109
15110 osf3* | osf4* | osf5*)
15111   version_type=osf
15112   need_lib_prefix=no
15113   need_version=no
15114   soname_spec='${libname}${release}${shared_ext}$major'
15115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15116   shlibpath_var=LD_LIBRARY_PATH
15117   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15118   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15119   ;;
15120
15121 rdos*)
15122   dynamic_linker=no
15123   ;;
15124
15125 solaris*)
15126   version_type=linux
15127   need_lib_prefix=no
15128   need_version=no
15129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15130   soname_spec='${libname}${release}${shared_ext}$major'
15131   shlibpath_var=LD_LIBRARY_PATH
15132   shlibpath_overrides_runpath=yes
15133   hardcode_into_libs=yes
15134   # ldd complains unless libraries are executable
15135   postinstall_cmds='chmod +x $lib'
15136   ;;
15137
15138 sunos4*)
15139   version_type=sunos
15140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15141   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15142   shlibpath_var=LD_LIBRARY_PATH
15143   shlibpath_overrides_runpath=yes
15144   if test "$with_gnu_ld" = yes; then
15145     need_lib_prefix=no
15146   fi
15147   need_version=yes
15148   ;;
15149
15150 sysv4 | sysv4.3*)
15151   version_type=linux
15152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15153   soname_spec='${libname}${release}${shared_ext}$major'
15154   shlibpath_var=LD_LIBRARY_PATH
15155   case $host_vendor in
15156     sni)
15157       shlibpath_overrides_runpath=no
15158       need_lib_prefix=no
15159       export_dynamic_flag_spec='${wl}-Blargedynsym'
15160       runpath_var=LD_RUN_PATH
15161       ;;
15162     siemens)
15163       need_lib_prefix=no
15164       ;;
15165     motorola)
15166       need_lib_prefix=no
15167       need_version=no
15168       shlibpath_overrides_runpath=no
15169       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15170       ;;
15171   esac
15172   ;;
15173
15174 sysv4*MP*)
15175   if test -d /usr/nec ;then
15176     version_type=linux
15177     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15178     soname_spec='$libname${shared_ext}.$major'
15179     shlibpath_var=LD_LIBRARY_PATH
15180   fi
15181   ;;
15182
15183 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15184   version_type=freebsd-elf
15185   need_lib_prefix=no
15186   need_version=no
15187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15188   soname_spec='${libname}${release}${shared_ext}$major'
15189   shlibpath_var=LD_LIBRARY_PATH
15190   hardcode_into_libs=yes
15191   if test "$with_gnu_ld" = yes; then
15192     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15193     shlibpath_overrides_runpath=no
15194   else
15195     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15196     shlibpath_overrides_runpath=yes
15197     case $host_os in
15198       sco3.2v5*)
15199         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15200         ;;
15201     esac
15202   fi
15203   sys_lib_dlsearch_path_spec='/usr/lib'
15204   ;;
15205
15206 uts4*)
15207   version_type=linux
15208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15209   soname_spec='${libname}${release}${shared_ext}$major'
15210   shlibpath_var=LD_LIBRARY_PATH
15211   ;;
15212
15213 *)
15214   dynamic_linker=no
15215   ;;
15216 esac
15217 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15218 echo "${ECHO_T}$dynamic_linker" >&6; }
15219 test "$dynamic_linker" = no && can_build_shared=no
15220
15221 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15222   echo $ECHO_N "(cached) $ECHO_C" >&6
15223 else
15224   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15225 fi
15226
15227 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15228 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15229   echo $ECHO_N "(cached) $ECHO_C" >&6
15230 else
15231   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15232 fi
15233
15234 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15235
15236 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15237 if test "$GCC" = yes; then
15238   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15239 fi
15240
15241 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15242 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15243 hardcode_action_CXX=
15244 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15245    test -n "$runpath_var_CXX" || \
15246    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15247
15248   # We can hardcode non-existant directories.
15249   if test "$hardcode_direct_CXX" != no &&
15250      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15251      # have to relink, otherwise we might link with an installed library
15252      # when we should be linking with a yet-to-be-installed one
15253      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15254      test "$hardcode_minus_L_CXX" != no; then
15255     # Linking always hardcodes the temporary library directory.
15256     hardcode_action_CXX=relink
15257   else
15258     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15259     hardcode_action_CXX=immediate
15260   fi
15261 else
15262   # We cannot hardcode anything, or else we can only hardcode existing
15263   # directories.
15264   hardcode_action_CXX=unsupported
15265 fi
15266 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15267 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15268
15269 if test "$hardcode_action_CXX" = relink; then
15270   # Fast installation is not supported
15271   enable_fast_install=no
15272 elif test "$shlibpath_overrides_runpath" = yes ||
15273      test "$enable_shared" = no; then
15274   # Fast installation is not necessary
15275   enable_fast_install=needless
15276 fi
15277
15278
15279 # The else clause should only fire when bootstrapping the
15280 # libtool distribution, otherwise you forgot to ship ltmain.sh
15281 # with your package, and you will get complaints that there are
15282 # no rules to generate ltmain.sh.
15283 if test -f "$ltmain"; then
15284   # See if we are running on zsh, and set the options which allow our commands through
15285   # without removal of \ escapes.
15286   if test -n "${ZSH_VERSION+set}" ; then
15287     setopt NO_GLOB_SUBST
15288   fi
15289   # Now quote all the things that may contain metacharacters while being
15290   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15291   # variables and quote the copies for generation of the libtool script.
15292   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15293     SED SHELL STRIP \
15294     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15295     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15296     deplibs_check_method reload_flag reload_cmds need_locks \
15297     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15298     lt_cv_sys_global_symbol_to_c_name_address \
15299     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15300     old_postinstall_cmds old_postuninstall_cmds \
15301     compiler_CXX \
15302     CC_CXX \
15303     LD_CXX \
15304     lt_prog_compiler_wl_CXX \
15305     lt_prog_compiler_pic_CXX \
15306     lt_prog_compiler_static_CXX \
15307     lt_prog_compiler_no_builtin_flag_CXX \
15308     export_dynamic_flag_spec_CXX \
15309     thread_safe_flag_spec_CXX \
15310     whole_archive_flag_spec_CXX \
15311     enable_shared_with_static_runtimes_CXX \
15312     old_archive_cmds_CXX \
15313     old_archive_from_new_cmds_CXX \
15314     predep_objects_CXX \
15315     postdep_objects_CXX \
15316     predeps_CXX \
15317     postdeps_CXX \
15318     compiler_lib_search_path_CXX \
15319     compiler_lib_search_dirs_CXX \
15320     archive_cmds_CXX \
15321     archive_expsym_cmds_CXX \
15322     postinstall_cmds_CXX \
15323     postuninstall_cmds_CXX \
15324     old_archive_from_expsyms_cmds_CXX \
15325     allow_undefined_flag_CXX \
15326     no_undefined_flag_CXX \
15327     export_symbols_cmds_CXX \
15328     hardcode_libdir_flag_spec_CXX \
15329     hardcode_libdir_flag_spec_ld_CXX \
15330     hardcode_libdir_separator_CXX \
15331     hardcode_automatic_CXX \
15332     module_cmds_CXX \
15333     module_expsym_cmds_CXX \
15334     lt_cv_prog_compiler_c_o_CXX \
15335     fix_srcfile_path_CXX \
15336     exclude_expsyms_CXX \
15337     include_expsyms_CXX; do
15338
15339     case $var in
15340     old_archive_cmds_CXX | \
15341     old_archive_from_new_cmds_CXX | \
15342     archive_cmds_CXX | \
15343     archive_expsym_cmds_CXX | \
15344     module_cmds_CXX | \
15345     module_expsym_cmds_CXX | \
15346     old_archive_from_expsyms_cmds_CXX | \
15347     export_symbols_cmds_CXX | \
15348     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15349     postinstall_cmds | postuninstall_cmds | \
15350     old_postinstall_cmds | old_postuninstall_cmds | \
15351     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15352       # Double-quote double-evaled strings.
15353       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15354       ;;
15355     *)
15356       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15357       ;;
15358     esac
15359   done
15360
15361   case $lt_echo in
15362   *'\$0 --fallback-echo"')
15363     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15364     ;;
15365   esac
15366
15367 cfgfile="$ofile"
15368
15369   cat <<__EOF__ >> "$cfgfile"
15370 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15371
15372 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15373
15374 # Shell to use when invoking shell scripts.
15375 SHELL=$lt_SHELL
15376
15377 # Whether or not to build shared libraries.
15378 build_libtool_libs=$enable_shared
15379
15380 # Whether or not to build static libraries.
15381 build_old_libs=$enable_static
15382
15383 # Whether or not to add -lc for building shared libraries.
15384 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15385
15386 # Whether or not to disallow shared libs when runtime libs are static
15387 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15388
15389 # Whether or not to optimize for fast installation.
15390 fast_install=$enable_fast_install
15391
15392 # The host system.
15393 host_alias=$host_alias
15394 host=$host
15395 host_os=$host_os
15396
15397 # The build system.
15398 build_alias=$build_alias
15399 build=$build
15400 build_os=$build_os
15401
15402 # An echo program that does not interpret backslashes.
15403 echo=$lt_echo
15404
15405 # The archiver.
15406 AR=$lt_AR
15407 AR_FLAGS=$lt_AR_FLAGS
15408
15409 # A C compiler.
15410 LTCC=$lt_LTCC
15411
15412 # LTCC compiler flags.
15413 LTCFLAGS=$lt_LTCFLAGS
15414
15415 # A language-specific compiler.
15416 CC=$lt_compiler_CXX
15417
15418 # Is the compiler the GNU C compiler?
15419 with_gcc=$GCC_CXX
15420
15421 # An ERE matcher.
15422 EGREP=$lt_EGREP
15423
15424 # The linker used to build libraries.
15425 LD=$lt_LD_CXX
15426
15427 # Whether we need hard or soft links.
15428 LN_S=$lt_LN_S
15429
15430 # A BSD-compatible nm program.
15431 NM=$lt_NM
15432
15433 # A symbol stripping program
15434 STRIP=$lt_STRIP
15435
15436 # Used to examine libraries when file_magic_cmd begins "file"
15437 MAGIC_CMD=$MAGIC_CMD
15438
15439 # Used on cygwin: DLL creation program.
15440 DLLTOOL="$DLLTOOL"
15441
15442 # Used on cygwin: object dumper.
15443 OBJDUMP="$OBJDUMP"
15444
15445 # Used on cygwin: assembler.
15446 AS="$AS"
15447
15448 # The name of the directory that contains temporary libtool files.
15449 objdir=$objdir
15450
15451 # How to create reloadable object files.
15452 reload_flag=$lt_reload_flag
15453 reload_cmds=$lt_reload_cmds
15454
15455 # How to pass a linker flag through the compiler.
15456 wl=$lt_lt_prog_compiler_wl_CXX
15457
15458 # Object file suffix (normally "o").
15459 objext="$ac_objext"
15460
15461 # Old archive suffix (normally "a").
15462 libext="$libext"
15463
15464 # Shared library suffix (normally ".so").
15465 shrext_cmds='$shrext_cmds'
15466
15467 # Executable file suffix (normally "").
15468 exeext="$exeext"
15469
15470 # Additional compiler flags for building library objects.
15471 pic_flag=$lt_lt_prog_compiler_pic_CXX
15472 pic_mode=$pic_mode
15473
15474 # What is the maximum length of a command?
15475 max_cmd_len=$lt_cv_sys_max_cmd_len
15476
15477 # Does compiler simultaneously support -c and -o options?
15478 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15479
15480 # Must we lock files when doing compilation?
15481 need_locks=$lt_need_locks
15482
15483 # Do we need the lib prefix for modules?
15484 need_lib_prefix=$need_lib_prefix
15485
15486 # Do we need a version for libraries?
15487 need_version=$need_version
15488
15489 # Whether dlopen is supported.
15490 dlopen_support=$enable_dlopen
15491
15492 # Whether dlopen of programs is supported.
15493 dlopen_self=$enable_dlopen_self
15494
15495 # Whether dlopen of statically linked programs is supported.
15496 dlopen_self_static=$enable_dlopen_self_static
15497
15498 # Compiler flag to prevent dynamic linking.
15499 link_static_flag=$lt_lt_prog_compiler_static_CXX
15500
15501 # Compiler flag to turn off builtin functions.
15502 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15503
15504 # Compiler flag to allow reflexive dlopens.
15505 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15506
15507 # Compiler flag to generate shared objects directly from archives.
15508 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15509
15510 # Compiler flag to generate thread-safe objects.
15511 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15512
15513 # Library versioning type.
15514 version_type=$version_type
15515
15516 # Format of library name prefix.
15517 libname_spec=$lt_libname_spec
15518
15519 # List of archive names.  First name is the real one, the rest are links.
15520 # The last name is the one that the linker finds with -lNAME.
15521 library_names_spec=$lt_library_names_spec
15522
15523 # The coded name of the library, if different from the real name.
15524 soname_spec=$lt_soname_spec
15525
15526 # Commands used to build and install an old-style archive.
15527 RANLIB=$lt_RANLIB
15528 old_archive_cmds=$lt_old_archive_cmds_CXX
15529 old_postinstall_cmds=$lt_old_postinstall_cmds
15530 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15531
15532 # Create an old-style archive from a shared archive.
15533 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15534
15535 # Create a temporary old-style archive to link instead of a shared archive.
15536 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15537
15538 # Commands used to build and install a shared archive.
15539 archive_cmds=$lt_archive_cmds_CXX
15540 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15541 postinstall_cmds=$lt_postinstall_cmds
15542 postuninstall_cmds=$lt_postuninstall_cmds
15543
15544 # Commands used to build a loadable module (assumed same as above if empty)
15545 module_cmds=$lt_module_cmds_CXX
15546 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15547
15548 # Commands to strip libraries.
15549 old_striplib=$lt_old_striplib
15550 striplib=$lt_striplib
15551
15552 # Dependencies to place before the objects being linked to create a
15553 # shared library.
15554 predep_objects=$lt_predep_objects_CXX
15555
15556 # Dependencies to place after the objects being linked to create a
15557 # shared library.
15558 postdep_objects=$lt_postdep_objects_CXX
15559
15560 # Dependencies to place before the objects being linked to create a
15561 # shared library.
15562 predeps=$lt_predeps_CXX
15563
15564 # Dependencies to place after the objects being linked to create a
15565 # shared library.
15566 postdeps=$lt_postdeps_CXX
15567
15568 # The directories searched by this compiler when creating a shared
15569 # library
15570 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
15571
15572 # The library search path used internally by the compiler when linking
15573 # a shared library.
15574 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15575
15576 # Method to check whether dependent libraries are shared objects.
15577 deplibs_check_method=$lt_deplibs_check_method
15578
15579 # Command to use when deplibs_check_method == file_magic.
15580 file_magic_cmd=$lt_file_magic_cmd
15581
15582 # Flag that allows shared libraries with undefined symbols to be built.
15583 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15584
15585 # Flag that forces no undefined symbols.
15586 no_undefined_flag=$lt_no_undefined_flag_CXX
15587
15588 # Commands used to finish a libtool library installation in a directory.
15589 finish_cmds=$lt_finish_cmds
15590
15591 # Same as above, but a single script fragment to be evaled but not shown.
15592 finish_eval=$lt_finish_eval
15593
15594 # Take the output of nm and produce a listing of raw symbols and C names.
15595 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15596
15597 # Transform the output of nm in a proper C declaration
15598 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15599
15600 # Transform the output of nm in a C name address pair
15601 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15602
15603 # This is the shared library runtime path variable.
15604 runpath_var=$runpath_var
15605
15606 # This is the shared library path variable.
15607 shlibpath_var=$shlibpath_var
15608
15609 # Is shlibpath searched before the hard-coded library search path?
15610 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15611
15612 # How to hardcode a shared library path into an executable.
15613 hardcode_action=$hardcode_action_CXX
15614
15615 # Whether we should hardcode library paths into libraries.
15616 hardcode_into_libs=$hardcode_into_libs
15617
15618 # Flag to hardcode \$libdir into a binary during linking.
15619 # This must work even if \$libdir does not exist.
15620 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15621
15622 # If ld is used when linking, flag to hardcode \$libdir into
15623 # a binary during linking. This must work even if \$libdir does
15624 # not exist.
15625 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15626
15627 # Whether we need a single -rpath flag with a separated argument.
15628 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15629
15630 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15631 # resulting binary.
15632 hardcode_direct=$hardcode_direct_CXX
15633
15634 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15635 # resulting binary.
15636 hardcode_minus_L=$hardcode_minus_L_CXX
15637
15638 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15639 # the resulting binary.
15640 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15641
15642 # Set to yes if building a shared library automatically hardcodes DIR into the library
15643 # and all subsequent libraries and executables linked against it.
15644 hardcode_automatic=$hardcode_automatic_CXX
15645
15646 # Variables whose values should be saved in libtool wrapper scripts and
15647 # restored at relink time.
15648 variables_saved_for_relink="$variables_saved_for_relink"
15649
15650 # Whether libtool must link a program against all its dependency libraries.
15651 link_all_deplibs=$link_all_deplibs_CXX
15652
15653 # Compile-time system search path for libraries
15654 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15655
15656 # Run-time system search path for libraries
15657 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15658
15659 # Fix the shell variable \$srcfile for the compiler.
15660 fix_srcfile_path=$lt_fix_srcfile_path
15661
15662 # Set to yes if exported symbols are required.
15663 always_export_symbols=$always_export_symbols_CXX
15664
15665 # The commands to list exported symbols.
15666 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15667
15668 # The commands to extract the exported symbol list from a shared archive.
15669 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15670
15671 # Symbols that should not be listed in the preloaded symbols.
15672 exclude_expsyms=$lt_exclude_expsyms_CXX
15673
15674 # Symbols that must always be exported.
15675 include_expsyms=$lt_include_expsyms_CXX
15676
15677 # ### END LIBTOOL TAG CONFIG: $tagname
15678
15679 __EOF__
15680
15681
15682 else
15683   # If there is no Makefile yet, we rely on a make rule to execute
15684   # `config.status --recheck' to rerun these tests and create the
15685   # libtool script then.
15686   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15687   if test -f "$ltmain_in"; then
15688     test -f Makefile && make "$ltmain"
15689   fi
15690 fi
15691
15692
15693 ac_ext=c
15694 ac_cpp='$CPP $CPPFLAGS'
15695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15698
15699 CC=$lt_save_CC
15700 LDCXX=$LD
15701 LD=$lt_save_LD
15702 GCC=$lt_save_GCC
15703 with_gnu_ldcxx=$with_gnu_ld
15704 with_gnu_ld=$lt_save_with_gnu_ld
15705 lt_cv_path_LDCXX=$lt_cv_path_LD
15706 lt_cv_path_LD=$lt_save_path_LD
15707 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15708 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15709
15710         else
15711           tagname=""
15712         fi
15713         ;;
15714
15715       F77)
15716         if test -n "$F77" && test "X$F77" != "Xno"; then
15717
15718 ac_ext=f
15719 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15720 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15721 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15722
15723
15724 archive_cmds_need_lc_F77=no
15725 allow_undefined_flag_F77=
15726 always_export_symbols_F77=no
15727 archive_expsym_cmds_F77=
15728 export_dynamic_flag_spec_F77=
15729 hardcode_direct_F77=no
15730 hardcode_libdir_flag_spec_F77=
15731 hardcode_libdir_flag_spec_ld_F77=
15732 hardcode_libdir_separator_F77=
15733 hardcode_minus_L_F77=no
15734 hardcode_automatic_F77=no
15735 module_cmds_F77=
15736 module_expsym_cmds_F77=
15737 link_all_deplibs_F77=unknown
15738 old_archive_cmds_F77=$old_archive_cmds
15739 no_undefined_flag_F77=
15740 whole_archive_flag_spec_F77=
15741 enable_shared_with_static_runtimes_F77=no
15742
15743 # Source file extension for f77 test sources.
15744 ac_ext=f
15745
15746 # Object file extension for compiled f77 test sources.
15747 objext=o
15748 objext_F77=$objext
15749
15750 # Code to be used in simple compile tests
15751 lt_simple_compile_test_code="\
15752       subroutine t
15753       return
15754       end
15755 "
15756
15757 # Code to be used in simple link tests
15758 lt_simple_link_test_code="\
15759       program t
15760       end
15761 "
15762
15763 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15764
15765 # If no C compiler was specified, use CC.
15766 LTCC=${LTCC-"$CC"}
15767
15768 # If no C compiler flags were specified, use CFLAGS.
15769 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15770
15771 # Allow CC to be a program name with arguments.
15772 compiler=$CC
15773
15774
15775 # save warnings/boilerplate of simple test code
15776 ac_outfile=conftest.$ac_objext
15777 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15778 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15779 _lt_compiler_boilerplate=`cat conftest.err`
15780 $rm conftest*
15781
15782 ac_outfile=conftest.$ac_objext
15783 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15784 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15785 _lt_linker_boilerplate=`cat conftest.err`
15786 $rm -r conftest*
15787
15788
15789 # Allow CC to be a program name with arguments.
15790 lt_save_CC="$CC"
15791 CC=${F77-"f77"}
15792 compiler=$CC
15793 compiler_F77=$CC
15794 for cc_temp in $compiler""; do
15795   case $cc_temp in
15796     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15797     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15798     \-*) ;;
15799     *) break;;
15800   esac
15801 done
15802 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15803
15804
15805 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15806 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15807 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15808 echo "${ECHO_T}$can_build_shared" >&6; }
15809
15810 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15811 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15812 test "$can_build_shared" = "no" && enable_shared=no
15813
15814 # On AIX, shared libraries and static libraries use the same namespace, and
15815 # are all built from PIC.
15816 case $host_os in
15817 aix3*)
15818   test "$enable_shared" = yes && enable_static=no
15819   if test -n "$RANLIB"; then
15820     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15821     postinstall_cmds='$RANLIB $lib'
15822   fi
15823   ;;
15824 aix[4-9]*)
15825   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15826     test "$enable_shared" = yes && enable_static=no
15827   fi
15828   ;;
15829 esac
15830 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15831 echo "${ECHO_T}$enable_shared" >&6; }
15832
15833 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15834 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15835 # Make sure either enable_shared or enable_static is yes.
15836 test "$enable_shared" = yes || enable_static=yes
15837 { echo "$as_me:$LINENO: result: $enable_static" >&5
15838 echo "${ECHO_T}$enable_static" >&6; }
15839
15840 GCC_F77="$G77"
15841 LD_F77="$LD"
15842
15843 lt_prog_compiler_wl_F77=
15844 lt_prog_compiler_pic_F77=
15845 lt_prog_compiler_static_F77=
15846
15847 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15848 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15849
15850   if test "$GCC" = yes; then
15851     lt_prog_compiler_wl_F77='-Wl,'
15852     lt_prog_compiler_static_F77='-static'
15853
15854     case $host_os in
15855       aix*)
15856       # All AIX code is PIC.
15857       if test "$host_cpu" = ia64; then
15858         # AIX 5 now supports IA64 processor
15859         lt_prog_compiler_static_F77='-Bstatic'
15860       fi
15861       ;;
15862
15863     amigaos*)
15864       # FIXME: we need at least 68020 code to build shared libraries, but
15865       # adding the `-m68020' flag to GCC prevents building anything better,
15866       # like `-m68040'.
15867       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15868       ;;
15869
15870     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15871       # PIC is the default for these OSes.
15872       ;;
15873
15874     mingw* | cygwin* | pw32* | os2*)
15875       # This hack is so that the source file can tell whether it is being
15876       # built for inclusion in a dll (and should export symbols for example).
15877       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15878       # (--disable-auto-import) libraries
15879       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15880       ;;
15881
15882     darwin* | rhapsody*)
15883       # PIC is the default on this platform
15884       # Common symbols not allowed in MH_DYLIB files
15885       lt_prog_compiler_pic_F77='-fno-common'
15886       ;;
15887
15888     interix[3-9]*)
15889       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15890       # Instead, we relocate shared libraries at runtime.
15891       ;;
15892
15893     msdosdjgpp*)
15894       # Just because we use GCC doesn't mean we suddenly get shared libraries
15895       # on systems that don't support them.
15896       lt_prog_compiler_can_build_shared_F77=no
15897       enable_shared=no
15898       ;;
15899
15900     sysv4*MP*)
15901       if test -d /usr/nec; then
15902         lt_prog_compiler_pic_F77=-Kconform_pic
15903       fi
15904       ;;
15905
15906     hpux*)
15907       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15908       # not for PA HP-UX.
15909       case $host_cpu in
15910       hppa*64*|ia64*)
15911         # +Z the default
15912         ;;
15913       *)
15914         lt_prog_compiler_pic_F77='-fPIC'
15915         ;;
15916       esac
15917       ;;
15918
15919     *)
15920       lt_prog_compiler_pic_F77='-fPIC'
15921       ;;
15922     esac
15923   else
15924     # PORTME Check for flag to pass linker flags through the system compiler.
15925     case $host_os in
15926     aix*)
15927       lt_prog_compiler_wl_F77='-Wl,'
15928       if test "$host_cpu" = ia64; then
15929         # AIX 5 now supports IA64 processor
15930         lt_prog_compiler_static_F77='-Bstatic'
15931       else
15932         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15933       fi
15934       ;;
15935       darwin*)
15936         # PIC is the default on this platform
15937         # Common symbols not allowed in MH_DYLIB files
15938        case $cc_basename in
15939          xlc*)
15940          lt_prog_compiler_pic_F77='-qnocommon'
15941          lt_prog_compiler_wl_F77='-Wl,'
15942          ;;
15943        esac
15944        ;;
15945
15946     mingw* | cygwin* | pw32* | os2*)
15947       # This hack is so that the source file can tell whether it is being
15948       # built for inclusion in a dll (and should export symbols for example).
15949       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15950       ;;
15951
15952     hpux9* | hpux10* | hpux11*)
15953       lt_prog_compiler_wl_F77='-Wl,'
15954       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15955       # not for PA HP-UX.
15956       case $host_cpu in
15957       hppa*64*|ia64*)
15958         # +Z the default
15959         ;;
15960       *)
15961         lt_prog_compiler_pic_F77='+Z'
15962         ;;
15963       esac
15964       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15965       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15966       ;;
15967
15968     irix5* | irix6* | nonstopux*)
15969       lt_prog_compiler_wl_F77='-Wl,'
15970       # PIC (with -KPIC) is the default.
15971       lt_prog_compiler_static_F77='-non_shared'
15972       ;;
15973
15974     newsos6)
15975       lt_prog_compiler_pic_F77='-KPIC'
15976       lt_prog_compiler_static_F77='-Bstatic'
15977       ;;
15978
15979     linux* | k*bsd*-gnu)
15980       case $cc_basename in
15981       icc* | ecc*)
15982         lt_prog_compiler_wl_F77='-Wl,'
15983         lt_prog_compiler_pic_F77='-KPIC'
15984         lt_prog_compiler_static_F77='-static'
15985         ;;
15986       pgcc* | pgf77* | pgf90* | pgf95*)
15987         # Portland Group compilers (*not* the Pentium gcc compiler,
15988         # which looks to be a dead project)
15989         lt_prog_compiler_wl_F77='-Wl,'
15990         lt_prog_compiler_pic_F77='-fpic'
15991         lt_prog_compiler_static_F77='-Bstatic'
15992         ;;
15993       ccc*)
15994         lt_prog_compiler_wl_F77='-Wl,'
15995         # All Alpha code is PIC.
15996         lt_prog_compiler_static_F77='-non_shared'
15997         ;;
15998       *)
15999         case `$CC -V 2>&1 | sed 5q` in
16000         *Sun\ C*)
16001           # Sun C 5.9
16002           lt_prog_compiler_pic_F77='-KPIC'
16003           lt_prog_compiler_static_F77='-Bstatic'
16004           lt_prog_compiler_wl_F77='-Wl,'
16005           ;;
16006         *Sun\ F*)
16007           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16008           lt_prog_compiler_pic_F77='-KPIC'
16009           lt_prog_compiler_static_F77='-Bstatic'
16010           lt_prog_compiler_wl_F77=''
16011           ;;
16012         esac
16013         ;;
16014       esac
16015       ;;
16016
16017     osf3* | osf4* | osf5*)
16018       lt_prog_compiler_wl_F77='-Wl,'
16019       # All OSF/1 code is PIC.
16020       lt_prog_compiler_static_F77='-non_shared'
16021       ;;
16022
16023     rdos*)
16024       lt_prog_compiler_static_F77='-non_shared'
16025       ;;
16026
16027     solaris*)
16028       lt_prog_compiler_pic_F77='-KPIC'
16029       lt_prog_compiler_static_F77='-Bstatic'
16030       case $cc_basename in
16031       f77* | f90* | f95*)
16032         lt_prog_compiler_wl_F77='-Qoption ld ';;
16033       *)
16034         lt_prog_compiler_wl_F77='-Wl,';;
16035       esac
16036       ;;
16037
16038     sunos4*)
16039       lt_prog_compiler_wl_F77='-Qoption ld '
16040       lt_prog_compiler_pic_F77='-PIC'
16041       lt_prog_compiler_static_F77='-Bstatic'
16042       ;;
16043
16044     sysv4 | sysv4.2uw2* | sysv4.3*)
16045       lt_prog_compiler_wl_F77='-Wl,'
16046       lt_prog_compiler_pic_F77='-KPIC'
16047       lt_prog_compiler_static_F77='-Bstatic'
16048       ;;
16049
16050     sysv4*MP*)
16051       if test -d /usr/nec ;then
16052         lt_prog_compiler_pic_F77='-Kconform_pic'
16053         lt_prog_compiler_static_F77='-Bstatic'
16054       fi
16055       ;;
16056
16057     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16058       lt_prog_compiler_wl_F77='-Wl,'
16059       lt_prog_compiler_pic_F77='-KPIC'
16060       lt_prog_compiler_static_F77='-Bstatic'
16061       ;;
16062
16063     unicos*)
16064       lt_prog_compiler_wl_F77='-Wl,'
16065       lt_prog_compiler_can_build_shared_F77=no
16066       ;;
16067
16068     uts4*)
16069       lt_prog_compiler_pic_F77='-pic'
16070       lt_prog_compiler_static_F77='-Bstatic'
16071       ;;
16072
16073     *)
16074       lt_prog_compiler_can_build_shared_F77=no
16075       ;;
16076     esac
16077   fi
16078
16079 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16080 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
16081
16082 #
16083 # Check to make sure the PIC flag actually works.
16084 #
16085 if test -n "$lt_prog_compiler_pic_F77"; then
16086
16087 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16088 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
16089 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
16090   echo $ECHO_N "(cached) $ECHO_C" >&6
16091 else
16092   lt_cv_prog_compiler_pic_works_F77=no
16093   ac_outfile=conftest.$ac_objext
16094    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16095    lt_compiler_flag="$lt_prog_compiler_pic_F77"
16096    # Insert the option either (1) after the last *FLAGS variable, or
16097    # (2) before a word containing "conftest.", or (3) at the end.
16098    # Note that $ac_compile itself does not contain backslashes and begins
16099    # with a dollar sign (not a hyphen), so the echo should work correctly.
16100    # The option is referenced via a variable to avoid confusing sed.
16101    lt_compile=`echo "$ac_compile" | $SED \
16102    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16103    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16104    -e 's:$: $lt_compiler_flag:'`
16105    (eval echo "\"\$as_me:16105: $lt_compile\"" >&5)
16106    (eval "$lt_compile" 2>conftest.err)
16107    ac_status=$?
16108    cat conftest.err >&5
16109    echo "$as_me:16109: \$? = $ac_status" >&5
16110    if (exit $ac_status) && test -s "$ac_outfile"; then
16111      # The compiler can only warn and ignore the option if not recognized
16112      # So say no if there are warnings other than the usual output.
16113      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16114      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16115      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16116        lt_cv_prog_compiler_pic_works_F77=yes
16117      fi
16118    fi
16119    $rm conftest*
16120
16121 fi
16122 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
16123 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
16124
16125 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
16126     case $lt_prog_compiler_pic_F77 in
16127      "" | " "*) ;;
16128      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16129      esac
16130 else
16131     lt_prog_compiler_pic_F77=
16132      lt_prog_compiler_can_build_shared_F77=no
16133 fi
16134
16135 fi
16136 case $host_os in
16137   # For platforms which do not support PIC, -DPIC is meaningless:
16138   *djgpp*)
16139     lt_prog_compiler_pic_F77=
16140     ;;
16141   *)
16142     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16143     ;;
16144 esac
16145
16146 #
16147 # Check to make sure the static flag actually works.
16148 #
16149 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16150 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16151 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16152 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
16153   echo $ECHO_N "(cached) $ECHO_C" >&6
16154 else
16155   lt_cv_prog_compiler_static_works_F77=no
16156    save_LDFLAGS="$LDFLAGS"
16157    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16158    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16159    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16160      # The linker can only warn and ignore the option if not recognized
16161      # So say no if there are warnings
16162      if test -s conftest.err; then
16163        # Append any errors to the config.log.
16164        cat conftest.err 1>&5
16165        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16166        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16167        if diff conftest.exp conftest.er2 >/dev/null; then
16168          lt_cv_prog_compiler_static_works_F77=yes
16169        fi
16170      else
16171        lt_cv_prog_compiler_static_works_F77=yes
16172      fi
16173    fi
16174    $rm -r conftest*
16175    LDFLAGS="$save_LDFLAGS"
16176
16177 fi
16178 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
16179 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
16180
16181 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
16182     :
16183 else
16184     lt_prog_compiler_static_F77=
16185 fi
16186
16187
16188 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16189 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16190 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16191   echo $ECHO_N "(cached) $ECHO_C" >&6
16192 else
16193   lt_cv_prog_compiler_c_o_F77=no
16194    $rm -r conftest 2>/dev/null
16195    mkdir conftest
16196    cd conftest
16197    mkdir out
16198    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16199
16200    lt_compiler_flag="-o out/conftest2.$ac_objext"
16201    # Insert the option either (1) after the last *FLAGS variable, or
16202    # (2) before a word containing "conftest.", or (3) at the end.
16203    # Note that $ac_compile itself does not contain backslashes and begins
16204    # with a dollar sign (not a hyphen), so the echo should work correctly.
16205    lt_compile=`echo "$ac_compile" | $SED \
16206    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16207    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16208    -e 's:$: $lt_compiler_flag:'`
16209    (eval echo "\"\$as_me:16209: $lt_compile\"" >&5)
16210    (eval "$lt_compile" 2>out/conftest.err)
16211    ac_status=$?
16212    cat out/conftest.err >&5
16213    echo "$as_me:16213: \$? = $ac_status" >&5
16214    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16215    then
16216      # The compiler can only warn and ignore the option if not recognized
16217      # So say no if there are warnings
16218      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16219      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16220      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16221        lt_cv_prog_compiler_c_o_F77=yes
16222      fi
16223    fi
16224    chmod u+w . 2>&5
16225    $rm conftest*
16226    # SGI C++ compiler will create directory out/ii_files/ for
16227    # template instantiation
16228    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16229    $rm out/* && rmdir out
16230    cd ..
16231    rmdir conftest
16232    $rm conftest*
16233
16234 fi
16235 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16236 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16237
16238
16239 hard_links="nottested"
16240 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16241   # do not overwrite the value of need_locks provided by the user
16242   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16243 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16244   hard_links=yes
16245   $rm conftest*
16246   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16247   touch conftest.a
16248   ln conftest.a conftest.b 2>&5 || hard_links=no
16249   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16250   { echo "$as_me:$LINENO: result: $hard_links" >&5
16251 echo "${ECHO_T}$hard_links" >&6; }
16252   if test "$hard_links" = no; then
16253     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16254 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16255     need_locks=warn
16256   fi
16257 else
16258   need_locks=no
16259 fi
16260
16261 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16262 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16263
16264   runpath_var=
16265   allow_undefined_flag_F77=
16266   enable_shared_with_static_runtimes_F77=no
16267   archive_cmds_F77=
16268   archive_expsym_cmds_F77=
16269   old_archive_From_new_cmds_F77=
16270   old_archive_from_expsyms_cmds_F77=
16271   export_dynamic_flag_spec_F77=
16272   whole_archive_flag_spec_F77=
16273   thread_safe_flag_spec_F77=
16274   hardcode_libdir_flag_spec_F77=
16275   hardcode_libdir_flag_spec_ld_F77=
16276   hardcode_libdir_separator_F77=
16277   hardcode_direct_F77=no
16278   hardcode_minus_L_F77=no
16279   hardcode_shlibpath_var_F77=unsupported
16280   link_all_deplibs_F77=unknown
16281   hardcode_automatic_F77=no
16282   module_cmds_F77=
16283   module_expsym_cmds_F77=
16284   always_export_symbols_F77=no
16285   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16286   # include_expsyms should be a list of space-separated symbols to be *always*
16287   # included in the symbol list
16288   include_expsyms_F77=
16289   # exclude_expsyms can be an extended regexp of symbols to exclude
16290   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16291   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16292   # as well as any symbol that contains `d'.
16293   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16294   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16295   # platforms (ab)use it in PIC code, but their linkers get confused if
16296   # the symbol is explicitly referenced.  Since portable code cannot
16297   # rely on this symbol name, it's probably fine to never include it in
16298   # preloaded symbol tables.
16299   # Exclude shared library initialization/finalization symbols.
16300   extract_expsyms_cmds=
16301   # Just being paranoid about ensuring that cc_basename is set.
16302   for cc_temp in $compiler""; do
16303   case $cc_temp in
16304     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16305     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16306     \-*) ;;
16307     *) break;;
16308   esac
16309 done
16310 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16311
16312   case $host_os in
16313   cygwin* | mingw* | pw32*)
16314     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16315     # When not using gcc, we currently assume that we are using
16316     # Microsoft Visual C++.
16317     if test "$GCC" != yes; then
16318       with_gnu_ld=no
16319     fi
16320     ;;
16321   interix*)
16322     # we just hope/assume this is gcc and not c89 (= MSVC++)
16323     with_gnu_ld=yes
16324     ;;
16325   openbsd*)
16326     with_gnu_ld=no
16327     ;;
16328   esac
16329
16330   ld_shlibs_F77=yes
16331   if test "$with_gnu_ld" = yes; then
16332     # If archive_cmds runs LD, not CC, wlarc should be empty
16333     wlarc='${wl}'
16334
16335     # Set some defaults for GNU ld with shared library support. These
16336     # are reset later if shared libraries are not supported. Putting them
16337     # here allows them to be overridden if necessary.
16338     runpath_var=LD_RUN_PATH
16339     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16340     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16341     # ancient GNU ld didn't support --whole-archive et. al.
16342     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16343         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16344       else
16345         whole_archive_flag_spec_F77=
16346     fi
16347     supports_anon_versioning=no
16348     case `$LD -v 2>/dev/null` in
16349       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16350       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16351       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16352       *\ 2.11.*) ;; # other 2.11 versions
16353       *) supports_anon_versioning=yes ;;
16354     esac
16355
16356     # See if GNU ld supports shared libraries.
16357     case $host_os in
16358     aix[3-9]*)
16359       # On AIX/PPC, the GNU linker is very broken
16360       if test "$host_cpu" != ia64; then
16361         ld_shlibs_F77=no
16362         cat <<EOF 1>&2
16363
16364 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16365 *** to be unable to reliably create shared libraries on AIX.
16366 *** Therefore, libtool is disabling shared libraries support.  If you
16367 *** really care for shared libraries, you may want to modify your PATH
16368 *** so that a non-GNU linker is found, and then restart.
16369
16370 EOF
16371       fi
16372       ;;
16373
16374     amigaos*)
16375       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)'
16376       hardcode_libdir_flag_spec_F77='-L$libdir'
16377       hardcode_minus_L_F77=yes
16378
16379       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16380       # that the semantics of dynamic libraries on AmigaOS, at least up
16381       # to version 4, is to share data among multiple programs linked
16382       # with the same dynamic library.  Since this doesn't match the
16383       # behavior of shared libraries on other platforms, we can't use
16384       # them.
16385       ld_shlibs_F77=no
16386       ;;
16387
16388     beos*)
16389       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16390         allow_undefined_flag_F77=unsupported
16391         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16392         # support --undefined.  This deserves some investigation.  FIXME
16393         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16394       else
16395         ld_shlibs_F77=no
16396       fi
16397       ;;
16398
16399     cygwin* | mingw* | pw32*)
16400       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16401       # as there is no search path for DLLs.
16402       hardcode_libdir_flag_spec_F77='-L$libdir'
16403       allow_undefined_flag_F77=unsupported
16404       always_export_symbols_F77=no
16405       enable_shared_with_static_runtimes_F77=yes
16406       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16407
16408       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16409         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16410         # If the export-symbols file already is a .def file (1st line
16411         # is EXPORTS), use it as is; otherwise, prepend...
16412         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16413           cp $export_symbols $output_objdir/$soname.def;
16414         else
16415           echo EXPORTS > $output_objdir/$soname.def;
16416           cat $export_symbols >> $output_objdir/$soname.def;
16417         fi~
16418         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16419       else
16420         ld_shlibs_F77=no
16421       fi
16422       ;;
16423
16424     interix[3-9]*)
16425       hardcode_direct_F77=no
16426       hardcode_shlibpath_var_F77=no
16427       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16428       export_dynamic_flag_spec_F77='${wl}-E'
16429       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16430       # Instead, shared libraries are loaded at an image base (0x10000000 by
16431       # default) and relocated if they conflict, which is a slow very memory
16432       # consuming and fragmenting process.  To avoid this, we pick a random,
16433       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16434       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16435       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'
16436       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'
16437       ;;
16438
16439     gnu* | linux* | k*bsd*-gnu)
16440       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16441         tmp_addflag=
16442         case $cc_basename,$host_cpu in
16443         pgcc*)                          # Portland Group C compiler
16444           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'
16445           tmp_addflag=' $pic_flag'
16446           ;;
16447         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16448           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'
16449           tmp_addflag=' $pic_flag -Mnomain' ;;
16450         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16451           tmp_addflag=' -i_dynamic' ;;
16452         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16453           tmp_addflag=' -i_dynamic -nofor_main' ;;
16454         ifc* | ifort*)                  # Intel Fortran compiler
16455           tmp_addflag=' -nofor_main' ;;
16456         esac
16457         case `$CC -V 2>&1 | sed 5q` in
16458         *Sun\ C*)                       # Sun C 5.9
16459           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'
16460           tmp_sharedflag='-G' ;;
16461         *Sun\ F*)                       # Sun Fortran 8.3
16462           tmp_sharedflag='-G' ;;
16463         *)
16464           tmp_sharedflag='-shared' ;;
16465         esac
16466         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16467
16468         if test $supports_anon_versioning = yes; then
16469           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16470   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16471   $echo "local: *; };" >> $output_objdir/$libname.ver~
16472           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16473         fi
16474       else
16475         ld_shlibs_F77=no
16476       fi
16477       ;;
16478
16479     netbsd*)
16480       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16481         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16482         wlarc=
16483       else
16484         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16485         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16486       fi
16487       ;;
16488
16489     solaris*)
16490       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16491         ld_shlibs_F77=no
16492         cat <<EOF 1>&2
16493
16494 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16495 *** create shared libraries on Solaris systems.  Therefore, libtool
16496 *** is disabling shared libraries support.  We urge you to upgrade GNU
16497 *** binutils to release 2.9.1 or newer.  Another option is to modify
16498 *** your PATH or compiler configuration so that the native linker is
16499 *** used, and then restart.
16500
16501 EOF
16502       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16503         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16504         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16505       else
16506         ld_shlibs_F77=no
16507       fi
16508       ;;
16509
16510     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16511       case `$LD -v 2>&1` in
16512         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16513         ld_shlibs_F77=no
16514         cat <<_LT_EOF 1>&2
16515
16516 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16517 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16518 *** is disabling shared libraries support.  We urge you to upgrade GNU
16519 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16520 *** your PATH or compiler configuration so that the native linker is
16521 *** used, and then restart.
16522
16523 _LT_EOF
16524         ;;
16525         *)
16526           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16527             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16528             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16529             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16530           else
16531             ld_shlibs_F77=no
16532           fi
16533         ;;
16534       esac
16535       ;;
16536
16537     sunos4*)
16538       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16539       wlarc=
16540       hardcode_direct_F77=yes
16541       hardcode_shlibpath_var_F77=no
16542       ;;
16543
16544     *)
16545       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16546         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16547         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16548       else
16549         ld_shlibs_F77=no
16550       fi
16551       ;;
16552     esac
16553
16554     if test "$ld_shlibs_F77" = no; then
16555       runpath_var=
16556       hardcode_libdir_flag_spec_F77=
16557       export_dynamic_flag_spec_F77=
16558       whole_archive_flag_spec_F77=
16559     fi
16560   else
16561     # PORTME fill in a description of your system's linker (not GNU ld)
16562     case $host_os in
16563     aix3*)
16564       allow_undefined_flag_F77=unsupported
16565       always_export_symbols_F77=yes
16566       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'
16567       # Note: this linker hardcodes the directories in LIBPATH if there
16568       # are no directories specified by -L.
16569       hardcode_minus_L_F77=yes
16570       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16571         # Neither direct hardcoding nor static linking is supported with a
16572         # broken collect2.
16573         hardcode_direct_F77=unsupported
16574       fi
16575       ;;
16576
16577     aix[4-9]*)
16578       if test "$host_cpu" = ia64; then
16579         # On IA64, the linker does run time linking by default, so we don't
16580         # have to do anything special.
16581         aix_use_runtimelinking=no
16582         exp_sym_flag='-Bexport'
16583         no_entry_flag=""
16584       else
16585         # If we're using GNU nm, then we don't want the "-C" option.
16586         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16587         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16588           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'
16589         else
16590           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'
16591         fi
16592         aix_use_runtimelinking=no
16593
16594         # Test if we are trying to use run time linking or normal
16595         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16596         # need to do runtime linking.
16597         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16598           for ld_flag in $LDFLAGS; do
16599           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16600             aix_use_runtimelinking=yes
16601             break
16602           fi
16603           done
16604           ;;
16605         esac
16606
16607         exp_sym_flag='-bexport'
16608         no_entry_flag='-bnoentry'
16609       fi
16610
16611       # When large executables or shared objects are built, AIX ld can
16612       # have problems creating the table of contents.  If linking a library
16613       # or program results in "error TOC overflow" add -mminimal-toc to
16614       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16615       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16616
16617       archive_cmds_F77=''
16618       hardcode_direct_F77=yes
16619       hardcode_libdir_separator_F77=':'
16620       link_all_deplibs_F77=yes
16621
16622       if test "$GCC" = yes; then
16623         case $host_os in aix4.[012]|aix4.[012].*)
16624         # We only want to do this on AIX 4.2 and lower, the check
16625         # below for broken collect2 doesn't work under 4.3+
16626           collect2name=`${CC} -print-prog-name=collect2`
16627           if test -f "$collect2name" && \
16628            strings "$collect2name" | grep resolve_lib_name >/dev/null
16629           then
16630           # We have reworked collect2
16631           :
16632           else
16633           # We have old collect2
16634           hardcode_direct_F77=unsupported
16635           # It fails to find uninstalled libraries when the uninstalled
16636           # path is not listed in the libpath.  Setting hardcode_minus_L
16637           # to unsupported forces relinking
16638           hardcode_minus_L_F77=yes
16639           hardcode_libdir_flag_spec_F77='-L$libdir'
16640           hardcode_libdir_separator_F77=
16641           fi
16642           ;;
16643         esac
16644         shared_flag='-shared'
16645         if test "$aix_use_runtimelinking" = yes; then
16646           shared_flag="$shared_flag "'${wl}-G'
16647         fi
16648       else
16649         # not using gcc
16650         if test "$host_cpu" = ia64; then
16651         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16652         # chokes on -Wl,-G. The following line is correct:
16653           shared_flag='-G'
16654         else
16655           if test "$aix_use_runtimelinking" = yes; then
16656             shared_flag='${wl}-G'
16657           else
16658             shared_flag='${wl}-bM:SRE'
16659           fi
16660         fi
16661       fi
16662
16663       # It seems that -bexpall does not export symbols beginning with
16664       # underscore (_), so it is better to generate a list of symbols to export.
16665       always_export_symbols_F77=yes
16666       if test "$aix_use_runtimelinking" = yes; then
16667         # Warning - without using the other runtime loading flags (-brtl),
16668         # -berok will link without error, but may produce a broken library.
16669         allow_undefined_flag_F77='-berok'
16670        # Determine the default libpath from the value encoded in an empty executable.
16671        cat >conftest.$ac_ext <<_ACEOF
16672       program main
16673
16674       end
16675 _ACEOF
16676 rm -f conftest.$ac_objext conftest$ac_exeext
16677 if { (ac_try="$ac_link"
16678 case "(($ac_try" in
16679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16680   *) ac_try_echo=$ac_try;;
16681 esac
16682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16683   (eval "$ac_link") 2>conftest.er1
16684   ac_status=$?
16685   grep -v '^ *+' conftest.er1 >conftest.err
16686   rm -f conftest.er1
16687   cat conftest.err >&5
16688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689   (exit $ac_status); } && {
16690          test -z "$ac_f77_werror_flag" ||
16691          test ! -s conftest.err
16692        } && test -s conftest$ac_exeext &&
16693        $as_test_x conftest$ac_exeext; then
16694
16695 lt_aix_libpath_sed='
16696     /Import File Strings/,/^$/ {
16697         /^0/ {
16698             s/^0  *\(.*\)$/\1/
16699             p
16700         }
16701     }'
16702 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16703 # Check for a 64-bit object if we didn't find anything.
16704 if test -z "$aix_libpath"; then
16705   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16706 fi
16707 else
16708   echo "$as_me: failed program was:" >&5
16709 sed 's/^/| /' conftest.$ac_ext >&5
16710
16711
16712 fi
16713
16714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16715       conftest$ac_exeext conftest.$ac_ext
16716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16717
16718        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16719         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"
16720        else
16721         if test "$host_cpu" = ia64; then
16722           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16723           allow_undefined_flag_F77="-z nodefs"
16724           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"
16725         else
16726          # Determine the default libpath from the value encoded in an empty executable.
16727          cat >conftest.$ac_ext <<_ACEOF
16728       program main
16729
16730       end
16731 _ACEOF
16732 rm -f conftest.$ac_objext conftest$ac_exeext
16733 if { (ac_try="$ac_link"
16734 case "(($ac_try" in
16735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736   *) ac_try_echo=$ac_try;;
16737 esac
16738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739   (eval "$ac_link") 2>conftest.er1
16740   ac_status=$?
16741   grep -v '^ *+' conftest.er1 >conftest.err
16742   rm -f conftest.er1
16743   cat conftest.err >&5
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); } && {
16746          test -z "$ac_f77_werror_flag" ||
16747          test ! -s conftest.err
16748        } && test -s conftest$ac_exeext &&
16749        $as_test_x conftest$ac_exeext; then
16750
16751 lt_aix_libpath_sed='
16752     /Import File Strings/,/^$/ {
16753         /^0/ {
16754             s/^0  *\(.*\)$/\1/
16755             p
16756         }
16757     }'
16758 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16759 # Check for a 64-bit object if we didn't find anything.
16760 if test -z "$aix_libpath"; then
16761   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16762 fi
16763 else
16764   echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16766
16767
16768 fi
16769
16770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16771       conftest$ac_exeext conftest.$ac_ext
16772 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16773
16774          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16775           # Warning - without using the other run time loading flags,
16776           # -berok will link without error, but may produce a broken library.
16777           no_undefined_flag_F77=' ${wl}-bernotok'
16778           allow_undefined_flag_F77=' ${wl}-berok'
16779           # Exported symbols can be pulled into shared objects from archives
16780           whole_archive_flag_spec_F77='$convenience'
16781           archive_cmds_need_lc_F77=yes
16782           # This is similar to how AIX traditionally builds its shared libraries.
16783           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'
16784         fi
16785       fi
16786       ;;
16787
16788     amigaos*)
16789       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)'
16790       hardcode_libdir_flag_spec_F77='-L$libdir'
16791       hardcode_minus_L_F77=yes
16792       # see comment about different semantics on the GNU ld section
16793       ld_shlibs_F77=no
16794       ;;
16795
16796     bsdi[45]*)
16797       export_dynamic_flag_spec_F77=-rdynamic
16798       ;;
16799
16800     cygwin* | mingw* | pw32*)
16801       # When not using gcc, we currently assume that we are using
16802       # Microsoft Visual C++.
16803       # hardcode_libdir_flag_spec is actually meaningless, as there is
16804       # no search path for DLLs.
16805       hardcode_libdir_flag_spec_F77=' '
16806       allow_undefined_flag_F77=unsupported
16807       # Tell ltmain to make .lib files, not .a files.
16808       libext=lib
16809       # Tell ltmain to make .dll files, not .so files.
16810       shrext_cmds=".dll"
16811       # FIXME: Setting linknames here is a bad hack.
16812       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16813       # The linker will automatically build a .lib file if we build a DLL.
16814       old_archive_From_new_cmds_F77='true'
16815       # FIXME: Should let the user specify the lib program.
16816       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16817       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16818       enable_shared_with_static_runtimes_F77=yes
16819       ;;
16820
16821     darwin* | rhapsody*)
16822       case $host_os in
16823         rhapsody* | darwin1.[012])
16824          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16825          ;;
16826        *) # Darwin 1.3 on
16827          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16828            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16829          else
16830            case ${MACOSX_DEPLOYMENT_TARGET} in
16831              10.[012])
16832                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16833                ;;
16834              10.*)
16835                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16836                ;;
16837            esac
16838          fi
16839          ;;
16840       esac
16841       archive_cmds_need_lc_F77=no
16842       hardcode_direct_F77=no
16843       hardcode_automatic_F77=yes
16844       hardcode_shlibpath_var_F77=unsupported
16845       whole_archive_flag_spec_F77=''
16846       link_all_deplibs_F77=yes
16847     if test "$GCC" = yes ; then
16848         output_verbose_link_cmd='echo'
16849         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}"
16850         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16851         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}"
16852         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}"
16853     else
16854       case $cc_basename in
16855         xlc*)
16856          output_verbose_link_cmd='echo'
16857          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16858          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16859           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16860          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}'
16861           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}'
16862           ;;
16863        *)
16864          ld_shlibs_F77=no
16865           ;;
16866       esac
16867     fi
16868       ;;
16869
16870     dgux*)
16871       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16872       hardcode_libdir_flag_spec_F77='-L$libdir'
16873       hardcode_shlibpath_var_F77=no
16874       ;;
16875
16876     freebsd1*)
16877       ld_shlibs_F77=no
16878       ;;
16879
16880     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16881     # support.  Future versions do this automatically, but an explicit c++rt0.o
16882     # does not break anything, and helps significantly (at the cost of a little
16883     # extra space).
16884     freebsd2.2*)
16885       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16886       hardcode_libdir_flag_spec_F77='-R$libdir'
16887       hardcode_direct_F77=yes
16888       hardcode_shlibpath_var_F77=no
16889       ;;
16890
16891     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16892     freebsd2*)
16893       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16894       hardcode_direct_F77=yes
16895       hardcode_minus_L_F77=yes
16896       hardcode_shlibpath_var_F77=no
16897       ;;
16898
16899     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16900     freebsd* | dragonfly*)
16901       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16902       hardcode_libdir_flag_spec_F77='-R$libdir'
16903       hardcode_direct_F77=yes
16904       hardcode_shlibpath_var_F77=no
16905       ;;
16906
16907     hpux9*)
16908       if test "$GCC" = yes; then
16909         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'
16910       else
16911         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'
16912       fi
16913       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16914       hardcode_libdir_separator_F77=:
16915       hardcode_direct_F77=yes
16916
16917       # hardcode_minus_L: Not really in the search PATH,
16918       # but as the default location of the library.
16919       hardcode_minus_L_F77=yes
16920       export_dynamic_flag_spec_F77='${wl}-E'
16921       ;;
16922
16923     hpux10*)
16924       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16925         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16926       else
16927         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16928       fi
16929       if test "$with_gnu_ld" = no; then
16930         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16931         hardcode_libdir_separator_F77=:
16932
16933         hardcode_direct_F77=yes
16934         export_dynamic_flag_spec_F77='${wl}-E'
16935
16936         # hardcode_minus_L: Not really in the search PATH,
16937         # but as the default location of the library.
16938         hardcode_minus_L_F77=yes
16939       fi
16940       ;;
16941
16942     hpux11*)
16943       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16944         case $host_cpu in
16945         hppa*64*)
16946           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16947           ;;
16948         ia64*)
16949           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16950           ;;
16951         *)
16952           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16953           ;;
16954         esac
16955       else
16956         case $host_cpu in
16957         hppa*64*)
16958           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16959           ;;
16960         ia64*)
16961           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16962           ;;
16963         *)
16964           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16965           ;;
16966         esac
16967       fi
16968       if test "$with_gnu_ld" = no; then
16969         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16970         hardcode_libdir_separator_F77=:
16971
16972         case $host_cpu in
16973         hppa*64*|ia64*)
16974           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16975           hardcode_direct_F77=no
16976           hardcode_shlibpath_var_F77=no
16977           ;;
16978         *)
16979           hardcode_direct_F77=yes
16980           export_dynamic_flag_spec_F77='${wl}-E'
16981
16982           # hardcode_minus_L: Not really in the search PATH,
16983           # but as the default location of the library.
16984           hardcode_minus_L_F77=yes
16985           ;;
16986         esac
16987       fi
16988       ;;
16989
16990     irix5* | irix6* | nonstopux*)
16991       if test "$GCC" = yes; then
16992         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'
16993       else
16994         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'
16995         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16996       fi
16997       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16998       hardcode_libdir_separator_F77=:
16999       link_all_deplibs_F77=yes
17000       ;;
17001
17002     netbsd*)
17003       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17004         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17005       else
17006         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17007       fi
17008       hardcode_libdir_flag_spec_F77='-R$libdir'
17009       hardcode_direct_F77=yes
17010       hardcode_shlibpath_var_F77=no
17011       ;;
17012
17013     newsos6)
17014       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17015       hardcode_direct_F77=yes
17016       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17017       hardcode_libdir_separator_F77=:
17018       hardcode_shlibpath_var_F77=no
17019       ;;
17020
17021     openbsd*)
17022       if test -f /usr/libexec/ld.so; then
17023         hardcode_direct_F77=yes
17024         hardcode_shlibpath_var_F77=no
17025         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17026           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17027           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17028           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17029           export_dynamic_flag_spec_F77='${wl}-E'
17030         else
17031           case $host_os in
17032            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17033              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17034              hardcode_libdir_flag_spec_F77='-R$libdir'
17035              ;;
17036            *)
17037              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17038              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17039              ;;
17040           esac
17041         fi
17042       else
17043         ld_shlibs_F77=no
17044       fi
17045       ;;
17046
17047     os2*)
17048       hardcode_libdir_flag_spec_F77='-L$libdir'
17049       hardcode_minus_L_F77=yes
17050       allow_undefined_flag_F77=unsupported
17051       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'
17052       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17053       ;;
17054
17055     osf3*)
17056       if test "$GCC" = yes; then
17057         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17058         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'
17059       else
17060         allow_undefined_flag_F77=' -expect_unresolved \*'
17061         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'
17062       fi
17063       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17064       hardcode_libdir_separator_F77=:
17065       ;;
17066
17067     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17068       if test "$GCC" = yes; then
17069         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17070         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'
17071         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17072       else
17073         allow_undefined_flag_F77=' -expect_unresolved \*'
17074         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'
17075         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~
17076         $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'
17077
17078         # Both c and cxx compiler support -rpath directly
17079         hardcode_libdir_flag_spec_F77='-rpath $libdir'
17080       fi
17081       hardcode_libdir_separator_F77=:
17082       ;;
17083
17084     solaris*)
17085       no_undefined_flag_F77=' -z text'
17086       if test "$GCC" = yes; then
17087         wlarc='${wl}'
17088         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17089         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17090           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17091       else
17092         wlarc=''
17093         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17094         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17095         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17096       fi
17097       hardcode_libdir_flag_spec_F77='-R$libdir'
17098       hardcode_shlibpath_var_F77=no
17099       case $host_os in
17100       solaris2.[0-5] | solaris2.[0-5].*) ;;
17101       *)
17102         # The compiler driver will combine and reorder linker options,
17103         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17104         # but is careful enough not to reorder.
17105         # Supported since Solaris 2.6 (maybe 2.5.1?)
17106         if test "$GCC" = yes; then
17107           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17108         else
17109           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
17110         fi
17111         ;;
17112       esac
17113       link_all_deplibs_F77=yes
17114       ;;
17115
17116     sunos4*)
17117       if test "x$host_vendor" = xsequent; then
17118         # Use $CC to link under sequent, because it throws in some extra .o
17119         # files that make .init and .fini sections work.
17120         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17121       else
17122         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17123       fi
17124       hardcode_libdir_flag_spec_F77='-L$libdir'
17125       hardcode_direct_F77=yes
17126       hardcode_minus_L_F77=yes
17127       hardcode_shlibpath_var_F77=no
17128       ;;
17129
17130     sysv4)
17131       case $host_vendor in
17132         sni)
17133           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17134           hardcode_direct_F77=yes # is this really true???
17135         ;;
17136         siemens)
17137           ## LD is ld it makes a PLAMLIB
17138           ## CC just makes a GrossModule.
17139           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17140           reload_cmds_F77='$CC -r -o $output$reload_objs'
17141           hardcode_direct_F77=no
17142         ;;
17143         motorola)
17144           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17145           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17146         ;;
17147       esac
17148       runpath_var='LD_RUN_PATH'
17149       hardcode_shlibpath_var_F77=no
17150       ;;
17151
17152     sysv4.3*)
17153       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17154       hardcode_shlibpath_var_F77=no
17155       export_dynamic_flag_spec_F77='-Bexport'
17156       ;;
17157
17158     sysv4*MP*)
17159       if test -d /usr/nec; then
17160         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17161         hardcode_shlibpath_var_F77=no
17162         runpath_var=LD_RUN_PATH
17163         hardcode_runpath_var=yes
17164         ld_shlibs_F77=yes
17165       fi
17166       ;;
17167
17168     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17169       no_undefined_flag_F77='${wl}-z,text'
17170       archive_cmds_need_lc_F77=no
17171       hardcode_shlibpath_var_F77=no
17172       runpath_var='LD_RUN_PATH'
17173
17174       if test "$GCC" = yes; then
17175         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17176         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17177       else
17178         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17179         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17180       fi
17181       ;;
17182
17183     sysv5* | sco3.2v5* | sco5v6*)
17184       # Note: We can NOT use -z defs as we might desire, because we do not
17185       # link with -lc, and that would cause any symbols used from libc to
17186       # always be unresolved, which means just about no library would
17187       # ever link correctly.  If we're not using GNU ld we use -z text
17188       # though, which does catch some bad symbols but isn't as heavy-handed
17189       # as -z defs.
17190       no_undefined_flag_F77='${wl}-z,text'
17191       allow_undefined_flag_F77='${wl}-z,nodefs'
17192       archive_cmds_need_lc_F77=no
17193       hardcode_shlibpath_var_F77=no
17194       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17195       hardcode_libdir_separator_F77=':'
17196       link_all_deplibs_F77=yes
17197       export_dynamic_flag_spec_F77='${wl}-Bexport'
17198       runpath_var='LD_RUN_PATH'
17199
17200       if test "$GCC" = yes; then
17201         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17202         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17203       else
17204         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17205         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17206       fi
17207       ;;
17208
17209     uts4*)
17210       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17211       hardcode_libdir_flag_spec_F77='-L$libdir'
17212       hardcode_shlibpath_var_F77=no
17213       ;;
17214
17215     *)
17216       ld_shlibs_F77=no
17217       ;;
17218     esac
17219   fi
17220
17221 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17222 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17223 test "$ld_shlibs_F77" = no && can_build_shared=no
17224
17225 #
17226 # Do we need to explicitly link libc?
17227 #
17228 case "x$archive_cmds_need_lc_F77" in
17229 x|xyes)
17230   # Assume -lc should be added
17231   archive_cmds_need_lc_F77=yes
17232
17233   if test "$enable_shared" = yes && test "$GCC" = yes; then
17234     case $archive_cmds_F77 in
17235     *'~'*)
17236       # FIXME: we may have to deal with multi-command sequences.
17237       ;;
17238     '$CC '*)
17239       # Test whether the compiler implicitly links with -lc since on some
17240       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17241       # to ld, don't add -lc before -lgcc.
17242       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17243 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17244       $rm conftest*
17245       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17246
17247       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17248   (eval $ac_compile) 2>&5
17249   ac_status=$?
17250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251   (exit $ac_status); } 2>conftest.err; then
17252         soname=conftest
17253         lib=conftest
17254         libobjs=conftest.$ac_objext
17255         deplibs=
17256         wl=$lt_prog_compiler_wl_F77
17257         pic_flag=$lt_prog_compiler_pic_F77
17258         compiler_flags=-v
17259         linker_flags=-v
17260         verstring=
17261         output_objdir=.
17262         libname=conftest
17263         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17264         allow_undefined_flag_F77=
17265         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17266   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17267   ac_status=$?
17268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269   (exit $ac_status); }
17270         then
17271           archive_cmds_need_lc_F77=no
17272         else
17273           archive_cmds_need_lc_F77=yes
17274         fi
17275         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17276       else
17277         cat conftest.err 1>&5
17278       fi
17279       $rm conftest*
17280       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17281 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17282       ;;
17283     esac
17284   fi
17285   ;;
17286 esac
17287
17288 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17289 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17290 library_names_spec=
17291 libname_spec='lib$name'
17292 soname_spec=
17293 shrext_cmds=".so"
17294 postinstall_cmds=
17295 postuninstall_cmds=
17296 finish_cmds=
17297 finish_eval=
17298 shlibpath_var=
17299 shlibpath_overrides_runpath=unknown
17300 version_type=none
17301 dynamic_linker="$host_os ld.so"
17302 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17303
17304 need_lib_prefix=unknown
17305 hardcode_into_libs=no
17306
17307 # when you set need_version to no, make sure it does not cause -set_version
17308 # flags to be left without arguments
17309 need_version=unknown
17310
17311 case $host_os in
17312 aix3*)
17313   version_type=linux
17314   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17315   shlibpath_var=LIBPATH
17316
17317   # AIX 3 has no versioning support, so we append a major version to the name.
17318   soname_spec='${libname}${release}${shared_ext}$major'
17319   ;;
17320
17321 aix[4-9]*)
17322   version_type=linux
17323   need_lib_prefix=no
17324   need_version=no
17325   hardcode_into_libs=yes
17326   if test "$host_cpu" = ia64; then
17327     # AIX 5 supports IA64
17328     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17329     shlibpath_var=LD_LIBRARY_PATH
17330   else
17331     # With GCC up to 2.95.x, collect2 would create an import file
17332     # for dependence libraries.  The import file would start with
17333     # the line `#! .'.  This would cause the generated library to
17334     # depend on `.', always an invalid library.  This was fixed in
17335     # development snapshots of GCC prior to 3.0.
17336     case $host_os in
17337       aix4 | aix4.[01] | aix4.[01].*)
17338       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17339            echo ' yes '
17340            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17341         :
17342       else
17343         can_build_shared=no
17344       fi
17345       ;;
17346     esac
17347     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17348     # soname into executable. Probably we can add versioning support to
17349     # collect2, so additional links can be useful in future.
17350     if test "$aix_use_runtimelinking" = yes; then
17351       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17352       # instead of lib<name>.a to let people know that these are not
17353       # typical AIX shared libraries.
17354       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17355     else
17356       # We preserve .a as extension for shared libraries through AIX4.2
17357       # and later when we are not doing run time linking.
17358       library_names_spec='${libname}${release}.a $libname.a'
17359       soname_spec='${libname}${release}${shared_ext}$major'
17360     fi
17361     shlibpath_var=LIBPATH
17362   fi
17363   ;;
17364
17365 amigaos*)
17366   library_names_spec='$libname.ixlibrary $libname.a'
17367   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17368   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'
17369   ;;
17370
17371 beos*)
17372   library_names_spec='${libname}${shared_ext}'
17373   dynamic_linker="$host_os ld.so"
17374   shlibpath_var=LIBRARY_PATH
17375   ;;
17376
17377 bsdi[45]*)
17378   version_type=linux
17379   need_version=no
17380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17381   soname_spec='${libname}${release}${shared_ext}$major'
17382   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17383   shlibpath_var=LD_LIBRARY_PATH
17384   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17385   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17386   # the default ld.so.conf also contains /usr/contrib/lib and
17387   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17388   # libtool to hard-code these into programs
17389   ;;
17390
17391 cygwin* | mingw* | pw32*)
17392   version_type=windows
17393   shrext_cmds=".dll"
17394   need_version=no
17395   need_lib_prefix=no
17396
17397   case $GCC,$host_os in
17398   yes,cygwin* | yes,mingw* | yes,pw32*)
17399     library_names_spec='$libname.dll.a'
17400     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17401     postinstall_cmds='base_file=`basename \${file}`~
17402       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17403       dldir=$destdir/`dirname \$dlpath`~
17404       test -d \$dldir || mkdir -p \$dldir~
17405       $install_prog $dir/$dlname \$dldir/$dlname~
17406       chmod a+x \$dldir/$dlname'
17407     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17408       dlpath=$dir/\$dldll~
17409        $rm \$dlpath'
17410     shlibpath_overrides_runpath=yes
17411
17412     case $host_os in
17413     cygwin*)
17414       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17415       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17416       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17417       ;;
17418     mingw*)
17419       # MinGW DLLs use traditional 'lib' prefix
17420       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17421       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17422       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17423         # It is most probably a Windows format PATH printed by
17424         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17425         # path with ; separators, and with drive letters. We can handle the
17426         # drive letters (cygwin fileutils understands them), so leave them,
17427         # especially as we might pass files found there to a mingw objdump,
17428         # which wouldn't understand a cygwinified path. Ahh.
17429         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17430       else
17431         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17432       fi
17433       ;;
17434     pw32*)
17435       # pw32 DLLs use 'pw' prefix rather than 'lib'
17436       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17437       ;;
17438     esac
17439     ;;
17440
17441   *)
17442     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17443     ;;
17444   esac
17445   dynamic_linker='Win32 ld.exe'
17446   # FIXME: first we should search . and the directory the executable is in
17447   shlibpath_var=PATH
17448   ;;
17449
17450 darwin* | rhapsody*)
17451   dynamic_linker="$host_os dyld"
17452   version_type=darwin
17453   need_lib_prefix=no
17454   need_version=no
17455   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17456   soname_spec='${libname}${release}${major}$shared_ext'
17457   shlibpath_overrides_runpath=yes
17458   shlibpath_var=DYLD_LIBRARY_PATH
17459   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17460
17461   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17462   ;;
17463
17464 dgux*)
17465   version_type=linux
17466   need_lib_prefix=no
17467   need_version=no
17468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17469   soname_spec='${libname}${release}${shared_ext}$major'
17470   shlibpath_var=LD_LIBRARY_PATH
17471   ;;
17472
17473 freebsd1*)
17474   dynamic_linker=no
17475   ;;
17476
17477 freebsd* | dragonfly*)
17478   # DragonFly does not have aout.  When/if they implement a new
17479   # versioning mechanism, adjust this.
17480   if test -x /usr/bin/objformat; then
17481     objformat=`/usr/bin/objformat`
17482   else
17483     case $host_os in
17484     freebsd[123]*) objformat=aout ;;
17485     *) objformat=elf ;;
17486     esac
17487   fi
17488   version_type=freebsd-$objformat
17489   case $version_type in
17490     freebsd-elf*)
17491       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17492       need_version=no
17493       need_lib_prefix=no
17494       ;;
17495     freebsd-*)
17496       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17497       need_version=yes
17498       ;;
17499   esac
17500   shlibpath_var=LD_LIBRARY_PATH
17501   case $host_os in
17502   freebsd2*)
17503     shlibpath_overrides_runpath=yes
17504     ;;
17505   freebsd3.[01]* | freebsdelf3.[01]*)
17506     shlibpath_overrides_runpath=yes
17507     hardcode_into_libs=yes
17508     ;;
17509   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17510   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17511     shlibpath_overrides_runpath=no
17512     hardcode_into_libs=yes
17513     ;;
17514   *) # from 4.6 on, and DragonFly
17515     shlibpath_overrides_runpath=yes
17516     hardcode_into_libs=yes
17517     ;;
17518   esac
17519   ;;
17520
17521 gnu*)
17522   version_type=linux
17523   need_lib_prefix=no
17524   need_version=no
17525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17526   soname_spec='${libname}${release}${shared_ext}$major'
17527   shlibpath_var=LD_LIBRARY_PATH
17528   hardcode_into_libs=yes
17529   ;;
17530
17531 hpux9* | hpux10* | hpux11*)
17532   # Give a soname corresponding to the major version so that dld.sl refuses to
17533   # link against other versions.
17534   version_type=sunos
17535   need_lib_prefix=no
17536   need_version=no
17537   case $host_cpu in
17538   ia64*)
17539     shrext_cmds='.so'
17540     hardcode_into_libs=yes
17541     dynamic_linker="$host_os dld.so"
17542     shlibpath_var=LD_LIBRARY_PATH
17543     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17544     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17545     soname_spec='${libname}${release}${shared_ext}$major'
17546     if test "X$HPUX_IA64_MODE" = X32; then
17547       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17548     else
17549       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17550     fi
17551     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17552     ;;
17553    hppa*64*)
17554      shrext_cmds='.sl'
17555      hardcode_into_libs=yes
17556      dynamic_linker="$host_os dld.sl"
17557      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17558      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17559      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17560      soname_spec='${libname}${release}${shared_ext}$major'
17561      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17562      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17563      ;;
17564    *)
17565     shrext_cmds='.sl'
17566     dynamic_linker="$host_os dld.sl"
17567     shlibpath_var=SHLIB_PATH
17568     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17569     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17570     soname_spec='${libname}${release}${shared_ext}$major'
17571     ;;
17572   esac
17573   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17574   postinstall_cmds='chmod 555 $lib'
17575   ;;
17576
17577 interix[3-9]*)
17578   version_type=linux
17579   need_lib_prefix=no
17580   need_version=no
17581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17582   soname_spec='${libname}${release}${shared_ext}$major'
17583   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17584   shlibpath_var=LD_LIBRARY_PATH
17585   shlibpath_overrides_runpath=no
17586   hardcode_into_libs=yes
17587   ;;
17588
17589 irix5* | irix6* | nonstopux*)
17590   case $host_os in
17591     nonstopux*) version_type=nonstopux ;;
17592     *)
17593         if test "$lt_cv_prog_gnu_ld" = yes; then
17594                 version_type=linux
17595         else
17596                 version_type=irix
17597         fi ;;
17598   esac
17599   need_lib_prefix=no
17600   need_version=no
17601   soname_spec='${libname}${release}${shared_ext}$major'
17602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17603   case $host_os in
17604   irix5* | nonstopux*)
17605     libsuff= shlibsuff=
17606     ;;
17607   *)
17608     case $LD in # libtool.m4 will add one of these switches to LD
17609     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17610       libsuff= shlibsuff= libmagic=32-bit;;
17611     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17612       libsuff=32 shlibsuff=N32 libmagic=N32;;
17613     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17614       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17615     *) libsuff= shlibsuff= libmagic=never-match;;
17616     esac
17617     ;;
17618   esac
17619   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17620   shlibpath_overrides_runpath=no
17621   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17622   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17623   hardcode_into_libs=yes
17624   ;;
17625
17626 # No shared lib support for Linux oldld, aout, or coff.
17627 linux*oldld* | linux*aout* | linux*coff*)
17628   dynamic_linker=no
17629   ;;
17630
17631 # This must be Linux ELF.
17632 linux* | k*bsd*-gnu)
17633   version_type=linux
17634   need_lib_prefix=no
17635   need_version=no
17636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17637   soname_spec='${libname}${release}${shared_ext}$major'
17638   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17639   shlibpath_var=LD_LIBRARY_PATH
17640   shlibpath_overrides_runpath=no
17641   # This implies no fast_install, which is unacceptable.
17642   # Some rework will be needed to allow for fast_install
17643   # before this can be enabled.
17644   hardcode_into_libs=yes
17645
17646   # Append ld.so.conf contents to the search path
17647   if test -f /etc/ld.so.conf; then
17648     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' ' '`
17649     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17650   fi
17651
17652   # We used to test for /lib/ld.so.1 and disable shared libraries on
17653   # powerpc, because MkLinux only supported shared libraries with the
17654   # GNU dynamic linker.  Since this was broken with cross compilers,
17655   # most powerpc-linux boxes support dynamic linking these days and
17656   # people can always --disable-shared, the test was removed, and we
17657   # assume the GNU/Linux dynamic linker is in use.
17658   dynamic_linker='GNU/Linux ld.so'
17659   ;;
17660
17661 netbsd*)
17662   version_type=sunos
17663   need_lib_prefix=no
17664   need_version=no
17665   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17666     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17667     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17668     dynamic_linker='NetBSD (a.out) ld.so'
17669   else
17670     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17671     soname_spec='${libname}${release}${shared_ext}$major'
17672     dynamic_linker='NetBSD ld.elf_so'
17673   fi
17674   shlibpath_var=LD_LIBRARY_PATH
17675   shlibpath_overrides_runpath=yes
17676   hardcode_into_libs=yes
17677   ;;
17678
17679 newsos6)
17680   version_type=linux
17681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17682   shlibpath_var=LD_LIBRARY_PATH
17683   shlibpath_overrides_runpath=yes
17684   ;;
17685
17686 nto-qnx*)
17687   version_type=linux
17688   need_lib_prefix=no
17689   need_version=no
17690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17691   soname_spec='${libname}${release}${shared_ext}$major'
17692   shlibpath_var=LD_LIBRARY_PATH
17693   shlibpath_overrides_runpath=yes
17694   ;;
17695
17696 openbsd*)
17697   version_type=sunos
17698   sys_lib_dlsearch_path_spec="/usr/lib"
17699   need_lib_prefix=no
17700   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17701   case $host_os in
17702     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17703     *)                         need_version=no  ;;
17704   esac
17705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17706   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17707   shlibpath_var=LD_LIBRARY_PATH
17708   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17709     case $host_os in
17710       openbsd2.[89] | openbsd2.[89].*)
17711         shlibpath_overrides_runpath=no
17712         ;;
17713       *)
17714         shlibpath_overrides_runpath=yes
17715         ;;
17716       esac
17717   else
17718     shlibpath_overrides_runpath=yes
17719   fi
17720   ;;
17721
17722 os2*)
17723   libname_spec='$name'
17724   shrext_cmds=".dll"
17725   need_lib_prefix=no
17726   library_names_spec='$libname${shared_ext} $libname.a'
17727   dynamic_linker='OS/2 ld.exe'
17728   shlibpath_var=LIBPATH
17729   ;;
17730
17731 osf3* | osf4* | osf5*)
17732   version_type=osf
17733   need_lib_prefix=no
17734   need_version=no
17735   soname_spec='${libname}${release}${shared_ext}$major'
17736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17737   shlibpath_var=LD_LIBRARY_PATH
17738   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17739   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17740   ;;
17741
17742 rdos*)
17743   dynamic_linker=no
17744   ;;
17745
17746 solaris*)
17747   version_type=linux
17748   need_lib_prefix=no
17749   need_version=no
17750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17751   soname_spec='${libname}${release}${shared_ext}$major'
17752   shlibpath_var=LD_LIBRARY_PATH
17753   shlibpath_overrides_runpath=yes
17754   hardcode_into_libs=yes
17755   # ldd complains unless libraries are executable
17756   postinstall_cmds='chmod +x $lib'
17757   ;;
17758
17759 sunos4*)
17760   version_type=sunos
17761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17762   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17763   shlibpath_var=LD_LIBRARY_PATH
17764   shlibpath_overrides_runpath=yes
17765   if test "$with_gnu_ld" = yes; then
17766     need_lib_prefix=no
17767   fi
17768   need_version=yes
17769   ;;
17770
17771 sysv4 | sysv4.3*)
17772   version_type=linux
17773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17774   soname_spec='${libname}${release}${shared_ext}$major'
17775   shlibpath_var=LD_LIBRARY_PATH
17776   case $host_vendor in
17777     sni)
17778       shlibpath_overrides_runpath=no
17779       need_lib_prefix=no
17780       export_dynamic_flag_spec='${wl}-Blargedynsym'
17781       runpath_var=LD_RUN_PATH
17782       ;;
17783     siemens)
17784       need_lib_prefix=no
17785       ;;
17786     motorola)
17787       need_lib_prefix=no
17788       need_version=no
17789       shlibpath_overrides_runpath=no
17790       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17791       ;;
17792   esac
17793   ;;
17794
17795 sysv4*MP*)
17796   if test -d /usr/nec ;then
17797     version_type=linux
17798     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17799     soname_spec='$libname${shared_ext}.$major'
17800     shlibpath_var=LD_LIBRARY_PATH
17801   fi
17802   ;;
17803
17804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17805   version_type=freebsd-elf
17806   need_lib_prefix=no
17807   need_version=no
17808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17809   soname_spec='${libname}${release}${shared_ext}$major'
17810   shlibpath_var=LD_LIBRARY_PATH
17811   hardcode_into_libs=yes
17812   if test "$with_gnu_ld" = yes; then
17813     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17814     shlibpath_overrides_runpath=no
17815   else
17816     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17817     shlibpath_overrides_runpath=yes
17818     case $host_os in
17819       sco3.2v5*)
17820         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17821         ;;
17822     esac
17823   fi
17824   sys_lib_dlsearch_path_spec='/usr/lib'
17825   ;;
17826
17827 uts4*)
17828   version_type=linux
17829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17830   soname_spec='${libname}${release}${shared_ext}$major'
17831   shlibpath_var=LD_LIBRARY_PATH
17832   ;;
17833
17834 *)
17835   dynamic_linker=no
17836   ;;
17837 esac
17838 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17839 echo "${ECHO_T}$dynamic_linker" >&6; }
17840 test "$dynamic_linker" = no && can_build_shared=no
17841
17842 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17843   echo $ECHO_N "(cached) $ECHO_C" >&6
17844 else
17845   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17846 fi
17847
17848 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17849 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17850   echo $ECHO_N "(cached) $ECHO_C" >&6
17851 else
17852   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17853 fi
17854
17855 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17856
17857 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17858 if test "$GCC" = yes; then
17859   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17860 fi
17861
17862 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17863 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17864 hardcode_action_F77=
17865 if test -n "$hardcode_libdir_flag_spec_F77" || \
17866    test -n "$runpath_var_F77" || \
17867    test "X$hardcode_automatic_F77" = "Xyes" ; then
17868
17869   # We can hardcode non-existant directories.
17870   if test "$hardcode_direct_F77" != no &&
17871      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17872      # have to relink, otherwise we might link with an installed library
17873      # when we should be linking with a yet-to-be-installed one
17874      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17875      test "$hardcode_minus_L_F77" != no; then
17876     # Linking always hardcodes the temporary library directory.
17877     hardcode_action_F77=relink
17878   else
17879     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17880     hardcode_action_F77=immediate
17881   fi
17882 else
17883   # We cannot hardcode anything, or else we can only hardcode existing
17884   # directories.
17885   hardcode_action_F77=unsupported
17886 fi
17887 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17888 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17889
17890 if test "$hardcode_action_F77" = relink; then
17891   # Fast installation is not supported
17892   enable_fast_install=no
17893 elif test "$shlibpath_overrides_runpath" = yes ||
17894      test "$enable_shared" = no; then
17895   # Fast installation is not necessary
17896   enable_fast_install=needless
17897 fi
17898
17899
17900 # The else clause should only fire when bootstrapping the
17901 # libtool distribution, otherwise you forgot to ship ltmain.sh
17902 # with your package, and you will get complaints that there are
17903 # no rules to generate ltmain.sh.
17904 if test -f "$ltmain"; then
17905   # See if we are running on zsh, and set the options which allow our commands through
17906   # without removal of \ escapes.
17907   if test -n "${ZSH_VERSION+set}" ; then
17908     setopt NO_GLOB_SUBST
17909   fi
17910   # Now quote all the things that may contain metacharacters while being
17911   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17912   # variables and quote the copies for generation of the libtool script.
17913   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17914     SED SHELL STRIP \
17915     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17916     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17917     deplibs_check_method reload_flag reload_cmds need_locks \
17918     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17919     lt_cv_sys_global_symbol_to_c_name_address \
17920     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17921     old_postinstall_cmds old_postuninstall_cmds \
17922     compiler_F77 \
17923     CC_F77 \
17924     LD_F77 \
17925     lt_prog_compiler_wl_F77 \
17926     lt_prog_compiler_pic_F77 \
17927     lt_prog_compiler_static_F77 \
17928     lt_prog_compiler_no_builtin_flag_F77 \
17929     export_dynamic_flag_spec_F77 \
17930     thread_safe_flag_spec_F77 \
17931     whole_archive_flag_spec_F77 \
17932     enable_shared_with_static_runtimes_F77 \
17933     old_archive_cmds_F77 \
17934     old_archive_from_new_cmds_F77 \
17935     predep_objects_F77 \
17936     postdep_objects_F77 \
17937     predeps_F77 \
17938     postdeps_F77 \
17939     compiler_lib_search_path_F77 \
17940     compiler_lib_search_dirs_F77 \
17941     archive_cmds_F77 \
17942     archive_expsym_cmds_F77 \
17943     postinstall_cmds_F77 \
17944     postuninstall_cmds_F77 \
17945     old_archive_from_expsyms_cmds_F77 \
17946     allow_undefined_flag_F77 \
17947     no_undefined_flag_F77 \
17948     export_symbols_cmds_F77 \
17949     hardcode_libdir_flag_spec_F77 \
17950     hardcode_libdir_flag_spec_ld_F77 \
17951     hardcode_libdir_separator_F77 \
17952     hardcode_automatic_F77 \
17953     module_cmds_F77 \
17954     module_expsym_cmds_F77 \
17955     lt_cv_prog_compiler_c_o_F77 \
17956     fix_srcfile_path_F77 \
17957     exclude_expsyms_F77 \
17958     include_expsyms_F77; do
17959
17960     case $var in
17961     old_archive_cmds_F77 | \
17962     old_archive_from_new_cmds_F77 | \
17963     archive_cmds_F77 | \
17964     archive_expsym_cmds_F77 | \
17965     module_cmds_F77 | \
17966     module_expsym_cmds_F77 | \
17967     old_archive_from_expsyms_cmds_F77 | \
17968     export_symbols_cmds_F77 | \
17969     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17970     postinstall_cmds | postuninstall_cmds | \
17971     old_postinstall_cmds | old_postuninstall_cmds | \
17972     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17973       # Double-quote double-evaled strings.
17974       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17975       ;;
17976     *)
17977       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17978       ;;
17979     esac
17980   done
17981
17982   case $lt_echo in
17983   *'\$0 --fallback-echo"')
17984     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17985     ;;
17986   esac
17987
17988 cfgfile="$ofile"
17989
17990   cat <<__EOF__ >> "$cfgfile"
17991 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17992
17993 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17994
17995 # Shell to use when invoking shell scripts.
17996 SHELL=$lt_SHELL
17997
17998 # Whether or not to build shared libraries.
17999 build_libtool_libs=$enable_shared
18000
18001 # Whether or not to build static libraries.
18002 build_old_libs=$enable_static
18003
18004 # Whether or not to add -lc for building shared libraries.
18005 build_libtool_need_lc=$archive_cmds_need_lc_F77
18006
18007 # Whether or not to disallow shared libs when runtime libs are static
18008 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18009
18010 # Whether or not to optimize for fast installation.
18011 fast_install=$enable_fast_install
18012
18013 # The host system.
18014 host_alias=$host_alias
18015 host=$host
18016 host_os=$host_os
18017
18018 # The build system.
18019 build_alias=$build_alias
18020 build=$build
18021 build_os=$build_os
18022
18023 # An echo program that does not interpret backslashes.
18024 echo=$lt_echo
18025
18026 # The archiver.
18027 AR=$lt_AR
18028 AR_FLAGS=$lt_AR_FLAGS
18029
18030 # A C compiler.
18031 LTCC=$lt_LTCC
18032
18033 # LTCC compiler flags.
18034 LTCFLAGS=$lt_LTCFLAGS
18035
18036 # A language-specific compiler.
18037 CC=$lt_compiler_F77
18038
18039 # Is the compiler the GNU C compiler?
18040 with_gcc=$GCC_F77
18041
18042 # An ERE matcher.
18043 EGREP=$lt_EGREP
18044
18045 # The linker used to build libraries.
18046 LD=$lt_LD_F77
18047
18048 # Whether we need hard or soft links.
18049 LN_S=$lt_LN_S
18050
18051 # A BSD-compatible nm program.
18052 NM=$lt_NM
18053
18054 # A symbol stripping program
18055 STRIP=$lt_STRIP
18056
18057 # Used to examine libraries when file_magic_cmd begins "file"
18058 MAGIC_CMD=$MAGIC_CMD
18059
18060 # Used on cygwin: DLL creation program.
18061 DLLTOOL="$DLLTOOL"
18062
18063 # Used on cygwin: object dumper.
18064 OBJDUMP="$OBJDUMP"
18065
18066 # Used on cygwin: assembler.
18067 AS="$AS"
18068
18069 # The name of the directory that contains temporary libtool files.
18070 objdir=$objdir
18071
18072 # How to create reloadable object files.
18073 reload_flag=$lt_reload_flag
18074 reload_cmds=$lt_reload_cmds
18075
18076 # How to pass a linker flag through the compiler.
18077 wl=$lt_lt_prog_compiler_wl_F77
18078
18079 # Object file suffix (normally "o").
18080 objext="$ac_objext"
18081
18082 # Old archive suffix (normally "a").
18083 libext="$libext"
18084
18085 # Shared library suffix (normally ".so").
18086 shrext_cmds='$shrext_cmds'
18087
18088 # Executable file suffix (normally "").
18089 exeext="$exeext"
18090
18091 # Additional compiler flags for building library objects.
18092 pic_flag=$lt_lt_prog_compiler_pic_F77
18093 pic_mode=$pic_mode
18094
18095 # What is the maximum length of a command?
18096 max_cmd_len=$lt_cv_sys_max_cmd_len
18097
18098 # Does compiler simultaneously support -c and -o options?
18099 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18100
18101 # Must we lock files when doing compilation?
18102 need_locks=$lt_need_locks
18103
18104 # Do we need the lib prefix for modules?
18105 need_lib_prefix=$need_lib_prefix
18106
18107 # Do we need a version for libraries?
18108 need_version=$need_version
18109
18110 # Whether dlopen is supported.
18111 dlopen_support=$enable_dlopen
18112
18113 # Whether dlopen of programs is supported.
18114 dlopen_self=$enable_dlopen_self
18115
18116 # Whether dlopen of statically linked programs is supported.
18117 dlopen_self_static=$enable_dlopen_self_static
18118
18119 # Compiler flag to prevent dynamic linking.
18120 link_static_flag=$lt_lt_prog_compiler_static_F77
18121
18122 # Compiler flag to turn off builtin functions.
18123 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18124
18125 # Compiler flag to allow reflexive dlopens.
18126 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18127
18128 # Compiler flag to generate shared objects directly from archives.
18129 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18130
18131 # Compiler flag to generate thread-safe objects.
18132 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18133
18134 # Library versioning type.
18135 version_type=$version_type
18136
18137 # Format of library name prefix.
18138 libname_spec=$lt_libname_spec
18139
18140 # List of archive names.  First name is the real one, the rest are links.
18141 # The last name is the one that the linker finds with -lNAME.
18142 library_names_spec=$lt_library_names_spec
18143
18144 # The coded name of the library, if different from the real name.
18145 soname_spec=$lt_soname_spec
18146
18147 # Commands used to build and install an old-style archive.
18148 RANLIB=$lt_RANLIB
18149 old_archive_cmds=$lt_old_archive_cmds_F77
18150 old_postinstall_cmds=$lt_old_postinstall_cmds
18151 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18152
18153 # Create an old-style archive from a shared archive.
18154 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18155
18156 # Create a temporary old-style archive to link instead of a shared archive.
18157 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18158
18159 # Commands used to build and install a shared archive.
18160 archive_cmds=$lt_archive_cmds_F77
18161 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18162 postinstall_cmds=$lt_postinstall_cmds
18163 postuninstall_cmds=$lt_postuninstall_cmds
18164
18165 # Commands used to build a loadable module (assumed same as above if empty)
18166 module_cmds=$lt_module_cmds_F77
18167 module_expsym_cmds=$lt_module_expsym_cmds_F77
18168
18169 # Commands to strip libraries.
18170 old_striplib=$lt_old_striplib
18171 striplib=$lt_striplib
18172
18173 # Dependencies to place before the objects being linked to create a
18174 # shared library.
18175 predep_objects=$lt_predep_objects_F77
18176
18177 # Dependencies to place after the objects being linked to create a
18178 # shared library.
18179 postdep_objects=$lt_postdep_objects_F77
18180
18181 # Dependencies to place before the objects being linked to create a
18182 # shared library.
18183 predeps=$lt_predeps_F77
18184
18185 # Dependencies to place after the objects being linked to create a
18186 # shared library.
18187 postdeps=$lt_postdeps_F77
18188
18189 # The directories searched by this compiler when creating a shared
18190 # library
18191 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
18192
18193 # The library search path used internally by the compiler when linking
18194 # a shared library.
18195 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18196
18197 # Method to check whether dependent libraries are shared objects.
18198 deplibs_check_method=$lt_deplibs_check_method
18199
18200 # Command to use when deplibs_check_method == file_magic.
18201 file_magic_cmd=$lt_file_magic_cmd
18202
18203 # Flag that allows shared libraries with undefined symbols to be built.
18204 allow_undefined_flag=$lt_allow_undefined_flag_F77
18205
18206 # Flag that forces no undefined symbols.
18207 no_undefined_flag=$lt_no_undefined_flag_F77
18208
18209 # Commands used to finish a libtool library installation in a directory.
18210 finish_cmds=$lt_finish_cmds
18211
18212 # Same as above, but a single script fragment to be evaled but not shown.
18213 finish_eval=$lt_finish_eval
18214
18215 # Take the output of nm and produce a listing of raw symbols and C names.
18216 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18217
18218 # Transform the output of nm in a proper C declaration
18219 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18220
18221 # Transform the output of nm in a C name address pair
18222 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18223
18224 # This is the shared library runtime path variable.
18225 runpath_var=$runpath_var
18226
18227 # This is the shared library path variable.
18228 shlibpath_var=$shlibpath_var
18229
18230 # Is shlibpath searched before the hard-coded library search path?
18231 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18232
18233 # How to hardcode a shared library path into an executable.
18234 hardcode_action=$hardcode_action_F77
18235
18236 # Whether we should hardcode library paths into libraries.
18237 hardcode_into_libs=$hardcode_into_libs
18238
18239 # Flag to hardcode \$libdir into a binary during linking.
18240 # This must work even if \$libdir does not exist.
18241 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18242
18243 # If ld is used when linking, flag to hardcode \$libdir into
18244 # a binary during linking. This must work even if \$libdir does
18245 # not exist.
18246 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18247
18248 # Whether we need a single -rpath flag with a separated argument.
18249 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18250
18251 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18252 # resulting binary.
18253 hardcode_direct=$hardcode_direct_F77
18254
18255 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18256 # resulting binary.
18257 hardcode_minus_L=$hardcode_minus_L_F77
18258
18259 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18260 # the resulting binary.
18261 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18262
18263 # Set to yes if building a shared library automatically hardcodes DIR into the library
18264 # and all subsequent libraries and executables linked against it.
18265 hardcode_automatic=$hardcode_automatic_F77
18266
18267 # Variables whose values should be saved in libtool wrapper scripts and
18268 # restored at relink time.
18269 variables_saved_for_relink="$variables_saved_for_relink"
18270
18271 # Whether libtool must link a program against all its dependency libraries.
18272 link_all_deplibs=$link_all_deplibs_F77
18273
18274 # Compile-time system search path for libraries
18275 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18276
18277 # Run-time system search path for libraries
18278 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18279
18280 # Fix the shell variable \$srcfile for the compiler.
18281 fix_srcfile_path=$lt_fix_srcfile_path
18282
18283 # Set to yes if exported symbols are required.
18284 always_export_symbols=$always_export_symbols_F77
18285
18286 # The commands to list exported symbols.
18287 export_symbols_cmds=$lt_export_symbols_cmds_F77
18288
18289 # The commands to extract the exported symbol list from a shared archive.
18290 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18291
18292 # Symbols that should not be listed in the preloaded symbols.
18293 exclude_expsyms=$lt_exclude_expsyms_F77
18294
18295 # Symbols that must always be exported.
18296 include_expsyms=$lt_include_expsyms_F77
18297
18298 # ### END LIBTOOL TAG CONFIG: $tagname
18299
18300 __EOF__
18301
18302
18303 else
18304   # If there is no Makefile yet, we rely on a make rule to execute
18305   # `config.status --recheck' to rerun these tests and create the
18306   # libtool script then.
18307   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18308   if test -f "$ltmain_in"; then
18309     test -f Makefile && make "$ltmain"
18310   fi
18311 fi
18312
18313
18314 ac_ext=c
18315 ac_cpp='$CPP $CPPFLAGS'
18316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18319
18320 CC="$lt_save_CC"
18321
18322         else
18323           tagname=""
18324         fi
18325         ;;
18326
18327       GCJ)
18328         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18329
18330
18331 # Source file extension for Java test sources.
18332 ac_ext=java
18333
18334 # Object file extension for compiled Java test sources.
18335 objext=o
18336 objext_GCJ=$objext
18337
18338 # Code to be used in simple compile tests
18339 lt_simple_compile_test_code="class foo {}"
18340
18341 # Code to be used in simple link tests
18342 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
18343
18344 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18345
18346 # If no C compiler was specified, use CC.
18347 LTCC=${LTCC-"$CC"}
18348
18349 # If no C compiler flags were specified, use CFLAGS.
18350 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18351
18352 # Allow CC to be a program name with arguments.
18353 compiler=$CC
18354
18355
18356 # save warnings/boilerplate of simple test code
18357 ac_outfile=conftest.$ac_objext
18358 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18359 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18360 _lt_compiler_boilerplate=`cat conftest.err`
18361 $rm conftest*
18362
18363 ac_outfile=conftest.$ac_objext
18364 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18365 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18366 _lt_linker_boilerplate=`cat conftest.err`
18367 $rm -r conftest*
18368
18369
18370 # Allow CC to be a program name with arguments.
18371 lt_save_CC="$CC"
18372 CC=${GCJ-"gcj"}
18373 compiler=$CC
18374 compiler_GCJ=$CC
18375 for cc_temp in $compiler""; do
18376   case $cc_temp in
18377     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18378     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18379     \-*) ;;
18380     *) break;;
18381   esac
18382 done
18383 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18384
18385
18386 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18387 archive_cmds_need_lc_GCJ=no
18388
18389 old_archive_cmds_GCJ=$old_archive_cmds
18390
18391
18392 lt_prog_compiler_no_builtin_flag_GCJ=
18393
18394 if test "$GCC" = yes; then
18395   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18396
18397
18398 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18399 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18400 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18401   echo $ECHO_N "(cached) $ECHO_C" >&6
18402 else
18403   lt_cv_prog_compiler_rtti_exceptions=no
18404   ac_outfile=conftest.$ac_objext
18405    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18406    lt_compiler_flag="-fno-rtti -fno-exceptions"
18407    # Insert the option either (1) after the last *FLAGS variable, or
18408    # (2) before a word containing "conftest.", or (3) at the end.
18409    # Note that $ac_compile itself does not contain backslashes and begins
18410    # with a dollar sign (not a hyphen), so the echo should work correctly.
18411    # The option is referenced via a variable to avoid confusing sed.
18412    lt_compile=`echo "$ac_compile" | $SED \
18413    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18414    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18415    -e 's:$: $lt_compiler_flag:'`
18416    (eval echo "\"\$as_me:18416: $lt_compile\"" >&5)
18417    (eval "$lt_compile" 2>conftest.err)
18418    ac_status=$?
18419    cat conftest.err >&5
18420    echo "$as_me:18420: \$? = $ac_status" >&5
18421    if (exit $ac_status) && test -s "$ac_outfile"; then
18422      # The compiler can only warn and ignore the option if not recognized
18423      # So say no if there are warnings other than the usual output.
18424      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18425      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18426      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18427        lt_cv_prog_compiler_rtti_exceptions=yes
18428      fi
18429    fi
18430    $rm conftest*
18431
18432 fi
18433 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18434 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18435
18436 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18437     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18438 else
18439     :
18440 fi
18441
18442 fi
18443
18444 lt_prog_compiler_wl_GCJ=
18445 lt_prog_compiler_pic_GCJ=
18446 lt_prog_compiler_static_GCJ=
18447
18448 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18449 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18450
18451   if test "$GCC" = yes; then
18452     lt_prog_compiler_wl_GCJ='-Wl,'
18453     lt_prog_compiler_static_GCJ='-static'
18454
18455     case $host_os in
18456       aix*)
18457       # All AIX code is PIC.
18458       if test "$host_cpu" = ia64; then
18459         # AIX 5 now supports IA64 processor
18460         lt_prog_compiler_static_GCJ='-Bstatic'
18461       fi
18462       ;;
18463
18464     amigaos*)
18465       # FIXME: we need at least 68020 code to build shared libraries, but
18466       # adding the `-m68020' flag to GCC prevents building anything better,
18467       # like `-m68040'.
18468       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18469       ;;
18470
18471     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18472       # PIC is the default for these OSes.
18473       ;;
18474
18475     mingw* | cygwin* | pw32* | os2*)
18476       # This hack is so that the source file can tell whether it is being
18477       # built for inclusion in a dll (and should export symbols for example).
18478       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18479       # (--disable-auto-import) libraries
18480
18481       ;;
18482
18483     darwin* | rhapsody*)
18484       # PIC is the default on this platform
18485       # Common symbols not allowed in MH_DYLIB files
18486       lt_prog_compiler_pic_GCJ='-fno-common'
18487       ;;
18488
18489     interix[3-9]*)
18490       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18491       # Instead, we relocate shared libraries at runtime.
18492       ;;
18493
18494     msdosdjgpp*)
18495       # Just because we use GCC doesn't mean we suddenly get shared libraries
18496       # on systems that don't support them.
18497       lt_prog_compiler_can_build_shared_GCJ=no
18498       enable_shared=no
18499       ;;
18500
18501     sysv4*MP*)
18502       if test -d /usr/nec; then
18503         lt_prog_compiler_pic_GCJ=-Kconform_pic
18504       fi
18505       ;;
18506
18507     hpux*)
18508       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18509       # not for PA HP-UX.
18510       case $host_cpu in
18511       hppa*64*|ia64*)
18512         # +Z the default
18513         ;;
18514       *)
18515         lt_prog_compiler_pic_GCJ='-fPIC'
18516         ;;
18517       esac
18518       ;;
18519
18520     *)
18521       lt_prog_compiler_pic_GCJ='-fPIC'
18522       ;;
18523     esac
18524   else
18525     # PORTME Check for flag to pass linker flags through the system compiler.
18526     case $host_os in
18527     aix*)
18528       lt_prog_compiler_wl_GCJ='-Wl,'
18529       if test "$host_cpu" = ia64; then
18530         # AIX 5 now supports IA64 processor
18531         lt_prog_compiler_static_GCJ='-Bstatic'
18532       else
18533         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18534       fi
18535       ;;
18536       darwin*)
18537         # PIC is the default on this platform
18538         # Common symbols not allowed in MH_DYLIB files
18539        case $cc_basename in
18540          xlc*)
18541          lt_prog_compiler_pic_GCJ='-qnocommon'
18542          lt_prog_compiler_wl_GCJ='-Wl,'
18543          ;;
18544        esac
18545        ;;
18546
18547     mingw* | cygwin* | pw32* | os2*)
18548       # This hack is so that the source file can tell whether it is being
18549       # built for inclusion in a dll (and should export symbols for example).
18550
18551       ;;
18552
18553     hpux9* | hpux10* | hpux11*)
18554       lt_prog_compiler_wl_GCJ='-Wl,'
18555       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18556       # not for PA HP-UX.
18557       case $host_cpu in
18558       hppa*64*|ia64*)
18559         # +Z the default
18560         ;;
18561       *)
18562         lt_prog_compiler_pic_GCJ='+Z'
18563         ;;
18564       esac
18565       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18566       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18567       ;;
18568
18569     irix5* | irix6* | nonstopux*)
18570       lt_prog_compiler_wl_GCJ='-Wl,'
18571       # PIC (with -KPIC) is the default.
18572       lt_prog_compiler_static_GCJ='-non_shared'
18573       ;;
18574
18575     newsos6)
18576       lt_prog_compiler_pic_GCJ='-KPIC'
18577       lt_prog_compiler_static_GCJ='-Bstatic'
18578       ;;
18579
18580     linux* | k*bsd*-gnu)
18581       case $cc_basename in
18582       icc* | ecc*)
18583         lt_prog_compiler_wl_GCJ='-Wl,'
18584         lt_prog_compiler_pic_GCJ='-KPIC'
18585         lt_prog_compiler_static_GCJ='-static'
18586         ;;
18587       pgcc* | pgf77* | pgf90* | pgf95*)
18588         # Portland Group compilers (*not* the Pentium gcc compiler,
18589         # which looks to be a dead project)
18590         lt_prog_compiler_wl_GCJ='-Wl,'
18591         lt_prog_compiler_pic_GCJ='-fpic'
18592         lt_prog_compiler_static_GCJ='-Bstatic'
18593         ;;
18594       ccc*)
18595         lt_prog_compiler_wl_GCJ='-Wl,'
18596         # All Alpha code is PIC.
18597         lt_prog_compiler_static_GCJ='-non_shared'
18598         ;;
18599       *)
18600         case `$CC -V 2>&1 | sed 5q` in
18601         *Sun\ C*)
18602           # Sun C 5.9
18603           lt_prog_compiler_pic_GCJ='-KPIC'
18604           lt_prog_compiler_static_GCJ='-Bstatic'
18605           lt_prog_compiler_wl_GCJ='-Wl,'
18606           ;;
18607         *Sun\ F*)
18608           # Sun Fortran 8.3 passes all unrecognized flags to the linker
18609           lt_prog_compiler_pic_GCJ='-KPIC'
18610           lt_prog_compiler_static_GCJ='-Bstatic'
18611           lt_prog_compiler_wl_GCJ=''
18612           ;;
18613         esac
18614         ;;
18615       esac
18616       ;;
18617
18618     osf3* | osf4* | osf5*)
18619       lt_prog_compiler_wl_GCJ='-Wl,'
18620       # All OSF/1 code is PIC.
18621       lt_prog_compiler_static_GCJ='-non_shared'
18622       ;;
18623
18624     rdos*)
18625       lt_prog_compiler_static_GCJ='-non_shared'
18626       ;;
18627
18628     solaris*)
18629       lt_prog_compiler_pic_GCJ='-KPIC'
18630       lt_prog_compiler_static_GCJ='-Bstatic'
18631       case $cc_basename in
18632       f77* | f90* | f95*)
18633         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18634       *)
18635         lt_prog_compiler_wl_GCJ='-Wl,';;
18636       esac
18637       ;;
18638
18639     sunos4*)
18640       lt_prog_compiler_wl_GCJ='-Qoption ld '
18641       lt_prog_compiler_pic_GCJ='-PIC'
18642       lt_prog_compiler_static_GCJ='-Bstatic'
18643       ;;
18644
18645     sysv4 | sysv4.2uw2* | sysv4.3*)
18646       lt_prog_compiler_wl_GCJ='-Wl,'
18647       lt_prog_compiler_pic_GCJ='-KPIC'
18648       lt_prog_compiler_static_GCJ='-Bstatic'
18649       ;;
18650
18651     sysv4*MP*)
18652       if test -d /usr/nec ;then
18653         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18654         lt_prog_compiler_static_GCJ='-Bstatic'
18655       fi
18656       ;;
18657
18658     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18659       lt_prog_compiler_wl_GCJ='-Wl,'
18660       lt_prog_compiler_pic_GCJ='-KPIC'
18661       lt_prog_compiler_static_GCJ='-Bstatic'
18662       ;;
18663
18664     unicos*)
18665       lt_prog_compiler_wl_GCJ='-Wl,'
18666       lt_prog_compiler_can_build_shared_GCJ=no
18667       ;;
18668
18669     uts4*)
18670       lt_prog_compiler_pic_GCJ='-pic'
18671       lt_prog_compiler_static_GCJ='-Bstatic'
18672       ;;
18673
18674     *)
18675       lt_prog_compiler_can_build_shared_GCJ=no
18676       ;;
18677     esac
18678   fi
18679
18680 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18681 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18682
18683 #
18684 # Check to make sure the PIC flag actually works.
18685 #
18686 if test -n "$lt_prog_compiler_pic_GCJ"; then
18687
18688 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18689 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18690 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
18691   echo $ECHO_N "(cached) $ECHO_C" >&6
18692 else
18693   lt_cv_prog_compiler_pic_works_GCJ=no
18694   ac_outfile=conftest.$ac_objext
18695    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18696    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18697    # Insert the option either (1) after the last *FLAGS variable, or
18698    # (2) before a word containing "conftest.", or (3) at the end.
18699    # Note that $ac_compile itself does not contain backslashes and begins
18700    # with a dollar sign (not a hyphen), so the echo should work correctly.
18701    # The option is referenced via a variable to avoid confusing sed.
18702    lt_compile=`echo "$ac_compile" | $SED \
18703    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18704    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18705    -e 's:$: $lt_compiler_flag:'`
18706    (eval echo "\"\$as_me:18706: $lt_compile\"" >&5)
18707    (eval "$lt_compile" 2>conftest.err)
18708    ac_status=$?
18709    cat conftest.err >&5
18710    echo "$as_me:18710: \$? = $ac_status" >&5
18711    if (exit $ac_status) && test -s "$ac_outfile"; then
18712      # The compiler can only warn and ignore the option if not recognized
18713      # So say no if there are warnings other than the usual output.
18714      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18715      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18716      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18717        lt_cv_prog_compiler_pic_works_GCJ=yes
18718      fi
18719    fi
18720    $rm conftest*
18721
18722 fi
18723 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18724 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
18725
18726 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
18727     case $lt_prog_compiler_pic_GCJ in
18728      "" | " "*) ;;
18729      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18730      esac
18731 else
18732     lt_prog_compiler_pic_GCJ=
18733      lt_prog_compiler_can_build_shared_GCJ=no
18734 fi
18735
18736 fi
18737 case $host_os in
18738   # For platforms which do not support PIC, -DPIC is meaningless:
18739   *djgpp*)
18740     lt_prog_compiler_pic_GCJ=
18741     ;;
18742   *)
18743     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18744     ;;
18745 esac
18746
18747 #
18748 # Check to make sure the static flag actually works.
18749 #
18750 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18751 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18752 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18753 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
18754   echo $ECHO_N "(cached) $ECHO_C" >&6
18755 else
18756   lt_cv_prog_compiler_static_works_GCJ=no
18757    save_LDFLAGS="$LDFLAGS"
18758    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18759    echo "$lt_simple_link_test_code" > conftest.$ac_ext
18760    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18761      # The linker can only warn and ignore the option if not recognized
18762      # So say no if there are warnings
18763      if test -s conftest.err; then
18764        # Append any errors to the config.log.
18765        cat conftest.err 1>&5
18766        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18767        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18768        if diff conftest.exp conftest.er2 >/dev/null; then
18769          lt_cv_prog_compiler_static_works_GCJ=yes
18770        fi
18771      else
18772        lt_cv_prog_compiler_static_works_GCJ=yes
18773      fi
18774    fi
18775    $rm -r conftest*
18776    LDFLAGS="$save_LDFLAGS"
18777
18778 fi
18779 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18780 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
18781
18782 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
18783     :
18784 else
18785     lt_prog_compiler_static_GCJ=
18786 fi
18787
18788
18789 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18790 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18791 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18792   echo $ECHO_N "(cached) $ECHO_C" >&6
18793 else
18794   lt_cv_prog_compiler_c_o_GCJ=no
18795    $rm -r conftest 2>/dev/null
18796    mkdir conftest
18797    cd conftest
18798    mkdir out
18799    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18800
18801    lt_compiler_flag="-o out/conftest2.$ac_objext"
18802    # Insert the option either (1) after the last *FLAGS variable, or
18803    # (2) before a word containing "conftest.", or (3) at the end.
18804    # Note that $ac_compile itself does not contain backslashes and begins
18805    # with a dollar sign (not a hyphen), so the echo should work correctly.
18806    lt_compile=`echo "$ac_compile" | $SED \
18807    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18808    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18809    -e 's:$: $lt_compiler_flag:'`
18810    (eval echo "\"\$as_me:18810: $lt_compile\"" >&5)
18811    (eval "$lt_compile" 2>out/conftest.err)
18812    ac_status=$?
18813    cat out/conftest.err >&5
18814    echo "$as_me:18814: \$? = $ac_status" >&5
18815    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18816    then
18817      # The compiler can only warn and ignore the option if not recognized
18818      # So say no if there are warnings
18819      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18820      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18821      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18822        lt_cv_prog_compiler_c_o_GCJ=yes
18823      fi
18824    fi
18825    chmod u+w . 2>&5
18826    $rm conftest*
18827    # SGI C++ compiler will create directory out/ii_files/ for
18828    # template instantiation
18829    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18830    $rm out/* && rmdir out
18831    cd ..
18832    rmdir conftest
18833    $rm conftest*
18834
18835 fi
18836 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18837 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18838
18839
18840 hard_links="nottested"
18841 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18842   # do not overwrite the value of need_locks provided by the user
18843   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18844 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18845   hard_links=yes
18846   $rm conftest*
18847   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18848   touch conftest.a
18849   ln conftest.a conftest.b 2>&5 || hard_links=no
18850   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18851   { echo "$as_me:$LINENO: result: $hard_links" >&5
18852 echo "${ECHO_T}$hard_links" >&6; }
18853   if test "$hard_links" = no; then
18854     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18855 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18856     need_locks=warn
18857   fi
18858 else
18859   need_locks=no
18860 fi
18861
18862 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18863 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18864
18865   runpath_var=
18866   allow_undefined_flag_GCJ=
18867   enable_shared_with_static_runtimes_GCJ=no
18868   archive_cmds_GCJ=
18869   archive_expsym_cmds_GCJ=
18870   old_archive_From_new_cmds_GCJ=
18871   old_archive_from_expsyms_cmds_GCJ=
18872   export_dynamic_flag_spec_GCJ=
18873   whole_archive_flag_spec_GCJ=
18874   thread_safe_flag_spec_GCJ=
18875   hardcode_libdir_flag_spec_GCJ=
18876   hardcode_libdir_flag_spec_ld_GCJ=
18877   hardcode_libdir_separator_GCJ=
18878   hardcode_direct_GCJ=no
18879   hardcode_minus_L_GCJ=no
18880   hardcode_shlibpath_var_GCJ=unsupported
18881   link_all_deplibs_GCJ=unknown
18882   hardcode_automatic_GCJ=no
18883   module_cmds_GCJ=
18884   module_expsym_cmds_GCJ=
18885   always_export_symbols_GCJ=no
18886   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18887   # include_expsyms should be a list of space-separated symbols to be *always*
18888   # included in the symbol list
18889   include_expsyms_GCJ=
18890   # exclude_expsyms can be an extended regexp of symbols to exclude
18891   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18892   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18893   # as well as any symbol that contains `d'.
18894   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18895   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18896   # platforms (ab)use it in PIC code, but their linkers get confused if
18897   # the symbol is explicitly referenced.  Since portable code cannot
18898   # rely on this symbol name, it's probably fine to never include it in
18899   # preloaded symbol tables.
18900   # Exclude shared library initialization/finalization symbols.
18901   extract_expsyms_cmds=
18902   # Just being paranoid about ensuring that cc_basename is set.
18903   for cc_temp in $compiler""; do
18904   case $cc_temp in
18905     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18906     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18907     \-*) ;;
18908     *) break;;
18909   esac
18910 done
18911 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18912
18913   case $host_os in
18914   cygwin* | mingw* | pw32*)
18915     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18916     # When not using gcc, we currently assume that we are using
18917     # Microsoft Visual C++.
18918     if test "$GCC" != yes; then
18919       with_gnu_ld=no
18920     fi
18921     ;;
18922   interix*)
18923     # we just hope/assume this is gcc and not c89 (= MSVC++)
18924     with_gnu_ld=yes
18925     ;;
18926   openbsd*)
18927     with_gnu_ld=no
18928     ;;
18929   esac
18930
18931   ld_shlibs_GCJ=yes
18932   if test "$with_gnu_ld" = yes; then
18933     # If archive_cmds runs LD, not CC, wlarc should be empty
18934     wlarc='${wl}'
18935
18936     # Set some defaults for GNU ld with shared library support. These
18937     # are reset later if shared libraries are not supported. Putting them
18938     # here allows them to be overridden if necessary.
18939     runpath_var=LD_RUN_PATH
18940     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18941     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18942     # ancient GNU ld didn't support --whole-archive et. al.
18943     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18944         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18945       else
18946         whole_archive_flag_spec_GCJ=
18947     fi
18948     supports_anon_versioning=no
18949     case `$LD -v 2>/dev/null` in
18950       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18951       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18952       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18953       *\ 2.11.*) ;; # other 2.11 versions
18954       *) supports_anon_versioning=yes ;;
18955     esac
18956
18957     # See if GNU ld supports shared libraries.
18958     case $host_os in
18959     aix[3-9]*)
18960       # On AIX/PPC, the GNU linker is very broken
18961       if test "$host_cpu" != ia64; then
18962         ld_shlibs_GCJ=no
18963         cat <<EOF 1>&2
18964
18965 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18966 *** to be unable to reliably create shared libraries on AIX.
18967 *** Therefore, libtool is disabling shared libraries support.  If you
18968 *** really care for shared libraries, you may want to modify your PATH
18969 *** so that a non-GNU linker is found, and then restart.
18970
18971 EOF
18972       fi
18973       ;;
18974
18975     amigaos*)
18976       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)'
18977       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18978       hardcode_minus_L_GCJ=yes
18979
18980       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18981       # that the semantics of dynamic libraries on AmigaOS, at least up
18982       # to version 4, is to share data among multiple programs linked
18983       # with the same dynamic library.  Since this doesn't match the
18984       # behavior of shared libraries on other platforms, we can't use
18985       # them.
18986       ld_shlibs_GCJ=no
18987       ;;
18988
18989     beos*)
18990       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18991         allow_undefined_flag_GCJ=unsupported
18992         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18993         # support --undefined.  This deserves some investigation.  FIXME
18994         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18995       else
18996         ld_shlibs_GCJ=no
18997       fi
18998       ;;
18999
19000     cygwin* | mingw* | pw32*)
19001       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19002       # as there is no search path for DLLs.
19003       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19004       allow_undefined_flag_GCJ=unsupported
19005       always_export_symbols_GCJ=no
19006       enable_shared_with_static_runtimes_GCJ=yes
19007       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19008
19009       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19010         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19011         # If the export-symbols file already is a .def file (1st line
19012         # is EXPORTS), use it as is; otherwise, prepend...
19013         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19014           cp $export_symbols $output_objdir/$soname.def;
19015         else
19016           echo EXPORTS > $output_objdir/$soname.def;
19017           cat $export_symbols >> $output_objdir/$soname.def;
19018         fi~
19019         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19020       else
19021         ld_shlibs_GCJ=no
19022       fi
19023       ;;
19024
19025     interix[3-9]*)
19026       hardcode_direct_GCJ=no
19027       hardcode_shlibpath_var_GCJ=no
19028       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19029       export_dynamic_flag_spec_GCJ='${wl}-E'
19030       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19031       # Instead, shared libraries are loaded at an image base (0x10000000 by
19032       # default) and relocated if they conflict, which is a slow very memory
19033       # consuming and fragmenting process.  To avoid this, we pick a random,
19034       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19035       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19036       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'
19037       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'
19038       ;;
19039
19040     gnu* | linux* | k*bsd*-gnu)
19041       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19042         tmp_addflag=
19043         case $cc_basename,$host_cpu in
19044         pgcc*)                          # Portland Group C compiler
19045           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'
19046           tmp_addflag=' $pic_flag'
19047           ;;
19048         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
19049           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'
19050           tmp_addflag=' $pic_flag -Mnomain' ;;
19051         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
19052           tmp_addflag=' -i_dynamic' ;;
19053         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
19054           tmp_addflag=' -i_dynamic -nofor_main' ;;
19055         ifc* | ifort*)                  # Intel Fortran compiler
19056           tmp_addflag=' -nofor_main' ;;
19057         esac
19058         case `$CC -V 2>&1 | sed 5q` in
19059         *Sun\ C*)                       # Sun C 5.9
19060           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'
19061           tmp_sharedflag='-G' ;;
19062         *Sun\ F*)                       # Sun Fortran 8.3
19063           tmp_sharedflag='-G' ;;
19064         *)
19065           tmp_sharedflag='-shared' ;;
19066         esac
19067         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19068
19069         if test $supports_anon_versioning = yes; then
19070           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19071   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19072   $echo "local: *; };" >> $output_objdir/$libname.ver~
19073           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19074         fi
19075       else
19076         ld_shlibs_GCJ=no
19077       fi
19078       ;;
19079
19080     netbsd*)
19081       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19082         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19083         wlarc=
19084       else
19085         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19086         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19087       fi
19088       ;;
19089
19090     solaris*)
19091       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19092         ld_shlibs_GCJ=no
19093         cat <<EOF 1>&2
19094
19095 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19096 *** create shared libraries on Solaris systems.  Therefore, libtool
19097 *** is disabling shared libraries support.  We urge you to upgrade GNU
19098 *** binutils to release 2.9.1 or newer.  Another option is to modify
19099 *** your PATH or compiler configuration so that the native linker is
19100 *** used, and then restart.
19101
19102 EOF
19103       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19104         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19105         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19106       else
19107         ld_shlibs_GCJ=no
19108       fi
19109       ;;
19110
19111     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19112       case `$LD -v 2>&1` in
19113         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19114         ld_shlibs_GCJ=no
19115         cat <<_LT_EOF 1>&2
19116
19117 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19118 *** reliably create shared libraries on SCO systems.  Therefore, libtool
19119 *** is disabling shared libraries support.  We urge you to upgrade GNU
19120 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
19121 *** your PATH or compiler configuration so that the native linker is
19122 *** used, and then restart.
19123
19124 _LT_EOF
19125         ;;
19126         *)
19127           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19128             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19129             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19130             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19131           else
19132             ld_shlibs_GCJ=no
19133           fi
19134         ;;
19135       esac
19136       ;;
19137
19138     sunos4*)
19139       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19140       wlarc=
19141       hardcode_direct_GCJ=yes
19142       hardcode_shlibpath_var_GCJ=no
19143       ;;
19144
19145     *)
19146       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19147         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19148         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19149       else
19150         ld_shlibs_GCJ=no
19151       fi
19152       ;;
19153     esac
19154
19155     if test "$ld_shlibs_GCJ" = no; then
19156       runpath_var=
19157       hardcode_libdir_flag_spec_GCJ=
19158       export_dynamic_flag_spec_GCJ=
19159       whole_archive_flag_spec_GCJ=
19160     fi
19161   else
19162     # PORTME fill in a description of your system's linker (not GNU ld)
19163     case $host_os in
19164     aix3*)
19165       allow_undefined_flag_GCJ=unsupported
19166       always_export_symbols_GCJ=yes
19167       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'
19168       # Note: this linker hardcodes the directories in LIBPATH if there
19169       # are no directories specified by -L.
19170       hardcode_minus_L_GCJ=yes
19171       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19172         # Neither direct hardcoding nor static linking is supported with a
19173         # broken collect2.
19174         hardcode_direct_GCJ=unsupported
19175       fi
19176       ;;
19177
19178     aix[4-9]*)
19179       if test "$host_cpu" = ia64; then
19180         # On IA64, the linker does run time linking by default, so we don't
19181         # have to do anything special.
19182         aix_use_runtimelinking=no
19183         exp_sym_flag='-Bexport'
19184         no_entry_flag=""
19185       else
19186         # If we're using GNU nm, then we don't want the "-C" option.
19187         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19188         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19189           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'
19190         else
19191           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'
19192         fi
19193         aix_use_runtimelinking=no
19194
19195         # Test if we are trying to use run time linking or normal
19196         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19197         # need to do runtime linking.
19198         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19199           for ld_flag in $LDFLAGS; do
19200           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19201             aix_use_runtimelinking=yes
19202             break
19203           fi
19204           done
19205           ;;
19206         esac
19207
19208         exp_sym_flag='-bexport'
19209         no_entry_flag='-bnoentry'
19210       fi
19211
19212       # When large executables or shared objects are built, AIX ld can
19213       # have problems creating the table of contents.  If linking a library
19214       # or program results in "error TOC overflow" add -mminimal-toc to
19215       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19216       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19217
19218       archive_cmds_GCJ=''
19219       hardcode_direct_GCJ=yes
19220       hardcode_libdir_separator_GCJ=':'
19221       link_all_deplibs_GCJ=yes
19222
19223       if test "$GCC" = yes; then
19224         case $host_os in aix4.[012]|aix4.[012].*)
19225         # We only want to do this on AIX 4.2 and lower, the check
19226         # below for broken collect2 doesn't work under 4.3+
19227           collect2name=`${CC} -print-prog-name=collect2`
19228           if test -f "$collect2name" && \
19229            strings "$collect2name" | grep resolve_lib_name >/dev/null
19230           then
19231           # We have reworked collect2
19232           :
19233           else
19234           # We have old collect2
19235           hardcode_direct_GCJ=unsupported
19236           # It fails to find uninstalled libraries when the uninstalled
19237           # path is not listed in the libpath.  Setting hardcode_minus_L
19238           # to unsupported forces relinking
19239           hardcode_minus_L_GCJ=yes
19240           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19241           hardcode_libdir_separator_GCJ=
19242           fi
19243           ;;
19244         esac
19245         shared_flag='-shared'
19246         if test "$aix_use_runtimelinking" = yes; then
19247           shared_flag="$shared_flag "'${wl}-G'
19248         fi
19249       else
19250         # not using gcc
19251         if test "$host_cpu" = ia64; then
19252         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19253         # chokes on -Wl,-G. The following line is correct:
19254           shared_flag='-G'
19255         else
19256           if test "$aix_use_runtimelinking" = yes; then
19257             shared_flag='${wl}-G'
19258           else
19259             shared_flag='${wl}-bM:SRE'
19260           fi
19261         fi
19262       fi
19263
19264       # It seems that -bexpall does not export symbols beginning with
19265       # underscore (_), so it is better to generate a list of symbols to export.
19266       always_export_symbols_GCJ=yes
19267       if test "$aix_use_runtimelinking" = yes; then
19268         # Warning - without using the other runtime loading flags (-brtl),
19269         # -berok will link without error, but may produce a broken library.
19270         allow_undefined_flag_GCJ='-berok'
19271        # Determine the default libpath from the value encoded in an empty executable.
19272        cat >conftest.$ac_ext <<_ACEOF
19273 /* confdefs.h.  */
19274 _ACEOF
19275 cat confdefs.h >>conftest.$ac_ext
19276 cat >>conftest.$ac_ext <<_ACEOF
19277 /* end confdefs.h.  */
19278
19279 int
19280 main ()
19281 {
19282
19283   ;
19284   return 0;
19285 }
19286 _ACEOF
19287 rm -f conftest.$ac_objext conftest$ac_exeext
19288 if { (ac_try="$ac_link"
19289 case "(($ac_try" in
19290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291   *) ac_try_echo=$ac_try;;
19292 esac
19293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294   (eval "$ac_link") 2>conftest.er1
19295   ac_status=$?
19296   grep -v '^ *+' conftest.er1 >conftest.err
19297   rm -f conftest.er1
19298   cat conftest.err >&5
19299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300   (exit $ac_status); } && {
19301          test -z "$ac_c_werror_flag" ||
19302          test ! -s conftest.err
19303        } && test -s conftest$ac_exeext &&
19304        $as_test_x conftest$ac_exeext; then
19305
19306 lt_aix_libpath_sed='
19307     /Import File Strings/,/^$/ {
19308         /^0/ {
19309             s/^0  *\(.*\)$/\1/
19310             p
19311         }
19312     }'
19313 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19314 # Check for a 64-bit object if we didn't find anything.
19315 if test -z "$aix_libpath"; then
19316   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19317 fi
19318 else
19319   echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19321
19322
19323 fi
19324
19325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19326       conftest$ac_exeext conftest.$ac_ext
19327 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19328
19329        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19330         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"
19331        else
19332         if test "$host_cpu" = ia64; then
19333           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19334           allow_undefined_flag_GCJ="-z nodefs"
19335           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"
19336         else
19337          # Determine the default libpath from the value encoded in an empty executable.
19338          cat >conftest.$ac_ext <<_ACEOF
19339 /* confdefs.h.  */
19340 _ACEOF
19341 cat confdefs.h >>conftest.$ac_ext
19342 cat >>conftest.$ac_ext <<_ACEOF
19343 /* end confdefs.h.  */
19344
19345 int
19346 main ()
19347 {
19348
19349   ;
19350   return 0;
19351 }
19352 _ACEOF
19353 rm -f conftest.$ac_objext conftest$ac_exeext
19354 if { (ac_try="$ac_link"
19355 case "(($ac_try" in
19356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357   *) ac_try_echo=$ac_try;;
19358 esac
19359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360   (eval "$ac_link") 2>conftest.er1
19361   ac_status=$?
19362   grep -v '^ *+' conftest.er1 >conftest.err
19363   rm -f conftest.er1
19364   cat conftest.err >&5
19365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366   (exit $ac_status); } && {
19367          test -z "$ac_c_werror_flag" ||
19368          test ! -s conftest.err
19369        } && test -s conftest$ac_exeext &&
19370        $as_test_x conftest$ac_exeext; then
19371
19372 lt_aix_libpath_sed='
19373     /Import File Strings/,/^$/ {
19374         /^0/ {
19375             s/^0  *\(.*\)$/\1/
19376             p
19377         }
19378     }'
19379 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19380 # Check for a 64-bit object if we didn't find anything.
19381 if test -z "$aix_libpath"; then
19382   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19383 fi
19384 else
19385   echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19387
19388
19389 fi
19390
19391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19392       conftest$ac_exeext conftest.$ac_ext
19393 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19394
19395          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19396           # Warning - without using the other run time loading flags,
19397           # -berok will link without error, but may produce a broken library.
19398           no_undefined_flag_GCJ=' ${wl}-bernotok'
19399           allow_undefined_flag_GCJ=' ${wl}-berok'
19400           # Exported symbols can be pulled into shared objects from archives
19401           whole_archive_flag_spec_GCJ='$convenience'
19402           archive_cmds_need_lc_GCJ=yes
19403           # This is similar to how AIX traditionally builds its shared libraries.
19404           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'
19405         fi
19406       fi
19407       ;;
19408
19409     amigaos*)
19410       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)'
19411       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19412       hardcode_minus_L_GCJ=yes
19413       # see comment about different semantics on the GNU ld section
19414       ld_shlibs_GCJ=no
19415       ;;
19416
19417     bsdi[45]*)
19418       export_dynamic_flag_spec_GCJ=-rdynamic
19419       ;;
19420
19421     cygwin* | mingw* | pw32*)
19422       # When not using gcc, we currently assume that we are using
19423       # Microsoft Visual C++.
19424       # hardcode_libdir_flag_spec is actually meaningless, as there is
19425       # no search path for DLLs.
19426       hardcode_libdir_flag_spec_GCJ=' '
19427       allow_undefined_flag_GCJ=unsupported
19428       # Tell ltmain to make .lib files, not .a files.
19429       libext=lib
19430       # Tell ltmain to make .dll files, not .so files.
19431       shrext_cmds=".dll"
19432       # FIXME: Setting linknames here is a bad hack.
19433       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19434       # The linker will automatically build a .lib file if we build a DLL.
19435       old_archive_From_new_cmds_GCJ='true'
19436       # FIXME: Should let the user specify the lib program.
19437       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19438       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19439       enable_shared_with_static_runtimes_GCJ=yes
19440       ;;
19441
19442     darwin* | rhapsody*)
19443       case $host_os in
19444         rhapsody* | darwin1.[012])
19445          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19446          ;;
19447        *) # Darwin 1.3 on
19448          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19449            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19450          else
19451            case ${MACOSX_DEPLOYMENT_TARGET} in
19452              10.[012])
19453                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19454                ;;
19455              10.*)
19456                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19457                ;;
19458            esac
19459          fi
19460          ;;
19461       esac
19462       archive_cmds_need_lc_GCJ=no
19463       hardcode_direct_GCJ=no
19464       hardcode_automatic_GCJ=yes
19465       hardcode_shlibpath_var_GCJ=unsupported
19466       whole_archive_flag_spec_GCJ=''
19467       link_all_deplibs_GCJ=yes
19468     if test "$GCC" = yes ; then
19469         output_verbose_link_cmd='echo'
19470         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}"
19471         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19472         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}"
19473         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}"
19474     else
19475       case $cc_basename in
19476         xlc*)
19477          output_verbose_link_cmd='echo'
19478          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19479          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19480           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19481          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}'
19482           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}'
19483           ;;
19484        *)
19485          ld_shlibs_GCJ=no
19486           ;;
19487       esac
19488     fi
19489       ;;
19490
19491     dgux*)
19492       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19493       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19494       hardcode_shlibpath_var_GCJ=no
19495       ;;
19496
19497     freebsd1*)
19498       ld_shlibs_GCJ=no
19499       ;;
19500
19501     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19502     # support.  Future versions do this automatically, but an explicit c++rt0.o
19503     # does not break anything, and helps significantly (at the cost of a little
19504     # extra space).
19505     freebsd2.2*)
19506       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19507       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19508       hardcode_direct_GCJ=yes
19509       hardcode_shlibpath_var_GCJ=no
19510       ;;
19511
19512     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19513     freebsd2*)
19514       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19515       hardcode_direct_GCJ=yes
19516       hardcode_minus_L_GCJ=yes
19517       hardcode_shlibpath_var_GCJ=no
19518       ;;
19519
19520     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19521     freebsd* | dragonfly*)
19522       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19523       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19524       hardcode_direct_GCJ=yes
19525       hardcode_shlibpath_var_GCJ=no
19526       ;;
19527
19528     hpux9*)
19529       if test "$GCC" = yes; then
19530         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'
19531       else
19532         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'
19533       fi
19534       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19535       hardcode_libdir_separator_GCJ=:
19536       hardcode_direct_GCJ=yes
19537
19538       # hardcode_minus_L: Not really in the search PATH,
19539       # but as the default location of the library.
19540       hardcode_minus_L_GCJ=yes
19541       export_dynamic_flag_spec_GCJ='${wl}-E'
19542       ;;
19543
19544     hpux10*)
19545       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19546         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19547       else
19548         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19549       fi
19550       if test "$with_gnu_ld" = no; then
19551         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19552         hardcode_libdir_separator_GCJ=:
19553
19554         hardcode_direct_GCJ=yes
19555         export_dynamic_flag_spec_GCJ='${wl}-E'
19556
19557         # hardcode_minus_L: Not really in the search PATH,
19558         # but as the default location of the library.
19559         hardcode_minus_L_GCJ=yes
19560       fi
19561       ;;
19562
19563     hpux11*)
19564       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19565         case $host_cpu in
19566         hppa*64*)
19567           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19568           ;;
19569         ia64*)
19570           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19571           ;;
19572         *)
19573           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19574           ;;
19575         esac
19576       else
19577         case $host_cpu in
19578         hppa*64*)
19579           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19580           ;;
19581         ia64*)
19582           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19583           ;;
19584         *)
19585           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19586           ;;
19587         esac
19588       fi
19589       if test "$with_gnu_ld" = no; then
19590         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19591         hardcode_libdir_separator_GCJ=:
19592
19593         case $host_cpu in
19594         hppa*64*|ia64*)
19595           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19596           hardcode_direct_GCJ=no
19597           hardcode_shlibpath_var_GCJ=no
19598           ;;
19599         *)
19600           hardcode_direct_GCJ=yes
19601           export_dynamic_flag_spec_GCJ='${wl}-E'
19602
19603           # hardcode_minus_L: Not really in the search PATH,
19604           # but as the default location of the library.
19605           hardcode_minus_L_GCJ=yes
19606           ;;
19607         esac
19608       fi
19609       ;;
19610
19611     irix5* | irix6* | nonstopux*)
19612       if test "$GCC" = yes; then
19613         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'
19614       else
19615         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'
19616         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19617       fi
19618       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19619       hardcode_libdir_separator_GCJ=:
19620       link_all_deplibs_GCJ=yes
19621       ;;
19622
19623     netbsd*)
19624       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19625         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19626       else
19627         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19628       fi
19629       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19630       hardcode_direct_GCJ=yes
19631       hardcode_shlibpath_var_GCJ=no
19632       ;;
19633
19634     newsos6)
19635       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19636       hardcode_direct_GCJ=yes
19637       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19638       hardcode_libdir_separator_GCJ=:
19639       hardcode_shlibpath_var_GCJ=no
19640       ;;
19641
19642     openbsd*)
19643       if test -f /usr/libexec/ld.so; then
19644         hardcode_direct_GCJ=yes
19645         hardcode_shlibpath_var_GCJ=no
19646         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19647           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19648           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19649           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19650           export_dynamic_flag_spec_GCJ='${wl}-E'
19651         else
19652           case $host_os in
19653            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19654              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19655              hardcode_libdir_flag_spec_GCJ='-R$libdir'
19656              ;;
19657            *)
19658              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19659              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19660              ;;
19661           esac
19662         fi
19663       else
19664         ld_shlibs_GCJ=no
19665       fi
19666       ;;
19667
19668     os2*)
19669       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19670       hardcode_minus_L_GCJ=yes
19671       allow_undefined_flag_GCJ=unsupported
19672       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'
19673       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19674       ;;
19675
19676     osf3*)
19677       if test "$GCC" = yes; then
19678         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19679         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'
19680       else
19681         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19682         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'
19683       fi
19684       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19685       hardcode_libdir_separator_GCJ=:
19686       ;;
19687
19688     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19689       if test "$GCC" = yes; then
19690         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19691         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'
19692         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19693       else
19694         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19695         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'
19696         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~
19697         $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'
19698
19699         # Both c and cxx compiler support -rpath directly
19700         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19701       fi
19702       hardcode_libdir_separator_GCJ=:
19703       ;;
19704
19705     solaris*)
19706       no_undefined_flag_GCJ=' -z text'
19707       if test "$GCC" = yes; then
19708         wlarc='${wl}'
19709         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19710         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19711           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19712       else
19713         wlarc=''
19714         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19715         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19716         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19717       fi
19718       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19719       hardcode_shlibpath_var_GCJ=no
19720       case $host_os in
19721       solaris2.[0-5] | solaris2.[0-5].*) ;;
19722       *)
19723         # The compiler driver will combine and reorder linker options,
19724         # but understands `-z linker_flag'.  GCC discards it without `$wl',
19725         # but is careful enough not to reorder.
19726         # Supported since Solaris 2.6 (maybe 2.5.1?)
19727         if test "$GCC" = yes; then
19728           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19729         else
19730           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19731         fi
19732         ;;
19733       esac
19734       link_all_deplibs_GCJ=yes
19735       ;;
19736
19737     sunos4*)
19738       if test "x$host_vendor" = xsequent; then
19739         # Use $CC to link under sequent, because it throws in some extra .o
19740         # files that make .init and .fini sections work.
19741         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19742       else
19743         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19744       fi
19745       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19746       hardcode_direct_GCJ=yes
19747       hardcode_minus_L_GCJ=yes
19748       hardcode_shlibpath_var_GCJ=no
19749       ;;
19750
19751     sysv4)
19752       case $host_vendor in
19753         sni)
19754           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19755           hardcode_direct_GCJ=yes # is this really true???
19756         ;;
19757         siemens)
19758           ## LD is ld it makes a PLAMLIB
19759           ## CC just makes a GrossModule.
19760           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19761           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19762           hardcode_direct_GCJ=no
19763         ;;
19764         motorola)
19765           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19766           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19767         ;;
19768       esac
19769       runpath_var='LD_RUN_PATH'
19770       hardcode_shlibpath_var_GCJ=no
19771       ;;
19772
19773     sysv4.3*)
19774       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19775       hardcode_shlibpath_var_GCJ=no
19776       export_dynamic_flag_spec_GCJ='-Bexport'
19777       ;;
19778
19779     sysv4*MP*)
19780       if test -d /usr/nec; then
19781         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19782         hardcode_shlibpath_var_GCJ=no
19783         runpath_var=LD_RUN_PATH
19784         hardcode_runpath_var=yes
19785         ld_shlibs_GCJ=yes
19786       fi
19787       ;;
19788
19789     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19790       no_undefined_flag_GCJ='${wl}-z,text'
19791       archive_cmds_need_lc_GCJ=no
19792       hardcode_shlibpath_var_GCJ=no
19793       runpath_var='LD_RUN_PATH'
19794
19795       if test "$GCC" = yes; then
19796         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19797         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19798       else
19799         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19800         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19801       fi
19802       ;;
19803
19804     sysv5* | sco3.2v5* | sco5v6*)
19805       # Note: We can NOT use -z defs as we might desire, because we do not
19806       # link with -lc, and that would cause any symbols used from libc to
19807       # always be unresolved, which means just about no library would
19808       # ever link correctly.  If we're not using GNU ld we use -z text
19809       # though, which does catch some bad symbols but isn't as heavy-handed
19810       # as -z defs.
19811       no_undefined_flag_GCJ='${wl}-z,text'
19812       allow_undefined_flag_GCJ='${wl}-z,nodefs'
19813       archive_cmds_need_lc_GCJ=no
19814       hardcode_shlibpath_var_GCJ=no
19815       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19816       hardcode_libdir_separator_GCJ=':'
19817       link_all_deplibs_GCJ=yes
19818       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19819       runpath_var='LD_RUN_PATH'
19820
19821       if test "$GCC" = yes; then
19822         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19823         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19824       else
19825         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19826         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19827       fi
19828       ;;
19829
19830     uts4*)
19831       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19832       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19833       hardcode_shlibpath_var_GCJ=no
19834       ;;
19835
19836     *)
19837       ld_shlibs_GCJ=no
19838       ;;
19839     esac
19840   fi
19841
19842 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19843 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19844 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19845
19846 #
19847 # Do we need to explicitly link libc?
19848 #
19849 case "x$archive_cmds_need_lc_GCJ" in
19850 x|xyes)
19851   # Assume -lc should be added
19852   archive_cmds_need_lc_GCJ=yes
19853
19854   if test "$enable_shared" = yes && test "$GCC" = yes; then
19855     case $archive_cmds_GCJ in
19856     *'~'*)
19857       # FIXME: we may have to deal with multi-command sequences.
19858       ;;
19859     '$CC '*)
19860       # Test whether the compiler implicitly links with -lc since on some
19861       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19862       # to ld, don't add -lc before -lgcc.
19863       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19864 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19865       $rm conftest*
19866       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19867
19868       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19869   (eval $ac_compile) 2>&5
19870   ac_status=$?
19871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872   (exit $ac_status); } 2>conftest.err; then
19873         soname=conftest
19874         lib=conftest
19875         libobjs=conftest.$ac_objext
19876         deplibs=
19877         wl=$lt_prog_compiler_wl_GCJ
19878         pic_flag=$lt_prog_compiler_pic_GCJ
19879         compiler_flags=-v
19880         linker_flags=-v
19881         verstring=
19882         output_objdir=.
19883         libname=conftest
19884         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19885         allow_undefined_flag_GCJ=
19886         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19887   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19888   ac_status=$?
19889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890   (exit $ac_status); }
19891         then
19892           archive_cmds_need_lc_GCJ=no
19893         else
19894           archive_cmds_need_lc_GCJ=yes
19895         fi
19896         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19897       else
19898         cat conftest.err 1>&5
19899       fi
19900       $rm conftest*
19901       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19902 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19903       ;;
19904     esac
19905   fi
19906   ;;
19907 esac
19908
19909 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19910 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19911 library_names_spec=
19912 libname_spec='lib$name'
19913 soname_spec=
19914 shrext_cmds=".so"
19915 postinstall_cmds=
19916 postuninstall_cmds=
19917 finish_cmds=
19918 finish_eval=
19919 shlibpath_var=
19920 shlibpath_overrides_runpath=unknown
19921 version_type=none
19922 dynamic_linker="$host_os ld.so"
19923 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19924
19925 need_lib_prefix=unknown
19926 hardcode_into_libs=no
19927
19928 # when you set need_version to no, make sure it does not cause -set_version
19929 # flags to be left without arguments
19930 need_version=unknown
19931
19932 case $host_os in
19933 aix3*)
19934   version_type=linux
19935   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19936   shlibpath_var=LIBPATH
19937
19938   # AIX 3 has no versioning support, so we append a major version to the name.
19939   soname_spec='${libname}${release}${shared_ext}$major'
19940   ;;
19941
19942 aix[4-9]*)
19943   version_type=linux
19944   need_lib_prefix=no
19945   need_version=no
19946   hardcode_into_libs=yes
19947   if test "$host_cpu" = ia64; then
19948     # AIX 5 supports IA64
19949     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19950     shlibpath_var=LD_LIBRARY_PATH
19951   else
19952     # With GCC up to 2.95.x, collect2 would create an import file
19953     # for dependence libraries.  The import file would start with
19954     # the line `#! .'.  This would cause the generated library to
19955     # depend on `.', always an invalid library.  This was fixed in
19956     # development snapshots of GCC prior to 3.0.
19957     case $host_os in
19958       aix4 | aix4.[01] | aix4.[01].*)
19959       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19960            echo ' yes '
19961            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19962         :
19963       else
19964         can_build_shared=no
19965       fi
19966       ;;
19967     esac
19968     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19969     # soname into executable. Probably we can add versioning support to
19970     # collect2, so additional links can be useful in future.
19971     if test "$aix_use_runtimelinking" = yes; then
19972       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19973       # instead of lib<name>.a to let people know that these are not
19974       # typical AIX shared libraries.
19975       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19976     else
19977       # We preserve .a as extension for shared libraries through AIX4.2
19978       # and later when we are not doing run time linking.
19979       library_names_spec='${libname}${release}.a $libname.a'
19980       soname_spec='${libname}${release}${shared_ext}$major'
19981     fi
19982     shlibpath_var=LIBPATH
19983   fi
19984   ;;
19985
19986 amigaos*)
19987   library_names_spec='$libname.ixlibrary $libname.a'
19988   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19989   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'
19990   ;;
19991
19992 beos*)
19993   library_names_spec='${libname}${shared_ext}'
19994   dynamic_linker="$host_os ld.so"
19995   shlibpath_var=LIBRARY_PATH
19996   ;;
19997
19998 bsdi[45]*)
19999   version_type=linux
20000   need_version=no
20001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20002   soname_spec='${libname}${release}${shared_ext}$major'
20003   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20004   shlibpath_var=LD_LIBRARY_PATH
20005   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20006   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20007   # the default ld.so.conf also contains /usr/contrib/lib and
20008   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20009   # libtool to hard-code these into programs
20010   ;;
20011
20012 cygwin* | mingw* | pw32*)
20013   version_type=windows
20014   shrext_cmds=".dll"
20015   need_version=no
20016   need_lib_prefix=no
20017
20018   case $GCC,$host_os in
20019   yes,cygwin* | yes,mingw* | yes,pw32*)
20020     library_names_spec='$libname.dll.a'
20021     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20022     postinstall_cmds='base_file=`basename \${file}`~
20023       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20024       dldir=$destdir/`dirname \$dlpath`~
20025       test -d \$dldir || mkdir -p \$dldir~
20026       $install_prog $dir/$dlname \$dldir/$dlname~
20027       chmod a+x \$dldir/$dlname'
20028     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20029       dlpath=$dir/\$dldll~
20030        $rm \$dlpath'
20031     shlibpath_overrides_runpath=yes
20032
20033     case $host_os in
20034     cygwin*)
20035       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20036       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20037       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20038       ;;
20039     mingw*)
20040       # MinGW DLLs use traditional 'lib' prefix
20041       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20042       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20043       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20044         # It is most probably a Windows format PATH printed by
20045         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20046         # path with ; separators, and with drive letters. We can handle the
20047         # drive letters (cygwin fileutils understands them), so leave them,
20048         # especially as we might pass files found there to a mingw objdump,
20049         # which wouldn't understand a cygwinified path. Ahh.
20050         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20051       else
20052         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20053       fi
20054       ;;
20055     pw32*)
20056       # pw32 DLLs use 'pw' prefix rather than 'lib'
20057       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20058       ;;
20059     esac
20060     ;;
20061
20062   *)
20063     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20064     ;;
20065   esac
20066   dynamic_linker='Win32 ld.exe'
20067   # FIXME: first we should search . and the directory the executable is in
20068   shlibpath_var=PATH
20069   ;;
20070
20071 darwin* | rhapsody*)
20072   dynamic_linker="$host_os dyld"
20073   version_type=darwin
20074   need_lib_prefix=no
20075   need_version=no
20076   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20077   soname_spec='${libname}${release}${major}$shared_ext'
20078   shlibpath_overrides_runpath=yes
20079   shlibpath_var=DYLD_LIBRARY_PATH
20080   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20081
20082   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20083   ;;
20084
20085 dgux*)
20086   version_type=linux
20087   need_lib_prefix=no
20088   need_version=no
20089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20090   soname_spec='${libname}${release}${shared_ext}$major'
20091   shlibpath_var=LD_LIBRARY_PATH
20092   ;;
20093
20094 freebsd1*)
20095   dynamic_linker=no
20096   ;;
20097
20098 freebsd* | dragonfly*)
20099   # DragonFly does not have aout.  When/if they implement a new
20100   # versioning mechanism, adjust this.
20101   if test -x /usr/bin/objformat; then
20102     objformat=`/usr/bin/objformat`
20103   else
20104     case $host_os in
20105     freebsd[123]*) objformat=aout ;;
20106     *) objformat=elf ;;
20107     esac
20108   fi
20109   version_type=freebsd-$objformat
20110   case $version_type in
20111     freebsd-elf*)
20112       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20113       need_version=no
20114       need_lib_prefix=no
20115       ;;
20116     freebsd-*)
20117       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20118       need_version=yes
20119       ;;
20120   esac
20121   shlibpath_var=LD_LIBRARY_PATH
20122   case $host_os in
20123   freebsd2*)
20124     shlibpath_overrides_runpath=yes
20125     ;;
20126   freebsd3.[01]* | freebsdelf3.[01]*)
20127     shlibpath_overrides_runpath=yes
20128     hardcode_into_libs=yes
20129     ;;
20130   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20131   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20132     shlibpath_overrides_runpath=no
20133     hardcode_into_libs=yes
20134     ;;
20135   *) # from 4.6 on, and DragonFly
20136     shlibpath_overrides_runpath=yes
20137     hardcode_into_libs=yes
20138     ;;
20139   esac
20140   ;;
20141
20142 gnu*)
20143   version_type=linux
20144   need_lib_prefix=no
20145   need_version=no
20146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20147   soname_spec='${libname}${release}${shared_ext}$major'
20148   shlibpath_var=LD_LIBRARY_PATH
20149   hardcode_into_libs=yes
20150   ;;
20151
20152 hpux9* | hpux10* | hpux11*)
20153   # Give a soname corresponding to the major version so that dld.sl refuses to
20154   # link against other versions.
20155   version_type=sunos
20156   need_lib_prefix=no
20157   need_version=no
20158   case $host_cpu in
20159   ia64*)
20160     shrext_cmds='.so'
20161     hardcode_into_libs=yes
20162     dynamic_linker="$host_os dld.so"
20163     shlibpath_var=LD_LIBRARY_PATH
20164     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20165     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20166     soname_spec='${libname}${release}${shared_ext}$major'
20167     if test "X$HPUX_IA64_MODE" = X32; then
20168       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20169     else
20170       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20171     fi
20172     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20173     ;;
20174    hppa*64*)
20175      shrext_cmds='.sl'
20176      hardcode_into_libs=yes
20177      dynamic_linker="$host_os dld.sl"
20178      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20179      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20180      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20181      soname_spec='${libname}${release}${shared_ext}$major'
20182      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20183      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20184      ;;
20185    *)
20186     shrext_cmds='.sl'
20187     dynamic_linker="$host_os dld.sl"
20188     shlibpath_var=SHLIB_PATH
20189     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20190     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20191     soname_spec='${libname}${release}${shared_ext}$major'
20192     ;;
20193   esac
20194   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20195   postinstall_cmds='chmod 555 $lib'
20196   ;;
20197
20198 interix[3-9]*)
20199   version_type=linux
20200   need_lib_prefix=no
20201   need_version=no
20202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20203   soname_spec='${libname}${release}${shared_ext}$major'
20204   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20205   shlibpath_var=LD_LIBRARY_PATH
20206   shlibpath_overrides_runpath=no
20207   hardcode_into_libs=yes
20208   ;;
20209
20210 irix5* | irix6* | nonstopux*)
20211   case $host_os in
20212     nonstopux*) version_type=nonstopux ;;
20213     *)
20214         if test "$lt_cv_prog_gnu_ld" = yes; then
20215                 version_type=linux
20216         else
20217                 version_type=irix
20218         fi ;;
20219   esac
20220   need_lib_prefix=no
20221   need_version=no
20222   soname_spec='${libname}${release}${shared_ext}$major'
20223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20224   case $host_os in
20225   irix5* | nonstopux*)
20226     libsuff= shlibsuff=
20227     ;;
20228   *)
20229     case $LD in # libtool.m4 will add one of these switches to LD
20230     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20231       libsuff= shlibsuff= libmagic=32-bit;;
20232     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20233       libsuff=32 shlibsuff=N32 libmagic=N32;;
20234     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20235       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20236     *) libsuff= shlibsuff= libmagic=never-match;;
20237     esac
20238     ;;
20239   esac
20240   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20241   shlibpath_overrides_runpath=no
20242   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20243   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20244   hardcode_into_libs=yes
20245   ;;
20246
20247 # No shared lib support for Linux oldld, aout, or coff.
20248 linux*oldld* | linux*aout* | linux*coff*)
20249   dynamic_linker=no
20250   ;;
20251
20252 # This must be Linux ELF.
20253 linux* | k*bsd*-gnu)
20254   version_type=linux
20255   need_lib_prefix=no
20256   need_version=no
20257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20258   soname_spec='${libname}${release}${shared_ext}$major'
20259   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20260   shlibpath_var=LD_LIBRARY_PATH
20261   shlibpath_overrides_runpath=no
20262   # This implies no fast_install, which is unacceptable.
20263   # Some rework will be needed to allow for fast_install
20264   # before this can be enabled.
20265   hardcode_into_libs=yes
20266
20267   # Append ld.so.conf contents to the search path
20268   if test -f /etc/ld.so.conf; then
20269     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' ' '`
20270     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20271   fi
20272
20273   # We used to test for /lib/ld.so.1 and disable shared libraries on
20274   # powerpc, because MkLinux only supported shared libraries with the
20275   # GNU dynamic linker.  Since this was broken with cross compilers,
20276   # most powerpc-linux boxes support dynamic linking these days and
20277   # people can always --disable-shared, the test was removed, and we
20278   # assume the GNU/Linux dynamic linker is in use.
20279   dynamic_linker='GNU/Linux ld.so'
20280   ;;
20281
20282 netbsd*)
20283   version_type=sunos
20284   need_lib_prefix=no
20285   need_version=no
20286   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20287     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20288     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20289     dynamic_linker='NetBSD (a.out) ld.so'
20290   else
20291     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20292     soname_spec='${libname}${release}${shared_ext}$major'
20293     dynamic_linker='NetBSD ld.elf_so'
20294   fi
20295   shlibpath_var=LD_LIBRARY_PATH
20296   shlibpath_overrides_runpath=yes
20297   hardcode_into_libs=yes
20298   ;;
20299
20300 newsos6)
20301   version_type=linux
20302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20303   shlibpath_var=LD_LIBRARY_PATH
20304   shlibpath_overrides_runpath=yes
20305   ;;
20306
20307 nto-qnx*)
20308   version_type=linux
20309   need_lib_prefix=no
20310   need_version=no
20311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20312   soname_spec='${libname}${release}${shared_ext}$major'
20313   shlibpath_var=LD_LIBRARY_PATH
20314   shlibpath_overrides_runpath=yes
20315   ;;
20316
20317 openbsd*)
20318   version_type=sunos
20319   sys_lib_dlsearch_path_spec="/usr/lib"
20320   need_lib_prefix=no
20321   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20322   case $host_os in
20323     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20324     *)                         need_version=no  ;;
20325   esac
20326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20327   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20328   shlibpath_var=LD_LIBRARY_PATH
20329   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20330     case $host_os in
20331       openbsd2.[89] | openbsd2.[89].*)
20332         shlibpath_overrides_runpath=no
20333         ;;
20334       *)
20335         shlibpath_overrides_runpath=yes
20336         ;;
20337       esac
20338   else
20339     shlibpath_overrides_runpath=yes
20340   fi
20341   ;;
20342
20343 os2*)
20344   libname_spec='$name'
20345   shrext_cmds=".dll"
20346   need_lib_prefix=no
20347   library_names_spec='$libname${shared_ext} $libname.a'
20348   dynamic_linker='OS/2 ld.exe'
20349   shlibpath_var=LIBPATH
20350   ;;
20351
20352 osf3* | osf4* | osf5*)
20353   version_type=osf
20354   need_lib_prefix=no
20355   need_version=no
20356   soname_spec='${libname}${release}${shared_ext}$major'
20357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20358   shlibpath_var=LD_LIBRARY_PATH
20359   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20360   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20361   ;;
20362
20363 rdos*)
20364   dynamic_linker=no
20365   ;;
20366
20367 solaris*)
20368   version_type=linux
20369   need_lib_prefix=no
20370   need_version=no
20371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20372   soname_spec='${libname}${release}${shared_ext}$major'
20373   shlibpath_var=LD_LIBRARY_PATH
20374   shlibpath_overrides_runpath=yes
20375   hardcode_into_libs=yes
20376   # ldd complains unless libraries are executable
20377   postinstall_cmds='chmod +x $lib'
20378   ;;
20379
20380 sunos4*)
20381   version_type=sunos
20382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20383   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20384   shlibpath_var=LD_LIBRARY_PATH
20385   shlibpath_overrides_runpath=yes
20386   if test "$with_gnu_ld" = yes; then
20387     need_lib_prefix=no
20388   fi
20389   need_version=yes
20390   ;;
20391
20392 sysv4 | sysv4.3*)
20393   version_type=linux
20394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20395   soname_spec='${libname}${release}${shared_ext}$major'
20396   shlibpath_var=LD_LIBRARY_PATH
20397   case $host_vendor in
20398     sni)
20399       shlibpath_overrides_runpath=no
20400       need_lib_prefix=no
20401       export_dynamic_flag_spec='${wl}-Blargedynsym'
20402       runpath_var=LD_RUN_PATH
20403       ;;
20404     siemens)
20405       need_lib_prefix=no
20406       ;;
20407     motorola)
20408       need_lib_prefix=no
20409       need_version=no
20410       shlibpath_overrides_runpath=no
20411       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20412       ;;
20413   esac
20414   ;;
20415
20416 sysv4*MP*)
20417   if test -d /usr/nec ;then
20418     version_type=linux
20419     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20420     soname_spec='$libname${shared_ext}.$major'
20421     shlibpath_var=LD_LIBRARY_PATH
20422   fi
20423   ;;
20424
20425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20426   version_type=freebsd-elf
20427   need_lib_prefix=no
20428   need_version=no
20429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20430   soname_spec='${libname}${release}${shared_ext}$major'
20431   shlibpath_var=LD_LIBRARY_PATH
20432   hardcode_into_libs=yes
20433   if test "$with_gnu_ld" = yes; then
20434     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20435     shlibpath_overrides_runpath=no
20436   else
20437     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20438     shlibpath_overrides_runpath=yes
20439     case $host_os in
20440       sco3.2v5*)
20441         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20442         ;;
20443     esac
20444   fi
20445   sys_lib_dlsearch_path_spec='/usr/lib'
20446   ;;
20447
20448 uts4*)
20449   version_type=linux
20450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20451   soname_spec='${libname}${release}${shared_ext}$major'
20452   shlibpath_var=LD_LIBRARY_PATH
20453   ;;
20454
20455 *)
20456   dynamic_linker=no
20457   ;;
20458 esac
20459 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20460 echo "${ECHO_T}$dynamic_linker" >&6; }
20461 test "$dynamic_linker" = no && can_build_shared=no
20462
20463 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20464   echo $ECHO_N "(cached) $ECHO_C" >&6
20465 else
20466   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20467 fi
20468
20469 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20470 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20471   echo $ECHO_N "(cached) $ECHO_C" >&6
20472 else
20473   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20474 fi
20475
20476 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20477
20478 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20479 if test "$GCC" = yes; then
20480   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20481 fi
20482
20483 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20484 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20485 hardcode_action_GCJ=
20486 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20487    test -n "$runpath_var_GCJ" || \
20488    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20489
20490   # We can hardcode non-existant directories.
20491   if test "$hardcode_direct_GCJ" != no &&
20492      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20493      # have to relink, otherwise we might link with an installed library
20494      # when we should be linking with a yet-to-be-installed one
20495      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20496      test "$hardcode_minus_L_GCJ" != no; then
20497     # Linking always hardcodes the temporary library directory.
20498     hardcode_action_GCJ=relink
20499   else
20500     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20501     hardcode_action_GCJ=immediate
20502   fi
20503 else
20504   # We cannot hardcode anything, or else we can only hardcode existing
20505   # directories.
20506   hardcode_action_GCJ=unsupported
20507 fi
20508 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20509 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20510
20511 if test "$hardcode_action_GCJ" = relink; then
20512   # Fast installation is not supported
20513   enable_fast_install=no
20514 elif test "$shlibpath_overrides_runpath" = yes ||
20515      test "$enable_shared" = no; then
20516   # Fast installation is not necessary
20517   enable_fast_install=needless
20518 fi
20519
20520
20521 # The else clause should only fire when bootstrapping the
20522 # libtool distribution, otherwise you forgot to ship ltmain.sh
20523 # with your package, and you will get complaints that there are
20524 # no rules to generate ltmain.sh.
20525 if test -f "$ltmain"; then
20526   # See if we are running on zsh, and set the options which allow our commands through
20527   # without removal of \ escapes.
20528   if test -n "${ZSH_VERSION+set}" ; then
20529     setopt NO_GLOB_SUBST
20530   fi
20531   # Now quote all the things that may contain metacharacters while being
20532   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20533   # variables and quote the copies for generation of the libtool script.
20534   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20535     SED SHELL STRIP \
20536     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20537     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20538     deplibs_check_method reload_flag reload_cmds need_locks \
20539     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20540     lt_cv_sys_global_symbol_to_c_name_address \
20541     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20542     old_postinstall_cmds old_postuninstall_cmds \
20543     compiler_GCJ \
20544     CC_GCJ \
20545     LD_GCJ \
20546     lt_prog_compiler_wl_GCJ \
20547     lt_prog_compiler_pic_GCJ \
20548     lt_prog_compiler_static_GCJ \
20549     lt_prog_compiler_no_builtin_flag_GCJ \
20550     export_dynamic_flag_spec_GCJ \
20551     thread_safe_flag_spec_GCJ \
20552     whole_archive_flag_spec_GCJ \
20553     enable_shared_with_static_runtimes_GCJ \
20554     old_archive_cmds_GCJ \
20555     old_archive_from_new_cmds_GCJ \
20556     predep_objects_GCJ \
20557     postdep_objects_GCJ \
20558     predeps_GCJ \
20559     postdeps_GCJ \
20560     compiler_lib_search_path_GCJ \
20561     compiler_lib_search_dirs_GCJ \
20562     archive_cmds_GCJ \
20563     archive_expsym_cmds_GCJ \
20564     postinstall_cmds_GCJ \
20565     postuninstall_cmds_GCJ \
20566     old_archive_from_expsyms_cmds_GCJ \
20567     allow_undefined_flag_GCJ \
20568     no_undefined_flag_GCJ \
20569     export_symbols_cmds_GCJ \
20570     hardcode_libdir_flag_spec_GCJ \
20571     hardcode_libdir_flag_spec_ld_GCJ \
20572     hardcode_libdir_separator_GCJ \
20573     hardcode_automatic_GCJ \
20574     module_cmds_GCJ \
20575     module_expsym_cmds_GCJ \
20576     lt_cv_prog_compiler_c_o_GCJ \
20577     fix_srcfile_path_GCJ \
20578     exclude_expsyms_GCJ \
20579     include_expsyms_GCJ; do
20580
20581     case $var in
20582     old_archive_cmds_GCJ | \
20583     old_archive_from_new_cmds_GCJ | \
20584     archive_cmds_GCJ | \
20585     archive_expsym_cmds_GCJ | \
20586     module_cmds_GCJ | \
20587     module_expsym_cmds_GCJ | \
20588     old_archive_from_expsyms_cmds_GCJ | \
20589     export_symbols_cmds_GCJ | \
20590     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20591     postinstall_cmds | postuninstall_cmds | \
20592     old_postinstall_cmds | old_postuninstall_cmds | \
20593     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20594       # Double-quote double-evaled strings.
20595       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20596       ;;
20597     *)
20598       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20599       ;;
20600     esac
20601   done
20602
20603   case $lt_echo in
20604   *'\$0 --fallback-echo"')
20605     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20606     ;;
20607   esac
20608
20609 cfgfile="$ofile"
20610
20611   cat <<__EOF__ >> "$cfgfile"
20612 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20613
20614 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20615
20616 # Shell to use when invoking shell scripts.
20617 SHELL=$lt_SHELL
20618
20619 # Whether or not to build shared libraries.
20620 build_libtool_libs=$enable_shared
20621
20622 # Whether or not to build static libraries.
20623 build_old_libs=$enable_static
20624
20625 # Whether or not to add -lc for building shared libraries.
20626 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20627
20628 # Whether or not to disallow shared libs when runtime libs are static
20629 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20630
20631 # Whether or not to optimize for fast installation.
20632 fast_install=$enable_fast_install
20633
20634 # The host system.
20635 host_alias=$host_alias
20636 host=$host
20637 host_os=$host_os
20638
20639 # The build system.
20640 build_alias=$build_alias
20641 build=$build
20642 build_os=$build_os
20643
20644 # An echo program that does not interpret backslashes.
20645 echo=$lt_echo
20646
20647 # The archiver.
20648 AR=$lt_AR
20649 AR_FLAGS=$lt_AR_FLAGS
20650
20651 # A C compiler.
20652 LTCC=$lt_LTCC
20653
20654 # LTCC compiler flags.
20655 LTCFLAGS=$lt_LTCFLAGS
20656
20657 # A language-specific compiler.
20658 CC=$lt_compiler_GCJ
20659
20660 # Is the compiler the GNU C compiler?
20661 with_gcc=$GCC_GCJ
20662
20663 # An ERE matcher.
20664 EGREP=$lt_EGREP
20665
20666 # The linker used to build libraries.
20667 LD=$lt_LD_GCJ
20668
20669 # Whether we need hard or soft links.
20670 LN_S=$lt_LN_S
20671
20672 # A BSD-compatible nm program.
20673 NM=$lt_NM
20674
20675 # A symbol stripping program
20676 STRIP=$lt_STRIP
20677
20678 # Used to examine libraries when file_magic_cmd begins "file"
20679 MAGIC_CMD=$MAGIC_CMD
20680
20681 # Used on cygwin: DLL creation program.
20682 DLLTOOL="$DLLTOOL"
20683
20684 # Used on cygwin: object dumper.
20685 OBJDUMP="$OBJDUMP"
20686
20687 # Used on cygwin: assembler.
20688 AS="$AS"
20689
20690 # The name of the directory that contains temporary libtool files.
20691 objdir=$objdir
20692
20693 # How to create reloadable object files.
20694 reload_flag=$lt_reload_flag
20695 reload_cmds=$lt_reload_cmds
20696
20697 # How to pass a linker flag through the compiler.
20698 wl=$lt_lt_prog_compiler_wl_GCJ
20699
20700 # Object file suffix (normally "o").
20701 objext="$ac_objext"
20702
20703 # Old archive suffix (normally "a").
20704 libext="$libext"
20705
20706 # Shared library suffix (normally ".so").
20707 shrext_cmds='$shrext_cmds'
20708
20709 # Executable file suffix (normally "").
20710 exeext="$exeext"
20711
20712 # Additional compiler flags for building library objects.
20713 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20714 pic_mode=$pic_mode
20715
20716 # What is the maximum length of a command?
20717 max_cmd_len=$lt_cv_sys_max_cmd_len
20718
20719 # Does compiler simultaneously support -c and -o options?
20720 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20721
20722 # Must we lock files when doing compilation?
20723 need_locks=$lt_need_locks
20724
20725 # Do we need the lib prefix for modules?
20726 need_lib_prefix=$need_lib_prefix
20727
20728 # Do we need a version for libraries?
20729 need_version=$need_version
20730
20731 # Whether dlopen is supported.
20732 dlopen_support=$enable_dlopen
20733
20734 # Whether dlopen of programs is supported.
20735 dlopen_self=$enable_dlopen_self
20736
20737 # Whether dlopen of statically linked programs is supported.
20738 dlopen_self_static=$enable_dlopen_self_static
20739
20740 # Compiler flag to prevent dynamic linking.
20741 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20742
20743 # Compiler flag to turn off builtin functions.
20744 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20745
20746 # Compiler flag to allow reflexive dlopens.
20747 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20748
20749 # Compiler flag to generate shared objects directly from archives.
20750 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20751
20752 # Compiler flag to generate thread-safe objects.
20753 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20754
20755 # Library versioning type.
20756 version_type=$version_type
20757
20758 # Format of library name prefix.
20759 libname_spec=$lt_libname_spec
20760
20761 # List of archive names.  First name is the real one, the rest are links.
20762 # The last name is the one that the linker finds with -lNAME.
20763 library_names_spec=$lt_library_names_spec
20764
20765 # The coded name of the library, if different from the real name.
20766 soname_spec=$lt_soname_spec
20767
20768 # Commands used to build and install an old-style archive.
20769 RANLIB=$lt_RANLIB
20770 old_archive_cmds=$lt_old_archive_cmds_GCJ
20771 old_postinstall_cmds=$lt_old_postinstall_cmds
20772 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20773
20774 # Create an old-style archive from a shared archive.
20775 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20776
20777 # Create a temporary old-style archive to link instead of a shared archive.
20778 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20779
20780 # Commands used to build and install a shared archive.
20781 archive_cmds=$lt_archive_cmds_GCJ
20782 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20783 postinstall_cmds=$lt_postinstall_cmds
20784 postuninstall_cmds=$lt_postuninstall_cmds
20785
20786 # Commands used to build a loadable module (assumed same as above if empty)
20787 module_cmds=$lt_module_cmds_GCJ
20788 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20789
20790 # Commands to strip libraries.
20791 old_striplib=$lt_old_striplib
20792 striplib=$lt_striplib
20793
20794 # Dependencies to place before the objects being linked to create a
20795 # shared library.
20796 predep_objects=$lt_predep_objects_GCJ
20797
20798 # Dependencies to place after the objects being linked to create a
20799 # shared library.
20800 postdep_objects=$lt_postdep_objects_GCJ
20801
20802 # Dependencies to place before the objects being linked to create a
20803 # shared library.
20804 predeps=$lt_predeps_GCJ
20805
20806 # Dependencies to place after the objects being linked to create a
20807 # shared library.
20808 postdeps=$lt_postdeps_GCJ
20809
20810 # The directories searched by this compiler when creating a shared
20811 # library
20812 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20813
20814 # The library search path used internally by the compiler when linking
20815 # a shared library.
20816 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20817
20818 # Method to check whether dependent libraries are shared objects.
20819 deplibs_check_method=$lt_deplibs_check_method
20820
20821 # Command to use when deplibs_check_method == file_magic.
20822 file_magic_cmd=$lt_file_magic_cmd
20823
20824 # Flag that allows shared libraries with undefined symbols to be built.
20825 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20826
20827 # Flag that forces no undefined symbols.
20828 no_undefined_flag=$lt_no_undefined_flag_GCJ
20829
20830 # Commands used to finish a libtool library installation in a directory.
20831 finish_cmds=$lt_finish_cmds
20832
20833 # Same as above, but a single script fragment to be evaled but not shown.
20834 finish_eval=$lt_finish_eval
20835
20836 # Take the output of nm and produce a listing of raw symbols and C names.
20837 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20838
20839 # Transform the output of nm in a proper C declaration
20840 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20841
20842 # Transform the output of nm in a C name address pair
20843 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20844
20845 # This is the shared library runtime path variable.
20846 runpath_var=$runpath_var
20847
20848 # This is the shared library path variable.
20849 shlibpath_var=$shlibpath_var
20850
20851 # Is shlibpath searched before the hard-coded library search path?
20852 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20853
20854 # How to hardcode a shared library path into an executable.
20855 hardcode_action=$hardcode_action_GCJ
20856
20857 # Whether we should hardcode library paths into libraries.
20858 hardcode_into_libs=$hardcode_into_libs
20859
20860 # Flag to hardcode \$libdir into a binary during linking.
20861 # This must work even if \$libdir does not exist.
20862 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20863
20864 # If ld is used when linking, flag to hardcode \$libdir into
20865 # a binary during linking. This must work even if \$libdir does
20866 # not exist.
20867 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20868
20869 # Whether we need a single -rpath flag with a separated argument.
20870 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20871
20872 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20873 # resulting binary.
20874 hardcode_direct=$hardcode_direct_GCJ
20875
20876 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20877 # resulting binary.
20878 hardcode_minus_L=$hardcode_minus_L_GCJ
20879
20880 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20881 # the resulting binary.
20882 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20883
20884 # Set to yes if building a shared library automatically hardcodes DIR into the library
20885 # and all subsequent libraries and executables linked against it.
20886 hardcode_automatic=$hardcode_automatic_GCJ
20887
20888 # Variables whose values should be saved in libtool wrapper scripts and
20889 # restored at relink time.
20890 variables_saved_for_relink="$variables_saved_for_relink"
20891
20892 # Whether libtool must link a program against all its dependency libraries.
20893 link_all_deplibs=$link_all_deplibs_GCJ
20894
20895 # Compile-time system search path for libraries
20896 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20897
20898 # Run-time system search path for libraries
20899 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20900
20901 # Fix the shell variable \$srcfile for the compiler.
20902 fix_srcfile_path=$lt_fix_srcfile_path
20903
20904 # Set to yes if exported symbols are required.
20905 always_export_symbols=$always_export_symbols_GCJ
20906
20907 # The commands to list exported symbols.
20908 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20909
20910 # The commands to extract the exported symbol list from a shared archive.
20911 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20912
20913 # Symbols that should not be listed in the preloaded symbols.
20914 exclude_expsyms=$lt_exclude_expsyms_GCJ
20915
20916 # Symbols that must always be exported.
20917 include_expsyms=$lt_include_expsyms_GCJ
20918
20919 # ### END LIBTOOL TAG CONFIG: $tagname
20920
20921 __EOF__
20922
20923
20924 else
20925   # If there is no Makefile yet, we rely on a make rule to execute
20926   # `config.status --recheck' to rerun these tests and create the
20927   # libtool script then.
20928   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20929   if test -f "$ltmain_in"; then
20930     test -f Makefile && make "$ltmain"
20931   fi
20932 fi
20933
20934
20935 ac_ext=c
20936 ac_cpp='$CPP $CPPFLAGS'
20937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20940
20941 CC="$lt_save_CC"
20942
20943         else
20944           tagname=""
20945         fi
20946         ;;
20947
20948       RC)
20949
20950
20951 # Source file extension for RC test sources.
20952 ac_ext=rc
20953
20954 # Object file extension for compiled RC test sources.
20955 objext=o
20956 objext_RC=$objext
20957
20958 # Code to be used in simple compile tests
20959 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20960
20961 # Code to be used in simple link tests
20962 lt_simple_link_test_code="$lt_simple_compile_test_code"
20963
20964 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20965
20966 # If no C compiler was specified, use CC.
20967 LTCC=${LTCC-"$CC"}
20968
20969 # If no C compiler flags were specified, use CFLAGS.
20970 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20971
20972 # Allow CC to be a program name with arguments.
20973 compiler=$CC
20974
20975
20976 # save warnings/boilerplate of simple test code
20977 ac_outfile=conftest.$ac_objext
20978 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20979 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20980 _lt_compiler_boilerplate=`cat conftest.err`
20981 $rm conftest*
20982
20983 ac_outfile=conftest.$ac_objext
20984 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20985 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20986 _lt_linker_boilerplate=`cat conftest.err`
20987 $rm -r conftest*
20988
20989
20990 # Allow CC to be a program name with arguments.
20991 lt_save_CC="$CC"
20992 CC=${RC-"windres"}
20993 compiler=$CC
20994 compiler_RC=$CC
20995 for cc_temp in $compiler""; do
20996   case $cc_temp in
20997     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20998     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20999     \-*) ;;
21000     *) break;;
21001   esac
21002 done
21003 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21004
21005 lt_cv_prog_compiler_c_o_RC=yes
21006
21007 # The else clause should only fire when bootstrapping the
21008 # libtool distribution, otherwise you forgot to ship ltmain.sh
21009 # with your package, and you will get complaints that there are
21010 # no rules to generate ltmain.sh.
21011 if test -f "$ltmain"; then
21012   # See if we are running on zsh, and set the options which allow our commands through
21013   # without removal of \ escapes.
21014   if test -n "${ZSH_VERSION+set}" ; then
21015     setopt NO_GLOB_SUBST
21016   fi
21017   # Now quote all the things that may contain metacharacters while being
21018   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21019   # variables and quote the copies for generation of the libtool script.
21020   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21021     SED SHELL STRIP \
21022     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21023     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21024     deplibs_check_method reload_flag reload_cmds need_locks \
21025     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21026     lt_cv_sys_global_symbol_to_c_name_address \
21027     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21028     old_postinstall_cmds old_postuninstall_cmds \
21029     compiler_RC \
21030     CC_RC \
21031     LD_RC \
21032     lt_prog_compiler_wl_RC \
21033     lt_prog_compiler_pic_RC \
21034     lt_prog_compiler_static_RC \
21035     lt_prog_compiler_no_builtin_flag_RC \
21036     export_dynamic_flag_spec_RC \
21037     thread_safe_flag_spec_RC \
21038     whole_archive_flag_spec_RC \
21039     enable_shared_with_static_runtimes_RC \
21040     old_archive_cmds_RC \
21041     old_archive_from_new_cmds_RC \
21042     predep_objects_RC \
21043     postdep_objects_RC \
21044     predeps_RC \
21045     postdeps_RC \
21046     compiler_lib_search_path_RC \
21047     compiler_lib_search_dirs_RC \
21048     archive_cmds_RC \
21049     archive_expsym_cmds_RC \
21050     postinstall_cmds_RC \
21051     postuninstall_cmds_RC \
21052     old_archive_from_expsyms_cmds_RC \
21053     allow_undefined_flag_RC \
21054     no_undefined_flag_RC \
21055     export_symbols_cmds_RC \
21056     hardcode_libdir_flag_spec_RC \
21057     hardcode_libdir_flag_spec_ld_RC \
21058     hardcode_libdir_separator_RC \
21059     hardcode_automatic_RC \
21060     module_cmds_RC \
21061     module_expsym_cmds_RC \
21062     lt_cv_prog_compiler_c_o_RC \
21063     fix_srcfile_path_RC \
21064     exclude_expsyms_RC \
21065     include_expsyms_RC; do
21066
21067     case $var in
21068     old_archive_cmds_RC | \
21069     old_archive_from_new_cmds_RC | \
21070     archive_cmds_RC | \
21071     archive_expsym_cmds_RC | \
21072     module_cmds_RC | \
21073     module_expsym_cmds_RC | \
21074     old_archive_from_expsyms_cmds_RC | \
21075     export_symbols_cmds_RC | \
21076     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21077     postinstall_cmds | postuninstall_cmds | \
21078     old_postinstall_cmds | old_postuninstall_cmds | \
21079     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21080       # Double-quote double-evaled strings.
21081       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21082       ;;
21083     *)
21084       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21085       ;;
21086     esac
21087   done
21088
21089   case $lt_echo in
21090   *'\$0 --fallback-echo"')
21091     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21092     ;;
21093   esac
21094
21095 cfgfile="$ofile"
21096
21097   cat <<__EOF__ >> "$cfgfile"
21098 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21099
21100 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21101
21102 # Shell to use when invoking shell scripts.
21103 SHELL=$lt_SHELL
21104
21105 # Whether or not to build shared libraries.
21106 build_libtool_libs=$enable_shared
21107
21108 # Whether or not to build static libraries.
21109 build_old_libs=$enable_static
21110
21111 # Whether or not to add -lc for building shared libraries.
21112 build_libtool_need_lc=$archive_cmds_need_lc_RC
21113
21114 # Whether or not to disallow shared libs when runtime libs are static
21115 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21116
21117 # Whether or not to optimize for fast installation.
21118 fast_install=$enable_fast_install
21119
21120 # The host system.
21121 host_alias=$host_alias
21122 host=$host
21123 host_os=$host_os
21124
21125 # The build system.
21126 build_alias=$build_alias
21127 build=$build
21128 build_os=$build_os
21129
21130 # An echo program that does not interpret backslashes.
21131 echo=$lt_echo
21132
21133 # The archiver.
21134 AR=$lt_AR
21135 AR_FLAGS=$lt_AR_FLAGS
21136
21137 # A C compiler.
21138 LTCC=$lt_LTCC
21139
21140 # LTCC compiler flags.
21141 LTCFLAGS=$lt_LTCFLAGS
21142
21143 # A language-specific compiler.
21144 CC=$lt_compiler_RC
21145
21146 # Is the compiler the GNU C compiler?
21147 with_gcc=$GCC_RC
21148
21149 # An ERE matcher.
21150 EGREP=$lt_EGREP
21151
21152 # The linker used to build libraries.
21153 LD=$lt_LD_RC
21154
21155 # Whether we need hard or soft links.
21156 LN_S=$lt_LN_S
21157
21158 # A BSD-compatible nm program.
21159 NM=$lt_NM
21160
21161 # A symbol stripping program
21162 STRIP=$lt_STRIP
21163
21164 # Used to examine libraries when file_magic_cmd begins "file"
21165 MAGIC_CMD=$MAGIC_CMD
21166
21167 # Used on cygwin: DLL creation program.
21168 DLLTOOL="$DLLTOOL"
21169
21170 # Used on cygwin: object dumper.
21171 OBJDUMP="$OBJDUMP"
21172
21173 # Used on cygwin: assembler.
21174 AS="$AS"
21175
21176 # The name of the directory that contains temporary libtool files.
21177 objdir=$objdir
21178
21179 # How to create reloadable object files.
21180 reload_flag=$lt_reload_flag
21181 reload_cmds=$lt_reload_cmds
21182
21183 # How to pass a linker flag through the compiler.
21184 wl=$lt_lt_prog_compiler_wl_RC
21185
21186 # Object file suffix (normally "o").
21187 objext="$ac_objext"
21188
21189 # Old archive suffix (normally "a").
21190 libext="$libext"
21191
21192 # Shared library suffix (normally ".so").
21193 shrext_cmds='$shrext_cmds'
21194
21195 # Executable file suffix (normally "").
21196 exeext="$exeext"
21197
21198 # Additional compiler flags for building library objects.
21199 pic_flag=$lt_lt_prog_compiler_pic_RC
21200 pic_mode=$pic_mode
21201
21202 # What is the maximum length of a command?
21203 max_cmd_len=$lt_cv_sys_max_cmd_len
21204
21205 # Does compiler simultaneously support -c and -o options?
21206 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21207
21208 # Must we lock files when doing compilation?
21209 need_locks=$lt_need_locks
21210
21211 # Do we need the lib prefix for modules?
21212 need_lib_prefix=$need_lib_prefix
21213
21214 # Do we need a version for libraries?
21215 need_version=$need_version
21216
21217 # Whether dlopen is supported.
21218 dlopen_support=$enable_dlopen
21219
21220 # Whether dlopen of programs is supported.
21221 dlopen_self=$enable_dlopen_self
21222
21223 # Whether dlopen of statically linked programs is supported.
21224 dlopen_self_static=$enable_dlopen_self_static
21225
21226 # Compiler flag to prevent dynamic linking.
21227 link_static_flag=$lt_lt_prog_compiler_static_RC
21228
21229 # Compiler flag to turn off builtin functions.
21230 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21231
21232 # Compiler flag to allow reflexive dlopens.
21233 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21234
21235 # Compiler flag to generate shared objects directly from archives.
21236 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21237
21238 # Compiler flag to generate thread-safe objects.
21239 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21240
21241 # Library versioning type.
21242 version_type=$version_type
21243
21244 # Format of library name prefix.
21245 libname_spec=$lt_libname_spec
21246
21247 # List of archive names.  First name is the real one, the rest are links.
21248 # The last name is the one that the linker finds with -lNAME.
21249 library_names_spec=$lt_library_names_spec
21250
21251 # The coded name of the library, if different from the real name.
21252 soname_spec=$lt_soname_spec
21253
21254 # Commands used to build and install an old-style archive.
21255 RANLIB=$lt_RANLIB
21256 old_archive_cmds=$lt_old_archive_cmds_RC
21257 old_postinstall_cmds=$lt_old_postinstall_cmds
21258 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21259
21260 # Create an old-style archive from a shared archive.
21261 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21262
21263 # Create a temporary old-style archive to link instead of a shared archive.
21264 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21265
21266 # Commands used to build and install a shared archive.
21267 archive_cmds=$lt_archive_cmds_RC
21268 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21269 postinstall_cmds=$lt_postinstall_cmds
21270 postuninstall_cmds=$lt_postuninstall_cmds
21271
21272 # Commands used to build a loadable module (assumed same as above if empty)
21273 module_cmds=$lt_module_cmds_RC
21274 module_expsym_cmds=$lt_module_expsym_cmds_RC
21275
21276 # Commands to strip libraries.
21277 old_striplib=$lt_old_striplib
21278 striplib=$lt_striplib
21279
21280 # Dependencies to place before the objects being linked to create a
21281 # shared library.
21282 predep_objects=$lt_predep_objects_RC
21283
21284 # Dependencies to place after the objects being linked to create a
21285 # shared library.
21286 postdep_objects=$lt_postdep_objects_RC
21287
21288 # Dependencies to place before the objects being linked to create a
21289 # shared library.
21290 predeps=$lt_predeps_RC
21291
21292 # Dependencies to place after the objects being linked to create a
21293 # shared library.
21294 postdeps=$lt_postdeps_RC
21295
21296 # The directories searched by this compiler when creating a shared
21297 # library
21298 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
21299
21300 # The library search path used internally by the compiler when linking
21301 # a shared library.
21302 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21303
21304 # Method to check whether dependent libraries are shared objects.
21305 deplibs_check_method=$lt_deplibs_check_method
21306
21307 # Command to use when deplibs_check_method == file_magic.
21308 file_magic_cmd=$lt_file_magic_cmd
21309
21310 # Flag that allows shared libraries with undefined symbols to be built.
21311 allow_undefined_flag=$lt_allow_undefined_flag_RC
21312
21313 # Flag that forces no undefined symbols.
21314 no_undefined_flag=$lt_no_undefined_flag_RC
21315
21316 # Commands used to finish a libtool library installation in a directory.
21317 finish_cmds=$lt_finish_cmds
21318
21319 # Same as above, but a single script fragment to be evaled but not shown.
21320 finish_eval=$lt_finish_eval
21321
21322 # Take the output of nm and produce a listing of raw symbols and C names.
21323 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21324
21325 # Transform the output of nm in a proper C declaration
21326 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21327
21328 # Transform the output of nm in a C name address pair
21329 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21330
21331 # This is the shared library runtime path variable.
21332 runpath_var=$runpath_var
21333
21334 # This is the shared library path variable.
21335 shlibpath_var=$shlibpath_var
21336
21337 # Is shlibpath searched before the hard-coded library search path?
21338 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21339
21340 # How to hardcode a shared library path into an executable.
21341 hardcode_action=$hardcode_action_RC
21342
21343 # Whether we should hardcode library paths into libraries.
21344 hardcode_into_libs=$hardcode_into_libs
21345
21346 # Flag to hardcode \$libdir into a binary during linking.
21347 # This must work even if \$libdir does not exist.
21348 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21349
21350 # If ld is used when linking, flag to hardcode \$libdir into
21351 # a binary during linking. This must work even if \$libdir does
21352 # not exist.
21353 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21354
21355 # Whether we need a single -rpath flag with a separated argument.
21356 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21357
21358 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21359 # resulting binary.
21360 hardcode_direct=$hardcode_direct_RC
21361
21362 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21363 # resulting binary.
21364 hardcode_minus_L=$hardcode_minus_L_RC
21365
21366 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21367 # the resulting binary.
21368 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21369
21370 # Set to yes if building a shared library automatically hardcodes DIR into the library
21371 # and all subsequent libraries and executables linked against it.
21372 hardcode_automatic=$hardcode_automatic_RC
21373
21374 # Variables whose values should be saved in libtool wrapper scripts and
21375 # restored at relink time.
21376 variables_saved_for_relink="$variables_saved_for_relink"
21377
21378 # Whether libtool must link a program against all its dependency libraries.
21379 link_all_deplibs=$link_all_deplibs_RC
21380
21381 # Compile-time system search path for libraries
21382 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21383
21384 # Run-time system search path for libraries
21385 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21386
21387 # Fix the shell variable \$srcfile for the compiler.
21388 fix_srcfile_path=$lt_fix_srcfile_path
21389
21390 # Set to yes if exported symbols are required.
21391 always_export_symbols=$always_export_symbols_RC
21392
21393 # The commands to list exported symbols.
21394 export_symbols_cmds=$lt_export_symbols_cmds_RC
21395
21396 # The commands to extract the exported symbol list from a shared archive.
21397 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21398
21399 # Symbols that should not be listed in the preloaded symbols.
21400 exclude_expsyms=$lt_exclude_expsyms_RC
21401
21402 # Symbols that must always be exported.
21403 include_expsyms=$lt_include_expsyms_RC
21404
21405 # ### END LIBTOOL TAG CONFIG: $tagname
21406
21407 __EOF__
21408
21409
21410 else
21411   # If there is no Makefile yet, we rely on a make rule to execute
21412   # `config.status --recheck' to rerun these tests and create the
21413   # libtool script then.
21414   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21415   if test -f "$ltmain_in"; then
21416     test -f Makefile && make "$ltmain"
21417   fi
21418 fi
21419
21420
21421 ac_ext=c
21422 ac_cpp='$CPP $CPPFLAGS'
21423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21426
21427 CC="$lt_save_CC"
21428
21429         ;;
21430
21431       *)
21432         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21433 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21434    { (exit 1); exit 1; }; }
21435         ;;
21436       esac
21437
21438       # Append the new tag name to the list of available tags.
21439       if test -n "$tagname" ; then
21440       available_tags="$available_tags $tagname"
21441     fi
21442     fi
21443   done
21444   IFS="$lt_save_ifs"
21445
21446   # Now substitute the updated list of available tags.
21447   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21448     mv "${ofile}T" "$ofile"
21449     chmod +x "$ofile"
21450   else
21451     rm -f "${ofile}T"
21452     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21453 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21454    { (exit 1); exit 1; }; }
21455   fi
21456 fi
21457
21458
21459
21460 # This can be used to rebuild libtool when needed
21461 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21462
21463 # Always use our own libtool.
21464 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21465
21466 # Prevent multiple expansion
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490 # -Wunreachable-code can't be used with library
21491 CFLAGS="$CFLAGS -pedantic-errors -Wall -Wmissing-prototypes -Wcast-align -std=c99"
21492
21493 # set -fgnu89-inline for GCC4 compilers
21494 if test -z "$ac_cv_prog_CC"; then
21495   configure_gcc="$CC"
21496 else
21497   configure_gcc="$ac_cv_prog_CC"
21498 fi
21499 if $configure_gcc --version | sed -e 's,\..*,.,' -e q | grep -q 4.$ ; then
21500   CFLAGS="$CFLAGS -fgnu89-inline"
21501 fi
21502
21503
21504
21505
21506
21507 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21508         if test -n "$ac_tool_prefix"; then
21509   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21510 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21513 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21514   echo $ECHO_N "(cached) $ECHO_C" >&6
21515 else
21516   case $PKG_CONFIG in
21517   [\\/]* | ?:[\\/]*)
21518   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21519   ;;
21520   *)
21521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21522 for as_dir in $PATH
21523 do
21524   IFS=$as_save_IFS
21525   test -z "$as_dir" && as_dir=.
21526   for ac_exec_ext in '' $ac_executable_extensions; do
21527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21528     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21530     break 2
21531   fi
21532 done
21533 done
21534 IFS=$as_save_IFS
21535
21536   ;;
21537 esac
21538 fi
21539 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21540 if test -n "$PKG_CONFIG"; then
21541   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21542 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21543 else
21544   { echo "$as_me:$LINENO: result: no" >&5
21545 echo "${ECHO_T}no" >&6; }
21546 fi
21547
21548
21549 fi
21550 if test -z "$ac_cv_path_PKG_CONFIG"; then
21551   ac_pt_PKG_CONFIG=$PKG_CONFIG
21552   # Extract the first word of "pkg-config", so it can be a program name with args.
21553 set dummy pkg-config; ac_word=$2
21554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21556 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21557   echo $ECHO_N "(cached) $ECHO_C" >&6
21558 else
21559   case $ac_pt_PKG_CONFIG in
21560   [\\/]* | ?:[\\/]*)
21561   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21562   ;;
21563   *)
21564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21565 for as_dir in $PATH
21566 do
21567   IFS=$as_save_IFS
21568   test -z "$as_dir" && as_dir=.
21569   for ac_exec_ext in '' $ac_executable_extensions; do
21570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21571     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21573     break 2
21574   fi
21575 done
21576 done
21577 IFS=$as_save_IFS
21578
21579   ;;
21580 esac
21581 fi
21582 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21583 if test -n "$ac_pt_PKG_CONFIG"; then
21584   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21585 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21586 else
21587   { echo "$as_me:$LINENO: result: no" >&5
21588 echo "${ECHO_T}no" >&6; }
21589 fi
21590
21591   if test "x$ac_pt_PKG_CONFIG" = x; then
21592     PKG_CONFIG=""
21593   else
21594     case $cross_compiling:$ac_tool_warned in
21595 yes:)
21596 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21597 whose name does not start with the host triplet.  If you think this
21598 configuration is useful to you, please write to autoconf@gnu.org." >&5
21599 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21600 whose name does not start with the host triplet.  If you think this
21601 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21602 ac_tool_warned=yes ;;
21603 esac
21604     PKG_CONFIG=$ac_pt_PKG_CONFIG
21605   fi
21606 else
21607   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21608 fi
21609
21610 fi
21611 if test -n "$PKG_CONFIG"; then
21612         _pkg_min_version=0.9.0
21613         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21614 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21615         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21616                 { echo "$as_me:$LINENO: result: yes" >&5
21617 echo "${ECHO_T}yes" >&6; }
21618         else
21619                 { echo "$as_me:$LINENO: result: no" >&5
21620 echo "${ECHO_T}no" >&6; }
21621                 PKG_CONFIG=""
21622         fi
21623
21624 fi
21625
21626 pkg_failed=no
21627 { echo "$as_me:$LINENO: checking for PACKAGE" >&5
21628 echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; }
21629
21630 if test -n "$PKG_CONFIG"; then
21631     if test -n "$PACKAGE_CFLAGS"; then
21632         pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
21633     else
21634         if test -n "$PKG_CONFIG" && \
21635     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gtk+-2.0 libsharing conic\"") >&5
21636   ($PKG_CONFIG --exists --print-errors "glib-2.0 gtk+-2.0 libsharing conic") 2>&5
21637   ac_status=$?
21638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639   (exit $ac_status); }; then
21640   pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 gtk+-2.0 libsharing conic" 2>/dev/null`
21641 else
21642   pkg_failed=yes
21643 fi
21644     fi
21645 else
21646         pkg_failed=untried
21647 fi
21648 if test -n "$PKG_CONFIG"; then
21649     if test -n "$PACKAGE_LIBS"; then
21650         pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
21651     else
21652         if test -n "$PKG_CONFIG" && \
21653     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gtk+-2.0 libsharing conic\"") >&5
21654   ($PKG_CONFIG --exists --print-errors "glib-2.0 gtk+-2.0 libsharing conic") 2>&5
21655   ac_status=$?
21656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657   (exit $ac_status); }; then
21658   pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "glib-2.0 gtk+-2.0 libsharing conic" 2>/dev/null`
21659 else
21660   pkg_failed=yes
21661 fi
21662     fi
21663 else
21664         pkg_failed=untried
21665 fi
21666
21667
21668
21669 if test $pkg_failed = yes; then
21670
21671 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21672         _pkg_short_errors_supported=yes
21673 else
21674         _pkg_short_errors_supported=no
21675 fi
21676         if test $_pkg_short_errors_supported = yes; then
21677                 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 gtk+-2.0 libsharing conic"`
21678         else
21679                 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 gtk+-2.0 libsharing conic"`
21680         fi
21681         # Put the nasty error message in config.log where it belongs
21682         echo "$PACKAGE_PKG_ERRORS" >&5
21683
21684         { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0 gtk+-2.0 libsharing conic) were not met:
21685
21686 $PACKAGE_PKG_ERRORS
21687
21688 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21689 installed software in a non-standard prefix.
21690
21691 Alternatively, you may set the environment variables PACKAGE_CFLAGS
21692 and PACKAGE_LIBS to avoid the need to call pkg-config.
21693 See the pkg-config man page for more details.
21694 " >&5
21695 echo "$as_me: error: Package requirements (glib-2.0 gtk+-2.0 libsharing conic) were not met:
21696
21697 $PACKAGE_PKG_ERRORS
21698
21699 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21700 installed software in a non-standard prefix.
21701
21702 Alternatively, you may set the environment variables PACKAGE_CFLAGS
21703 and PACKAGE_LIBS to avoid the need to call pkg-config.
21704 See the pkg-config man page for more details.
21705 " >&2;}
21706    { (exit 1); exit 1; }; }
21707 elif test $pkg_failed = untried; then
21708         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21709 is in your PATH or set the PKG_CONFIG environment variable to the full
21710 path to pkg-config.
21711
21712 Alternatively, you may set the environment variables PACKAGE_CFLAGS
21713 and PACKAGE_LIBS to avoid the need to call pkg-config.
21714 See the pkg-config man page for more details.
21715
21716 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21717 See \`config.log' for more details." >&5
21718 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21719 is in your PATH or set the PKG_CONFIG environment variable to the full
21720 path to pkg-config.
21721
21722 Alternatively, you may set the environment variables PACKAGE_CFLAGS
21723 and PACKAGE_LIBS to avoid the need to call pkg-config.
21724 See the pkg-config man page for more details.
21725
21726 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21727 See \`config.log' for more details." >&2;}
21728    { (exit 1); exit 1; }; }
21729 else
21730         PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
21731         PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
21732         { echo "$as_me:$LINENO: result: yes" >&5
21733 echo "${ECHO_T}yes" >&6; }
21734         :
21735 fi
21736
21737
21738
21739
21740 pkg_failed=no
21741 { echo "$as_me:$LINENO: checking for SHARING" >&5
21742 echo $ECHO_N "checking for SHARING... $ECHO_C" >&6; }
21743
21744 if test -n "$PKG_CONFIG"; then
21745     if test -n "$SHARING_CFLAGS"; then
21746         pkg_cv_SHARING_CFLAGS="$SHARING_CFLAGS"
21747     else
21748         if test -n "$PKG_CONFIG" && \
21749     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsharing\"") >&5
21750   ($PKG_CONFIG --exists --print-errors "libsharing") 2>&5
21751   ac_status=$?
21752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753   (exit $ac_status); }; then
21754   pkg_cv_SHARING_CFLAGS=`$PKG_CONFIG --cflags "libsharing" 2>/dev/null`
21755 else
21756   pkg_failed=yes
21757 fi
21758     fi
21759 else
21760         pkg_failed=untried
21761 fi
21762 if test -n "$PKG_CONFIG"; then
21763     if test -n "$SHARING_LIBS"; then
21764         pkg_cv_SHARING_LIBS="$SHARING_LIBS"
21765     else
21766         if test -n "$PKG_CONFIG" && \
21767     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsharing\"") >&5
21768   ($PKG_CONFIG --exists --print-errors "libsharing") 2>&5
21769   ac_status=$?
21770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771   (exit $ac_status); }; then
21772   pkg_cv_SHARING_LIBS=`$PKG_CONFIG --libs "libsharing" 2>/dev/null`
21773 else
21774   pkg_failed=yes
21775 fi
21776     fi
21777 else
21778         pkg_failed=untried
21779 fi
21780
21781
21782
21783 if test $pkg_failed = yes; then
21784
21785 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21786         _pkg_short_errors_supported=yes
21787 else
21788         _pkg_short_errors_supported=no
21789 fi
21790         if test $_pkg_short_errors_supported = yes; then
21791                 SHARING_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsharing"`
21792         else
21793                 SHARING_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsharing"`
21794         fi
21795         # Put the nasty error message in config.log where it belongs
21796         echo "$SHARING_PKG_ERRORS" >&5
21797
21798         { { echo "$as_me:$LINENO: error: Package requirements (libsharing) were not met:
21799
21800 $SHARING_PKG_ERRORS
21801
21802 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21803 installed software in a non-standard prefix.
21804
21805 Alternatively, you may set the environment variables SHARING_CFLAGS
21806 and SHARING_LIBS to avoid the need to call pkg-config.
21807 See the pkg-config man page for more details.
21808 " >&5
21809 echo "$as_me: error: Package requirements (libsharing) were not met:
21810
21811 $SHARING_PKG_ERRORS
21812
21813 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21814 installed software in a non-standard prefix.
21815
21816 Alternatively, you may set the environment variables SHARING_CFLAGS
21817 and SHARING_LIBS to avoid the need to call pkg-config.
21818 See the pkg-config man page for more details.
21819 " >&2;}
21820    { (exit 1); exit 1; }; }
21821 elif test $pkg_failed = untried; then
21822         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21823 is in your PATH or set the PKG_CONFIG environment variable to the full
21824 path to pkg-config.
21825
21826 Alternatively, you may set the environment variables SHARING_CFLAGS
21827 and SHARING_LIBS to avoid the need to call pkg-config.
21828 See the pkg-config man page for more details.
21829
21830 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21831 See \`config.log' for more details." >&5
21832 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21833 is in your PATH or set the PKG_CONFIG environment variable to the full
21834 path to pkg-config.
21835
21836 Alternatively, you may set the environment variables SHARING_CFLAGS
21837 and SHARING_LIBS to avoid the need to call pkg-config.
21838 See the pkg-config man page for more details.
21839
21840 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21841 See \`config.log' for more details." >&2;}
21842    { (exit 1); exit 1; }; }
21843 else
21844         SHARING_CFLAGS=$pkg_cv_SHARING_CFLAGS
21845         SHARING_LIBS=$pkg_cv_SHARING_LIBS
21846         { echo "$as_me:$LINENO: result: yes" >&5
21847 echo "${ECHO_T}yes" >&6; }
21848         :
21849 fi
21850
21851
21852
21853 currentdir=`pwd`
21854
21855 pluginsdir=`$PKG_CONFIG libsharing --variable=pluginsdir`
21856
21857
21858
21859 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21860         if test -n "$ac_tool_prefix"; then
21861   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21862 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21865 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21866   echo $ECHO_N "(cached) $ECHO_C" >&6
21867 else
21868   case $PKG_CONFIG in
21869   [\\/]* | ?:[\\/]*)
21870   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21871   ;;
21872   *)
21873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21874 for as_dir in $PATH
21875 do
21876   IFS=$as_save_IFS
21877   test -z "$as_dir" && as_dir=.
21878   for ac_exec_ext in '' $ac_executable_extensions; do
21879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21880     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21882     break 2
21883   fi
21884 done
21885 done
21886 IFS=$as_save_IFS
21887
21888   ;;
21889 esac
21890 fi
21891 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21892 if test -n "$PKG_CONFIG"; then
21893   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21894 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21895 else
21896   { echo "$as_me:$LINENO: result: no" >&5
21897 echo "${ECHO_T}no" >&6; }
21898 fi
21899
21900
21901 fi
21902 if test -z "$ac_cv_path_PKG_CONFIG"; then
21903   ac_pt_PKG_CONFIG=$PKG_CONFIG
21904   # Extract the first word of "pkg-config", so it can be a program name with args.
21905 set dummy pkg-config; ac_word=$2
21906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21908 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21909   echo $ECHO_N "(cached) $ECHO_C" >&6
21910 else
21911   case $ac_pt_PKG_CONFIG in
21912   [\\/]* | ?:[\\/]*)
21913   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21914   ;;
21915   *)
21916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21917 for as_dir in $PATH
21918 do
21919   IFS=$as_save_IFS
21920   test -z "$as_dir" && as_dir=.
21921   for ac_exec_ext in '' $ac_executable_extensions; do
21922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21923     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21925     break 2
21926   fi
21927 done
21928 done
21929 IFS=$as_save_IFS
21930
21931   ;;
21932 esac
21933 fi
21934 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21935 if test -n "$ac_pt_PKG_CONFIG"; then
21936   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21937 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21938 else
21939   { echo "$as_me:$LINENO: result: no" >&5
21940 echo "${ECHO_T}no" >&6; }
21941 fi
21942
21943   if test "x$ac_pt_PKG_CONFIG" = x; then
21944     PKG_CONFIG=""
21945   else
21946     case $cross_compiling:$ac_tool_warned in
21947 yes:)
21948 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21949 whose name does not start with the host triplet.  If you think this
21950 configuration is useful to you, please write to autoconf@gnu.org." >&5
21951 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21952 whose name does not start with the host triplet.  If you think this
21953 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21954 ac_tool_warned=yes ;;
21955 esac
21956     PKG_CONFIG=$ac_pt_PKG_CONFIG
21957   fi
21958 else
21959   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21960 fi
21961
21962 fi
21963 if test -n "$PKG_CONFIG"; then
21964         _pkg_min_version=0.9.0
21965         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21966 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21967         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21968                 { echo "$as_me:$LINENO: result: yes" >&5
21969 echo "${ECHO_T}yes" >&6; }
21970         else
21971                 { echo "$as_me:$LINENO: result: no" >&5
21972 echo "${ECHO_T}no" >&6; }
21973                 PKG_CONFIG=""
21974         fi
21975
21976 fi
21977 servicesdir=`$PKG_CONFIG libsharing --variable=servicesdir`
21978
21979
21980
21981
21982 # Check whether --enable-debug was given.
21983 if test "${enable_debug+set}" = set; then
21984   enableval=$enable_debug; enable_debug=yes
21985 else
21986   enable_debug=no
21987 fi
21988
21989
21990 if test x$enable_debug = xyes; then
21991   DEBUG_CFLAGS="-DOSSOLOG_COMPILE"
21992
21993 fi
21994
21995
21996
21997 DATADIRNAME="share"
21998 if test "x${prefix}" = "xNONE"; then
21999
22000 cat >>confdefs.h <<_ACEOF
22001 #define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale"
22002 _ACEOF
22003
22004 else
22005
22006 cat >>confdefs.h <<_ACEOF
22007 #define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale"
22008 _ACEOF
22009
22010 fi
22011
22012
22013
22014
22015 ac_config_files="$ac_config_files Makefile data/Makefile data/template.service.xml src/Makefile"
22016
22017 cat >confcache <<\_ACEOF
22018 # This file is a shell script that caches the results of configure
22019 # tests run on this system so they can be shared between configure
22020 # scripts and configure runs, see configure's option --config-cache.
22021 # It is not useful on other systems.  If it contains results you don't
22022 # want to keep, you may remove or edit it.
22023 #
22024 # config.status only pays attention to the cache file if you give it
22025 # the --recheck option to rerun configure.
22026 #
22027 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22028 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22029 # following values.
22030
22031 _ACEOF
22032
22033 # The following way of writing the cache mishandles newlines in values,
22034 # but we know of no workaround that is simple, portable, and efficient.
22035 # So, we kill variables containing newlines.
22036 # Ultrix sh set writes to stderr and can't be redirected directly,
22037 # and sets the high bit in the cache file unless we assign to the vars.
22038 (
22039   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22040     eval ac_val=\$$ac_var
22041     case $ac_val in #(
22042     *${as_nl}*)
22043       case $ac_var in #(
22044       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22045 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22046       esac
22047       case $ac_var in #(
22048       _ | IFS | as_nl) ;; #(
22049       *) $as_unset $ac_var ;;
22050       esac ;;
22051     esac
22052   done
22053
22054   (set) 2>&1 |
22055     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22056     *${as_nl}ac_space=\ *)
22057       # `set' does not quote correctly, so add quotes (double-quote
22058       # substitution turns \\\\ into \\, and sed turns \\ into \).
22059       sed -n \
22060         "s/'/'\\\\''/g;
22061           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22062       ;; #(
22063     *)
22064       # `set' quotes correctly as required by POSIX, so do not add quotes.
22065       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22066       ;;
22067     esac |
22068     sort
22069 ) |
22070   sed '
22071      /^ac_cv_env_/b end
22072      t clear
22073      :clear
22074      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22075      t end
22076      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22077      :end' >>confcache
22078 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22079   if test -w "$cache_file"; then
22080     test "x$cache_file" != "x/dev/null" &&
22081       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22082 echo "$as_me: updating cache $cache_file" >&6;}
22083     cat confcache >$cache_file
22084   else
22085     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22086 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22087   fi
22088 fi
22089 rm -f confcache
22090
22091 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22092 # Let make expand exec_prefix.
22093 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22094
22095 DEFS=-DHAVE_CONFIG_H
22096
22097 ac_libobjs=
22098 ac_ltlibobjs=
22099 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22100   # 1. Remove the extension, and $U if already installed.
22101   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22102   ac_i=`echo "$ac_i" | sed "$ac_script"`
22103   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22104   #    will be set to the directory where LIBOBJS objects are built.
22105   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22106   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22107 done
22108 LIBOBJS=$ac_libobjs
22109
22110 LTLIBOBJS=$ac_ltlibobjs
22111
22112
22113 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22114   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22115 Usually this means the macro was only invoked conditionally." >&5
22116 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22117 Usually this means the macro was only invoked conditionally." >&2;}
22118    { (exit 1); exit 1; }; }
22119 fi
22120 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22121   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22122 Usually this means the macro was only invoked conditionally." >&5
22123 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22124 Usually this means the macro was only invoked conditionally." >&2;}
22125    { (exit 1); exit 1; }; }
22126 fi
22127 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22128   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22129 Usually this means the macro was only invoked conditionally." >&5
22130 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22131 Usually this means the macro was only invoked conditionally." >&2;}
22132    { (exit 1); exit 1; }; }
22133 fi
22134 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22135   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22136 Usually this means the macro was only invoked conditionally." >&5
22137 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22138 Usually this means the macro was only invoked conditionally." >&2;}
22139    { (exit 1); exit 1; }; }
22140 fi
22141 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22142   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22143 Usually this means the macro was only invoked conditionally." >&5
22144 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22145 Usually this means the macro was only invoked conditionally." >&2;}
22146    { (exit 1); exit 1; }; }
22147 fi
22148 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22149   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22150 Usually this means the macro was only invoked conditionally." >&5
22151 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22152 Usually this means the macro was only invoked conditionally." >&2;}
22153    { (exit 1); exit 1; }; }
22154 fi
22155
22156 : ${CONFIG_STATUS=./config.status}
22157 ac_clean_files_save=$ac_clean_files
22158 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22159 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22160 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22161 cat >$CONFIG_STATUS <<_ACEOF
22162 #! $SHELL
22163 # Generated by $as_me.
22164 # Run this file to recreate the current configuration.
22165 # Compiler output produced by configure, useful for debugging
22166 # configure, is in config.log if it exists.
22167
22168 debug=false
22169 ac_cs_recheck=false
22170 ac_cs_silent=false
22171 SHELL=\${CONFIG_SHELL-$SHELL}
22172 _ACEOF
22173
22174 cat >>$CONFIG_STATUS <<\_ACEOF
22175 ## --------------------- ##
22176 ## M4sh Initialization.  ##
22177 ## --------------------- ##
22178
22179 # Be more Bourne compatible
22180 DUALCASE=1; export DUALCASE # for MKS sh
22181 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22182   emulate sh
22183   NULLCMD=:
22184   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22185   # is contrary to our usage.  Disable this feature.
22186   alias -g '${1+"$@"}'='"$@"'
22187   setopt NO_GLOB_SUBST
22188 else
22189   case `(set -o) 2>/dev/null` in
22190   *posix*) set -o posix ;;
22191 esac
22192
22193 fi
22194
22195
22196
22197
22198 # PATH needs CR
22199 # Avoid depending upon Character Ranges.
22200 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22201 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22202 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22203 as_cr_digits='0123456789'
22204 as_cr_alnum=$as_cr_Letters$as_cr_digits
22205
22206 # The user is always right.
22207 if test "${PATH_SEPARATOR+set}" != set; then
22208   echo "#! /bin/sh" >conf$$.sh
22209   echo  "exit 0"   >>conf$$.sh
22210   chmod +x conf$$.sh
22211   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22212     PATH_SEPARATOR=';'
22213   else
22214     PATH_SEPARATOR=:
22215   fi
22216   rm -f conf$$.sh
22217 fi
22218
22219 # Support unset when possible.
22220 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22221   as_unset=unset
22222 else
22223   as_unset=false
22224 fi
22225
22226
22227 # IFS
22228 # We need space, tab and new line, in precisely that order.  Quoting is
22229 # there to prevent editors from complaining about space-tab.
22230 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22231 # splitting by setting IFS to empty value.)
22232 as_nl='
22233 '
22234 IFS=" ""        $as_nl"
22235
22236 # Find who we are.  Look in the path if we contain no directory separator.
22237 case $0 in
22238   *[\\/]* ) as_myself=$0 ;;
22239   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22240 for as_dir in $PATH
22241 do
22242   IFS=$as_save_IFS
22243   test -z "$as_dir" && as_dir=.
22244   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22245 done
22246 IFS=$as_save_IFS
22247
22248      ;;
22249 esac
22250 # We did not find ourselves, most probably we were run as `sh COMMAND'
22251 # in which case we are not to be found in the path.
22252 if test "x$as_myself" = x; then
22253   as_myself=$0
22254 fi
22255 if test ! -f "$as_myself"; then
22256   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22257   { (exit 1); exit 1; }
22258 fi
22259
22260 # Work around bugs in pre-3.0 UWIN ksh.
22261 for as_var in ENV MAIL MAILPATH
22262 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22263 done
22264 PS1='$ '
22265 PS2='> '
22266 PS4='+ '
22267
22268 # NLS nuisances.
22269 for as_var in \
22270   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22271   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22272   LC_TELEPHONE LC_TIME
22273 do
22274   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22275     eval $as_var=C; export $as_var
22276   else
22277     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22278   fi
22279 done
22280
22281 # Required to use basename.
22282 if expr a : '\(a\)' >/dev/null 2>&1 &&
22283    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22284   as_expr=expr
22285 else
22286   as_expr=false
22287 fi
22288
22289 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22290   as_basename=basename
22291 else
22292   as_basename=false
22293 fi
22294
22295
22296 # Name of the executable.
22297 as_me=`$as_basename -- "$0" ||
22298 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22299          X"$0" : 'X\(//\)$' \| \
22300          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22301 echo X/"$0" |
22302     sed '/^.*\/\([^/][^/]*\)\/*$/{
22303             s//\1/
22304             q
22305           }
22306           /^X\/\(\/\/\)$/{
22307             s//\1/
22308             q
22309           }
22310           /^X\/\(\/\).*/{
22311             s//\1/
22312             q
22313           }
22314           s/.*/./; q'`
22315
22316 # CDPATH.
22317 $as_unset CDPATH
22318
22319
22320
22321   as_lineno_1=$LINENO
22322   as_lineno_2=$LINENO
22323   test "x$as_lineno_1" != "x$as_lineno_2" &&
22324   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22325
22326   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22327   # uniformly replaced by the line number.  The first 'sed' inserts a
22328   # line-number line after each line using $LINENO; the second 'sed'
22329   # does the real work.  The second script uses 'N' to pair each
22330   # line-number line with the line containing $LINENO, and appends
22331   # trailing '-' during substitution so that $LINENO is not a special
22332   # case at line end.
22333   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22334   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22335   # E. McMahon (1931-1989) for sed's syntax.  :-)
22336   sed -n '
22337     p
22338     /[$]LINENO/=
22339   ' <$as_myself |
22340     sed '
22341       s/[$]LINENO.*/&-/
22342       t lineno
22343       b
22344       :lineno
22345       N
22346       :loop
22347       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22348       t loop
22349       s/-\n.*//
22350     ' >$as_me.lineno &&
22351   chmod +x "$as_me.lineno" ||
22352     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22353    { (exit 1); exit 1; }; }
22354
22355   # Don't try to exec as it changes $[0], causing all sort of problems
22356   # (the dirname of $[0] is not the place where we might find the
22357   # original and so on.  Autoconf is especially sensitive to this).
22358   . "./$as_me.lineno"
22359   # Exit status is that of the last command.
22360   exit
22361 }
22362
22363
22364 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22365   as_dirname=dirname
22366 else
22367   as_dirname=false
22368 fi
22369
22370 ECHO_C= ECHO_N= ECHO_T=
22371 case `echo -n x` in
22372 -n*)
22373   case `echo 'x\c'` in
22374   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22375   *)   ECHO_C='\c';;
22376   esac;;
22377 *)
22378   ECHO_N='-n';;
22379 esac
22380
22381 if expr a : '\(a\)' >/dev/null 2>&1 &&
22382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22383   as_expr=expr
22384 else
22385   as_expr=false
22386 fi
22387
22388 rm -f conf$$ conf$$.exe conf$$.file
22389 if test -d conf$$.dir; then
22390   rm -f conf$$.dir/conf$$.file
22391 else
22392   rm -f conf$$.dir
22393   mkdir conf$$.dir
22394 fi
22395 echo >conf$$.file
22396 if ln -s conf$$.file conf$$ 2>/dev/null; then
22397   as_ln_s='ln -s'
22398   # ... but there are two gotchas:
22399   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22400   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22401   # In both cases, we have to default to `cp -p'.
22402   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22403     as_ln_s='cp -p'
22404 elif ln conf$$.file conf$$ 2>/dev/null; then
22405   as_ln_s=ln
22406 else
22407   as_ln_s='cp -p'
22408 fi
22409 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22410 rmdir conf$$.dir 2>/dev/null
22411
22412 if mkdir -p . 2>/dev/null; then
22413   as_mkdir_p=:
22414 else
22415   test -d ./-p && rmdir ./-p
22416   as_mkdir_p=false
22417 fi
22418
22419 if test -x / >/dev/null 2>&1; then
22420   as_test_x='test -x'
22421 else
22422   if ls -dL / >/dev/null 2>&1; then
22423     as_ls_L_option=L
22424   else
22425     as_ls_L_option=
22426   fi
22427   as_test_x='
22428     eval sh -c '\''
22429       if test -d "$1"; then
22430         test -d "$1/.";
22431       else
22432         case $1 in
22433         -*)set "./$1";;
22434         esac;
22435         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22436         ???[sx]*):;;*)false;;esac;fi
22437     '\'' sh
22438   '
22439 fi
22440 as_executable_p=$as_test_x
22441
22442 # Sed expression to map a string onto a valid CPP name.
22443 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22444
22445 # Sed expression to map a string onto a valid variable name.
22446 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22447
22448
22449 exec 6>&1
22450
22451 # Save the log message, to keep $[0] and so on meaningful, and to
22452 # report actual input values of CONFIG_FILES etc. instead of their
22453 # values after options handling.
22454 ac_log="
22455 This file was extended by sharing-plugin-template $as_me 0.1, which was
22456 generated by GNU Autoconf 2.61.  Invocation command line was
22457
22458   CONFIG_FILES    = $CONFIG_FILES
22459   CONFIG_HEADERS  = $CONFIG_HEADERS
22460   CONFIG_LINKS    = $CONFIG_LINKS
22461   CONFIG_COMMANDS = $CONFIG_COMMANDS
22462   $ $0 $@
22463
22464 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22465 "
22466
22467 _ACEOF
22468
22469 cat >>$CONFIG_STATUS <<_ACEOF
22470 # Files that config.status was made for.
22471 config_files="$ac_config_files"
22472 config_headers="$ac_config_headers"
22473 config_commands="$ac_config_commands"
22474
22475 _ACEOF
22476
22477 cat >>$CONFIG_STATUS <<\_ACEOF
22478 ac_cs_usage="\
22479 \`$as_me' instantiates files from templates according to the
22480 current configuration.
22481
22482 Usage: $0 [OPTIONS] [FILE]...
22483
22484   -h, --help       print this help, then exit
22485   -V, --version    print version number and configuration settings, then exit
22486   -q, --quiet      do not print progress messages
22487   -d, --debug      don't remove temporary files
22488       --recheck    update $as_me by reconfiguring in the same conditions
22489   --file=FILE[:TEMPLATE]
22490                    instantiate the configuration file FILE
22491   --header=FILE[:TEMPLATE]
22492                    instantiate the configuration header FILE
22493
22494 Configuration files:
22495 $config_files
22496
22497 Configuration headers:
22498 $config_headers
22499
22500 Configuration commands:
22501 $config_commands
22502
22503 Report bugs to <bug-autoconf@gnu.org>."
22504
22505 _ACEOF
22506 cat >>$CONFIG_STATUS <<_ACEOF
22507 ac_cs_version="\\
22508 sharing-plugin-template config.status 0.1
22509 configured by $0, generated by GNU Autoconf 2.61,
22510   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22511
22512 Copyright (C) 2006 Free Software Foundation, Inc.
22513 This config.status script is free software; the Free Software Foundation
22514 gives unlimited permission to copy, distribute and modify it."
22515
22516 ac_pwd='$ac_pwd'
22517 srcdir='$srcdir'
22518 INSTALL='$INSTALL'
22519 _ACEOF
22520
22521 cat >>$CONFIG_STATUS <<\_ACEOF
22522 # If no file are specified by the user, then we need to provide default
22523 # value.  By we need to know if files were specified by the user.
22524 ac_need_defaults=:
22525 while test $# != 0
22526 do
22527   case $1 in
22528   --*=*)
22529     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22530     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22531     ac_shift=:
22532     ;;
22533   *)
22534     ac_option=$1
22535     ac_optarg=$2
22536     ac_shift=shift
22537     ;;
22538   esac
22539
22540   case $ac_option in
22541   # Handling of the options.
22542   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22543     ac_cs_recheck=: ;;
22544   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22545     echo "$ac_cs_version"; exit ;;
22546   --debug | --debu | --deb | --de | --d | -d )
22547     debug=: ;;
22548   --file | --fil | --fi | --f )
22549     $ac_shift
22550     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22551     ac_need_defaults=false;;
22552   --header | --heade | --head | --hea )
22553     $ac_shift
22554     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22555     ac_need_defaults=false;;
22556   --he | --h)
22557     # Conflict between --help and --header
22558     { echo "$as_me: error: ambiguous option: $1
22559 Try \`$0 --help' for more information." >&2
22560    { (exit 1); exit 1; }; };;
22561   --help | --hel | -h )
22562     echo "$ac_cs_usage"; exit ;;
22563   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22564   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22565     ac_cs_silent=: ;;
22566
22567   # This is an error.
22568   -*) { echo "$as_me: error: unrecognized option: $1
22569 Try \`$0 --help' for more information." >&2
22570    { (exit 1); exit 1; }; } ;;
22571
22572   *) ac_config_targets="$ac_config_targets $1"
22573      ac_need_defaults=false ;;
22574
22575   esac
22576   shift
22577 done
22578
22579 ac_configure_extra_args=
22580
22581 if $ac_cs_silent; then
22582   exec 6>/dev/null
22583   ac_configure_extra_args="$ac_configure_extra_args --silent"
22584 fi
22585
22586 _ACEOF
22587 cat >>$CONFIG_STATUS <<_ACEOF
22588 if \$ac_cs_recheck; then
22589   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22590   CONFIG_SHELL=$SHELL
22591   export CONFIG_SHELL
22592   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22593 fi
22594
22595 _ACEOF
22596 cat >>$CONFIG_STATUS <<\_ACEOF
22597 exec 5>>config.log
22598 {
22599   echo
22600   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22601 ## Running $as_me. ##
22602 _ASBOX
22603   echo "$ac_log"
22604 } >&5
22605
22606 _ACEOF
22607 cat >>$CONFIG_STATUS <<_ACEOF
22608 #
22609 # INIT-COMMANDS
22610 #
22611 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22612
22613 _ACEOF
22614
22615 cat >>$CONFIG_STATUS <<\_ACEOF
22616
22617 # Handling of arguments.
22618 for ac_config_target in $ac_config_targets
22619 do
22620   case $ac_config_target in
22621     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22622     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22623     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22624     "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
22625     "data/template.service.xml") CONFIG_FILES="$CONFIG_FILES data/template.service.xml" ;;
22626     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22627
22628   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22629 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22630    { (exit 1); exit 1; }; };;
22631   esac
22632 done
22633
22634
22635 # If the user did not use the arguments to specify the items to instantiate,
22636 # then the envvar interface is used.  Set only those that are not.
22637 # We use the long form for the default assignment because of an extremely
22638 # bizarre bug on SunOS 4.1.3.
22639 if $ac_need_defaults; then
22640   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22641   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22642   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22643 fi
22644
22645 # Have a temporary directory for convenience.  Make it in the build tree
22646 # simply because there is no reason against having it here, and in addition,
22647 # creating and moving files from /tmp can sometimes cause problems.
22648 # Hook for its removal unless debugging.
22649 # Note that there is a small window in which the directory will not be cleaned:
22650 # after its creation but before its name has been assigned to `$tmp'.
22651 $debug ||
22652 {
22653   tmp=
22654   trap 'exit_status=$?
22655   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22656 ' 0
22657   trap '{ (exit 1); exit 1; }' 1 2 13 15
22658 }
22659 # Create a (secure) tmp directory for tmp files.
22660
22661 {
22662   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22663   test -n "$tmp" && test -d "$tmp"
22664 }  ||
22665 {
22666   tmp=./conf$$-$RANDOM
22667   (umask 077 && mkdir "$tmp")
22668 } ||
22669 {
22670    echo "$me: cannot create a temporary directory in ." >&2
22671    { (exit 1); exit 1; }
22672 }
22673
22674 #
22675 # Set up the sed scripts for CONFIG_FILES section.
22676 #
22677
22678 # No need to generate the scripts if there are no CONFIG_FILES.
22679 # This happens for instance when ./config.status config.h
22680 if test -n "$CONFIG_FILES"; then
22681
22682 _ACEOF
22683
22684
22685
22686 ac_delim='%!_!# '
22687 for ac_last_try in false false false false false :; do
22688   cat >conf$$subs.sed <<_ACEOF
22689 SHELL!$SHELL$ac_delim
22690 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22691 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22692 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22693 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22694 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22695 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22696 exec_prefix!$exec_prefix$ac_delim
22697 prefix!$prefix$ac_delim
22698 program_transform_name!$program_transform_name$ac_delim
22699 bindir!$bindir$ac_delim
22700 sbindir!$sbindir$ac_delim
22701 libexecdir!$libexecdir$ac_delim
22702 datarootdir!$datarootdir$ac_delim
22703 datadir!$datadir$ac_delim
22704 sysconfdir!$sysconfdir$ac_delim
22705 sharedstatedir!$sharedstatedir$ac_delim
22706 localstatedir!$localstatedir$ac_delim
22707 includedir!$includedir$ac_delim
22708 oldincludedir!$oldincludedir$ac_delim
22709 docdir!$docdir$ac_delim
22710 infodir!$infodir$ac_delim
22711 htmldir!$htmldir$ac_delim
22712 dvidir!$dvidir$ac_delim
22713 pdfdir!$pdfdir$ac_delim
22714 psdir!$psdir$ac_delim
22715 libdir!$libdir$ac_delim
22716 localedir!$localedir$ac_delim
22717 mandir!$mandir$ac_delim
22718 DEFS!$DEFS$ac_delim
22719 ECHO_C!$ECHO_C$ac_delim
22720 ECHO_N!$ECHO_N$ac_delim
22721 ECHO_T!$ECHO_T$ac_delim
22722 LIBS!$LIBS$ac_delim
22723 build_alias!$build_alias$ac_delim
22724 host_alias!$host_alias$ac_delim
22725 target_alias!$target_alias$ac_delim
22726 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22727 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22728 INSTALL_DATA!$INSTALL_DATA$ac_delim
22729 CYGPATH_W!$CYGPATH_W$ac_delim
22730 PACKAGE!$PACKAGE$ac_delim
22731 VERSION!$VERSION$ac_delim
22732 ACLOCAL!$ACLOCAL$ac_delim
22733 AUTOCONF!$AUTOCONF$ac_delim
22734 AUTOMAKE!$AUTOMAKE$ac_delim
22735 AUTOHEADER!$AUTOHEADER$ac_delim
22736 MAKEINFO!$MAKEINFO$ac_delim
22737 AMTAR!$AMTAR$ac_delim
22738 install_sh!$install_sh$ac_delim
22739 STRIP!$STRIP$ac_delim
22740 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22741 mkdir_p!$mkdir_p$ac_delim
22742 AWK!$AWK$ac_delim
22743 SET_MAKE!$SET_MAKE$ac_delim
22744 am__leading_dot!$am__leading_dot$ac_delim
22745 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
22746 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
22747 MAINT!$MAINT$ac_delim
22748 CC!$CC$ac_delim
22749 CFLAGS!$CFLAGS$ac_delim
22750 LDFLAGS!$LDFLAGS$ac_delim
22751 CPPFLAGS!$CPPFLAGS$ac_delim
22752 ac_ct_CC!$ac_ct_CC$ac_delim
22753 EXEEXT!$EXEEXT$ac_delim
22754 OBJEXT!$OBJEXT$ac_delim
22755 DEPDIR!$DEPDIR$ac_delim
22756 am__include!$am__include$ac_delim
22757 am__quote!$am__quote$ac_delim
22758 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22759 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22760 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22761 CCDEPMODE!$CCDEPMODE$ac_delim
22762 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22763 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22764 CXX!$CXX$ac_delim
22765 CXXFLAGS!$CXXFLAGS$ac_delim
22766 ac_ct_CXX!$ac_ct_CXX$ac_delim
22767 CXXDEPMODE!$CXXDEPMODE$ac_delim
22768 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22769 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22770 CPP!$CPP$ac_delim
22771 GREP!$GREP$ac_delim
22772 EGREP!$EGREP$ac_delim
22773 LN_S!$LN_S$ac_delim
22774 build!$build$ac_delim
22775 build_cpu!$build_cpu$ac_delim
22776 build_vendor!$build_vendor$ac_delim
22777 build_os!$build_os$ac_delim
22778 host!$host$ac_delim
22779 host_cpu!$host_cpu$ac_delim
22780 host_vendor!$host_vendor$ac_delim
22781 host_os!$host_os$ac_delim
22782 SED!$SED$ac_delim
22783 ECHO!$ECHO$ac_delim
22784 AR!$AR$ac_delim
22785 RANLIB!$RANLIB$ac_delim
22786 _ACEOF
22787
22788   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22789     break
22790   elif $ac_last_try; then
22791     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22792 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22793    { (exit 1); exit 1; }; }
22794   else
22795     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22796   fi
22797 done
22798
22799 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22800 if test -n "$ac_eof"; then
22801   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22802   ac_eof=`expr $ac_eof + 1`
22803 fi
22804
22805 cat >>$CONFIG_STATUS <<_ACEOF
22806 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22807 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22808 _ACEOF
22809 sed '
22810 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22811 s/^/s,@/; s/!/@,|#_!!_#|/
22812 :n
22813 t n
22814 s/'"$ac_delim"'$/,g/; t
22815 s/$/\\/; p
22816 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22817 ' >>$CONFIG_STATUS <conf$$subs.sed
22818 rm -f conf$$subs.sed
22819 cat >>$CONFIG_STATUS <<_ACEOF
22820 CEOF$ac_eof
22821 _ACEOF
22822
22823
22824 ac_delim='%!_!# '
22825 for ac_last_try in false false false false false :; do
22826   cat >conf$$subs.sed <<_ACEOF
22827 DSYMUTIL!$DSYMUTIL$ac_delim
22828 NMEDIT!$NMEDIT$ac_delim
22829 CXXCPP!$CXXCPP$ac_delim
22830 F77!$F77$ac_delim
22831 FFLAGS!$FFLAGS$ac_delim
22832 ac_ct_F77!$ac_ct_F77$ac_delim
22833 LIBTOOL!$LIBTOOL$ac_delim
22834 PKG_CONFIG!$PKG_CONFIG$ac_delim
22835 PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim
22836 PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim
22837 SHARING_CFLAGS!$SHARING_CFLAGS$ac_delim
22838 SHARING_LIBS!$SHARING_LIBS$ac_delim
22839 currentdir!$currentdir$ac_delim
22840 pluginsdir!$pluginsdir$ac_delim
22841 servicesdir!$servicesdir$ac_delim
22842 DEBUG_CFLAGS!$DEBUG_CFLAGS$ac_delim
22843 PACKAGE_LOCALE_DIR!$PACKAGE_LOCALE_DIR$ac_delim
22844 LIBOBJS!$LIBOBJS$ac_delim
22845 LTLIBOBJS!$LTLIBOBJS$ac_delim
22846 _ACEOF
22847
22848   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
22849     break
22850   elif $ac_last_try; then
22851     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22852 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22853    { (exit 1); exit 1; }; }
22854   else
22855     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22856   fi
22857 done
22858
22859 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22860 if test -n "$ac_eof"; then
22861   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22862   ac_eof=`expr $ac_eof + 1`
22863 fi
22864
22865 cat >>$CONFIG_STATUS <<_ACEOF
22866 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22867 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22868 _ACEOF
22869 sed '
22870 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22871 s/^/s,@/; s/!/@,|#_!!_#|/
22872 :n
22873 t n
22874 s/'"$ac_delim"'$/,g/; t
22875 s/$/\\/; p
22876 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22877 ' >>$CONFIG_STATUS <conf$$subs.sed
22878 rm -f conf$$subs.sed
22879 cat >>$CONFIG_STATUS <<_ACEOF
22880 :end
22881 s/|#_!!_#|//g
22882 CEOF$ac_eof
22883 _ACEOF
22884
22885
22886 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22887 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22888 # trailing colons and then remove the whole line if VPATH becomes empty
22889 # (actually we leave an empty line to preserve line numbers).
22890 if test "x$srcdir" = x.; then
22891   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22892 s/:*\$(srcdir):*/:/
22893 s/:*\${srcdir}:*/:/
22894 s/:*@srcdir@:*/:/
22895 s/^\([^=]*=[     ]*\):*/\1/
22896 s/:*$//
22897 s/^[^=]*=[       ]*$//
22898 }'
22899 fi
22900
22901 cat >>$CONFIG_STATUS <<\_ACEOF
22902 fi # test -n "$CONFIG_FILES"
22903
22904
22905 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22906 do
22907   case $ac_tag in
22908   :[FHLC]) ac_mode=$ac_tag; continue;;
22909   esac
22910   case $ac_mode$ac_tag in
22911   :[FHL]*:*);;
22912   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22913 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22914    { (exit 1); exit 1; }; };;
22915   :[FH]-) ac_tag=-:-;;
22916   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22917   esac
22918   ac_save_IFS=$IFS
22919   IFS=:
22920   set x $ac_tag
22921   IFS=$ac_save_IFS
22922   shift
22923   ac_file=$1
22924   shift
22925
22926   case $ac_mode in
22927   :L) ac_source=$1;;
22928   :[FH])
22929     ac_file_inputs=
22930     for ac_f
22931     do
22932       case $ac_f in
22933       -) ac_f="$tmp/stdin";;
22934       *) # Look for the file first in the build tree, then in the source tree
22935          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22936          # because $ac_f cannot contain `:'.
22937          test -f "$ac_f" ||
22938            case $ac_f in
22939            [\\/$]*) false;;
22940            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22941            esac ||
22942            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22943 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22944    { (exit 1); exit 1; }; };;
22945       esac
22946       ac_file_inputs="$ac_file_inputs $ac_f"
22947     done
22948
22949     # Let's still pretend it is `configure' which instantiates (i.e., don't
22950     # use $as_me), people would be surprised to read:
22951     #    /* config.h.  Generated by config.status.  */
22952     configure_input="Generated from "`IFS=:
22953           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22954     if test x"$ac_file" != x-; then
22955       configure_input="$ac_file.  $configure_input"
22956       { echo "$as_me:$LINENO: creating $ac_file" >&5
22957 echo "$as_me: creating $ac_file" >&6;}
22958     fi
22959
22960     case $ac_tag in
22961     *:-:* | *:-) cat >"$tmp/stdin";;
22962     esac
22963     ;;
22964   esac
22965
22966   ac_dir=`$as_dirname -- "$ac_file" ||
22967 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22968          X"$ac_file" : 'X\(//\)[^/]' \| \
22969          X"$ac_file" : 'X\(//\)$' \| \
22970          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22971 echo X"$ac_file" |
22972     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22973             s//\1/
22974             q
22975           }
22976           /^X\(\/\/\)[^/].*/{
22977             s//\1/
22978             q
22979           }
22980           /^X\(\/\/\)$/{
22981             s//\1/
22982             q
22983           }
22984           /^X\(\/\).*/{
22985             s//\1/
22986             q
22987           }
22988           s/.*/./; q'`
22989   { as_dir="$ac_dir"
22990   case $as_dir in #(
22991   -*) as_dir=./$as_dir;;
22992   esac
22993   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22994     as_dirs=
22995     while :; do
22996       case $as_dir in #(
22997       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22998       *) as_qdir=$as_dir;;
22999       esac
23000       as_dirs="'$as_qdir' $as_dirs"
23001       as_dir=`$as_dirname -- "$as_dir" ||
23002 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23003          X"$as_dir" : 'X\(//\)[^/]' \| \
23004          X"$as_dir" : 'X\(//\)$' \| \
23005          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23006 echo X"$as_dir" |
23007     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23008             s//\1/
23009             q
23010           }
23011           /^X\(\/\/\)[^/].*/{
23012             s//\1/
23013             q
23014           }
23015           /^X\(\/\/\)$/{
23016             s//\1/
23017             q
23018           }
23019           /^X\(\/\).*/{
23020             s//\1/
23021             q
23022           }
23023           s/.*/./; q'`
23024       test -d "$as_dir" && break
23025     done
23026     test -z "$as_dirs" || eval "mkdir $as_dirs"
23027   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23028 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23029    { (exit 1); exit 1; }; }; }
23030   ac_builddir=.
23031
23032 case "$ac_dir" in
23033 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23034 *)
23035   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23036   # A ".." for each directory in $ac_dir_suffix.
23037   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23038   case $ac_top_builddir_sub in
23039   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23040   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23041   esac ;;
23042 esac
23043 ac_abs_top_builddir=$ac_pwd
23044 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23045 # for backward compatibility:
23046 ac_top_builddir=$ac_top_build_prefix
23047
23048 case $srcdir in
23049   .)  # We are building in place.
23050     ac_srcdir=.
23051     ac_top_srcdir=$ac_top_builddir_sub
23052     ac_abs_top_srcdir=$ac_pwd ;;
23053   [\\/]* | ?:[\\/]* )  # Absolute name.
23054     ac_srcdir=$srcdir$ac_dir_suffix;
23055     ac_top_srcdir=$srcdir
23056     ac_abs_top_srcdir=$srcdir ;;
23057   *) # Relative name.
23058     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23059     ac_top_srcdir=$ac_top_build_prefix$srcdir
23060     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23061 esac
23062 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23063
23064
23065   case $ac_mode in
23066   :F)
23067   #
23068   # CONFIG_FILE
23069   #
23070
23071   case $INSTALL in
23072   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23073   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23074   esac
23075 _ACEOF
23076
23077 cat >>$CONFIG_STATUS <<\_ACEOF
23078 # If the template does not know about datarootdir, expand it.
23079 # FIXME: This hack should be removed a few years after 2.60.
23080 ac_datarootdir_hack=; ac_datarootdir_seen=
23081
23082 case `sed -n '/datarootdir/ {
23083   p
23084   q
23085 }
23086 /@datadir@/p
23087 /@docdir@/p
23088 /@infodir@/p
23089 /@localedir@/p
23090 /@mandir@/p
23091 ' $ac_file_inputs` in
23092 *datarootdir*) ac_datarootdir_seen=yes;;
23093 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23094   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23095 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23096 _ACEOF
23097 cat >>$CONFIG_STATUS <<_ACEOF
23098   ac_datarootdir_hack='
23099   s&@datadir@&$datadir&g
23100   s&@docdir@&$docdir&g
23101   s&@infodir@&$infodir&g
23102   s&@localedir@&$localedir&g
23103   s&@mandir@&$mandir&g
23104     s&\\\${datarootdir}&$datarootdir&g' ;;
23105 esac
23106 _ACEOF
23107
23108 # Neutralize VPATH when `$srcdir' = `.'.
23109 # Shell code in configure.ac might set extrasub.
23110 # FIXME: do we really want to maintain this feature?
23111 cat >>$CONFIG_STATUS <<_ACEOF
23112   sed "$ac_vpsub
23113 $extrasub
23114 _ACEOF
23115 cat >>$CONFIG_STATUS <<\_ACEOF
23116 :t
23117 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23118 s&@configure_input@&$configure_input&;t t
23119 s&@top_builddir@&$ac_top_builddir_sub&;t t
23120 s&@srcdir@&$ac_srcdir&;t t
23121 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23122 s&@top_srcdir@&$ac_top_srcdir&;t t
23123 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23124 s&@builddir@&$ac_builddir&;t t
23125 s&@abs_builddir@&$ac_abs_builddir&;t t
23126 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23127 s&@INSTALL@&$ac_INSTALL&;t t
23128 $ac_datarootdir_hack
23129 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23130
23131 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23132   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23133   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23134   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23135 which seems to be undefined.  Please make sure it is defined." >&5
23136 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23137 which seems to be undefined.  Please make sure it is defined." >&2;}
23138
23139   rm -f "$tmp/stdin"
23140   case $ac_file in
23141   -) cat "$tmp/out"; rm -f "$tmp/out";;
23142   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23143   esac
23144  ;;
23145   :H)
23146   #
23147   # CONFIG_HEADER
23148   #
23149 _ACEOF
23150
23151 # Transform confdefs.h into a sed script `conftest.defines', that
23152 # substitutes the proper values into config.h.in to produce config.h.
23153 rm -f conftest.defines conftest.tail
23154 # First, append a space to every undef/define line, to ease matching.
23155 echo 's/$/ /' >conftest.defines
23156 # Then, protect against being on the right side of a sed subst, or in
23157 # an unquoted here document, in config.status.  If some macros were
23158 # called several times there might be several #defines for the same
23159 # symbol, which is useless.  But do not sort them, since the last
23160 # AC_DEFINE must be honored.
23161 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23162 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23163 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23164 # PARAMS is the parameter list in the macro definition--in most cases, it's
23165 # just an empty string.
23166 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23167 ac_dB='\\)[      (].*,\\1define\\2'
23168 ac_dC=' '
23169 ac_dD=' ,'
23170
23171 uniq confdefs.h |
23172   sed -n '
23173         t rset
23174         :rset
23175         s/^[     ]*#[    ]*define[       ][      ]*//
23176         t ok
23177         d
23178         :ok
23179         s/[\\&,]/\\&/g
23180         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23181         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23182   ' >>conftest.defines
23183
23184 # Remove the space that was appended to ease matching.
23185 # Then replace #undef with comments.  This is necessary, for
23186 # example, in the case of _POSIX_SOURCE, which is predefined and required
23187 # on some systems where configure will not decide to define it.
23188 # (The regexp can be short, since the line contains either #define or #undef.)
23189 echo 's/ $//
23190 s,^[     #]*u.*,/* & */,' >>conftest.defines
23191
23192 # Break up conftest.defines:
23193 ac_max_sed_lines=50
23194
23195 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23196 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23197 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23198 # et cetera.
23199 ac_in='$ac_file_inputs'
23200 ac_out='"$tmp/out1"'
23201 ac_nxt='"$tmp/out2"'
23202
23203 while :
23204 do
23205   # Write a here document:
23206     cat >>$CONFIG_STATUS <<_ACEOF
23207     # First, check the format of the line:
23208     cat >"\$tmp/defines.sed" <<\\CEOF
23209 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23210 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23211 b
23212 :def
23213 _ACEOF
23214   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23215   echo 'CEOF
23216     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23217   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23218   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23219   grep . conftest.tail >/dev/null || break
23220   rm -f conftest.defines
23221   mv conftest.tail conftest.defines
23222 done
23223 rm -f conftest.defines conftest.tail
23224
23225 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23226 cat >>$CONFIG_STATUS <<\_ACEOF
23227   if test x"$ac_file" != x-; then
23228     echo "/* $configure_input  */" >"$tmp/config.h"
23229     cat "$ac_result" >>"$tmp/config.h"
23230     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23231       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23232 echo "$as_me: $ac_file is unchanged" >&6;}
23233     else
23234       rm -f $ac_file
23235       mv "$tmp/config.h" $ac_file
23236     fi
23237   else
23238     echo "/* $configure_input  */"
23239     cat "$ac_result"
23240   fi
23241   rm -f "$tmp/out12"
23242 # Compute $ac_file's index in $config_headers.
23243 _am_stamp_count=1
23244 for _am_header in $config_headers :; do
23245   case $_am_header in
23246     $ac_file | $ac_file:* )
23247       break ;;
23248     * )
23249       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23250   esac
23251 done
23252 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23253 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23254          X$ac_file : 'X\(//\)[^/]' \| \
23255          X$ac_file : 'X\(//\)$' \| \
23256          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23257 echo X$ac_file |
23258     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23259             s//\1/
23260             q
23261           }
23262           /^X\(\/\/\)[^/].*/{
23263             s//\1/
23264             q
23265           }
23266           /^X\(\/\/\)$/{
23267             s//\1/
23268             q
23269           }
23270           /^X\(\/\).*/{
23271             s//\1/
23272             q
23273           }
23274           s/.*/./; q'`/stamp-h$_am_stamp_count
23275  ;;
23276
23277   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23278 echo "$as_me: executing $ac_file commands" >&6;}
23279  ;;
23280   esac
23281
23282
23283   case $ac_file$ac_mode in
23284     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23285   # Strip MF so we end up with the name of the file.
23286   mf=`echo "$mf" | sed -e 's/:.*$//'`
23287   # Check whether this is an Automake generated Makefile or not.
23288   # We used to match only the files named `Makefile.in', but
23289   # some people rename them; so instead we look at the file content.
23290   # Grep'ing the first line is not enough: some people post-process
23291   # each Makefile.in and add a new line on top of each file to say so.
23292   # So let's grep whole file.
23293   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23294     dirpart=`$as_dirname -- "$mf" ||
23295 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23296          X"$mf" : 'X\(//\)[^/]' \| \
23297          X"$mf" : 'X\(//\)$' \| \
23298          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23299 echo X"$mf" |
23300     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23301             s//\1/
23302             q
23303           }
23304           /^X\(\/\/\)[^/].*/{
23305             s//\1/
23306             q
23307           }
23308           /^X\(\/\/\)$/{
23309             s//\1/
23310             q
23311           }
23312           /^X\(\/\).*/{
23313             s//\1/
23314             q
23315           }
23316           s/.*/./; q'`
23317   else
23318     continue
23319   fi
23320   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23321   # Extract the definition of DEP_FILES from the Makefile without
23322   # running `make'.
23323   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23324   test -z "$DEPDIR" && continue
23325   # When using ansi2knr, U may be empty or an underscore; expand it
23326   U=`sed -n 's/^U = //p' < "$mf"`
23327   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23328   # We invoke sed twice because it is the simplest approach to
23329   # changing $(DEPDIR) to its actual value in the expansion.
23330   for file in `sed -n '
23331     /^DEP_FILES = .*\\\\$/ {
23332       s/^DEP_FILES = //
23333       :loop
23334         s/\\\\$//
23335         p
23336         n
23337         /\\\\$/ b loop
23338       p
23339     }
23340     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23341        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23342     # Make sure the directory exists.
23343     test -f "$dirpart/$file" && continue
23344     fdir=`$as_dirname -- "$file" ||
23345 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23346          X"$file" : 'X\(//\)[^/]' \| \
23347          X"$file" : 'X\(//\)$' \| \
23348          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23349 echo X"$file" |
23350     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23351             s//\1/
23352             q
23353           }
23354           /^X\(\/\/\)[^/].*/{
23355             s//\1/
23356             q
23357           }
23358           /^X\(\/\/\)$/{
23359             s//\1/
23360             q
23361           }
23362           /^X\(\/\).*/{
23363             s//\1/
23364             q
23365           }
23366           s/.*/./; q'`
23367     { as_dir=$dirpart/$fdir
23368   case $as_dir in #(
23369   -*) as_dir=./$as_dir;;
23370   esac
23371   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23372     as_dirs=
23373     while :; do
23374       case $as_dir in #(
23375       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23376       *) as_qdir=$as_dir;;
23377       esac
23378       as_dirs="'$as_qdir' $as_dirs"
23379       as_dir=`$as_dirname -- "$as_dir" ||
23380 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23381          X"$as_dir" : 'X\(//\)[^/]' \| \
23382          X"$as_dir" : 'X\(//\)$' \| \
23383          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23384 echo X"$as_dir" |
23385     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23386             s//\1/
23387             q
23388           }
23389           /^X\(\/\/\)[^/].*/{
23390             s//\1/
23391             q
23392           }
23393           /^X\(\/\/\)$/{
23394             s//\1/
23395             q
23396           }
23397           /^X\(\/\).*/{
23398             s//\1/
23399             q
23400           }
23401           s/.*/./; q'`
23402       test -d "$as_dir" && break
23403     done
23404     test -z "$as_dirs" || eval "mkdir $as_dirs"
23405   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23406 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23407    { (exit 1); exit 1; }; }; }
23408     # echo "creating $dirpart/$file"
23409     echo '# dummy' > "$dirpart/$file"
23410   done
23411 done
23412  ;;
23413
23414   esac
23415 done # for ac_tag
23416
23417
23418 { (exit 0); exit 0; }
23419 _ACEOF
23420 chmod +x $CONFIG_STATUS
23421 ac_clean_files=$ac_clean_files_save
23422
23423
23424 # configure is writing to config.log, and then calls config.status.
23425 # config.status does its own redirection, appending to config.log.
23426 # Unfortunately, on DOS this fails, as config.log is still kept open
23427 # by configure, so config.status won't be able to write to it; its
23428 # output is simply discarded.  So we exec the FD to /dev/null,
23429 # effectively closing config.log, so it can be properly (re)opened and
23430 # appended to by config.status.  When coming back to configure, we
23431 # need to make the FD available again.
23432 if test "$no_create" != yes; then
23433   ac_cs_success=:
23434   ac_config_status_args=
23435   test "$silent" = yes &&
23436     ac_config_status_args="$ac_config_status_args --quiet"
23437   exec 5>/dev/null
23438   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23439   exec 5>>config.log
23440   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23441   # would make configure fail if this is the last instruction.
23442   $ac_cs_success || { (exit 1); exit 1; }
23443 fi
23444
23445
23446
23447
23448 echo ""
23449 echo "                  $PACKAGE $VERSION"
23450 echo "                 ==================="
23451 echo ""
23452 echo "           Debug messages:   ${enable_debug}"
23453 echo "       Plug-ins directory:   ${pluginsdir}"
23454 echo "       Services directory:   ${servicesdir}"
23455 echo ""