6a3b96debf6b1517a470e3b0c30555dc92b8f7c5
[platform/upstream/syncevolution.git] / src / synthesis / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="src/sysync/engineinterface.cpp"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 #  include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 #  include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
769
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 INSTALL_PROGRAM
808 INSTALL_SCRIPT
809 INSTALL_DATA
810 am__isrc
811 CYGPATH_W
812 PACKAGE
813 VERSION
814 ACLOCAL
815 AUTOCONF
816 AUTOMAKE
817 AUTOHEADER
818 MAKEINFO
819 install_sh
820 STRIP
821 INSTALL_STRIP_PROGRAM
822 mkdir_p
823 AWK
824 SET_MAKE
825 am__leading_dot
826 AMTAR
827 am__tar
828 am__untar
829 CXX
830 CXXFLAGS
831 LDFLAGS
832 CPPFLAGS
833 ac_ct_CXX
834 EXEEXT
835 OBJEXT
836 DEPDIR
837 am__include
838 am__quote
839 AMDEP_TRUE
840 AMDEP_FALSE
841 AMDEPBACKSLASH
842 CXXDEPMODE
843 am__fastdepCXX_TRUE
844 am__fastdepCXX_FALSE
845 build
846 build_cpu
847 build_vendor
848 build_os
849 host
850 host_cpu
851 host_vendor
852 host_os
853 CC
854 CFLAGS
855 ac_ct_CC
856 CCDEPMODE
857 am__fastdepCC_TRUE
858 am__fastdepCC_FALSE
859 SED
860 GREP
861 EGREP
862 LN_S
863 ECHO
864 AR
865 RANLIB
866 DSYMUTIL
867 NMEDIT
868 CPP
869 CXXCPP
870 F77
871 FFLAGS
872 ac_ct_F77
873 LIBTOOL
874 PKG_CONFIG
875 PCRE_CFLAGS
876 PCRE_LIBS
877 SQLITE3_CFLAGS
878 SQLITE3_LIBS
879 LIBICAL_CFLAGS
880 LIBICAL_LIBS
881 LIBECAL_CFLAGS
882 LIBECAL_LIBS
883 XMLPARSE_LIBS
884 XMLPARSE_CFLAGS
885 COND_XMLPARSE_TRUE
886 COND_XMLPARSE_FALSE
887 COND_STATIC_TRUE
888 COND_STATIC_FALSE
889 LIBOBJS
890 LTLIBOBJS'
891 ac_subst_files=''
892       ac_precious_vars='build_alias
893 host_alias
894 target_alias
895 CXX
896 CXXFLAGS
897 LDFLAGS
898 LIBS
899 CPPFLAGS
900 CCC
901 CC
902 CFLAGS
903 CPP
904 CXXCPP
905 F77
906 FFLAGS
907 PKG_CONFIG
908 PCRE_CFLAGS
909 PCRE_LIBS
910 SQLITE3_CFLAGS
911 SQLITE3_LIBS
912 LIBICAL_CFLAGS
913 LIBICAL_LIBS
914 LIBECAL_CFLAGS
915 LIBECAL_LIBS'
916
917
918 # Initialize some variables set by options.
919 ac_init_help=
920 ac_init_version=false
921 # The variables have the same names as the options, with
922 # dashes changed to underlines.
923 cache_file=/dev/null
924 exec_prefix=NONE
925 no_create=
926 no_recursion=
927 prefix=NONE
928 program_prefix=NONE
929 program_suffix=NONE
930 program_transform_name=s,x,x,
931 silent=
932 site=
933 srcdir=
934 verbose=
935 x_includes=NONE
936 x_libraries=NONE
937
938 # Installation directory options.
939 # These are left unexpanded so users can "make install exec_prefix=/foo"
940 # and all the variables that are supposed to be based on exec_prefix
941 # by default will actually change.
942 # Use braces instead of parens because sh, perl, etc. also accept them.
943 # (The list follows the same order as the GNU Coding Standards.)
944 bindir='${exec_prefix}/bin'
945 sbindir='${exec_prefix}/sbin'
946 libexecdir='${exec_prefix}/libexec'
947 datarootdir='${prefix}/share'
948 datadir='${datarootdir}'
949 sysconfdir='${prefix}/etc'
950 sharedstatedir='${prefix}/com'
951 localstatedir='${prefix}/var'
952 includedir='${prefix}/include'
953 oldincludedir='/usr/include'
954 docdir='${datarootdir}/doc/${PACKAGE}'
955 infodir='${datarootdir}/info'
956 htmldir='${docdir}'
957 dvidir='${docdir}'
958 pdfdir='${docdir}'
959 psdir='${docdir}'
960 libdir='${exec_prefix}/lib'
961 localedir='${datarootdir}/locale'
962 mandir='${datarootdir}/man'
963
964 ac_prev=
965 ac_dashdash=
966 for ac_option
967 do
968   # If the previous option needs an argument, assign it.
969   if test -n "$ac_prev"; then
970     eval $ac_prev=\$ac_option
971     ac_prev=
972     continue
973   fi
974
975   case $ac_option in
976   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977   *)    ac_optarg=yes ;;
978   esac
979
980   # Accept the important Cygnus configure options, so we can diagnose typos.
981
982   case $ac_dashdash$ac_option in
983   --)
984     ac_dashdash=yes ;;
985
986   -bindir | --bindir | --bindi | --bind | --bin | --bi)
987     ac_prev=bindir ;;
988   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989     bindir=$ac_optarg ;;
990
991   -build | --build | --buil | --bui | --bu)
992     ac_prev=build_alias ;;
993   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994     build_alias=$ac_optarg ;;
995
996   -cache-file | --cache-file | --cache-fil | --cache-fi \
997   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998     ac_prev=cache_file ;;
999   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001     cache_file=$ac_optarg ;;
1002
1003   --config-cache | -C)
1004     cache_file=config.cache ;;
1005
1006   -datadir | --datadir | --datadi | --datad)
1007     ac_prev=datadir ;;
1008   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009     datadir=$ac_optarg ;;
1010
1011   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012   | --dataroo | --dataro | --datar)
1013     ac_prev=datarootdir ;;
1014   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016     datarootdir=$ac_optarg ;;
1017
1018   -disable-* | --disable-*)
1019     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020     # Reject names that are not valid shell variable names.
1021     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1022       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1023    { (exit 1); exit 1; }; }
1024     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1025     eval enable_$ac_feature=no ;;
1026
1027   -docdir | --docdir | --docdi | --doc | --do)
1028     ac_prev=docdir ;;
1029   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030     docdir=$ac_optarg ;;
1031
1032   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1033     ac_prev=dvidir ;;
1034   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035     dvidir=$ac_optarg ;;
1036
1037   -enable-* | --enable-*)
1038     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039     # Reject names that are not valid shell variable names.
1040     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1041       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1042    { (exit 1); exit 1; }; }
1043     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1044     eval enable_$ac_feature=\$ac_optarg ;;
1045
1046   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048   | --exec | --exe | --ex)
1049     ac_prev=exec_prefix ;;
1050   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052   | --exec=* | --exe=* | --ex=*)
1053     exec_prefix=$ac_optarg ;;
1054
1055   -gas | --gas | --ga | --g)
1056     # Obsolete; use --with-gas.
1057     with_gas=yes ;;
1058
1059   -help | --help | --hel | --he | -h)
1060     ac_init_help=long ;;
1061   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062     ac_init_help=recursive ;;
1063   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064     ac_init_help=short ;;
1065
1066   -host | --host | --hos | --ho)
1067     ac_prev=host_alias ;;
1068   -host=* | --host=* | --hos=* | --ho=*)
1069     host_alias=$ac_optarg ;;
1070
1071   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072     ac_prev=htmldir ;;
1073   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074   | --ht=*)
1075     htmldir=$ac_optarg ;;
1076
1077   -includedir | --includedir | --includedi | --included | --include \
1078   | --includ | --inclu | --incl | --inc)
1079     ac_prev=includedir ;;
1080   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081   | --includ=* | --inclu=* | --incl=* | --inc=*)
1082     includedir=$ac_optarg ;;
1083
1084   -infodir | --infodir | --infodi | --infod | --info | --inf)
1085     ac_prev=infodir ;;
1086   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087     infodir=$ac_optarg ;;
1088
1089   -libdir | --libdir | --libdi | --libd)
1090     ac_prev=libdir ;;
1091   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092     libdir=$ac_optarg ;;
1093
1094   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095   | --libexe | --libex | --libe)
1096     ac_prev=libexecdir ;;
1097   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098   | --libexe=* | --libex=* | --libe=*)
1099     libexecdir=$ac_optarg ;;
1100
1101   -localedir | --localedir | --localedi | --localed | --locale)
1102     ac_prev=localedir ;;
1103   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104     localedir=$ac_optarg ;;
1105
1106   -localstatedir | --localstatedir | --localstatedi | --localstated \
1107   | --localstate | --localstat | --localsta | --localst | --locals)
1108     ac_prev=localstatedir ;;
1109   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111     localstatedir=$ac_optarg ;;
1112
1113   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114     ac_prev=mandir ;;
1115   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116     mandir=$ac_optarg ;;
1117
1118   -nfp | --nfp | --nf)
1119     # Obsolete; use --without-fp.
1120     with_fp=no ;;
1121
1122   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123   | --no-cr | --no-c | -n)
1124     no_create=yes ;;
1125
1126   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128     no_recursion=yes ;;
1129
1130   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132   | --oldin | --oldi | --old | --ol | --o)
1133     ac_prev=oldincludedir ;;
1134   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137     oldincludedir=$ac_optarg ;;
1138
1139   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140     ac_prev=prefix ;;
1141   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142     prefix=$ac_optarg ;;
1143
1144   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145   | --program-pre | --program-pr | --program-p)
1146     ac_prev=program_prefix ;;
1147   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149     program_prefix=$ac_optarg ;;
1150
1151   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152   | --program-suf | --program-su | --program-s)
1153     ac_prev=program_suffix ;;
1154   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156     program_suffix=$ac_optarg ;;
1157
1158   -program-transform-name | --program-transform-name \
1159   | --program-transform-nam | --program-transform-na \
1160   | --program-transform-n | --program-transform- \
1161   | --program-transform | --program-transfor \
1162   | --program-transfo | --program-transf \
1163   | --program-trans | --program-tran \
1164   | --progr-tra | --program-tr | --program-t)
1165     ac_prev=program_transform_name ;;
1166   -program-transform-name=* | --program-transform-name=* \
1167   | --program-transform-nam=* | --program-transform-na=* \
1168   | --program-transform-n=* | --program-transform-=* \
1169   | --program-transform=* | --program-transfor=* \
1170   | --program-transfo=* | --program-transf=* \
1171   | --program-trans=* | --program-tran=* \
1172   | --progr-tra=* | --program-tr=* | --program-t=*)
1173     program_transform_name=$ac_optarg ;;
1174
1175   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176     ac_prev=pdfdir ;;
1177   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178     pdfdir=$ac_optarg ;;
1179
1180   -psdir | --psdir | --psdi | --psd | --ps)
1181     ac_prev=psdir ;;
1182   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183     psdir=$ac_optarg ;;
1184
1185   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186   | -silent | --silent | --silen | --sile | --sil)
1187     silent=yes ;;
1188
1189   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190     ac_prev=sbindir ;;
1191   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192   | --sbi=* | --sb=*)
1193     sbindir=$ac_optarg ;;
1194
1195   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197   | --sharedst | --shareds | --shared | --share | --shar \
1198   | --sha | --sh)
1199     ac_prev=sharedstatedir ;;
1200   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203   | --sha=* | --sh=*)
1204     sharedstatedir=$ac_optarg ;;
1205
1206   -site | --site | --sit)
1207     ac_prev=site ;;
1208   -site=* | --site=* | --sit=*)
1209     site=$ac_optarg ;;
1210
1211   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212     ac_prev=srcdir ;;
1213   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214     srcdir=$ac_optarg ;;
1215
1216   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217   | --syscon | --sysco | --sysc | --sys | --sy)
1218     ac_prev=sysconfdir ;;
1219   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221     sysconfdir=$ac_optarg ;;
1222
1223   -target | --target | --targe | --targ | --tar | --ta | --t)
1224     ac_prev=target_alias ;;
1225   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226     target_alias=$ac_optarg ;;
1227
1228   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229     verbose=yes ;;
1230
1231   -version | --version | --versio | --versi | --vers | -V)
1232     ac_init_version=: ;;
1233
1234   -with-* | --with-*)
1235     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236     # Reject names that are not valid shell variable names.
1237     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238       { echo "$as_me: error: invalid package name: $ac_package" >&2
1239    { (exit 1); exit 1; }; }
1240     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1241     eval with_$ac_package=\$ac_optarg ;;
1242
1243   -without-* | --without-*)
1244     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245     # Reject names that are not valid shell variable names.
1246     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247       { echo "$as_me: error: invalid package name: $ac_package" >&2
1248    { (exit 1); exit 1; }; }
1249     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1250     eval with_$ac_package=no ;;
1251
1252   --x)
1253     # Obsolete; use --with-x.
1254     with_x=yes ;;
1255
1256   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257   | --x-incl | --x-inc | --x-in | --x-i)
1258     ac_prev=x_includes ;;
1259   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1261     x_includes=$ac_optarg ;;
1262
1263   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265     ac_prev=x_libraries ;;
1266   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1268     x_libraries=$ac_optarg ;;
1269
1270   -*) { echo "$as_me: error: unrecognized option: $ac_option
1271 Try \`$0 --help' for more information." >&2
1272    { (exit 1); exit 1; }; }
1273     ;;
1274
1275   *=*)
1276     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277     # Reject names that are not valid shell variable names.
1278     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1279       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1280    { (exit 1); exit 1; }; }
1281     eval $ac_envvar=\$ac_optarg
1282     export $ac_envvar ;;
1283
1284   *)
1285     # FIXME: should be removed in autoconf 3.0.
1286     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1287     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1288       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1289     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1290     ;;
1291
1292   esac
1293 done
1294
1295 if test -n "$ac_prev"; then
1296   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1297   { echo "$as_me: error: missing argument to $ac_option" >&2
1298    { (exit 1); exit 1; }; }
1299 fi
1300
1301 # Be sure to have absolute directory names.
1302 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303                 datadir sysconfdir sharedstatedir localstatedir includedir \
1304                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305                 libdir localedir mandir
1306 do
1307   eval ac_val=\$$ac_var
1308   case $ac_val in
1309     [\\/$]* | ?:[\\/]* )  continue;;
1310     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311   esac
1312   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1313    { (exit 1); exit 1; }; }
1314 done
1315
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1319 build=$build_alias
1320 host=$host_alias
1321 target=$target_alias
1322
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325   if test "x$build_alias" = x; then
1326     cross_compiling=maybe
1327     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1328     If a cross compiler is detected then cross compile mode will be used." >&2
1329   elif test "x$build_alias" != "x$host_alias"; then
1330     cross_compiling=yes
1331   fi
1332 fi
1333
1334 ac_tool_prefix=
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336
1337 test "$silent" = yes && exec 6>/dev/null
1338
1339
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343   { echo "$as_me: error: Working directory cannot be determined" >&2
1344    { (exit 1); exit 1; }; }
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346   { echo "$as_me: error: pwd does not report name of working directory" >&2
1347    { (exit 1); exit 1; }; }
1348
1349
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352   ac_srcdir_defaulted=yes
1353   # Try the directory containing this script, then the parent directory.
1354   ac_confdir=`$as_dirname -- "$0" ||
1355 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356          X"$0" : 'X\(//\)[^/]' \| \
1357          X"$0" : 'X\(//\)$' \| \
1358          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1359 echo X"$0" |
1360     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\/\)[^/].*/{
1365             s//\1/
1366             q
1367           }
1368           /^X\(\/\/\)$/{
1369             s//\1/
1370             q
1371           }
1372           /^X\(\/\).*/{
1373             s//\1/
1374             q
1375           }
1376           s/.*/./; q'`
1377   srcdir=$ac_confdir
1378   if test ! -r "$srcdir/$ac_unique_file"; then
1379     srcdir=..
1380   fi
1381 else
1382   ac_srcdir_defaulted=no
1383 fi
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1387    { (exit 1); exit 1; }; }
1388 fi
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 ac_abs_confdir=`(
1391         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1392    { (exit 1); exit 1; }; }
1393         pwd)`
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396   srcdir=.
1397 fi
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1401 case $srcdir in
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 esac
1404 for ac_var in $ac_precious_vars; do
1405   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406   eval ac_env_${ac_var}_value=\$${ac_var}
1407   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409 done
1410
1411 #
1412 # Report the --help message.
1413 #
1414 if test "$ac_init_help" = "long"; then
1415   # Omit some internal or obsolete options to make the list less imposing.
1416   # This message is too long to be a string in the A/UX 3.1 sh.
1417   cat <<_ACEOF
1418 \`configure' configures this package to adapt to many kinds of systems.
1419
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1421
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE.  See below for descriptions of some of the useful variables.
1424
1425 Defaults for the options are specified in brackets.
1426
1427 Configuration:
1428   -h, --help              display this help and exit
1429       --help=short        display options specific to this package
1430       --help=recursive    display the short help of all the included packages
1431   -V, --version           display version information and exit
1432   -q, --quiet, --silent   do not print \`checking...' messages
1433       --cache-file=FILE   cache test results in FILE [disabled]
1434   -C, --config-cache      alias for \`--cache-file=config.cache'
1435   -n, --no-create         do not create output files
1436       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1437
1438 Installation directories:
1439   --prefix=PREFIX         install architecture-independent files in PREFIX
1440                           [$ac_default_prefix]
1441   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1442                           [PREFIX]
1443
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1448
1449 For better control, use the options below.
1450
1451 Fine tuning of the installation directories:
1452   --bindir=DIR           user executables [EPREFIX/bin]
1453   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1454   --libexecdir=DIR       program executables [EPREFIX/libexec]
1455   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1456   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1457   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1458   --libdir=DIR           object code libraries [EPREFIX/lib]
1459   --includedir=DIR       C header files [PREFIX/include]
1460   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1461   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1462   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1463   --infodir=DIR          info documentation [DATAROOTDIR/info]
1464   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1465   --mandir=DIR           man documentation [DATAROOTDIR/man]
1466   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1467   --htmldir=DIR          html documentation [DOCDIR]
1468   --dvidir=DIR           dvi documentation [DOCDIR]
1469   --pdfdir=DIR           pdf documentation [DOCDIR]
1470   --psdir=DIR            ps documentation [DOCDIR]
1471 _ACEOF
1472
1473   cat <<\_ACEOF
1474
1475 Program names:
1476   --program-prefix=PREFIX            prepend PREFIX to installed program names
1477   --program-suffix=SUFFIX            append SUFFIX to installed program names
1478   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1479
1480 System types:
1481   --build=BUILD     configure for building on BUILD [guessed]
1482   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1483 _ACEOF
1484 fi
1485
1486 if test -n "$ac_init_help"; then
1487
1488   cat <<\_ACEOF
1489
1490 Optional Features:
1491   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1492   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1493   --disable-dependency-tracking  speeds up one-time build
1494   --enable-dependency-tracking   do not reject slow dependency extractors
1495   --enable-shared[=PKGS]  build shared libraries [default=yes]
1496   --enable-static[=PKGS]  build static libraries [default=yes]
1497   --enable-fast-install[=PKGS]
1498                           optimize for fast installation [default=yes]
1499   --disable-libtool-lock  avoid locking (might break parallel builds)
1500   --enable-evolution-compatibility
1501                           build executables which only call Evolution via
1502                           dlopen/dlsym: this avoids all hard dependencies on
1503                           EDS shared objects, but might lead to crashes when
1504                           their ABI changes
1505
1506 Optional Packages:
1507   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1508   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1509   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1510   --with-pic              try to use only PIC/non-PIC objects [default=use
1511                           both]
1512   --with-tags[=TAGS]      include additional configurations [automatic]
1513   --with-xmltok=<builtin|system|path>
1514                           Chooses which xmltok/xmlparse gets used. "builtin" =
1515                           compile code into libsynthesis. "system" = use
1516                           header files and libxmlparse from standard search
1517                           paths. "path" = use header files in "path/include"
1518                           and libxmlparse in "path/lib". Default is system if
1519                           header files are found, otherwise builtin.
1520   --with-expat=<system|path>
1521                           Choose expat as the XML parser library. Replaces
1522                           --with-xmltok. "system" = use header files and
1523                           libexpat from standard search paths. "path" = use
1524                           header files in "path/include", and libexpat in
1525                           "path/lib".
1526
1527 Some influential environment variables:
1528   CXX         C++ compiler command
1529   CXXFLAGS    C++ compiler flags
1530   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1531               nonstandard directory <lib dir>
1532   LIBS        libraries to pass to the linker, e.g. -l<library>
1533   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1534               you have headers in a nonstandard directory <include dir>
1535   CC          C compiler command
1536   CFLAGS      C compiler flags
1537   CPP         C preprocessor
1538   CXXCPP      C++ preprocessor
1539   F77         Fortran 77 compiler command
1540   FFLAGS      Fortran 77 compiler flags
1541   PKG_CONFIG  path to pkg-config utility
1542   PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1543   PCRE_LIBS   linker flags for PCRE, overriding pkg-config
1544   SQLITE3_CFLAGS
1545               C compiler flags for SQLITE3, overriding pkg-config
1546   SQLITE3_LIBS
1547               linker flags for SQLITE3, overriding pkg-config
1548   LIBICAL_CFLAGS
1549               C compiler flags for LIBICAL, overriding pkg-config
1550   LIBICAL_LIBS
1551               linker flags for LIBICAL, overriding pkg-config
1552   LIBECAL_CFLAGS
1553               C compiler flags for LIBECAL, overriding pkg-config
1554   LIBECAL_LIBS
1555               linker flags for LIBECAL, overriding pkg-config
1556
1557 Use these variables to override the choices made by `configure' or to help
1558 it to find libraries and programs with nonstandard names/locations.
1559
1560 _ACEOF
1561 ac_status=$?
1562 fi
1563
1564 if test "$ac_init_help" = "recursive"; then
1565   # If there are subdirs, report their specific --help.
1566   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567     test -d "$ac_dir" || continue
1568     ac_builddir=.
1569
1570 case "$ac_dir" in
1571 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572 *)
1573   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1574   # A ".." for each directory in $ac_dir_suffix.
1575   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1576   case $ac_top_builddir_sub in
1577   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1579   esac ;;
1580 esac
1581 ac_abs_top_builddir=$ac_pwd
1582 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1583 # for backward compatibility:
1584 ac_top_builddir=$ac_top_build_prefix
1585
1586 case $srcdir in
1587   .)  # We are building in place.
1588     ac_srcdir=.
1589     ac_top_srcdir=$ac_top_builddir_sub
1590     ac_abs_top_srcdir=$ac_pwd ;;
1591   [\\/]* | ?:[\\/]* )  # Absolute name.
1592     ac_srcdir=$srcdir$ac_dir_suffix;
1593     ac_top_srcdir=$srcdir
1594     ac_abs_top_srcdir=$srcdir ;;
1595   *) # Relative name.
1596     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1597     ac_top_srcdir=$ac_top_build_prefix$srcdir
1598     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1599 esac
1600 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1601
1602     cd "$ac_dir" || { ac_status=$?; continue; }
1603     # Check for guested configure.
1604     if test -f "$ac_srcdir/configure.gnu"; then
1605       echo &&
1606       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1607     elif test -f "$ac_srcdir/configure"; then
1608       echo &&
1609       $SHELL "$ac_srcdir/configure" --help=recursive
1610     else
1611       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1612     fi || ac_status=$?
1613     cd "$ac_pwd" || { ac_status=$?; break; }
1614   done
1615 fi
1616
1617 test -n "$ac_init_help" && exit $ac_status
1618 if $ac_init_version; then
1619   cat <<\_ACEOF
1620 configure
1621 generated by GNU Autoconf 2.61
1622
1623 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1624 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1625 This configure script is free software; the Free Software Foundation
1626 gives unlimited permission to copy, distribute and modify it.
1627 _ACEOF
1628   exit
1629 fi
1630 cat >config.log <<_ACEOF
1631 This file contains any messages produced by compilers while
1632 running configure, to aid debugging if configure makes a mistake.
1633
1634 It was created by $as_me, which was
1635 generated by GNU Autoconf 2.61.  Invocation command line was
1636
1637   $ $0 $@
1638
1639 _ACEOF
1640 exec 5>>config.log
1641 {
1642 cat <<_ASUNAME
1643 ## --------- ##
1644 ## Platform. ##
1645 ## --------- ##
1646
1647 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1648 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1649 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1650 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1651 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1652
1653 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1654 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1655
1656 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1657 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1658 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1659 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1660 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1661 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1662 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1663
1664 _ASUNAME
1665
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 for as_dir in $PATH
1668 do
1669   IFS=$as_save_IFS
1670   test -z "$as_dir" && as_dir=.
1671   echo "PATH: $as_dir"
1672 done
1673 IFS=$as_save_IFS
1674
1675 } >&5
1676
1677 cat >&5 <<_ACEOF
1678
1679
1680 ## ----------- ##
1681 ## Core tests. ##
1682 ## ----------- ##
1683
1684 _ACEOF
1685
1686
1687 # Keep a trace of the command line.
1688 # Strip out --no-create and --no-recursion so they do not pile up.
1689 # Strip out --silent because we don't want to record it for future runs.
1690 # Also quote any args containing shell meta-characters.
1691 # Make two passes to allow for proper duplicate-argument suppression.
1692 ac_configure_args=
1693 ac_configure_args0=
1694 ac_configure_args1=
1695 ac_must_keep_next=false
1696 for ac_pass in 1 2
1697 do
1698   for ac_arg
1699   do
1700     case $ac_arg in
1701     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1702     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1703     | -silent | --silent | --silen | --sile | --sil)
1704       continue ;;
1705     *\'*)
1706       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1707     esac
1708     case $ac_pass in
1709     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1710     2)
1711       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1712       if test $ac_must_keep_next = true; then
1713         ac_must_keep_next=false # Got value, back to normal.
1714       else
1715         case $ac_arg in
1716           *=* | --config-cache | -C | -disable-* | --disable-* \
1717           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1718           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1719           | -with-* | --with-* | -without-* | --without-* | --x)
1720             case "$ac_configure_args0 " in
1721               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1722             esac
1723             ;;
1724           -* ) ac_must_keep_next=true ;;
1725         esac
1726       fi
1727       ac_configure_args="$ac_configure_args '$ac_arg'"
1728       ;;
1729     esac
1730   done
1731 done
1732 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1733 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1734
1735 # When interrupted or exit'd, cleanup temporary files, and complete
1736 # config.log.  We remove comments because anyway the quotes in there
1737 # would cause problems or look ugly.
1738 # WARNING: Use '\'' to represent an apostrophe within the trap.
1739 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1740 trap 'exit_status=$?
1741   # Save into config.log some information that might help in debugging.
1742   {
1743     echo
1744
1745     cat <<\_ASBOX
1746 ## ---------------- ##
1747 ## Cache variables. ##
1748 ## ---------------- ##
1749 _ASBOX
1750     echo
1751     # The following way of writing the cache mishandles newlines in values,
1752 (
1753   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1754     eval ac_val=\$$ac_var
1755     case $ac_val in #(
1756     *${as_nl}*)
1757       case $ac_var in #(
1758       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1759 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1760       esac
1761       case $ac_var in #(
1762       _ | IFS | as_nl) ;; #(
1763       *) $as_unset $ac_var ;;
1764       esac ;;
1765     esac
1766   done
1767   (set) 2>&1 |
1768     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1769     *${as_nl}ac_space=\ *)
1770       sed -n \
1771         "s/'\''/'\''\\\\'\'''\''/g;
1772           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1773       ;; #(
1774     *)
1775       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1776       ;;
1777     esac |
1778     sort
1779 )
1780     echo
1781
1782     cat <<\_ASBOX
1783 ## ----------------- ##
1784 ## Output variables. ##
1785 ## ----------------- ##
1786 _ASBOX
1787     echo
1788     for ac_var in $ac_subst_vars
1789     do
1790       eval ac_val=\$$ac_var
1791       case $ac_val in
1792       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1793       esac
1794       echo "$ac_var='\''$ac_val'\''"
1795     done | sort
1796     echo
1797
1798     if test -n "$ac_subst_files"; then
1799       cat <<\_ASBOX
1800 ## ------------------- ##
1801 ## File substitutions. ##
1802 ## ------------------- ##
1803 _ASBOX
1804       echo
1805       for ac_var in $ac_subst_files
1806       do
1807         eval ac_val=\$$ac_var
1808         case $ac_val in
1809         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1810         esac
1811         echo "$ac_var='\''$ac_val'\''"
1812       done | sort
1813       echo
1814     fi
1815
1816     if test -s confdefs.h; then
1817       cat <<\_ASBOX
1818 ## ----------- ##
1819 ## confdefs.h. ##
1820 ## ----------- ##
1821 _ASBOX
1822       echo
1823       cat confdefs.h
1824       echo
1825     fi
1826     test "$ac_signal" != 0 &&
1827       echo "$as_me: caught signal $ac_signal"
1828     echo "$as_me: exit $exit_status"
1829   } >&5
1830   rm -f core *.core core.conftest.* &&
1831     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1832     exit $exit_status
1833 ' 0
1834 for ac_signal in 1 2 13 15; do
1835   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1836 done
1837 ac_signal=0
1838
1839 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1840 rm -f -r conftest* confdefs.h
1841
1842 # Predefined preprocessor variables.
1843
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_NAME "$PACKAGE_NAME"
1846 _ACEOF
1847
1848
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1851 _ACEOF
1852
1853
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1856 _ACEOF
1857
1858
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_STRING "$PACKAGE_STRING"
1861 _ACEOF
1862
1863
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1866 _ACEOF
1867
1868
1869 # Let the site file select an alternate cache file if it wants to.
1870 # Prefer explicitly selected file to automatically selected ones.
1871 if test -n "$CONFIG_SITE"; then
1872   set x "$CONFIG_SITE"
1873 elif test "x$prefix" != xNONE; then
1874   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1875 else
1876   set x "$ac_default_prefix/share/config.site" \
1877         "$ac_default_prefix/etc/config.site"
1878 fi
1879 shift
1880 for ac_site_file
1881 do
1882   if test -r "$ac_site_file"; then
1883     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1884 echo "$as_me: loading site script $ac_site_file" >&6;}
1885     sed 's/^/| /' "$ac_site_file" >&5
1886     . "$ac_site_file"
1887   fi
1888 done
1889
1890 if test -r "$cache_file"; then
1891   # Some versions of bash will fail to source /dev/null (special
1892   # files actually), so we avoid doing that.
1893   if test -f "$cache_file"; then
1894     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1895 echo "$as_me: loading cache $cache_file" >&6;}
1896     case $cache_file in
1897       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1898       *)                      . "./$cache_file";;
1899     esac
1900   fi
1901 else
1902   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1903 echo "$as_me: creating cache $cache_file" >&6;}
1904   >$cache_file
1905 fi
1906
1907 # Check that the precious variables saved in the cache have kept the same
1908 # value.
1909 ac_cache_corrupted=false
1910 for ac_var in $ac_precious_vars; do
1911   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1912   eval ac_new_set=\$ac_env_${ac_var}_set
1913   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1914   eval ac_new_val=\$ac_env_${ac_var}_value
1915   case $ac_old_set,$ac_new_set in
1916     set,)
1917       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1918 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1919       ac_cache_corrupted=: ;;
1920     ,set)
1921       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1922 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1923       ac_cache_corrupted=: ;;
1924     ,);;
1925     *)
1926       if test "x$ac_old_val" != "x$ac_new_val"; then
1927         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1928 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1929         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1930 echo "$as_me:   former value:  $ac_old_val" >&2;}
1931         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1932 echo "$as_me:   current value: $ac_new_val" >&2;}
1933         ac_cache_corrupted=:
1934       fi;;
1935   esac
1936   # Pass precious variables to config.status.
1937   if test "$ac_new_set" = set; then
1938     case $ac_new_val in
1939     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1940     *) ac_arg=$ac_var=$ac_new_val ;;
1941     esac
1942     case " $ac_configure_args " in
1943       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1944       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1945     esac
1946   fi
1947 done
1948 if $ac_cache_corrupted; then
1949   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1950 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1951   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1952 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1953    { (exit 1); exit 1; }; }
1954 fi
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972 ac_ext=c
1973 ac_cpp='$CPP $CPPFLAGS'
1974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1977
1978
1979
1980 am__api_version='1.10'
1981
1982 ac_aux_dir=
1983 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1984   if test -f "$ac_dir/install-sh"; then
1985     ac_aux_dir=$ac_dir
1986     ac_install_sh="$ac_aux_dir/install-sh -c"
1987     break
1988   elif test -f "$ac_dir/install.sh"; then
1989     ac_aux_dir=$ac_dir
1990     ac_install_sh="$ac_aux_dir/install.sh -c"
1991     break
1992   elif test -f "$ac_dir/shtool"; then
1993     ac_aux_dir=$ac_dir
1994     ac_install_sh="$ac_aux_dir/shtool install -c"
1995     break
1996   fi
1997 done
1998 if test -z "$ac_aux_dir"; then
1999   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2000 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2001    { (exit 1); exit 1; }; }
2002 fi
2003
2004 # These three variables are undocumented and unsupported,
2005 # and are intended to be withdrawn in a future Autoconf release.
2006 # They can cause serious problems if a builder's source tree is in a directory
2007 # whose full name contains unusual characters.
2008 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2009 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2010 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2011
2012
2013 # Find a good install program.  We prefer a C program (faster),
2014 # so one script is as good as another.  But avoid the broken or
2015 # incompatible versions:
2016 # SysV /etc/install, /usr/sbin/install
2017 # SunOS /usr/etc/install
2018 # IRIX /sbin/install
2019 # AIX /bin/install
2020 # AmigaOS /C/install, which installs bootblocks on floppy discs
2021 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2022 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2023 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2024 # OS/2's system install, which has a completely different semantic
2025 # ./install, which can be erroneously created by make from ./install.sh.
2026 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2027 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2028 if test -z "$INSTALL"; then
2029 if test "${ac_cv_path_install+set}" = set; then
2030   echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 for as_dir in $PATH
2034 do
2035   IFS=$as_save_IFS
2036   test -z "$as_dir" && as_dir=.
2037   # Account for people who put trailing slashes in PATH elements.
2038 case $as_dir/ in
2039   ./ | .// | /cC/* | \
2040   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2041   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2042   /usr/ucb/* ) ;;
2043   *)
2044     # OSF1 and SCO ODT 3.0 have their own names for install.
2045     # Don't use installbsd from OSF since it installs stuff as root
2046     # by default.
2047     for ac_prog in ginstall scoinst install; do
2048       for ac_exec_ext in '' $ac_executable_extensions; do
2049         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2050           if test $ac_prog = install &&
2051             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2052             # AIX install.  It has an incompatible calling convention.
2053             :
2054           elif test $ac_prog = install &&
2055             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2056             # program-specific install script used by HP pwplus--don't use.
2057             :
2058           else
2059             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2060             break 3
2061           fi
2062         fi
2063       done
2064     done
2065     ;;
2066 esac
2067 done
2068 IFS=$as_save_IFS
2069
2070
2071 fi
2072   if test "${ac_cv_path_install+set}" = set; then
2073     INSTALL=$ac_cv_path_install
2074   else
2075     # As a last resort, use the slow shell script.  Don't cache a
2076     # value for INSTALL within a source directory, because that will
2077     # break other packages using the cache if that directory is
2078     # removed, or if the value is a relative name.
2079     INSTALL=$ac_install_sh
2080   fi
2081 fi
2082 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2083 echo "${ECHO_T}$INSTALL" >&6; }
2084
2085 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2086 # It thinks the first close brace ends the variable substitution.
2087 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2088
2089 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2090
2091 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2092
2093 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2094 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2095 # Just in case
2096 sleep 1
2097 echo timestamp > conftest.file
2098 # Do `set' in a subshell so we don't clobber the current shell's
2099 # arguments.  Must try -L first in case configure is actually a
2100 # symlink; some systems play weird games with the mod time of symlinks
2101 # (eg FreeBSD returns the mod time of the symlink's containing
2102 # directory).
2103 if (
2104    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2105    if test "$*" = "X"; then
2106       # -L didn't work.
2107       set X `ls -t $srcdir/configure conftest.file`
2108    fi
2109    rm -f conftest.file
2110    if test "$*" != "X $srcdir/configure conftest.file" \
2111       && test "$*" != "X conftest.file $srcdir/configure"; then
2112
2113       # If neither matched, then we have a broken ls.  This can happen
2114       # if, for instance, CONFIG_SHELL is bash and it inherits a
2115       # broken ls alias from the environment.  This has actually
2116       # happened.  Such a system could not be considered "sane".
2117       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2118 alias in your environment" >&5
2119 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2120 alias in your environment" >&2;}
2121    { (exit 1); exit 1; }; }
2122    fi
2123
2124    test "$2" = conftest.file
2125    )
2126 then
2127    # Ok.
2128    :
2129 else
2130    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2131 Check your system clock" >&5
2132 echo "$as_me: error: newly created file is older than distributed files!
2133 Check your system clock" >&2;}
2134    { (exit 1); exit 1; }; }
2135 fi
2136 { echo "$as_me:$LINENO: result: yes" >&5
2137 echo "${ECHO_T}yes" >&6; }
2138 test "$program_prefix" != NONE &&
2139   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2140 # Use a double $ so make ignores it.
2141 test "$program_suffix" != NONE &&
2142   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2143 # Double any \ or $.  echo might interpret backslashes.
2144 # By default was `s,x,x', remove it if useless.
2145 cat <<\_ACEOF >conftest.sed
2146 s/[\\$]/&&/g;s/;s,x,x,$//
2147 _ACEOF
2148 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2149 rm -f conftest.sed
2150
2151 # expand $ac_aux_dir to an absolute path
2152 am_aux_dir=`cd $ac_aux_dir && pwd`
2153
2154 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2155 # Use eval to expand $SHELL
2156 if eval "$MISSING --run true"; then
2157   am_missing_run="$MISSING --run "
2158 else
2159   am_missing_run=
2160   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2161 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2162 fi
2163
2164 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2165 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2166 if test -z "$MKDIR_P"; then
2167   if test "${ac_cv_path_mkdir+set}" = set; then
2168   echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2172 do
2173   IFS=$as_save_IFS
2174   test -z "$as_dir" && as_dir=.
2175   for ac_prog in mkdir gmkdir; do
2176          for ac_exec_ext in '' $ac_executable_extensions; do
2177            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2178            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2179              'mkdir (GNU coreutils) '* | \
2180              'mkdir (coreutils) '* | \
2181              'mkdir (fileutils) '4.1*)
2182                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2183                break 3;;
2184            esac
2185          done
2186        done
2187 done
2188 IFS=$as_save_IFS
2189
2190 fi
2191
2192   if test "${ac_cv_path_mkdir+set}" = set; then
2193     MKDIR_P="$ac_cv_path_mkdir -p"
2194   else
2195     # As a last resort, use the slow shell script.  Don't cache a
2196     # value for MKDIR_P within a source directory, because that will
2197     # break other packages using the cache if that directory is
2198     # removed, or if the value is a relative name.
2199     test -d ./--version && rmdir ./--version
2200     MKDIR_P="$ac_install_sh -d"
2201   fi
2202 fi
2203 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2204 echo "${ECHO_T}$MKDIR_P" >&6; }
2205
2206 mkdir_p="$MKDIR_P"
2207 case $mkdir_p in
2208   [\\/$]* | ?:[\\/]*) ;;
2209   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2210 esac
2211
2212 for ac_prog in gawk mawk nawk awk
2213 do
2214   # Extract the first word of "$ac_prog", so it can be a program name with args.
2215 set dummy $ac_prog; ac_word=$2
2216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2218 if test "${ac_cv_prog_AWK+set}" = set; then
2219   echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221   if test -n "$AWK"; then
2222   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2223 else
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2226 do
2227   IFS=$as_save_IFS
2228   test -z "$as_dir" && as_dir=.
2229   for ac_exec_ext in '' $ac_executable_extensions; do
2230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2231     ac_cv_prog_AWK="$ac_prog"
2232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233     break 2
2234   fi
2235 done
2236 done
2237 IFS=$as_save_IFS
2238
2239 fi
2240 fi
2241 AWK=$ac_cv_prog_AWK
2242 if test -n "$AWK"; then
2243   { echo "$as_me:$LINENO: result: $AWK" >&5
2244 echo "${ECHO_T}$AWK" >&6; }
2245 else
2246   { echo "$as_me:$LINENO: result: no" >&5
2247 echo "${ECHO_T}no" >&6; }
2248 fi
2249
2250
2251   test -n "$AWK" && break
2252 done
2253
2254 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2255 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2256 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2257 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2258   echo $ECHO_N "(cached) $ECHO_C" >&6
2259 else
2260   cat >conftest.make <<\_ACEOF
2261 SHELL = /bin/sh
2262 all:
2263         @echo '@@@%%%=$(MAKE)=@@@%%%'
2264 _ACEOF
2265 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2266 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2267   *@@@%%%=?*=@@@%%%*)
2268     eval ac_cv_prog_make_${ac_make}_set=yes;;
2269   *)
2270     eval ac_cv_prog_make_${ac_make}_set=no;;
2271 esac
2272 rm -f conftest.make
2273 fi
2274 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2275   { echo "$as_me:$LINENO: result: yes" >&5
2276 echo "${ECHO_T}yes" >&6; }
2277   SET_MAKE=
2278 else
2279   { echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6; }
2281   SET_MAKE="MAKE=${MAKE-make}"
2282 fi
2283
2284 rm -rf .tst 2>/dev/null
2285 mkdir .tst 2>/dev/null
2286 if test -d .tst; then
2287   am__leading_dot=.
2288 else
2289   am__leading_dot=_
2290 fi
2291 rmdir .tst 2>/dev/null
2292
2293 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2294   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2295   # is not polluted with repeated "-I."
2296   am__isrc=' -I$(srcdir)'
2297   # test to see if srcdir already configured
2298   if test -f $srcdir/config.status; then
2299     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2300 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2301    { (exit 1); exit 1; }; }
2302   fi
2303 fi
2304
2305 # test whether we have cygpath
2306 if test -z "$CYGPATH_W"; then
2307   if (cygpath --version) >/dev/null 2>/dev/null; then
2308     CYGPATH_W='cygpath -w'
2309   else
2310     CYGPATH_W=echo
2311   fi
2312 fi
2313
2314
2315 # Define the identity of the package.
2316  PACKAGE=syncevolution
2317  VERSION=0.8-beta2
2318
2319
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE "$PACKAGE"
2322 _ACEOF
2323
2324
2325 cat >>confdefs.h <<_ACEOF
2326 #define VERSION "$VERSION"
2327 _ACEOF
2328
2329 # Some tools Automake needs.
2330
2331 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2332
2333
2334 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2335
2336
2337 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2338
2339
2340 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2341
2342
2343 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2344
2345 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2346
2347 # Installed binaries are usually stripped using `strip' when the user
2348 # run `make install-strip'.  However `strip' might not be the right
2349 # tool to use in cross-compilation environments, therefore Automake
2350 # will honor the `STRIP' environment variable to overrule this program.
2351 if test "$cross_compiling" != no; then
2352   if test -n "$ac_tool_prefix"; then
2353   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2354 set dummy ${ac_tool_prefix}strip; ac_word=$2
2355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2357 if test "${ac_cv_prog_STRIP+set}" = set; then
2358   echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360   if test -n "$STRIP"; then
2361   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2362 else
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366   IFS=$as_save_IFS
2367   test -z "$as_dir" && as_dir=.
2368   for ac_exec_ext in '' $ac_executable_extensions; do
2369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372     break 2
2373   fi
2374 done
2375 done
2376 IFS=$as_save_IFS
2377
2378 fi
2379 fi
2380 STRIP=$ac_cv_prog_STRIP
2381 if test -n "$STRIP"; then
2382   { echo "$as_me:$LINENO: result: $STRIP" >&5
2383 echo "${ECHO_T}$STRIP" >&6; }
2384 else
2385   { echo "$as_me:$LINENO: result: no" >&5
2386 echo "${ECHO_T}no" >&6; }
2387 fi
2388
2389
2390 fi
2391 if test -z "$ac_cv_prog_STRIP"; then
2392   ac_ct_STRIP=$STRIP
2393   # Extract the first word of "strip", so it can be a program name with args.
2394 set dummy strip; ac_word=$2
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2398   echo $ECHO_N "(cached) $ECHO_C" >&6
2399 else
2400   if test -n "$ac_ct_STRIP"; then
2401   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2402 else
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406   IFS=$as_save_IFS
2407   test -z "$as_dir" && as_dir=.
2408   for ac_exec_ext in '' $ac_executable_extensions; do
2409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2410     ac_cv_prog_ac_ct_STRIP="strip"
2411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412     break 2
2413   fi
2414 done
2415 done
2416 IFS=$as_save_IFS
2417
2418 fi
2419 fi
2420 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2421 if test -n "$ac_ct_STRIP"; then
2422   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2423 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2424 else
2425   { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2427 fi
2428
2429   if test "x$ac_ct_STRIP" = x; then
2430     STRIP=":"
2431   else
2432     case $cross_compiling:$ac_tool_warned in
2433 yes:)
2434 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2435 whose name does not start with the host triplet.  If you think this
2436 configuration is useful to you, please write to autoconf@gnu.org." >&5
2437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2438 whose name does not start with the host triplet.  If you think this
2439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2440 ac_tool_warned=yes ;;
2441 esac
2442     STRIP=$ac_ct_STRIP
2443   fi
2444 else
2445   STRIP="$ac_cv_prog_STRIP"
2446 fi
2447
2448 fi
2449 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2450
2451 # We need awk for the "check" target.  The system "awk" is bad on
2452 # some platforms.
2453 # Always define AMTAR for backward compatibility.
2454
2455 AMTAR=${AMTAR-"${am_missing_run}tar"}
2456
2457 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2458
2459
2460
2461
2462
2463 ac_config_headers="$ac_config_headers config.h"
2464
2465
2466
2467
2468 ac_ext=cpp
2469 ac_cpp='$CXXCPP $CPPFLAGS'
2470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2473 if test -z "$CXX"; then
2474   if test -n "$CCC"; then
2475     CXX=$CCC
2476   else
2477     if test -n "$ac_tool_prefix"; then
2478   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2479   do
2480     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2481 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2484 if test "${ac_cv_prog_CXX+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   if test -n "$CXX"; then
2488   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493   IFS=$as_save_IFS
2494   test -z "$as_dir" && as_dir=.
2495   for ac_exec_ext in '' $ac_executable_extensions; do
2496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499     break 2
2500   fi
2501 done
2502 done
2503 IFS=$as_save_IFS
2504
2505 fi
2506 fi
2507 CXX=$ac_cv_prog_CXX
2508 if test -n "$CXX"; then
2509   { echo "$as_me:$LINENO: result: $CXX" >&5
2510 echo "${ECHO_T}$CXX" >&6; }
2511 else
2512   { echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6; }
2514 fi
2515
2516
2517     test -n "$CXX" && break
2518   done
2519 fi
2520 if test -z "$CXX"; then
2521   ac_ct_CXX=$CXX
2522   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2523 do
2524   # Extract the first word of "$ac_prog", so it can be a program name with args.
2525 set dummy $ac_prog; ac_word=$2
2526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2528 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2529   echo $ECHO_N "(cached) $ECHO_C" >&6
2530 else
2531   if test -n "$ac_ct_CXX"; then
2532   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2533 else
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 for as_dir in $PATH
2536 do
2537   IFS=$as_save_IFS
2538   test -z "$as_dir" && as_dir=.
2539   for ac_exec_ext in '' $ac_executable_extensions; do
2540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2541     ac_cv_prog_ac_ct_CXX="$ac_prog"
2542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543     break 2
2544   fi
2545 done
2546 done
2547 IFS=$as_save_IFS
2548
2549 fi
2550 fi
2551 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2552 if test -n "$ac_ct_CXX"; then
2553   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2554 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2555 else
2556   { echo "$as_me:$LINENO: result: no" >&5
2557 echo "${ECHO_T}no" >&6; }
2558 fi
2559
2560
2561   test -n "$ac_ct_CXX" && break
2562 done
2563
2564   if test "x$ac_ct_CXX" = x; then
2565     CXX="g++"
2566   else
2567     case $cross_compiling:$ac_tool_warned in
2568 yes:)
2569 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2570 whose name does not start with the host triplet.  If you think this
2571 configuration is useful to you, please write to autoconf@gnu.org." >&5
2572 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2573 whose name does not start with the host triplet.  If you think this
2574 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2575 ac_tool_warned=yes ;;
2576 esac
2577     CXX=$ac_ct_CXX
2578   fi
2579 fi
2580
2581   fi
2582 fi
2583 # Provide some information about the compiler.
2584 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2585 ac_compiler=`set X $ac_compile; echo $2`
2586 { (ac_try="$ac_compiler --version >&5"
2587 case "(($ac_try" in
2588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589   *) ac_try_echo=$ac_try;;
2590 esac
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592   (eval "$ac_compiler --version >&5") 2>&5
2593   ac_status=$?
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); }
2596 { (ac_try="$ac_compiler -v >&5"
2597 case "(($ac_try" in
2598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599   *) ac_try_echo=$ac_try;;
2600 esac
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602   (eval "$ac_compiler -v >&5") 2>&5
2603   ac_status=$?
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); }
2606 { (ac_try="$ac_compiler -V >&5"
2607 case "(($ac_try" in
2608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2609   *) ac_try_echo=$ac_try;;
2610 esac
2611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2612   (eval "$ac_compiler -V >&5") 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); }
2616
2617 cat >conftest.$ac_ext <<_ACEOF
2618 /* confdefs.h.  */
2619 _ACEOF
2620 cat confdefs.h >>conftest.$ac_ext
2621 cat >>conftest.$ac_ext <<_ACEOF
2622 /* end confdefs.h.  */
2623
2624 int
2625 main ()
2626 {
2627
2628   ;
2629   return 0;
2630 }
2631 _ACEOF
2632 ac_clean_files_save=$ac_clean_files
2633 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2634 # Try to create an executable without -o first, disregard a.out.
2635 # It will help us diagnose broken compilers, and finding out an intuition
2636 # of exeext.
2637 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2638 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2639 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2640 #
2641 # List of possible output files, starting from the most likely.
2642 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2643 # only as a last resort.  b.out is created by i960 compilers.
2644 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2645 #
2646 # The IRIX 6 linker writes into existing files which may not be
2647 # executable, retaining their permissions.  Remove them first so a
2648 # subsequent execution test works.
2649 ac_rmfiles=
2650 for ac_file in $ac_files
2651 do
2652   case $ac_file in
2653     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2654     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2655   esac
2656 done
2657 rm -f $ac_rmfiles
2658
2659 if { (ac_try="$ac_link_default"
2660 case "(($ac_try" in
2661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662   *) ac_try_echo=$ac_try;;
2663 esac
2664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2665   (eval "$ac_link_default") 2>&5
2666   ac_status=$?
2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668   (exit $ac_status); }; then
2669   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2670 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2671 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2672 # so that the user can short-circuit this test for compilers unknown to
2673 # Autoconf.
2674 for ac_file in $ac_files ''
2675 do
2676   test -f "$ac_file" || continue
2677   case $ac_file in
2678     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2679         ;;
2680     [ab].out )
2681         # We found the default executable, but exeext='' is most
2682         # certainly right.
2683         break;;
2684     *.* )
2685         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2686         then :; else
2687            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2688         fi
2689         # We set ac_cv_exeext here because the later test for it is not
2690         # safe: cross compilers may not add the suffix if given an `-o'
2691         # argument, so we may need to know it at that point already.
2692         # Even if this section looks crufty: it has the advantage of
2693         # actually working.
2694         break;;
2695     * )
2696         break;;
2697   esac
2698 done
2699 test "$ac_cv_exeext" = no && ac_cv_exeext=
2700
2701 else
2702   ac_file=''
2703 fi
2704
2705 { echo "$as_me:$LINENO: result: $ac_file" >&5
2706 echo "${ECHO_T}$ac_file" >&6; }
2707 if test -z "$ac_file"; then
2708   echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2710
2711 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2712 See \`config.log' for more details." >&5
2713 echo "$as_me: error: C++ compiler cannot create executables
2714 See \`config.log' for more details." >&2;}
2715    { (exit 77); exit 77; }; }
2716 fi
2717
2718 ac_exeext=$ac_cv_exeext
2719
2720 # Check that the compiler produces executables we can run.  If not, either
2721 # the compiler is broken, or we cross compile.
2722 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2723 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2724 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2725 # If not cross compiling, check that we can run a simple program.
2726 if test "$cross_compiling" != yes; then
2727   if { ac_try='./$ac_file'
2728   { (case "(($ac_try" in
2729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730   *) ac_try_echo=$ac_try;;
2731 esac
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733   (eval "$ac_try") 2>&5
2734   ac_status=$?
2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); }; }; then
2737     cross_compiling=no
2738   else
2739     if test "$cross_compiling" = maybe; then
2740         cross_compiling=yes
2741     else
2742         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2743 If you meant to cross compile, use \`--host'.
2744 See \`config.log' for more details." >&5
2745 echo "$as_me: error: cannot run C++ compiled programs.
2746 If you meant to cross compile, use \`--host'.
2747 See \`config.log' for more details." >&2;}
2748    { (exit 1); exit 1; }; }
2749     fi
2750   fi
2751 fi
2752 { echo "$as_me:$LINENO: result: yes" >&5
2753 echo "${ECHO_T}yes" >&6; }
2754
2755 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2756 ac_clean_files=$ac_clean_files_save
2757 # Check that the compiler produces executables we can run.  If not, either
2758 # the compiler is broken, or we cross compile.
2759 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2760 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2761 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2762 echo "${ECHO_T}$cross_compiling" >&6; }
2763
2764 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2765 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2766 if { (ac_try="$ac_link"
2767 case "(($ac_try" in
2768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769   *) ac_try_echo=$ac_try;;
2770 esac
2771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2772   (eval "$ac_link") 2>&5
2773   ac_status=$?
2774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775   (exit $ac_status); }; then
2776   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2777 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2778 # work properly (i.e., refer to `conftest.exe'), while it won't with
2779 # `rm'.
2780 for ac_file in conftest.exe conftest conftest.*; do
2781   test -f "$ac_file" || continue
2782   case $ac_file in
2783     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2784     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2785           break;;
2786     * ) break;;
2787   esac
2788 done
2789 else
2790   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2791 See \`config.log' for more details." >&5
2792 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2793 See \`config.log' for more details." >&2;}
2794    { (exit 1); exit 1; }; }
2795 fi
2796
2797 rm -f conftest$ac_cv_exeext
2798 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2799 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2800
2801 rm -f conftest.$ac_ext
2802 EXEEXT=$ac_cv_exeext
2803 ac_exeext=$EXEEXT
2804 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2805 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2806 if test "${ac_cv_objext+set}" = set; then
2807   echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809   cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h.  */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h.  */
2815
2816 int
2817 main ()
2818 {
2819
2820   ;
2821   return 0;
2822 }
2823 _ACEOF
2824 rm -f conftest.o conftest.obj
2825 if { (ac_try="$ac_compile"
2826 case "(($ac_try" in
2827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828   *) ac_try_echo=$ac_try;;
2829 esac
2830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2831   (eval "$ac_compile") 2>&5
2832   ac_status=$?
2833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834   (exit $ac_status); }; then
2835   for ac_file in conftest.o conftest.obj conftest.*; do
2836   test -f "$ac_file" || continue;
2837   case $ac_file in
2838     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2839     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2840        break;;
2841   esac
2842 done
2843 else
2844   echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2846
2847 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2848 See \`config.log' for more details." >&5
2849 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2850 See \`config.log' for more details." >&2;}
2851    { (exit 1); exit 1; }; }
2852 fi
2853
2854 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2855 fi
2856 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2857 echo "${ECHO_T}$ac_cv_objext" >&6; }
2858 OBJEXT=$ac_cv_objext
2859 ac_objext=$OBJEXT
2860 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2861 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2862 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2863   echo $ECHO_N "(cached) $ECHO_C" >&6
2864 else
2865   cat >conftest.$ac_ext <<_ACEOF
2866 /* confdefs.h.  */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h.  */
2871
2872 int
2873 main ()
2874 {
2875 #ifndef __GNUC__
2876        choke me
2877 #endif
2878
2879   ;
2880   return 0;
2881 }
2882 _ACEOF
2883 rm -f conftest.$ac_objext
2884 if { (ac_try="$ac_compile"
2885 case "(($ac_try" in
2886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887   *) ac_try_echo=$ac_try;;
2888 esac
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890   (eval "$ac_compile") 2>conftest.er1
2891   ac_status=$?
2892   grep -v '^ *+' conftest.er1 >conftest.err
2893   rm -f conftest.er1
2894   cat conftest.err >&5
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); } && {
2897          test -z "$ac_cxx_werror_flag" ||
2898          test ! -s conftest.err
2899        } && test -s conftest.$ac_objext; then
2900   ac_compiler_gnu=yes
2901 else
2902   echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2904
2905         ac_compiler_gnu=no
2906 fi
2907
2908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2910
2911 fi
2912 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2913 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2914 GXX=`test $ac_compiler_gnu = yes && echo yes`
2915 ac_test_CXXFLAGS=${CXXFLAGS+set}
2916 ac_save_CXXFLAGS=$CXXFLAGS
2917 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2918 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2919 if test "${ac_cv_prog_cxx_g+set}" = set; then
2920   echo $ECHO_N "(cached) $ECHO_C" >&6
2921 else
2922   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2923    ac_cxx_werror_flag=yes
2924    ac_cv_prog_cxx_g=no
2925    CXXFLAGS="-g"
2926    cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h.  */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h.  */
2932
2933 int
2934 main ()
2935 {
2936
2937   ;
2938   return 0;
2939 }
2940 _ACEOF
2941 rm -f conftest.$ac_objext
2942 if { (ac_try="$ac_compile"
2943 case "(($ac_try" in
2944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945   *) ac_try_echo=$ac_try;;
2946 esac
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948   (eval "$ac_compile") 2>conftest.er1
2949   ac_status=$?
2950   grep -v '^ *+' conftest.er1 >conftest.err
2951   rm -f conftest.er1
2952   cat conftest.err >&5
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); } && {
2955          test -z "$ac_cxx_werror_flag" ||
2956          test ! -s conftest.err
2957        } && test -s conftest.$ac_objext; then
2958   ac_cv_prog_cxx_g=yes
2959 else
2960   echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2962
2963         CXXFLAGS=""
2964       cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h.  */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h.  */
2970
2971 int
2972 main ()
2973 {
2974
2975   ;
2976   return 0;
2977 }
2978 _ACEOF
2979 rm -f conftest.$ac_objext
2980 if { (ac_try="$ac_compile"
2981 case "(($ac_try" in
2982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983   *) ac_try_echo=$ac_try;;
2984 esac
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986   (eval "$ac_compile") 2>conftest.er1
2987   ac_status=$?
2988   grep -v '^ *+' conftest.er1 >conftest.err
2989   rm -f conftest.er1
2990   cat conftest.err >&5
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); } && {
2993          test -z "$ac_cxx_werror_flag" ||
2994          test ! -s conftest.err
2995        } && test -s conftest.$ac_objext; then
2996   :
2997 else
2998   echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3000
3001         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3002          CXXFLAGS="-g"
3003          cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h.  */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h.  */
3009
3010 int
3011 main ()
3012 {
3013
3014   ;
3015   return 0;
3016 }
3017 _ACEOF
3018 rm -f conftest.$ac_objext
3019 if { (ac_try="$ac_compile"
3020 case "(($ac_try" in
3021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022   *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025   (eval "$ac_compile") 2>conftest.er1
3026   ac_status=$?
3027   grep -v '^ *+' conftest.er1 >conftest.err
3028   rm -f conftest.er1
3029   cat conftest.err >&5
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); } && {
3032          test -z "$ac_cxx_werror_flag" ||
3033          test ! -s conftest.err
3034        } && test -s conftest.$ac_objext; then
3035   ac_cv_prog_cxx_g=yes
3036 else
3037   echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040
3041 fi
3042
3043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3044 fi
3045
3046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3047 fi
3048
3049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3050    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3051 fi
3052 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3053 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3054 if test "$ac_test_CXXFLAGS" = set; then
3055   CXXFLAGS=$ac_save_CXXFLAGS
3056 elif test $ac_cv_prog_cxx_g = yes; then
3057   if test "$GXX" = yes; then
3058     CXXFLAGS="-g -O2"
3059   else
3060     CXXFLAGS="-g"
3061   fi
3062 else
3063   if test "$GXX" = yes; then
3064     CXXFLAGS="-O2"
3065   else
3066     CXXFLAGS=
3067   fi
3068 fi
3069 ac_ext=c
3070 ac_cpp='$CPP $CPPFLAGS'
3071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3074 DEPDIR="${am__leading_dot}deps"
3075
3076 ac_config_commands="$ac_config_commands depfiles"
3077
3078
3079 am_make=${MAKE-make}
3080 cat > confinc << 'END'
3081 am__doit:
3082         @echo done
3083 .PHONY: am__doit
3084 END
3085 # If we don't find an include directive, just comment out the code.
3086 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3087 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3088 am__include="#"
3089 am__quote=
3090 _am_result=none
3091 # First try GNU make style include.
3092 echo "include confinc" > confmf
3093 # We grep out `Entering directory' and `Leaving directory'
3094 # messages which can occur if `w' ends up in MAKEFLAGS.
3095 # In particular we don't look at `^make:' because GNU make might
3096 # be invoked under some other name (usually "gmake"), in which
3097 # case it prints its new name instead of `make'.
3098 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3099    am__include=include
3100    am__quote=
3101    _am_result=GNU
3102 fi
3103 # Now try BSD make style include.
3104 if test "$am__include" = "#"; then
3105    echo '.include "confinc"' > confmf
3106    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3107       am__include=.include
3108       am__quote="\""
3109       _am_result=BSD
3110    fi
3111 fi
3112
3113
3114 { echo "$as_me:$LINENO: result: $_am_result" >&5
3115 echo "${ECHO_T}$_am_result" >&6; }
3116 rm -f confinc confmf
3117
3118 # Check whether --enable-dependency-tracking was given.
3119 if test "${enable_dependency_tracking+set}" = set; then
3120   enableval=$enable_dependency_tracking;
3121 fi
3122
3123 if test "x$enable_dependency_tracking" != xno; then
3124   am_depcomp="$ac_aux_dir/depcomp"
3125   AMDEPBACKSLASH='\'
3126 fi
3127  if test "x$enable_dependency_tracking" != xno; then
3128   AMDEP_TRUE=
3129   AMDEP_FALSE='#'
3130 else
3131   AMDEP_TRUE='#'
3132   AMDEP_FALSE=
3133 fi
3134
3135
3136
3137 depcc="$CXX"  am_compiler_list=
3138
3139 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3140 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3141 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3142   echo $ECHO_N "(cached) $ECHO_C" >&6
3143 else
3144   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3145   # We make a subdir and do the tests there.  Otherwise we can end up
3146   # making bogus files that we don't know about and never remove.  For
3147   # instance it was reported that on HP-UX the gcc test will end up
3148   # making a dummy file named `D' -- because `-MD' means `put the output
3149   # in D'.
3150   mkdir conftest.dir
3151   # Copy depcomp to subdir because otherwise we won't find it if we're
3152   # using a relative directory.
3153   cp "$am_depcomp" conftest.dir
3154   cd conftest.dir
3155   # We will build objects and dependencies in a subdirectory because
3156   # it helps to detect inapplicable dependency modes.  For instance
3157   # both Tru64's cc and ICC support -MD to output dependencies as a
3158   # side effect of compilation, but ICC will put the dependencies in
3159   # the current directory while Tru64 will put them in the object
3160   # directory.
3161   mkdir sub
3162
3163   am_cv_CXX_dependencies_compiler_type=none
3164   if test "$am_compiler_list" = ""; then
3165      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3166   fi
3167   for depmode in $am_compiler_list; do
3168     # Setup a source with many dependencies, because some compilers
3169     # like to wrap large dependency lists on column 80 (with \), and
3170     # we should not choose a depcomp mode which is confused by this.
3171     #
3172     # We need to recreate these files for each test, as the compiler may
3173     # overwrite some of them when testing with obscure command lines.
3174     # This happens at least with the AIX C compiler.
3175     : > sub/conftest.c
3176     for i in 1 2 3 4 5 6; do
3177       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3178       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3179       # Solaris 8's {/usr,}/bin/sh.
3180       touch sub/conftst$i.h
3181     done
3182     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3183
3184     case $depmode in
3185     nosideeffect)
3186       # after this tag, mechanisms are not by side-effect, so they'll
3187       # only be used when explicitly requested
3188       if test "x$enable_dependency_tracking" = xyes; then
3189         continue
3190       else
3191         break
3192       fi
3193       ;;
3194     none) break ;;
3195     esac
3196     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3197     # mode.  It turns out that the SunPro C++ compiler does not properly
3198     # handle `-M -o', and we need to detect this.
3199     if depmode=$depmode \
3200        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3201        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3202        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3203          >/dev/null 2>conftest.err &&
3204        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3205        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3206        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3207        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3208       # icc doesn't choke on unknown options, it will just issue warnings
3209       # or remarks (even with -Werror).  So we grep stderr for any message
3210       # that says an option was ignored or not supported.
3211       # When given -MP, icc 7.0 and 7.1 complain thusly:
3212       #   icc: Command line warning: ignoring option '-M'; no argument required
3213       # The diagnosis changed in icc 8.0:
3214       #   icc: Command line remark: option '-MP' not supported
3215       if (grep 'ignoring option' conftest.err ||
3216           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3217         am_cv_CXX_dependencies_compiler_type=$depmode
3218         break
3219       fi
3220     fi
3221   done
3222
3223   cd ..
3224   rm -rf conftest.dir
3225 else
3226   am_cv_CXX_dependencies_compiler_type=none
3227 fi
3228
3229 fi
3230 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3231 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3232 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3233
3234  if
3235   test "x$enable_dependency_tracking" != xno \
3236   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3237   am__fastdepCXX_TRUE=
3238   am__fastdepCXX_FALSE='#'
3239 else
3240   am__fastdepCXX_TRUE='#'
3241   am__fastdepCXX_FALSE=
3242 fi
3243
3244
3245 # Check whether --enable-shared was given.
3246 if test "${enable_shared+set}" = set; then
3247   enableval=$enable_shared; p=${PACKAGE-default}
3248     case $enableval in
3249     yes) enable_shared=yes ;;
3250     no) enable_shared=no ;;
3251     *)
3252       enable_shared=no
3253       # Look at the argument we got.  We use all the common list separators.
3254       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3255       for pkg in $enableval; do
3256         IFS="$lt_save_ifs"
3257         if test "X$pkg" = "X$p"; then
3258           enable_shared=yes
3259         fi
3260       done
3261       IFS="$lt_save_ifs"
3262       ;;
3263     esac
3264 else
3265   enable_shared=yes
3266 fi
3267
3268
3269 # Check whether --enable-static was given.
3270 if test "${enable_static+set}" = set; then
3271   enableval=$enable_static; p=${PACKAGE-default}
3272     case $enableval in
3273     yes) enable_static=yes ;;
3274     no) enable_static=no ;;
3275     *)
3276      enable_static=no
3277       # Look at the argument we got.  We use all the common list separators.
3278       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3279       for pkg in $enableval; do
3280         IFS="$lt_save_ifs"
3281         if test "X$pkg" = "X$p"; then
3282           enable_static=yes
3283         fi
3284       done
3285       IFS="$lt_save_ifs"
3286       ;;
3287     esac
3288 else
3289   enable_static=yes
3290 fi
3291
3292
3293 # Check whether --enable-fast-install was given.
3294 if test "${enable_fast_install+set}" = set; then
3295   enableval=$enable_fast_install; p=${PACKAGE-default}
3296     case $enableval in
3297     yes) enable_fast_install=yes ;;
3298     no) enable_fast_install=no ;;
3299     *)
3300       enable_fast_install=no
3301       # Look at the argument we got.  We use all the common list separators.
3302       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3303       for pkg in $enableval; do
3304         IFS="$lt_save_ifs"
3305         if test "X$pkg" = "X$p"; then
3306           enable_fast_install=yes
3307         fi
3308       done
3309       IFS="$lt_save_ifs"
3310       ;;
3311     esac
3312 else
3313   enable_fast_install=yes
3314 fi
3315
3316
3317 # Make sure we can run config.sub.
3318 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3319   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3320 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3321    { (exit 1); exit 1; }; }
3322
3323 { echo "$as_me:$LINENO: checking build system type" >&5
3324 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3325 if test "${ac_cv_build+set}" = set; then
3326   echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328   ac_build_alias=$build_alias
3329 test "x$ac_build_alias" = x &&
3330   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3331 test "x$ac_build_alias" = x &&
3332   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3333 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3334    { (exit 1); exit 1; }; }
3335 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3336   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3337 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3338    { (exit 1); exit 1; }; }
3339
3340 fi
3341 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3342 echo "${ECHO_T}$ac_cv_build" >&6; }
3343 case $ac_cv_build in
3344 *-*-*) ;;
3345 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3346 echo "$as_me: error: invalid value of canonical build" >&2;}
3347    { (exit 1); exit 1; }; };;
3348 esac
3349 build=$ac_cv_build
3350 ac_save_IFS=$IFS; IFS='-'
3351 set x $ac_cv_build
3352 shift
3353 build_cpu=$1
3354 build_vendor=$2
3355 shift; shift
3356 # Remember, the first character of IFS is used to create $*,
3357 # except with old shells:
3358 build_os=$*
3359 IFS=$ac_save_IFS
3360 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3361
3362
3363 { echo "$as_me:$LINENO: checking host system type" >&5
3364 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3365 if test "${ac_cv_host+set}" = set; then
3366   echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368   if test "x$host_alias" = x; then
3369   ac_cv_host=$ac_cv_build
3370 else
3371   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3372     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3373 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3374    { (exit 1); exit 1; }; }
3375 fi
3376
3377 fi
3378 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3379 echo "${ECHO_T}$ac_cv_host" >&6; }
3380 case $ac_cv_host in
3381 *-*-*) ;;
3382 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3383 echo "$as_me: error: invalid value of canonical host" >&2;}
3384    { (exit 1); exit 1; }; };;
3385 esac
3386 host=$ac_cv_host
3387 ac_save_IFS=$IFS; IFS='-'
3388 set x $ac_cv_host
3389 shift
3390 host_cpu=$1
3391 host_vendor=$2
3392 shift; shift
3393 # Remember, the first character of IFS is used to create $*,
3394 # except with old shells:
3395 host_os=$*
3396 IFS=$ac_save_IFS
3397 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3398
3399
3400 ac_ext=c
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405 if test -n "$ac_tool_prefix"; then
3406   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3407 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3410 if test "${ac_cv_prog_CC+set}" = set; then
3411   echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413   if test -n "$CC"; then
3414   ac_cv_prog_CC="$CC" # Let the user override the test.
3415 else
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 for as_dir in $PATH
3418 do
3419   IFS=$as_save_IFS
3420   test -z "$as_dir" && as_dir=.
3421   for ac_exec_ext in '' $ac_executable_extensions; do
3422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3425     break 2
3426   fi
3427 done
3428 done
3429 IFS=$as_save_IFS
3430
3431 fi
3432 fi
3433 CC=$ac_cv_prog_CC
3434 if test -n "$CC"; then
3435   { echo "$as_me:$LINENO: result: $CC" >&5
3436 echo "${ECHO_T}$CC" >&6; }
3437 else
3438   { echo "$as_me:$LINENO: result: no" >&5
3439 echo "${ECHO_T}no" >&6; }
3440 fi
3441
3442
3443 fi
3444 if test -z "$ac_cv_prog_CC"; then
3445   ac_ct_CC=$CC
3446   # Extract the first word of "gcc", so it can be a program name with args.
3447 set dummy gcc; ac_word=$2
3448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3450 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3451   echo $ECHO_N "(cached) $ECHO_C" >&6
3452 else
3453   if test -n "$ac_ct_CC"; then
3454   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3455 else
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 for as_dir in $PATH
3458 do
3459   IFS=$as_save_IFS
3460   test -z "$as_dir" && as_dir=.
3461   for ac_exec_ext in '' $ac_executable_extensions; do
3462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3463     ac_cv_prog_ac_ct_CC="gcc"
3464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3465     break 2
3466   fi
3467 done
3468 done
3469 IFS=$as_save_IFS
3470
3471 fi
3472 fi
3473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3474 if test -n "$ac_ct_CC"; then
3475   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3476 echo "${ECHO_T}$ac_ct_CC" >&6; }
3477 else
3478   { echo "$as_me:$LINENO: result: no" >&5
3479 echo "${ECHO_T}no" >&6; }
3480 fi
3481
3482   if test "x$ac_ct_CC" = x; then
3483     CC=""
3484   else
3485     case $cross_compiling:$ac_tool_warned in
3486 yes:)
3487 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3488 whose name does not start with the host triplet.  If you think this
3489 configuration is useful to you, please write to autoconf@gnu.org." >&5
3490 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3491 whose name does not start with the host triplet.  If you think this
3492 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3493 ac_tool_warned=yes ;;
3494 esac
3495     CC=$ac_ct_CC
3496   fi
3497 else
3498   CC="$ac_cv_prog_CC"
3499 fi
3500
3501 if test -z "$CC"; then
3502           if test -n "$ac_tool_prefix"; then
3503     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3504 set dummy ${ac_tool_prefix}cc; ac_word=$2
3505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3507 if test "${ac_cv_prog_CC+set}" = set; then
3508   echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510   if test -n "$CC"; then
3511   ac_cv_prog_CC="$CC" # Let the user override the test.
3512 else
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3515 do
3516   IFS=$as_save_IFS
3517   test -z "$as_dir" && as_dir=.
3518   for ac_exec_ext in '' $ac_executable_extensions; do
3519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3520     ac_cv_prog_CC="${ac_tool_prefix}cc"
3521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3522     break 2
3523   fi
3524 done
3525 done
3526 IFS=$as_save_IFS
3527
3528 fi
3529 fi
3530 CC=$ac_cv_prog_CC
3531 if test -n "$CC"; then
3532   { echo "$as_me:$LINENO: result: $CC" >&5
3533 echo "${ECHO_T}$CC" >&6; }
3534 else
3535   { echo "$as_me:$LINENO: result: no" >&5
3536 echo "${ECHO_T}no" >&6; }
3537 fi
3538
3539
3540   fi
3541 fi
3542 if test -z "$CC"; then
3543   # Extract the first word of "cc", so it can be a program name with args.
3544 set dummy cc; ac_word=$2
3545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3547 if test "${ac_cv_prog_CC+set}" = set; then
3548   echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550   if test -n "$CC"; then
3551   ac_cv_prog_CC="$CC" # Let the user override the test.
3552 else
3553   ac_prog_rejected=no
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3556 do
3557   IFS=$as_save_IFS
3558   test -z "$as_dir" && as_dir=.
3559   for ac_exec_ext in '' $ac_executable_extensions; do
3560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3561     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3562        ac_prog_rejected=yes
3563        continue
3564      fi
3565     ac_cv_prog_CC="cc"
3566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3567     break 2
3568   fi
3569 done
3570 done
3571 IFS=$as_save_IFS
3572
3573 if test $ac_prog_rejected = yes; then
3574   # We found a bogon in the path, so make sure we never use it.
3575   set dummy $ac_cv_prog_CC
3576   shift
3577   if test $# != 0; then
3578     # We chose a different compiler from the bogus one.
3579     # However, it has the same basename, so the bogon will be chosen
3580     # first if we set CC to just the basename; use the full file name.
3581     shift
3582     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3583   fi
3584 fi
3585 fi
3586 fi
3587 CC=$ac_cv_prog_CC
3588 if test -n "$CC"; then
3589   { echo "$as_me:$LINENO: result: $CC" >&5
3590 echo "${ECHO_T}$CC" >&6; }
3591 else
3592   { echo "$as_me:$LINENO: result: no" >&5
3593 echo "${ECHO_T}no" >&6; }
3594 fi
3595
3596
3597 fi
3598 if test -z "$CC"; then
3599   if test -n "$ac_tool_prefix"; then
3600   for ac_prog in cl.exe
3601   do
3602     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3606 if test "${ac_cv_prog_CC+set}" = set; then
3607   echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609   if test -n "$CC"; then
3610   ac_cv_prog_CC="$CC" # Let the user override the test.
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3614 do
3615   IFS=$as_save_IFS
3616   test -z "$as_dir" && as_dir=.
3617   for ac_exec_ext in '' $ac_executable_extensions; do
3618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3619     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3621     break 2
3622   fi
3623 done
3624 done
3625 IFS=$as_save_IFS
3626
3627 fi
3628 fi
3629 CC=$ac_cv_prog_CC
3630 if test -n "$CC"; then
3631   { echo "$as_me:$LINENO: result: $CC" >&5
3632 echo "${ECHO_T}$CC" >&6; }
3633 else
3634   { echo "$as_me:$LINENO: result: no" >&5
3635 echo "${ECHO_T}no" >&6; }
3636 fi
3637
3638
3639     test -n "$CC" && break
3640   done
3641 fi
3642 if test -z "$CC"; then
3643   ac_ct_CC=$CC
3644   for ac_prog in cl.exe
3645 do
3646   # Extract the first word of "$ac_prog", so it can be a program name with args.
3647 set dummy $ac_prog; ac_word=$2
3648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3650 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3651   echo $ECHO_N "(cached) $ECHO_C" >&6
3652 else
3653   if test -n "$ac_ct_CC"; then
3654   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3658 do
3659   IFS=$as_save_IFS
3660   test -z "$as_dir" && as_dir=.
3661   for ac_exec_ext in '' $ac_executable_extensions; do
3662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3663     ac_cv_prog_ac_ct_CC="$ac_prog"
3664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3665     break 2
3666   fi
3667 done
3668 done
3669 IFS=$as_save_IFS
3670
3671 fi
3672 fi
3673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3674 if test -n "$ac_ct_CC"; then
3675   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3676 echo "${ECHO_T}$ac_ct_CC" >&6; }
3677 else
3678   { echo "$as_me:$LINENO: result: no" >&5
3679 echo "${ECHO_T}no" >&6; }
3680 fi
3681
3682
3683   test -n "$ac_ct_CC" && break
3684 done
3685
3686   if test "x$ac_ct_CC" = x; then
3687     CC=""
3688   else
3689     case $cross_compiling:$ac_tool_warned in
3690 yes:)
3691 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3692 whose name does not start with the host triplet.  If you think this
3693 configuration is useful to you, please write to autoconf@gnu.org." >&5
3694 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3695 whose name does not start with the host triplet.  If you think this
3696 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3697 ac_tool_warned=yes ;;
3698 esac
3699     CC=$ac_ct_CC
3700   fi
3701 fi
3702
3703 fi
3704
3705
3706 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3707 See \`config.log' for more details." >&5
3708 echo "$as_me: error: no acceptable C compiler found in \$PATH
3709 See \`config.log' for more details." >&2;}
3710    { (exit 1); exit 1; }; }
3711
3712 # Provide some information about the compiler.
3713 echo "$as_me:$LINENO: checking for C compiler version" >&5
3714 ac_compiler=`set X $ac_compile; echo $2`
3715 { (ac_try="$ac_compiler --version >&5"
3716 case "(($ac_try" in
3717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718   *) ac_try_echo=$ac_try;;
3719 esac
3720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3721   (eval "$ac_compiler --version >&5") 2>&5
3722   ac_status=$?
3723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724   (exit $ac_status); }
3725 { (ac_try="$ac_compiler -v >&5"
3726 case "(($ac_try" in
3727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728   *) ac_try_echo=$ac_try;;
3729 esac
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731   (eval "$ac_compiler -v >&5") 2>&5
3732   ac_status=$?
3733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734   (exit $ac_status); }
3735 { (ac_try="$ac_compiler -V >&5"
3736 case "(($ac_try" in
3737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738   *) ac_try_echo=$ac_try;;
3739 esac
3740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3741   (eval "$ac_compiler -V >&5") 2>&5
3742   ac_status=$?
3743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744   (exit $ac_status); }
3745
3746 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3747 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3748 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3749   echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751   cat >conftest.$ac_ext <<_ACEOF
3752 /* confdefs.h.  */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h.  */
3757
3758 int
3759 main ()
3760 {
3761 #ifndef __GNUC__
3762        choke me
3763 #endif
3764
3765   ;
3766   return 0;
3767 }
3768 _ACEOF
3769 rm -f conftest.$ac_objext
3770 if { (ac_try="$ac_compile"
3771 case "(($ac_try" in
3772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773   *) ac_try_echo=$ac_try;;
3774 esac
3775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3776   (eval "$ac_compile") 2>conftest.er1
3777   ac_status=$?
3778   grep -v '^ *+' conftest.er1 >conftest.err
3779   rm -f conftest.er1
3780   cat conftest.err >&5
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); } && {
3783          test -z "$ac_c_werror_flag" ||
3784          test ! -s conftest.err
3785        } && test -s conftest.$ac_objext; then
3786   ac_compiler_gnu=yes
3787 else
3788   echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3790
3791         ac_compiler_gnu=no
3792 fi
3793
3794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3796
3797 fi
3798 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3799 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3800 GCC=`test $ac_compiler_gnu = yes && echo yes`
3801 ac_test_CFLAGS=${CFLAGS+set}
3802 ac_save_CFLAGS=$CFLAGS
3803 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3804 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3805 if test "${ac_cv_prog_cc_g+set}" = set; then
3806   echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808   ac_save_c_werror_flag=$ac_c_werror_flag
3809    ac_c_werror_flag=yes
3810    ac_cv_prog_cc_g=no
3811    CFLAGS="-g"
3812    cat >conftest.$ac_ext <<_ACEOF
3813 /* confdefs.h.  */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h.  */
3818
3819 int
3820 main ()
3821 {
3822
3823   ;
3824   return 0;
3825 }
3826 _ACEOF
3827 rm -f conftest.$ac_objext
3828 if { (ac_try="$ac_compile"
3829 case "(($ac_try" in
3830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831   *) ac_try_echo=$ac_try;;
3832 esac
3833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834   (eval "$ac_compile") 2>conftest.er1
3835   ac_status=$?
3836   grep -v '^ *+' conftest.er1 >conftest.err
3837   rm -f conftest.er1
3838   cat conftest.err >&5
3839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840   (exit $ac_status); } && {
3841          test -z "$ac_c_werror_flag" ||
3842          test ! -s conftest.err
3843        } && test -s conftest.$ac_objext; then
3844   ac_cv_prog_cc_g=yes
3845 else
3846   echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3848
3849         CFLAGS=""
3850       cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h.  */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h.  */
3856
3857 int
3858 main ()
3859 {
3860
3861   ;
3862   return 0;
3863 }
3864 _ACEOF
3865 rm -f conftest.$ac_objext
3866 if { (ac_try="$ac_compile"
3867 case "(($ac_try" in
3868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869   *) ac_try_echo=$ac_try;;
3870 esac
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872   (eval "$ac_compile") 2>conftest.er1
3873   ac_status=$?
3874   grep -v '^ *+' conftest.er1 >conftest.err
3875   rm -f conftest.er1
3876   cat conftest.err >&5
3877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878   (exit $ac_status); } && {
3879          test -z "$ac_c_werror_flag" ||
3880          test ! -s conftest.err
3881        } && test -s conftest.$ac_objext; then
3882   :
3883 else
3884   echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.$ac_ext >&5
3886
3887         ac_c_werror_flag=$ac_save_c_werror_flag
3888          CFLAGS="-g"
3889          cat >conftest.$ac_ext <<_ACEOF
3890 /* confdefs.h.  */
3891 _ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h.  */
3895
3896 int
3897 main ()
3898 {
3899
3900   ;
3901   return 0;
3902 }
3903 _ACEOF
3904 rm -f conftest.$ac_objext
3905 if { (ac_try="$ac_compile"
3906 case "(($ac_try" in
3907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908   *) ac_try_echo=$ac_try;;
3909 esac
3910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3911   (eval "$ac_compile") 2>conftest.er1
3912   ac_status=$?
3913   grep -v '^ *+' conftest.er1 >conftest.err
3914   rm -f conftest.er1
3915   cat conftest.err >&5
3916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917   (exit $ac_status); } && {
3918          test -z "$ac_c_werror_flag" ||
3919          test ! -s conftest.err
3920        } && test -s conftest.$ac_objext; then
3921   ac_cv_prog_cc_g=yes
3922 else
3923   echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3925
3926
3927 fi
3928
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 fi
3931
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 fi
3934
3935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936    ac_c_werror_flag=$ac_save_c_werror_flag
3937 fi
3938 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3939 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3940 if test "$ac_test_CFLAGS" = set; then
3941   CFLAGS=$ac_save_CFLAGS
3942 elif test $ac_cv_prog_cc_g = yes; then
3943   if test "$GCC" = yes; then
3944     CFLAGS="-g -O2"
3945   else
3946     CFLAGS="-g"
3947   fi
3948 else
3949   if test "$GCC" = yes; then
3950     CFLAGS="-O2"
3951   else
3952     CFLAGS=
3953   fi
3954 fi
3955 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3956 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3957 if test "${ac_cv_prog_cc_c89+set}" = set; then
3958   echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960   ac_cv_prog_cc_c89=no
3961 ac_save_CC=$CC
3962 cat >conftest.$ac_ext <<_ACEOF
3963 /* confdefs.h.  */
3964 _ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h.  */
3968 #include <stdarg.h>
3969 #include <stdio.h>
3970 #include <sys/types.h>
3971 #include <sys/stat.h>
3972 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3973 struct buf { int x; };
3974 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3975 static char *e (p, i)
3976      char **p;
3977      int i;
3978 {
3979   return p[i];
3980 }
3981 static char *f (char * (*g) (char **, int), char **p, ...)
3982 {
3983   char *s;
3984   va_list v;
3985   va_start (v,p);
3986   s = g (p, va_arg (v,int));
3987   va_end (v);
3988   return s;
3989 }
3990
3991 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3992    function prototypes and stuff, but not '\xHH' hex character constants.
3993    These don't provoke an error unfortunately, instead are silently treated
3994    as 'x'.  The following induces an error, until -std is added to get
3995    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3996    array size at least.  It's necessary to write '\x00'==0 to get something
3997    that's true only with -std.  */
3998 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3999
4000 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4001    inside strings and character constants.  */
4002 #define FOO(x) 'x'
4003 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4004
4005 int test (int i, double x);
4006 struct s1 {int (*f) (int a);};
4007 struct s2 {int (*f) (double a);};
4008 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4009 int argc;
4010 char **argv;
4011 int
4012 main ()
4013 {
4014 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4015   ;
4016   return 0;
4017 }
4018 _ACEOF
4019 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4020         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4021 do
4022   CC="$ac_save_CC $ac_arg"
4023   rm -f conftest.$ac_objext
4024 if { (ac_try="$ac_compile"
4025 case "(($ac_try" in
4026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027   *) ac_try_echo=$ac_try;;
4028 esac
4029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4030   (eval "$ac_compile") 2>conftest.er1
4031   ac_status=$?
4032   grep -v '^ *+' conftest.er1 >conftest.err
4033   rm -f conftest.er1
4034   cat conftest.err >&5
4035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036   (exit $ac_status); } && {
4037          test -z "$ac_c_werror_flag" ||
4038          test ! -s conftest.err
4039        } && test -s conftest.$ac_objext; then
4040   ac_cv_prog_cc_c89=$ac_arg
4041 else
4042   echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4044
4045
4046 fi
4047
4048 rm -f core conftest.err conftest.$ac_objext
4049   test "x$ac_cv_prog_cc_c89" != "xno" && break
4050 done
4051 rm -f conftest.$ac_ext
4052 CC=$ac_save_CC
4053
4054 fi
4055 # AC_CACHE_VAL
4056 case "x$ac_cv_prog_cc_c89" in
4057   x)
4058     { echo "$as_me:$LINENO: result: none needed" >&5
4059 echo "${ECHO_T}none needed" >&6; } ;;
4060   xno)
4061     { echo "$as_me:$LINENO: result: unsupported" >&5
4062 echo "${ECHO_T}unsupported" >&6; } ;;
4063   *)
4064     CC="$CC $ac_cv_prog_cc_c89"
4065     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4066 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4067 esac
4068
4069
4070 ac_ext=c
4071 ac_cpp='$CPP $CPPFLAGS'
4072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075
4076 depcc="$CC"   am_compiler_list=
4077
4078 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4079 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4080 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4081   echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4084   # We make a subdir and do the tests there.  Otherwise we can end up
4085   # making bogus files that we don't know about and never remove.  For
4086   # instance it was reported that on HP-UX the gcc test will end up
4087   # making a dummy file named `D' -- because `-MD' means `put the output
4088   # in D'.
4089   mkdir conftest.dir
4090   # Copy depcomp to subdir because otherwise we won't find it if we're
4091   # using a relative directory.
4092   cp "$am_depcomp" conftest.dir
4093   cd conftest.dir
4094   # We will build objects and dependencies in a subdirectory because
4095   # it helps to detect inapplicable dependency modes.  For instance
4096   # both Tru64's cc and ICC support -MD to output dependencies as a
4097   # side effect of compilation, but ICC will put the dependencies in
4098   # the current directory while Tru64 will put them in the object
4099   # directory.
4100   mkdir sub
4101
4102   am_cv_CC_dependencies_compiler_type=none
4103   if test "$am_compiler_list" = ""; then
4104      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4105   fi
4106   for depmode in $am_compiler_list; do
4107     # Setup a source with many dependencies, because some compilers
4108     # like to wrap large dependency lists on column 80 (with \), and
4109     # we should not choose a depcomp mode which is confused by this.
4110     #
4111     # We need to recreate these files for each test, as the compiler may
4112     # overwrite some of them when testing with obscure command lines.
4113     # This happens at least with the AIX C compiler.
4114     : > sub/conftest.c
4115     for i in 1 2 3 4 5 6; do
4116       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4117       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4118       # Solaris 8's {/usr,}/bin/sh.
4119       touch sub/conftst$i.h
4120     done
4121     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4122
4123     case $depmode in
4124     nosideeffect)
4125       # after this tag, mechanisms are not by side-effect, so they'll
4126       # only be used when explicitly requested
4127       if test "x$enable_dependency_tracking" = xyes; then
4128         continue
4129       else
4130         break
4131       fi
4132       ;;
4133     none) break ;;
4134     esac
4135     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4136     # mode.  It turns out that the SunPro C++ compiler does not properly
4137     # handle `-M -o', and we need to detect this.
4138     if depmode=$depmode \
4139        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4140        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4141        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4142          >/dev/null 2>conftest.err &&
4143        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4144        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4145        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4146        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4147       # icc doesn't choke on unknown options, it will just issue warnings
4148       # or remarks (even with -Werror).  So we grep stderr for any message
4149       # that says an option was ignored or not supported.
4150       # When given -MP, icc 7.0 and 7.1 complain thusly:
4151       #   icc: Command line warning: ignoring option '-M'; no argument required
4152       # The diagnosis changed in icc 8.0:
4153       #   icc: Command line remark: option '-MP' not supported
4154       if (grep 'ignoring option' conftest.err ||
4155           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4156         am_cv_CC_dependencies_compiler_type=$depmode
4157         break
4158       fi
4159     fi
4160   done
4161
4162   cd ..
4163   rm -rf conftest.dir
4164 else
4165   am_cv_CC_dependencies_compiler_type=none
4166 fi
4167
4168 fi
4169 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4170 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4171 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4172
4173  if
4174   test "x$enable_dependency_tracking" != xno \
4175   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4176   am__fastdepCC_TRUE=
4177   am__fastdepCC_FALSE='#'
4178 else
4179   am__fastdepCC_TRUE='#'
4180   am__fastdepCC_FALSE=
4181 fi
4182
4183
4184 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4185 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4186 if test "${lt_cv_path_SED+set}" = set; then
4187   echo $ECHO_N "(cached) $ECHO_C" >&6
4188 else
4189   # Loop through the user's path and test for sed and gsed.
4190 # Then use that list of sed's as ones to test for truncation.
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4193 do
4194   IFS=$as_save_IFS
4195   test -z "$as_dir" && as_dir=.
4196   for lt_ac_prog in sed gsed; do
4197     for ac_exec_ext in '' $ac_executable_extensions; do
4198       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4199         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4200       fi
4201     done
4202   done
4203 done
4204 IFS=$as_save_IFS
4205 lt_ac_max=0
4206 lt_ac_count=0
4207 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4208 # along with /bin/sed that truncates output.
4209 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4210   test ! -f $lt_ac_sed && continue
4211   cat /dev/null > conftest.in
4212   lt_ac_count=0
4213   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4214   # Check for GNU sed and select it if it is found.
4215   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4216     lt_cv_path_SED=$lt_ac_sed
4217     break
4218   fi
4219   while true; do
4220     cat conftest.in conftest.in >conftest.tmp
4221     mv conftest.tmp conftest.in
4222     cp conftest.in conftest.nl
4223     echo >>conftest.nl
4224     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4225     cmp -s conftest.out conftest.nl || break
4226     # 10000 chars as input seems more than enough
4227     test $lt_ac_count -gt 10 && break
4228     lt_ac_count=`expr $lt_ac_count + 1`
4229     if test $lt_ac_count -gt $lt_ac_max; then
4230       lt_ac_max=$lt_ac_count
4231       lt_cv_path_SED=$lt_ac_sed
4232     fi
4233   done
4234 done
4235
4236 fi
4237
4238 SED=$lt_cv_path_SED
4239
4240 { echo "$as_me:$LINENO: result: $SED" >&5
4241 echo "${ECHO_T}$SED" >&6; }
4242
4243 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4244 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4245 if test "${ac_cv_path_GREP+set}" = set; then
4246   echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248   # Extract the first word of "grep ggrep" to use in msg output
4249 if test -z "$GREP"; then
4250 set dummy grep ggrep; ac_prog_name=$2
4251 if test "${ac_cv_path_GREP+set}" = set; then
4252   echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254   ac_path_GREP_found=false
4255 # Loop through the user's path and test for each of PROGNAME-LIST
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4258 do
4259   IFS=$as_save_IFS
4260   test -z "$as_dir" && as_dir=.
4261   for ac_prog in grep ggrep; do
4262   for ac_exec_ext in '' $ac_executable_extensions; do
4263     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4264     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4265     # Check for GNU ac_path_GREP and select it if it is found.
4266   # Check for GNU $ac_path_GREP
4267 case `"$ac_path_GREP" --version 2>&1` in
4268 *GNU*)
4269   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4270 *)
4271   ac_count=0
4272   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4273   while :
4274   do
4275     cat "conftest.in" "conftest.in" >"conftest.tmp"
4276     mv "conftest.tmp" "conftest.in"
4277     cp "conftest.in" "conftest.nl"
4278     echo 'GREP' >> "conftest.nl"
4279     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4280     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4281     ac_count=`expr $ac_count + 1`
4282     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4283       # Best one so far, save it but keep looking for a better one
4284       ac_cv_path_GREP="$ac_path_GREP"
4285       ac_path_GREP_max=$ac_count
4286     fi
4287     # 10*(2^10) chars as input seems more than enough
4288     test $ac_count -gt 10 && break
4289   done
4290   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4291 esac
4292
4293
4294     $ac_path_GREP_found && break 3
4295   done
4296 done
4297
4298 done
4299 IFS=$as_save_IFS
4300
4301
4302 fi
4303
4304 GREP="$ac_cv_path_GREP"
4305 if test -z "$GREP"; then
4306   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4307 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4308    { (exit 1); exit 1; }; }
4309 fi
4310
4311 else
4312   ac_cv_path_GREP=$GREP
4313 fi
4314
4315
4316 fi
4317 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4318 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4319  GREP="$ac_cv_path_GREP"
4320
4321
4322 { echo "$as_me:$LINENO: checking for egrep" >&5
4323 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4324 if test "${ac_cv_path_EGREP+set}" = set; then
4325   echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4328    then ac_cv_path_EGREP="$GREP -E"
4329    else
4330      # Extract the first word of "egrep" to use in msg output
4331 if test -z "$EGREP"; then
4332 set dummy egrep; ac_prog_name=$2
4333 if test "${ac_cv_path_EGREP+set}" = set; then
4334   echo $ECHO_N "(cached) $ECHO_C" >&6
4335 else
4336   ac_path_EGREP_found=false
4337 # Loop through the user's path and test for each of PROGNAME-LIST
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4340 do
4341   IFS=$as_save_IFS
4342   test -z "$as_dir" && as_dir=.
4343   for ac_prog in egrep; do
4344   for ac_exec_ext in '' $ac_executable_extensions; do
4345     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4346     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4347     # Check for GNU ac_path_EGREP and select it if it is found.
4348   # Check for GNU $ac_path_EGREP
4349 case `"$ac_path_EGREP" --version 2>&1` in
4350 *GNU*)
4351   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4352 *)
4353   ac_count=0
4354   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4355   while :
4356   do
4357     cat "conftest.in" "conftest.in" >"conftest.tmp"
4358     mv "conftest.tmp" "conftest.in"
4359     cp "conftest.in" "conftest.nl"
4360     echo 'EGREP' >> "conftest.nl"
4361     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4362     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4363     ac_count=`expr $ac_count + 1`
4364     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4365       # Best one so far, save it but keep looking for a better one
4366       ac_cv_path_EGREP="$ac_path_EGREP"
4367       ac_path_EGREP_max=$ac_count
4368     fi
4369     # 10*(2^10) chars as input seems more than enough
4370     test $ac_count -gt 10 && break
4371   done
4372   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4373 esac
4374
4375
4376     $ac_path_EGREP_found && break 3
4377   done
4378 done
4379
4380 done
4381 IFS=$as_save_IFS
4382
4383
4384 fi
4385
4386 EGREP="$ac_cv_path_EGREP"
4387 if test -z "$EGREP"; then
4388   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4389 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4390    { (exit 1); exit 1; }; }
4391 fi
4392
4393 else
4394   ac_cv_path_EGREP=$EGREP
4395 fi
4396
4397
4398    fi
4399 fi
4400 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4401 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4402  EGREP="$ac_cv_path_EGREP"
4403
4404
4405
4406 # Check whether --with-gnu-ld was given.
4407 if test "${with_gnu_ld+set}" = set; then
4408   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4409 else
4410   with_gnu_ld=no
4411 fi
4412
4413 ac_prog=ld
4414 if test "$GCC" = yes; then
4415   # Check if gcc -print-prog-name=ld gives a path.
4416   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4417 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4418   case $host in
4419   *-*-mingw*)
4420     # gcc leaves a trailing carriage return which upsets mingw
4421     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4422   *)
4423     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4424   esac
4425   case $ac_prog in
4426     # Accept absolute paths.
4427     [\\/]* | ?:[\\/]*)
4428       re_direlt='/[^/][^/]*/\.\./'
4429       # Canonicalize the pathname of ld
4430       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4431       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4432         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4433       done
4434       test -z "$LD" && LD="$ac_prog"
4435       ;;
4436   "")
4437     # If it fails, then pretend we aren't using GCC.
4438     ac_prog=ld
4439     ;;
4440   *)
4441     # If it is relative, then search for the first ld in PATH.
4442     with_gnu_ld=unknown
4443     ;;
4444   esac
4445 elif test "$with_gnu_ld" = yes; then
4446   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4447 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4448 else
4449   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4450 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4451 fi
4452 if test "${lt_cv_path_LD+set}" = set; then
4453   echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455   if test -z "$LD"; then
4456   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4457   for ac_dir in $PATH; do
4458     IFS="$lt_save_ifs"
4459     test -z "$ac_dir" && ac_dir=.
4460     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4461       lt_cv_path_LD="$ac_dir/$ac_prog"
4462       # Check to see if the program is GNU ld.  I'd rather use --version,
4463       # but apparently some variants of GNU ld only accept -v.
4464       # Break only if it was the GNU/non-GNU ld that we prefer.
4465       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4466       *GNU* | *'with BFD'*)
4467         test "$with_gnu_ld" != no && break
4468         ;;
4469       *)
4470         test "$with_gnu_ld" != yes && break
4471         ;;
4472       esac
4473     fi
4474   done
4475   IFS="$lt_save_ifs"
4476 else
4477   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4478 fi
4479 fi
4480
4481 LD="$lt_cv_path_LD"
4482 if test -n "$LD"; then
4483   { echo "$as_me:$LINENO: result: $LD" >&5
4484 echo "${ECHO_T}$LD" >&6; }
4485 else
4486   { echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6; }
4488 fi
4489 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4490 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4491    { (exit 1); exit 1; }; }
4492 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4493 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4494 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4495   echo $ECHO_N "(cached) $ECHO_C" >&6
4496 else
4497   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4498 case `$LD -v 2>&1 </dev/null` in
4499 *GNU* | *'with BFD'*)
4500   lt_cv_prog_gnu_ld=yes
4501   ;;
4502 *)
4503   lt_cv_prog_gnu_ld=no
4504   ;;
4505 esac
4506 fi
4507 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4508 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4509 with_gnu_ld=$lt_cv_prog_gnu_ld
4510
4511
4512 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4513 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4514 if test "${lt_cv_ld_reload_flag+set}" = set; then
4515   echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517   lt_cv_ld_reload_flag='-r'
4518 fi
4519 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4520 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4521 reload_flag=$lt_cv_ld_reload_flag
4522 case $reload_flag in
4523 "" | " "*) ;;
4524 *) reload_flag=" $reload_flag" ;;
4525 esac
4526 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4527 case $host_os in
4528   darwin*)
4529     if test "$GCC" = yes; then
4530       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4531     else
4532       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4533     fi
4534     ;;
4535 esac
4536
4537 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4538 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4539 if test "${lt_cv_path_NM+set}" = set; then
4540   echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542   if test -n "$NM"; then
4543   # Let the user override the test.
4544   lt_cv_path_NM="$NM"
4545 else
4546   lt_nm_to_check="${ac_tool_prefix}nm"
4547   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4548     lt_nm_to_check="$lt_nm_to_check nm"
4549   fi
4550   for lt_tmp_nm in $lt_nm_to_check; do
4551     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4552     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4553       IFS="$lt_save_ifs"
4554       test -z "$ac_dir" && ac_dir=.
4555       tmp_nm="$ac_dir/$lt_tmp_nm"
4556       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4557         # Check to see if the nm accepts a BSD-compat flag.
4558         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4559         #   nm: unknown option "B" ignored
4560         # Tru64's nm complains that /dev/null is an invalid object file
4561         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4562         */dev/null* | *'Invalid file or object type'*)
4563           lt_cv_path_NM="$tmp_nm -B"
4564           break
4565           ;;
4566         *)
4567           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4568           */dev/null*)
4569             lt_cv_path_NM="$tmp_nm -p"
4570             break
4571             ;;
4572           *)
4573             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4574             continue # so that we can try to find one that supports BSD flags
4575             ;;
4576           esac
4577           ;;
4578         esac
4579       fi
4580     done
4581     IFS="$lt_save_ifs"
4582   done
4583   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4584 fi
4585 fi
4586 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4587 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4588 NM="$lt_cv_path_NM"
4589
4590 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4591 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4592 LN_S=$as_ln_s
4593 if test "$LN_S" = "ln -s"; then
4594   { echo "$as_me:$LINENO: result: yes" >&5
4595 echo "${ECHO_T}yes" >&6; }
4596 else
4597   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4598 echo "${ECHO_T}no, using $LN_S" >&6; }
4599 fi
4600
4601 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4602 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4603 if test "${lt_cv_deplibs_check_method+set}" = set; then
4604   echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606   lt_cv_file_magic_cmd='$MAGIC_CMD'
4607 lt_cv_file_magic_test_file=
4608 lt_cv_deplibs_check_method='unknown'
4609 # Need to set the preceding variable on all platforms that support
4610 # interlibrary dependencies.
4611 # 'none' -- dependencies not supported.
4612 # `unknown' -- same as none, but documents that we really don't know.
4613 # 'pass_all' -- all dependencies passed with no checks.
4614 # 'test_compile' -- check by making test program.
4615 # 'file_magic [[regex]]' -- check by looking for files in library path
4616 # which responds to the $file_magic_cmd with a given extended regex.
4617 # If you have `file' or equivalent on your system and you're not sure
4618 # whether `pass_all' will *always* work, you probably want this one.
4619
4620 case $host_os in
4621 aix[4-9]*)
4622   lt_cv_deplibs_check_method=pass_all
4623   ;;
4624
4625 beos*)
4626   lt_cv_deplibs_check_method=pass_all
4627   ;;
4628
4629 bsdi[45]*)
4630   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4631   lt_cv_file_magic_cmd='/usr/bin/file -L'
4632   lt_cv_file_magic_test_file=/shlib/libc.so
4633   ;;
4634
4635 cygwin*)
4636   # func_win32_libid is a shell function defined in ltmain.sh
4637   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4638   lt_cv_file_magic_cmd='func_win32_libid'
4639   ;;
4640
4641 mingw* | pw32*)
4642   # Base MSYS/MinGW do not provide the 'file' command needed by
4643   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4644   # unless we find 'file', for example because we are cross-compiling.
4645   if ( file / ) >/dev/null 2>&1; then
4646     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4647     lt_cv_file_magic_cmd='func_win32_libid'
4648   else
4649     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4650     lt_cv_file_magic_cmd='$OBJDUMP -f'
4651   fi
4652   ;;
4653
4654 darwin* | rhapsody*)
4655   lt_cv_deplibs_check_method=pass_all
4656   ;;
4657
4658 freebsd* | dragonfly*)
4659   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4660     case $host_cpu in
4661     i*86 )
4662       # Not sure whether the presence of OpenBSD here was a mistake.
4663       # Let's accept both of them until this is cleared up.
4664       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4665       lt_cv_file_magic_cmd=/usr/bin/file
4666       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4667       ;;
4668     esac
4669   else
4670     lt_cv_deplibs_check_method=pass_all
4671   fi
4672   ;;
4673
4674 gnu*)
4675   lt_cv_deplibs_check_method=pass_all
4676   ;;
4677
4678 hpux10.20* | hpux11*)
4679   lt_cv_file_magic_cmd=/usr/bin/file
4680   case $host_cpu in
4681   ia64*)
4682     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4683     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4684     ;;
4685   hppa*64*)
4686     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]'
4687     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4688     ;;
4689   *)
4690     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4691     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4692     ;;
4693   esac
4694   ;;
4695
4696 interix[3-9]*)
4697   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4698   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4699   ;;
4700
4701 irix5* | irix6* | nonstopux*)
4702   case $LD in
4703   *-32|*"-32 ") libmagic=32-bit;;
4704   *-n32|*"-n32 ") libmagic=N32;;
4705   *-64|*"-64 ") libmagic=64-bit;;
4706   *) libmagic=never-match;;
4707   esac
4708   lt_cv_deplibs_check_method=pass_all
4709   ;;
4710
4711 # This must be Linux ELF.
4712 linux* | k*bsd*-gnu)
4713   lt_cv_deplibs_check_method=pass_all
4714   ;;
4715
4716 netbsd* | netbsdelf*-gnu)
4717   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4718     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4719   else
4720     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4721   fi
4722   ;;
4723
4724 newos6*)
4725   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4726   lt_cv_file_magic_cmd=/usr/bin/file
4727   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4728   ;;
4729
4730 nto-qnx*)
4731   lt_cv_deplibs_check_method=unknown
4732   ;;
4733
4734 openbsd*)
4735   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4736     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4737   else
4738     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4739   fi
4740   ;;
4741
4742 osf3* | osf4* | osf5*)
4743   lt_cv_deplibs_check_method=pass_all
4744   ;;
4745
4746 rdos*)
4747   lt_cv_deplibs_check_method=pass_all
4748   ;;
4749
4750 solaris*)
4751   lt_cv_deplibs_check_method=pass_all
4752   ;;
4753
4754 sysv4 | sysv4.3*)
4755   case $host_vendor in
4756   motorola)
4757     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]'
4758     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4759     ;;
4760   ncr)
4761     lt_cv_deplibs_check_method=pass_all
4762     ;;
4763   sequent)
4764     lt_cv_file_magic_cmd='/bin/file'
4765     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4766     ;;
4767   sni)
4768     lt_cv_file_magic_cmd='/bin/file'
4769     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4770     lt_cv_file_magic_test_file=/lib/libc.so
4771     ;;
4772   siemens)
4773     lt_cv_deplibs_check_method=pass_all
4774     ;;
4775   pc)
4776     lt_cv_deplibs_check_method=pass_all
4777     ;;
4778   esac
4779   ;;
4780
4781 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4782   lt_cv_deplibs_check_method=pass_all
4783   ;;
4784 esac
4785
4786 fi
4787 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4788 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4789 file_magic_cmd=$lt_cv_file_magic_cmd
4790 deplibs_check_method=$lt_cv_deplibs_check_method
4791 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4792
4793
4794
4795
4796 # If no C compiler was specified, use CC.
4797 LTCC=${LTCC-"$CC"}
4798
4799 # If no C compiler flags were specified, use CFLAGS.
4800 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4801
4802 # Allow CC to be a program name with arguments.
4803 compiler=$CC
4804
4805
4806 # Check whether --enable-libtool-lock was given.
4807 if test "${enable_libtool_lock+set}" = set; then
4808   enableval=$enable_libtool_lock;
4809 fi
4810
4811 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4812
4813 # Some flags need to be propagated to the compiler or linker for good
4814 # libtool support.
4815 case $host in
4816 ia64-*-hpux*)
4817   # Find out which ABI we are using.
4818   echo 'int i;' > conftest.$ac_ext
4819   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4820   (eval $ac_compile) 2>&5
4821   ac_status=$?
4822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823   (exit $ac_status); }; then
4824     case `/usr/bin/file conftest.$ac_objext` in
4825     *ELF-32*)
4826       HPUX_IA64_MODE="32"
4827       ;;
4828     *ELF-64*)
4829       HPUX_IA64_MODE="64"
4830       ;;
4831     esac
4832   fi
4833   rm -rf conftest*
4834   ;;
4835 *-*-irix6*)
4836   # Find out which ABI we are using.
4837   echo '#line 4837 "configure"' > conftest.$ac_ext
4838   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4839   (eval $ac_compile) 2>&5
4840   ac_status=$?
4841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842   (exit $ac_status); }; then
4843    if test "$lt_cv_prog_gnu_ld" = yes; then
4844     case `/usr/bin/file conftest.$ac_objext` in
4845     *32-bit*)
4846       LD="${LD-ld} -melf32bsmip"
4847       ;;
4848     *N32*)
4849       LD="${LD-ld} -melf32bmipn32"
4850       ;;
4851     *64-bit*)
4852       LD="${LD-ld} -melf64bmip"
4853       ;;
4854     esac
4855    else
4856     case `/usr/bin/file conftest.$ac_objext` in
4857     *32-bit*)
4858       LD="${LD-ld} -32"
4859       ;;
4860     *N32*)
4861       LD="${LD-ld} -n32"
4862       ;;
4863     *64-bit*)
4864       LD="${LD-ld} -64"
4865       ;;
4866     esac
4867    fi
4868   fi
4869   rm -rf conftest*
4870   ;;
4871
4872 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4873 s390*-*linux*|sparc*-*linux*)
4874   # Find out which ABI we are using.
4875   echo 'int i;' > conftest.$ac_ext
4876   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4877   (eval $ac_compile) 2>&5
4878   ac_status=$?
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); }; then
4881     case `/usr/bin/file conftest.o` in
4882     *32-bit*)
4883       case $host in
4884         x86_64-*kfreebsd*-gnu)
4885           LD="${LD-ld} -m elf_i386_fbsd"
4886           ;;
4887         x86_64-*linux*)
4888           LD="${LD-ld} -m elf_i386"
4889           ;;
4890         ppc64-*linux*|powerpc64-*linux*)
4891           LD="${LD-ld} -m elf32ppclinux"
4892           ;;
4893         s390x-*linux*)
4894           LD="${LD-ld} -m elf_s390"
4895           ;;
4896         sparc64-*linux*)
4897           LD="${LD-ld} -m elf32_sparc"
4898           ;;
4899       esac
4900       ;;
4901     *64-bit*)
4902       case $host in
4903         x86_64-*kfreebsd*-gnu)
4904           LD="${LD-ld} -m elf_x86_64_fbsd"
4905           ;;
4906         x86_64-*linux*)
4907           LD="${LD-ld} -m elf_x86_64"
4908           ;;
4909         ppc*-*linux*|powerpc*-*linux*)
4910           LD="${LD-ld} -m elf64ppc"
4911           ;;
4912         s390*-*linux*)
4913           LD="${LD-ld} -m elf64_s390"
4914           ;;
4915         sparc*-*linux*)
4916           LD="${LD-ld} -m elf64_sparc"
4917           ;;
4918       esac
4919       ;;
4920     esac
4921   fi
4922   rm -rf conftest*
4923   ;;
4924
4925 *-*-sco3.2v5*)
4926   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4927   SAVE_CFLAGS="$CFLAGS"
4928   CFLAGS="$CFLAGS -belf"
4929   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4930 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4931 if test "${lt_cv_cc_needs_belf+set}" = set; then
4932   echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934   ac_ext=c
4935 ac_cpp='$CPP $CPPFLAGS'
4936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4939
4940      cat >conftest.$ac_ext <<_ACEOF
4941 /* confdefs.h.  */
4942 _ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h.  */
4946
4947 int
4948 main ()
4949 {
4950
4951   ;
4952   return 0;
4953 }
4954 _ACEOF
4955 rm -f conftest.$ac_objext conftest$ac_exeext
4956 if { (ac_try="$ac_link"
4957 case "(($ac_try" in
4958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4959   *) ac_try_echo=$ac_try;;
4960 esac
4961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4962   (eval "$ac_link") 2>conftest.er1
4963   ac_status=$?
4964   grep -v '^ *+' conftest.er1 >conftest.err
4965   rm -f conftest.er1
4966   cat conftest.err >&5
4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); } && {
4969          test -z "$ac_c_werror_flag" ||
4970          test ! -s conftest.err
4971        } && test -s conftest$ac_exeext &&
4972        $as_test_x conftest$ac_exeext; then
4973   lt_cv_cc_needs_belf=yes
4974 else
4975   echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4977
4978         lt_cv_cc_needs_belf=no
4979 fi
4980
4981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4982       conftest$ac_exeext conftest.$ac_ext
4983      ac_ext=c
4984 ac_cpp='$CPP $CPPFLAGS'
4985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4988
4989 fi
4990 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4991 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4992   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4993     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4994     CFLAGS="$SAVE_CFLAGS"
4995   fi
4996   ;;
4997 sparc*-*solaris*)
4998   # Find out which ABI we are using.
4999   echo 'int i;' > conftest.$ac_ext
5000   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5001   (eval $ac_compile) 2>&5
5002   ac_status=$?
5003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); }; then
5005     case `/usr/bin/file conftest.o` in
5006     *64-bit*)
5007       case $lt_cv_prog_gnu_ld in
5008       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5009       *)
5010         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5011           LD="${LD-ld} -64"
5012         fi
5013         ;;
5014       esac
5015       ;;
5016     esac
5017   fi
5018   rm -rf conftest*
5019   ;;
5020
5021
5022 esac
5023
5024 need_locks="$enable_libtool_lock"
5025
5026
5027 ac_ext=c
5028 ac_cpp='$CPP $CPPFLAGS'
5029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5032 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5033 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5034 # On Suns, sometimes $CPP names a directory.
5035 if test -n "$CPP" && test -d "$CPP"; then
5036   CPP=
5037 fi
5038 if test -z "$CPP"; then
5039   if test "${ac_cv_prog_CPP+set}" = set; then
5040   echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042       # Double quotes because CPP needs to be expanded
5043     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5044     do
5045       ac_preproc_ok=false
5046 for ac_c_preproc_warn_flag in '' yes
5047 do
5048   # Use a header file that comes with gcc, so configuring glibc
5049   # with a fresh cross-compiler works.
5050   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051   # <limits.h> exists even on freestanding compilers.
5052   # On the NeXT, cc -E runs the code through the compiler's parser,
5053   # not just through cpp. "Syntax error" is here to catch this case.
5054   cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h.  */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h.  */
5060 #ifdef __STDC__
5061 # include <limits.h>
5062 #else
5063 # include <assert.h>
5064 #endif
5065                      Syntax error
5066 _ACEOF
5067 if { (ac_try="$ac_cpp conftest.$ac_ext"
5068 case "(($ac_try" in
5069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5070   *) ac_try_echo=$ac_try;;
5071 esac
5072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5073   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5074   ac_status=$?
5075   grep -v '^ *+' conftest.er1 >conftest.err
5076   rm -f conftest.er1
5077   cat conftest.err >&5
5078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079   (exit $ac_status); } >/dev/null && {
5080          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5081          test ! -s conftest.err
5082        }; then
5083   :
5084 else
5085   echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5087
5088   # Broken: fails on valid input.
5089 continue
5090 fi
5091
5092 rm -f conftest.err conftest.$ac_ext
5093
5094   # OK, works on sane cases.  Now check whether nonexistent headers
5095   # can be detected and how.
5096   cat >conftest.$ac_ext <<_ACEOF
5097 /* confdefs.h.  */
5098 _ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h.  */
5102 #include <ac_nonexistent.h>
5103 _ACEOF
5104 if { (ac_try="$ac_cpp conftest.$ac_ext"
5105 case "(($ac_try" in
5106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5107   *) ac_try_echo=$ac_try;;
5108 esac
5109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5110   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5111   ac_status=$?
5112   grep -v '^ *+' conftest.er1 >conftest.err
5113   rm -f conftest.er1
5114   cat conftest.err >&5
5115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116   (exit $ac_status); } >/dev/null && {
5117          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5118          test ! -s conftest.err
5119        }; then
5120   # Broken: success on invalid input.
5121 continue
5122 else
5123   echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5125
5126   # Passes both tests.
5127 ac_preproc_ok=:
5128 break
5129 fi
5130
5131 rm -f conftest.err conftest.$ac_ext
5132
5133 done
5134 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5135 rm -f conftest.err conftest.$ac_ext
5136 if $ac_preproc_ok; then
5137   break
5138 fi
5139
5140     done
5141     ac_cv_prog_CPP=$CPP
5142
5143 fi
5144   CPP=$ac_cv_prog_CPP
5145 else
5146   ac_cv_prog_CPP=$CPP
5147 fi
5148 { echo "$as_me:$LINENO: result: $CPP" >&5
5149 echo "${ECHO_T}$CPP" >&6; }
5150 ac_preproc_ok=false
5151 for ac_c_preproc_warn_flag in '' yes
5152 do
5153   # Use a header file that comes with gcc, so configuring glibc
5154   # with a fresh cross-compiler works.
5155   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5156   # <limits.h> exists even on freestanding compilers.
5157   # On the NeXT, cc -E runs the code through the compiler's parser,
5158   # not just through cpp. "Syntax error" is here to catch this case.
5159   cat >conftest.$ac_ext <<_ACEOF
5160 /* confdefs.h.  */
5161 _ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h.  */
5165 #ifdef __STDC__
5166 # include <limits.h>
5167 #else
5168 # include <assert.h>
5169 #endif
5170                      Syntax error
5171 _ACEOF
5172 if { (ac_try="$ac_cpp conftest.$ac_ext"
5173 case "(($ac_try" in
5174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175   *) ac_try_echo=$ac_try;;
5176 esac
5177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5178   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5179   ac_status=$?
5180   grep -v '^ *+' conftest.er1 >conftest.err
5181   rm -f conftest.er1
5182   cat conftest.err >&5
5183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184   (exit $ac_status); } >/dev/null && {
5185          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5186          test ! -s conftest.err
5187        }; then
5188   :
5189 else
5190   echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.$ac_ext >&5
5192
5193   # Broken: fails on valid input.
5194 continue
5195 fi
5196
5197 rm -f conftest.err conftest.$ac_ext
5198
5199   # OK, works on sane cases.  Now check whether nonexistent headers
5200   # can be detected and how.
5201   cat >conftest.$ac_ext <<_ACEOF
5202 /* confdefs.h.  */
5203 _ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h.  */
5207 #include <ac_nonexistent.h>
5208 _ACEOF
5209 if { (ac_try="$ac_cpp conftest.$ac_ext"
5210 case "(($ac_try" in
5211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5212   *) ac_try_echo=$ac_try;;
5213 esac
5214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5215   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5216   ac_status=$?
5217   grep -v '^ *+' conftest.er1 >conftest.err
5218   rm -f conftest.er1
5219   cat conftest.err >&5
5220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221   (exit $ac_status); } >/dev/null && {
5222          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5223          test ! -s conftest.err
5224        }; then
5225   # Broken: success on invalid input.
5226 continue
5227 else
5228   echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5230
5231   # Passes both tests.
5232 ac_preproc_ok=:
5233 break
5234 fi
5235
5236 rm -f conftest.err conftest.$ac_ext
5237
5238 done
5239 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5240 rm -f conftest.err conftest.$ac_ext
5241 if $ac_preproc_ok; then
5242   :
5243 else
5244   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5245 See \`config.log' for more details." >&5
5246 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5247 See \`config.log' for more details." >&2;}
5248    { (exit 1); exit 1; }; }
5249 fi
5250
5251 ac_ext=c
5252 ac_cpp='$CPP $CPPFLAGS'
5253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5256
5257
5258 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5259 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5260 if test "${ac_cv_header_stdc+set}" = set; then
5261   echo $ECHO_N "(cached) $ECHO_C" >&6
5262 else
5263   cat >conftest.$ac_ext <<_ACEOF
5264 /* confdefs.h.  */
5265 _ACEOF
5266 cat confdefs.h >>conftest.$ac_ext
5267 cat >>conftest.$ac_ext <<_ACEOF
5268 /* end confdefs.h.  */
5269 #include <stdlib.h>
5270 #include <stdarg.h>
5271 #include <string.h>
5272 #include <float.h>
5273
5274 int
5275 main ()
5276 {
5277
5278   ;
5279   return 0;
5280 }
5281 _ACEOF
5282 rm -f conftest.$ac_objext
5283 if { (ac_try="$ac_compile"
5284 case "(($ac_try" in
5285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286   *) ac_try_echo=$ac_try;;
5287 esac
5288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289   (eval "$ac_compile") 2>conftest.er1
5290   ac_status=$?
5291   grep -v '^ *+' conftest.er1 >conftest.err
5292   rm -f conftest.er1
5293   cat conftest.err >&5
5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); } && {
5296          test -z "$ac_c_werror_flag" ||
5297          test ! -s conftest.err
5298        } && test -s conftest.$ac_objext; then
5299   ac_cv_header_stdc=yes
5300 else
5301   echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.$ac_ext >&5
5303
5304         ac_cv_header_stdc=no
5305 fi
5306
5307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308
5309 if test $ac_cv_header_stdc = yes; then
5310   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5311   cat >conftest.$ac_ext <<_ACEOF
5312 /* confdefs.h.  */
5313 _ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h.  */
5317 #include <string.h>
5318
5319 _ACEOF
5320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5321   $EGREP "memchr" >/dev/null 2>&1; then
5322   :
5323 else
5324   ac_cv_header_stdc=no
5325 fi
5326 rm -f conftest*
5327
5328 fi
5329
5330 if test $ac_cv_header_stdc = yes; then
5331   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5332   cat >conftest.$ac_ext <<_ACEOF
5333 /* confdefs.h.  */
5334 _ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h.  */
5338 #include <stdlib.h>
5339
5340 _ACEOF
5341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5342   $EGREP "free" >/dev/null 2>&1; then
5343   :
5344 else
5345   ac_cv_header_stdc=no
5346 fi
5347 rm -f conftest*
5348
5349 fi
5350
5351 if test $ac_cv_header_stdc = yes; then
5352   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5353   if test "$cross_compiling" = yes; then
5354   :
5355 else
5356   cat >conftest.$ac_ext <<_ACEOF
5357 /* confdefs.h.  */
5358 _ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h.  */
5362 #include <ctype.h>
5363 #include <stdlib.h>
5364 #if ((' ' & 0x0FF) == 0x020)
5365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5367 #else
5368 # define ISLOWER(c) \
5369                    (('a' <= (c) && (c) <= 'i') \
5370                      || ('j' <= (c) && (c) <= 'r') \
5371                      || ('s' <= (c) && (c) <= 'z'))
5372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5373 #endif
5374
5375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5376 int
5377 main ()
5378 {
5379   int i;
5380   for (i = 0; i < 256; i++)
5381     if (XOR (islower (i), ISLOWER (i))
5382         || toupper (i) != TOUPPER (i))
5383       return 2;
5384   return 0;
5385 }
5386 _ACEOF
5387 rm -f conftest$ac_exeext
5388 if { (ac_try="$ac_link"
5389 case "(($ac_try" in
5390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391   *) ac_try_echo=$ac_try;;
5392 esac
5393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5394   (eval "$ac_link") 2>&5
5395   ac_status=$?
5396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5398   { (case "(($ac_try" in
5399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400   *) ac_try_echo=$ac_try;;
5401 esac
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403   (eval "$ac_try") 2>&5
5404   ac_status=$?
5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406   (exit $ac_status); }; }; then
5407   :
5408 else
5409   echo "$as_me: program exited with status $ac_status" >&5
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5412
5413 ( exit $ac_status )
5414 ac_cv_header_stdc=no
5415 fi
5416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5417 fi
5418
5419
5420 fi
5421 fi
5422 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5423 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5424 if test $ac_cv_header_stdc = yes; then
5425
5426 cat >>confdefs.h <<\_ACEOF
5427 #define STDC_HEADERS 1
5428 _ACEOF
5429
5430 fi
5431
5432 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5443                   inttypes.h stdint.h unistd.h
5444 do
5445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5449   echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451   cat >conftest.$ac_ext <<_ACEOF
5452 /* confdefs.h.  */
5453 _ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h.  */
5457 $ac_includes_default
5458
5459 #include <$ac_header>
5460 _ACEOF
5461 rm -f conftest.$ac_objext
5462 if { (ac_try="$ac_compile"
5463 case "(($ac_try" in
5464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465   *) ac_try_echo=$ac_try;;
5466 esac
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468   (eval "$ac_compile") 2>conftest.er1
5469   ac_status=$?
5470   grep -v '^ *+' conftest.er1 >conftest.err
5471   rm -f conftest.er1
5472   cat conftest.err >&5
5473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474   (exit $ac_status); } && {
5475          test -z "$ac_c_werror_flag" ||
5476          test ! -s conftest.err
5477        } && test -s conftest.$ac_objext; then
5478   eval "$as_ac_Header=yes"
5479 else
5480   echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5482
5483         eval "$as_ac_Header=no"
5484 fi
5485
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487 fi
5488 ac_res=`eval echo '${'$as_ac_Header'}'`
5489                { echo "$as_me:$LINENO: result: $ac_res" >&5
5490 echo "${ECHO_T}$ac_res" >&6; }
5491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5492   cat >>confdefs.h <<_ACEOF
5493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5494 _ACEOF
5495
5496 fi
5497
5498 done
5499
5500
5501
5502 for ac_header in dlfcn.h
5503 do
5504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5506   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5509   echo $ECHO_N "(cached) $ECHO_C" >&6
5510 fi
5511 ac_res=`eval echo '${'$as_ac_Header'}'`
5512                { echo "$as_me:$LINENO: result: $ac_res" >&5
5513 echo "${ECHO_T}$ac_res" >&6; }
5514 else
5515   # Is the header compilable?
5516 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5518 cat >conftest.$ac_ext <<_ACEOF
5519 /* confdefs.h.  */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h.  */
5524 $ac_includes_default
5525 #include <$ac_header>
5526 _ACEOF
5527 rm -f conftest.$ac_objext
5528 if { (ac_try="$ac_compile"
5529 case "(($ac_try" in
5530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531   *) ac_try_echo=$ac_try;;
5532 esac
5533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534   (eval "$ac_compile") 2>conftest.er1
5535   ac_status=$?
5536   grep -v '^ *+' conftest.er1 >conftest.err
5537   rm -f conftest.er1
5538   cat conftest.err >&5
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); } && {
5541          test -z "$ac_c_werror_flag" ||
5542          test ! -s conftest.err
5543        } && test -s conftest.$ac_objext; then
5544   ac_header_compiler=yes
5545 else
5546   echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5548
5549         ac_header_compiler=no
5550 fi
5551
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5554 echo "${ECHO_T}$ac_header_compiler" >&6; }
5555
5556 # Is the header present?
5557 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5559 cat >conftest.$ac_ext <<_ACEOF
5560 /* confdefs.h.  */
5561 _ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h.  */
5565 #include <$ac_header>
5566 _ACEOF
5567 if { (ac_try="$ac_cpp conftest.$ac_ext"
5568 case "(($ac_try" in
5569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570   *) ac_try_echo=$ac_try;;
5571 esac
5572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5573   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5574   ac_status=$?
5575   grep -v '^ *+' conftest.er1 >conftest.err
5576   rm -f conftest.er1
5577   cat conftest.err >&5
5578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579   (exit $ac_status); } >/dev/null && {
5580          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5581          test ! -s conftest.err
5582        }; then
5583   ac_header_preproc=yes
5584 else
5585   echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5587
5588   ac_header_preproc=no
5589 fi
5590
5591 rm -f conftest.err conftest.$ac_ext
5592 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5593 echo "${ECHO_T}$ac_header_preproc" >&6; }
5594
5595 # So?  What about this header?
5596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5597   yes:no: )
5598     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5601 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5602     ac_header_preproc=yes
5603     ;;
5604   no:yes:* )
5605     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5607     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5608 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5609     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5610 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5611     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5612 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5613     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5615     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5616 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5617
5618     ;;
5619 esac
5620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5623   echo $ECHO_N "(cached) $ECHO_C" >&6
5624 else
5625   eval "$as_ac_Header=\$ac_header_preproc"
5626 fi
5627 ac_res=`eval echo '${'$as_ac_Header'}'`
5628                { echo "$as_me:$LINENO: result: $ac_res" >&5
5629 echo "${ECHO_T}$ac_res" >&6; }
5630
5631 fi
5632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5633   cat >>confdefs.h <<_ACEOF
5634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5635 _ACEOF
5636
5637 fi
5638
5639 done
5640
5641
5642
5643 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5644     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5645     (test "X$CXX" != "Xg++"))) ; then
5646   ac_ext=cpp
5647 ac_cpp='$CXXCPP $CPPFLAGS'
5648 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5649 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5650 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5651 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5652 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5653 if test -z "$CXXCPP"; then
5654   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5655   echo $ECHO_N "(cached) $ECHO_C" >&6
5656 else
5657       # Double quotes because CXXCPP needs to be expanded
5658     for CXXCPP in "$CXX -E" "/lib/cpp"
5659     do
5660       ac_preproc_ok=false
5661 for ac_cxx_preproc_warn_flag in '' yes
5662 do
5663   # Use a header file that comes with gcc, so configuring glibc
5664   # with a fresh cross-compiler works.
5665   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5666   # <limits.h> exists even on freestanding compilers.
5667   # On the NeXT, cc -E runs the code through the compiler's parser,
5668   # not just through cpp. "Syntax error" is here to catch this case.
5669   cat >conftest.$ac_ext <<_ACEOF
5670 /* confdefs.h.  */
5671 _ACEOF
5672 cat confdefs.h >>conftest.$ac_ext
5673 cat >>conftest.$ac_ext <<_ACEOF
5674 /* end confdefs.h.  */
5675 #ifdef __STDC__
5676 # include <limits.h>
5677 #else
5678 # include <assert.h>
5679 #endif
5680                      Syntax error
5681 _ACEOF
5682 if { (ac_try="$ac_cpp conftest.$ac_ext"
5683 case "(($ac_try" in
5684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685   *) ac_try_echo=$ac_try;;
5686 esac
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5689   ac_status=$?
5690   grep -v '^ *+' conftest.er1 >conftest.err
5691   rm -f conftest.er1
5692   cat conftest.err >&5
5693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); } >/dev/null && {
5695          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5696          test ! -s conftest.err
5697        }; then
5698   :
5699 else
5700   echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5702
5703   # Broken: fails on valid input.
5704 continue
5705 fi
5706
5707 rm -f conftest.err conftest.$ac_ext
5708
5709   # OK, works on sane cases.  Now check whether nonexistent headers
5710   # can be detected and how.
5711   cat >conftest.$ac_ext <<_ACEOF
5712 /* confdefs.h.  */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h.  */
5717 #include <ac_nonexistent.h>
5718 _ACEOF
5719 if { (ac_try="$ac_cpp conftest.$ac_ext"
5720 case "(($ac_try" in
5721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722   *) ac_try_echo=$ac_try;;
5723 esac
5724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5726   ac_status=$?
5727   grep -v '^ *+' conftest.er1 >conftest.err
5728   rm -f conftest.er1
5729   cat conftest.err >&5
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); } >/dev/null && {
5732          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5733          test ! -s conftest.err
5734        }; then
5735   # Broken: success on invalid input.
5736 continue
5737 else
5738   echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5740
5741   # Passes both tests.
5742 ac_preproc_ok=:
5743 break
5744 fi
5745
5746 rm -f conftest.err conftest.$ac_ext
5747
5748 done
5749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5750 rm -f conftest.err conftest.$ac_ext
5751 if $ac_preproc_ok; then
5752   break
5753 fi
5754
5755     done
5756     ac_cv_prog_CXXCPP=$CXXCPP
5757
5758 fi
5759   CXXCPP=$ac_cv_prog_CXXCPP
5760 else
5761   ac_cv_prog_CXXCPP=$CXXCPP
5762 fi
5763 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5764 echo "${ECHO_T}$CXXCPP" >&6; }
5765 ac_preproc_ok=false
5766 for ac_cxx_preproc_warn_flag in '' yes
5767 do
5768   # Use a header file that comes with gcc, so configuring glibc
5769   # with a fresh cross-compiler works.
5770   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5771   # <limits.h> exists even on freestanding compilers.
5772   # On the NeXT, cc -E runs the code through the compiler's parser,
5773   # not just through cpp. "Syntax error" is here to catch this case.
5774   cat >conftest.$ac_ext <<_ACEOF
5775 /* confdefs.h.  */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h.  */
5780 #ifdef __STDC__
5781 # include <limits.h>
5782 #else
5783 # include <assert.h>
5784 #endif
5785                      Syntax error
5786 _ACEOF
5787 if { (ac_try="$ac_cpp conftest.$ac_ext"
5788 case "(($ac_try" in
5789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790   *) ac_try_echo=$ac_try;;
5791 esac
5792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5794   ac_status=$?
5795   grep -v '^ *+' conftest.er1 >conftest.err
5796   rm -f conftest.er1
5797   cat conftest.err >&5
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); } >/dev/null && {
5800          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5801          test ! -s conftest.err
5802        }; then
5803   :
5804 else
5805   echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5807
5808   # Broken: fails on valid input.
5809 continue
5810 fi
5811
5812 rm -f conftest.err conftest.$ac_ext
5813
5814   # OK, works on sane cases.  Now check whether nonexistent headers
5815   # can be detected and how.
5816   cat >conftest.$ac_ext <<_ACEOF
5817 /* confdefs.h.  */
5818 _ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h.  */
5822 #include <ac_nonexistent.h>
5823 _ACEOF
5824 if { (ac_try="$ac_cpp conftest.$ac_ext"
5825 case "(($ac_try" in
5826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827   *) ac_try_echo=$ac_try;;
5828 esac
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5831   ac_status=$?
5832   grep -v '^ *+' conftest.er1 >conftest.err
5833   rm -f conftest.er1
5834   cat conftest.err >&5
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); } >/dev/null && {
5837          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5838          test ! -s conftest.err
5839        }; then
5840   # Broken: success on invalid input.
5841 continue
5842 else
5843   echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.$ac_ext >&5
5845
5846   # Passes both tests.
5847 ac_preproc_ok=:
5848 break
5849 fi
5850
5851 rm -f conftest.err conftest.$ac_ext
5852
5853 done
5854 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5855 rm -f conftest.err conftest.$ac_ext
5856 if $ac_preproc_ok; then
5857   :
5858 else
5859   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5860 See \`config.log' for more details." >&5
5861 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5862 See \`config.log' for more details." >&2;}
5863    { (exit 1); exit 1; }; }
5864 fi
5865
5866 ac_ext=cpp
5867 ac_cpp='$CXXCPP $CPPFLAGS'
5868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5871
5872 fi
5873
5874
5875 ac_ext=f
5876 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5877 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5878 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5879 if test -n "$ac_tool_prefix"; then
5880   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
5881   do
5882     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5883 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5886 if test "${ac_cv_prog_F77+set}" = set; then
5887   echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889   if test -n "$F77"; then
5890   ac_cv_prog_F77="$F77" # Let the user override the test.
5891 else
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 for as_dir in $PATH
5894 do
5895   IFS=$as_save_IFS
5896   test -z "$as_dir" && as_dir=.
5897   for ac_exec_ext in '' $ac_executable_extensions; do
5898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5899     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901     break 2
5902   fi
5903 done
5904 done
5905 IFS=$as_save_IFS
5906
5907 fi
5908 fi
5909 F77=$ac_cv_prog_F77
5910 if test -n "$F77"; then
5911   { echo "$as_me:$LINENO: result: $F77" >&5
5912 echo "${ECHO_T}$F77" >&6; }
5913 else
5914   { echo "$as_me:$LINENO: result: no" >&5
5915 echo "${ECHO_T}no" >&6; }
5916 fi
5917
5918
5919     test -n "$F77" && break
5920   done
5921 fi
5922 if test -z "$F77"; then
5923   ac_ct_F77=$F77
5924   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
5925 do
5926   # Extract the first word of "$ac_prog", so it can be a program name with args.
5927 set dummy $ac_prog; ac_word=$2
5928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5930 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5931   echo $ECHO_N "(cached) $ECHO_C" >&6
5932 else
5933   if test -n "$ac_ct_F77"; then
5934   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5935 else
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5938 do
5939   IFS=$as_save_IFS
5940   test -z "$as_dir" && as_dir=.
5941   for ac_exec_ext in '' $ac_executable_extensions; do
5942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5943     ac_cv_prog_ac_ct_F77="$ac_prog"
5944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945     break 2
5946   fi
5947 done
5948 done
5949 IFS=$as_save_IFS
5950
5951 fi
5952 fi
5953 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5954 if test -n "$ac_ct_F77"; then
5955   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5956 echo "${ECHO_T}$ac_ct_F77" >&6; }
5957 else
5958   { echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6; }
5960 fi
5961
5962
5963   test -n "$ac_ct_F77" && break
5964 done
5965
5966   if test "x$ac_ct_F77" = x; then
5967     F77=""
5968   else
5969     case $cross_compiling:$ac_tool_warned in
5970 yes:)
5971 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5972 whose name does not start with the host triplet.  If you think this
5973 configuration is useful to you, please write to autoconf@gnu.org." >&5
5974 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5975 whose name does not start with the host triplet.  If you think this
5976 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5977 ac_tool_warned=yes ;;
5978 esac
5979     F77=$ac_ct_F77
5980   fi
5981 fi
5982
5983
5984 # Provide some information about the compiler.
5985 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5986 ac_compiler=`set X $ac_compile; echo $2`
5987 { (ac_try="$ac_compiler --version >&5"
5988 case "(($ac_try" in
5989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990   *) ac_try_echo=$ac_try;;
5991 esac
5992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993   (eval "$ac_compiler --version >&5") 2>&5
5994   ac_status=$?
5995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996   (exit $ac_status); }
5997 { (ac_try="$ac_compiler -v >&5"
5998 case "(($ac_try" in
5999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000   *) ac_try_echo=$ac_try;;
6001 esac
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003   (eval "$ac_compiler -v >&5") 2>&5
6004   ac_status=$?
6005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); }
6007 { (ac_try="$ac_compiler -V >&5"
6008 case "(($ac_try" in
6009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010   *) ac_try_echo=$ac_try;;
6011 esac
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013   (eval "$ac_compiler -V >&5") 2>&5
6014   ac_status=$?
6015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016   (exit $ac_status); }
6017 rm -f a.out
6018
6019 # If we don't use `.F' as extension, the preprocessor is not run on the
6020 # input file.  (Note that this only needs to work for GNU compilers.)
6021 ac_save_ext=$ac_ext
6022 ac_ext=F
6023 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6024 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6025 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6026   echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028   cat >conftest.$ac_ext <<_ACEOF
6029       program main
6030 #ifndef __GNUC__
6031        choke me
6032 #endif
6033
6034       end
6035 _ACEOF
6036 rm -f conftest.$ac_objext
6037 if { (ac_try="$ac_compile"
6038 case "(($ac_try" in
6039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6040   *) ac_try_echo=$ac_try;;
6041 esac
6042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6043   (eval "$ac_compile") 2>conftest.er1
6044   ac_status=$?
6045   grep -v '^ *+' conftest.er1 >conftest.err
6046   rm -f conftest.er1
6047   cat conftest.err >&5
6048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049   (exit $ac_status); } && {
6050          test -z "$ac_f77_werror_flag" ||
6051          test ! -s conftest.err
6052        } && test -s conftest.$ac_objext; then
6053   ac_compiler_gnu=yes
6054 else
6055   echo "$as_me: failed program was:" >&5
6056 sed 's/^/| /' conftest.$ac_ext >&5
6057
6058         ac_compiler_gnu=no
6059 fi
6060
6061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6062 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6063
6064 fi
6065 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6066 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6067 ac_ext=$ac_save_ext
6068 ac_test_FFLAGS=${FFLAGS+set}
6069 ac_save_FFLAGS=$FFLAGS
6070 FFLAGS=
6071 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6072 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6073 if test "${ac_cv_prog_f77_g+set}" = set; then
6074   echo $ECHO_N "(cached) $ECHO_C" >&6
6075 else
6076   FFLAGS=-g
6077 cat >conftest.$ac_ext <<_ACEOF
6078       program main
6079
6080       end
6081 _ACEOF
6082 rm -f conftest.$ac_objext
6083 if { (ac_try="$ac_compile"
6084 case "(($ac_try" in
6085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086   *) ac_try_echo=$ac_try;;
6087 esac
6088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089   (eval "$ac_compile") 2>conftest.er1
6090   ac_status=$?
6091   grep -v '^ *+' conftest.er1 >conftest.err
6092   rm -f conftest.er1
6093   cat conftest.err >&5
6094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095   (exit $ac_status); } && {
6096          test -z "$ac_f77_werror_flag" ||
6097          test ! -s conftest.err
6098        } && test -s conftest.$ac_objext; then
6099   ac_cv_prog_f77_g=yes
6100 else
6101   echo "$as_me: failed program was:" >&5
6102 sed 's/^/| /' conftest.$ac_ext >&5
6103
6104         ac_cv_prog_f77_g=no
6105 fi
6106
6107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6108
6109 fi
6110 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6111 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6112 if test "$ac_test_FFLAGS" = set; then
6113   FFLAGS=$ac_save_FFLAGS
6114 elif test $ac_cv_prog_f77_g = yes; then
6115   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6116     FFLAGS="-g -O2"
6117   else
6118     FFLAGS="-g"
6119   fi
6120 else
6121   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6122     FFLAGS="-O2"
6123   else
6124     FFLAGS=
6125   fi
6126 fi
6127
6128 G77=`test $ac_compiler_gnu = yes && echo yes`
6129 ac_ext=c
6130 ac_cpp='$CPP $CPPFLAGS'
6131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6134
6135
6136
6137 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6138 # find the maximum length of command line arguments
6139 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6140 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6141 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6142   echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144     i=0
6145   teststring="ABCD"
6146
6147   case $build_os in
6148   msdosdjgpp*)
6149     # On DJGPP, this test can blow up pretty badly due to problems in libc
6150     # (any single argument exceeding 2000 bytes causes a buffer overrun
6151     # during glob expansion).  Even if it were fixed, the result of this
6152     # check would be larger than it should be.
6153     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6154     ;;
6155
6156   gnu*)
6157     # Under GNU Hurd, this test is not required because there is
6158     # no limit to the length of command line arguments.
6159     # Libtool will interpret -1 as no limit whatsoever
6160     lt_cv_sys_max_cmd_len=-1;
6161     ;;
6162
6163   cygwin* | mingw*)
6164     # On Win9x/ME, this test blows up -- it succeeds, but takes
6165     # about 5 minutes as the teststring grows exponentially.
6166     # Worse, since 9x/ME are not pre-emptively multitasking,
6167     # you end up with a "frozen" computer, even though with patience
6168     # the test eventually succeeds (with a max line length of 256k).
6169     # Instead, let's just punt: use the minimum linelength reported by
6170     # all of the supported platforms: 8192 (on NT/2K/XP).
6171     lt_cv_sys_max_cmd_len=8192;
6172     ;;
6173
6174   amigaos*)
6175     # On AmigaOS with pdksh, this test takes hours, literally.
6176     # So we just punt and use a minimum line length of 8192.
6177     lt_cv_sys_max_cmd_len=8192;
6178     ;;
6179
6180   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6181     # This has been around since 386BSD, at least.  Likely further.
6182     if test -x /sbin/sysctl; then
6183       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6184     elif test -x /usr/sbin/sysctl; then
6185       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6186     else
6187       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6188     fi
6189     # And add a safety zone
6190     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6191     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6192     ;;
6193
6194   interix*)
6195     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6196     lt_cv_sys_max_cmd_len=196608
6197     ;;
6198
6199   osf*)
6200     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6201     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6202     # nice to cause kernel panics so lets avoid the loop below.
6203     # First set a reasonable default.
6204     lt_cv_sys_max_cmd_len=16384
6205     #
6206     if test -x /sbin/sysconfig; then
6207       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6208         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6209       esac
6210     fi
6211     ;;
6212   sco3.2v5*)
6213     lt_cv_sys_max_cmd_len=102400
6214     ;;
6215   sysv5* | sco5v6* | sysv4.2uw2*)
6216     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6217     if test -n "$kargmax"; then
6218       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6219     else
6220       lt_cv_sys_max_cmd_len=32768
6221     fi
6222     ;;
6223   *)
6224     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6225     if test -n "$lt_cv_sys_max_cmd_len"; then
6226       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6227       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6228     else
6229       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6230       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6231                = "XX$teststring") >/dev/null 2>&1 &&
6232               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6233               lt_cv_sys_max_cmd_len=$new_result &&
6234               test $i != 17 # 1/2 MB should be enough
6235       do
6236         i=`expr $i + 1`
6237         teststring=$teststring$teststring
6238       done
6239       teststring=
6240       # Add a significant safety factor because C++ compilers can tack on massive
6241       # amounts of additional arguments before passing them to the linker.
6242       # It appears as though 1/2 is a usable value.
6243       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6244     fi
6245     ;;
6246   esac
6247
6248 fi
6249
6250 if test -n $lt_cv_sys_max_cmd_len ; then
6251   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6252 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6253 else
6254   { echo "$as_me:$LINENO: result: none" >&5
6255 echo "${ECHO_T}none" >&6; }
6256 fi
6257
6258
6259
6260
6261
6262 # Check for command to grab the raw symbol name followed by C symbol from nm.
6263 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6264 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6265 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6266   echo $ECHO_N "(cached) $ECHO_C" >&6
6267 else
6268
6269 # These are sane defaults that work on at least a few old systems.
6270 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6271
6272 # Character class describing NM global symbol codes.
6273 symcode='[BCDEGRST]'
6274
6275 # Regexp to match symbols that can be accessed directly from C.
6276 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6277
6278 # Transform an extracted symbol line into a proper C declaration
6279 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6280
6281 # Transform an extracted symbol line into symbol name and symbol address
6282 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'"
6283
6284 # Define system-specific variables.
6285 case $host_os in
6286 aix*)
6287   symcode='[BCDT]'
6288   ;;
6289 cygwin* | mingw* | pw32*)
6290   symcode='[ABCDGISTW]'
6291   ;;
6292 hpux*) # Its linker distinguishes data from code symbols
6293   if test "$host_cpu" = ia64; then
6294     symcode='[ABCDEGRST]'
6295   fi
6296   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6297   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'"
6298   ;;
6299 linux* | k*bsd*-gnu)
6300   if test "$host_cpu" = ia64; then
6301     symcode='[ABCDGIRSTW]'
6302     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6303     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'"
6304   fi
6305   ;;
6306 irix* | nonstopux*)
6307   symcode='[BCDEGRST]'
6308   ;;
6309 osf*)
6310   symcode='[BCDEGQRST]'
6311   ;;
6312 solaris*)
6313   symcode='[BDRT]'
6314   ;;
6315 sco3.2v5*)
6316   symcode='[DT]'
6317   ;;
6318 sysv4.2uw2*)
6319   symcode='[DT]'
6320   ;;
6321 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6322   symcode='[ABDT]'
6323   ;;
6324 sysv4)
6325   symcode='[DFNSTU]'
6326   ;;
6327 esac
6328
6329 # Handle CRLF in mingw tool chain
6330 opt_cr=
6331 case $build_os in
6332 mingw*)
6333   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6334   ;;
6335 esac
6336
6337 # If we're using GNU nm, then use its standard symbol codes.
6338 case `$NM -V 2>&1` in
6339 *GNU* | *'with BFD'*)
6340   symcode='[ABCDGIRSTW]' ;;
6341 esac
6342
6343 # Try without a prefix undercore, then with it.
6344 for ac_symprfx in "" "_"; do
6345
6346   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6347   symxfrm="\\1 $ac_symprfx\\2 \\2"
6348
6349   # Write the raw and C identifiers.
6350   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6351
6352   # Check to see that the pipe works correctly.
6353   pipe_works=no
6354
6355   rm -f conftest*
6356   cat > conftest.$ac_ext <<EOF
6357 #ifdef __cplusplus
6358 extern "C" {
6359 #endif
6360 char nm_test_var;
6361 void nm_test_func(){}
6362 #ifdef __cplusplus
6363 }
6364 #endif
6365 int main(){nm_test_var='a';nm_test_func();return(0);}
6366 EOF
6367
6368   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6369   (eval $ac_compile) 2>&5
6370   ac_status=$?
6371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372   (exit $ac_status); }; then
6373     # Now try to grab the symbols.
6374     nlist=conftest.nm
6375     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6376   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6377   ac_status=$?
6378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); } && test -s "$nlist"; then
6380       # Try sorting and uniquifying the output.
6381       if sort "$nlist" | uniq > "$nlist"T; then
6382         mv -f "$nlist"T "$nlist"
6383       else
6384         rm -f "$nlist"T
6385       fi
6386
6387       # Make sure that we snagged all the symbols we need.
6388       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6389         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6390           cat <<EOF > conftest.$ac_ext
6391 #ifdef __cplusplus
6392 extern "C" {
6393 #endif
6394
6395 EOF
6396           # Now generate the symbol file.
6397           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6398
6399           cat <<EOF >> conftest.$ac_ext
6400 #if defined (__STDC__) && __STDC__
6401 # define lt_ptr_t void *
6402 #else
6403 # define lt_ptr_t char *
6404 # define const
6405 #endif
6406
6407 /* The mapping between symbol names and symbols. */
6408 const struct {
6409   const char *name;
6410   lt_ptr_t address;
6411 }
6412 lt_preloaded_symbols[] =
6413 {
6414 EOF
6415           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6416           cat <<\EOF >> conftest.$ac_ext
6417   {0, (lt_ptr_t) 0}
6418 };
6419
6420 #ifdef __cplusplus
6421 }
6422 #endif
6423 EOF
6424           # Now try linking the two files.
6425           mv conftest.$ac_objext conftstm.$ac_objext
6426           lt_save_LIBS="$LIBS"
6427           lt_save_CFLAGS="$CFLAGS"
6428           LIBS="conftstm.$ac_objext"
6429           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6430           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6431   (eval $ac_link) 2>&5
6432   ac_status=$?
6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6435             pipe_works=yes
6436           fi
6437           LIBS="$lt_save_LIBS"
6438           CFLAGS="$lt_save_CFLAGS"
6439         else
6440           echo "cannot find nm_test_func in $nlist" >&5
6441         fi
6442       else
6443         echo "cannot find nm_test_var in $nlist" >&5
6444       fi
6445     else
6446       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6447     fi
6448   else
6449     echo "$progname: failed program was:" >&5
6450     cat conftest.$ac_ext >&5
6451   fi
6452   rm -rf conftest* conftst*
6453
6454   # Do not use the global_symbol_pipe unless it works.
6455   if test "$pipe_works" = yes; then
6456     break
6457   else
6458     lt_cv_sys_global_symbol_pipe=
6459   fi
6460 done
6461
6462 fi
6463
6464 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6465   lt_cv_sys_global_symbol_to_cdecl=
6466 fi
6467 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6468   { echo "$as_me:$LINENO: result: failed" >&5
6469 echo "${ECHO_T}failed" >&6; }
6470 else
6471   { echo "$as_me:$LINENO: result: ok" >&5
6472 echo "${ECHO_T}ok" >&6; }
6473 fi
6474
6475 { echo "$as_me:$LINENO: checking for objdir" >&5
6476 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6477 if test "${lt_cv_objdir+set}" = set; then
6478   echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480   rm -f .libs 2>/dev/null
6481 mkdir .libs 2>/dev/null
6482 if test -d .libs; then
6483   lt_cv_objdir=.libs
6484 else
6485   # MS-DOS does not allow filenames that begin with a dot.
6486   lt_cv_objdir=_libs
6487 fi
6488 rmdir .libs 2>/dev/null
6489 fi
6490 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6491 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6492 objdir=$lt_cv_objdir
6493
6494
6495
6496
6497
6498 case $host_os in
6499 aix3*)
6500   # AIX sometimes has problems with the GCC collect2 program.  For some
6501   # reason, if we set the COLLECT_NAMES environment variable, the problems
6502   # vanish in a puff of smoke.
6503   if test "X${COLLECT_NAMES+set}" != Xset; then
6504     COLLECT_NAMES=
6505     export COLLECT_NAMES
6506   fi
6507   ;;
6508 esac
6509
6510 # Sed substitution that helps us do robust quoting.  It backslashifies
6511 # metacharacters that are still active within double-quoted strings.
6512 Xsed='sed -e 1s/^X//'
6513 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6514
6515 # Same as above, but do not quote variable references.
6516 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6517
6518 # Sed substitution to delay expansion of an escaped shell variable in a
6519 # double_quote_subst'ed string.
6520 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6521
6522 # Sed substitution to avoid accidental globbing in evaled expressions
6523 no_glob_subst='s/\*/\\\*/g'
6524
6525 # Constants:
6526 rm="rm -f"
6527
6528 # Global variables:
6529 default_ofile=libtool
6530 can_build_shared=yes
6531
6532 # All known linkers require a `.a' archive for static linking (except MSVC,
6533 # which needs '.lib').
6534 libext=a
6535 ltmain="$ac_aux_dir/ltmain.sh"
6536 ofile="$default_ofile"
6537 with_gnu_ld="$lt_cv_prog_gnu_ld"
6538
6539 if test -n "$ac_tool_prefix"; then
6540   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6541 set dummy ${ac_tool_prefix}ar; ac_word=$2
6542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6544 if test "${ac_cv_prog_AR+set}" = set; then
6545   echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547   if test -n "$AR"; then
6548   ac_cv_prog_AR="$AR" # Let the user override the test.
6549 else
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553   IFS=$as_save_IFS
6554   test -z "$as_dir" && as_dir=.
6555   for ac_exec_ext in '' $ac_executable_extensions; do
6556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6557     ac_cv_prog_AR="${ac_tool_prefix}ar"
6558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559     break 2
6560   fi
6561 done
6562 done
6563 IFS=$as_save_IFS
6564
6565 fi
6566 fi
6567 AR=$ac_cv_prog_AR
6568 if test -n "$AR"; then
6569   { echo "$as_me:$LINENO: result: $AR" >&5
6570 echo "${ECHO_T}$AR" >&6; }
6571 else
6572   { echo "$as_me:$LINENO: result: no" >&5
6573 echo "${ECHO_T}no" >&6; }
6574 fi
6575
6576
6577 fi
6578 if test -z "$ac_cv_prog_AR"; then
6579   ac_ct_AR=$AR
6580   # Extract the first word of "ar", so it can be a program name with args.
6581 set dummy ar; ac_word=$2
6582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6584 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6585   echo $ECHO_N "(cached) $ECHO_C" >&6
6586 else
6587   if test -n "$ac_ct_AR"; then
6588   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6589 else
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6592 do
6593   IFS=$as_save_IFS
6594   test -z "$as_dir" && as_dir=.
6595   for ac_exec_ext in '' $ac_executable_extensions; do
6596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597     ac_cv_prog_ac_ct_AR="ar"
6598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599     break 2
6600   fi
6601 done
6602 done
6603 IFS=$as_save_IFS
6604
6605 fi
6606 fi
6607 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6608 if test -n "$ac_ct_AR"; then
6609   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6610 echo "${ECHO_T}$ac_ct_AR" >&6; }
6611 else
6612   { echo "$as_me:$LINENO: result: no" >&5
6613 echo "${ECHO_T}no" >&6; }
6614 fi
6615
6616   if test "x$ac_ct_AR" = x; then
6617     AR="false"
6618   else
6619     case $cross_compiling:$ac_tool_warned in
6620 yes:)
6621 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6622 whose name does not start with the host triplet.  If you think this
6623 configuration is useful to you, please write to autoconf@gnu.org." >&5
6624 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6625 whose name does not start with the host triplet.  If you think this
6626 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6627 ac_tool_warned=yes ;;
6628 esac
6629     AR=$ac_ct_AR
6630   fi
6631 else
6632   AR="$ac_cv_prog_AR"
6633 fi
6634
6635 if test -n "$ac_tool_prefix"; then
6636   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6637 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6640 if test "${ac_cv_prog_RANLIB+set}" = set; then
6641   echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643   if test -n "$RANLIB"; then
6644   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6645 else
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 for as_dir in $PATH
6648 do
6649   IFS=$as_save_IFS
6650   test -z "$as_dir" && as_dir=.
6651   for ac_exec_ext in '' $ac_executable_extensions; do
6652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6653     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6655     break 2
6656   fi
6657 done
6658 done
6659 IFS=$as_save_IFS
6660
6661 fi
6662 fi
6663 RANLIB=$ac_cv_prog_RANLIB
6664 if test -n "$RANLIB"; then
6665   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6666 echo "${ECHO_T}$RANLIB" >&6; }
6667 else
6668   { echo "$as_me:$LINENO: result: no" >&5
6669 echo "${ECHO_T}no" >&6; }
6670 fi
6671
6672
6673 fi
6674 if test -z "$ac_cv_prog_RANLIB"; then
6675   ac_ct_RANLIB=$RANLIB
6676   # Extract the first word of "ranlib", so it can be a program name with args.
6677 set dummy ranlib; ac_word=$2
6678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6680 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6681   echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683   if test -n "$ac_ct_RANLIB"; then
6684   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6685 else
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6688 do
6689   IFS=$as_save_IFS
6690   test -z "$as_dir" && as_dir=.
6691   for ac_exec_ext in '' $ac_executable_extensions; do
6692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693     ac_cv_prog_ac_ct_RANLIB="ranlib"
6694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695     break 2
6696   fi
6697 done
6698 done
6699 IFS=$as_save_IFS
6700
6701 fi
6702 fi
6703 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6704 if test -n "$ac_ct_RANLIB"; then
6705   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6706 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6707 else
6708   { echo "$as_me:$LINENO: result: no" >&5
6709 echo "${ECHO_T}no" >&6; }
6710 fi
6711
6712   if test "x$ac_ct_RANLIB" = x; then
6713     RANLIB=":"
6714   else
6715     case $cross_compiling:$ac_tool_warned in
6716 yes:)
6717 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6718 whose name does not start with the host triplet.  If you think this
6719 configuration is useful to you, please write to autoconf@gnu.org." >&5
6720 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6721 whose name does not start with the host triplet.  If you think this
6722 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6723 ac_tool_warned=yes ;;
6724 esac
6725     RANLIB=$ac_ct_RANLIB
6726   fi
6727 else
6728   RANLIB="$ac_cv_prog_RANLIB"
6729 fi
6730
6731 if test -n "$ac_tool_prefix"; then
6732   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6733 set dummy ${ac_tool_prefix}strip; ac_word=$2
6734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6736 if test "${ac_cv_prog_STRIP+set}" = set; then
6737   echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739   if test -n "$STRIP"; then
6740   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6744 do
6745   IFS=$as_save_IFS
6746   test -z "$as_dir" && as_dir=.
6747   for ac_exec_ext in '' $ac_executable_extensions; do
6748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751     break 2
6752   fi
6753 done
6754 done
6755 IFS=$as_save_IFS
6756
6757 fi
6758 fi
6759 STRIP=$ac_cv_prog_STRIP
6760 if test -n "$STRIP"; then
6761   { echo "$as_me:$LINENO: result: $STRIP" >&5
6762 echo "${ECHO_T}$STRIP" >&6; }
6763 else
6764   { echo "$as_me:$LINENO: result: no" >&5
6765 echo "${ECHO_T}no" >&6; }
6766 fi
6767
6768
6769 fi
6770 if test -z "$ac_cv_prog_STRIP"; then
6771   ac_ct_STRIP=$STRIP
6772   # Extract the first word of "strip", so it can be a program name with args.
6773 set dummy strip; ac_word=$2
6774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6777   echo $ECHO_N "(cached) $ECHO_C" >&6
6778 else
6779   if test -n "$ac_ct_STRIP"; then
6780   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6781 else
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6784 do
6785   IFS=$as_save_IFS
6786   test -z "$as_dir" && as_dir=.
6787   for ac_exec_ext in '' $ac_executable_extensions; do
6788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789     ac_cv_prog_ac_ct_STRIP="strip"
6790     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6791     break 2
6792   fi
6793 done
6794 done
6795 IFS=$as_save_IFS
6796
6797 fi
6798 fi
6799 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6800 if test -n "$ac_ct_STRIP"; then
6801   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6802 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6803 else
6804   { echo "$as_me:$LINENO: result: no" >&5
6805 echo "${ECHO_T}no" >&6; }
6806 fi
6807
6808   if test "x$ac_ct_STRIP" = x; then
6809     STRIP=":"
6810   else
6811     case $cross_compiling:$ac_tool_warned in
6812 yes:)
6813 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6814 whose name does not start with the host triplet.  If you think this
6815 configuration is useful to you, please write to autoconf@gnu.org." >&5
6816 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6817 whose name does not start with the host triplet.  If you think this
6818 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6819 ac_tool_warned=yes ;;
6820 esac
6821     STRIP=$ac_ct_STRIP
6822   fi
6823 else
6824   STRIP="$ac_cv_prog_STRIP"
6825 fi
6826
6827
6828 old_CC="$CC"
6829 old_CFLAGS="$CFLAGS"
6830
6831 # Set sane defaults for various variables
6832 test -z "$AR" && AR=ar
6833 test -z "$AR_FLAGS" && AR_FLAGS=cru
6834 test -z "$AS" && AS=as
6835 test -z "$CC" && CC=cc
6836 test -z "$LTCC" && LTCC=$CC
6837 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6838 test -z "$DLLTOOL" && DLLTOOL=dlltool
6839 test -z "$LD" && LD=ld
6840 test -z "$LN_S" && LN_S="ln -s"
6841 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6842 test -z "$NM" && NM=nm
6843 test -z "$SED" && SED=sed
6844 test -z "$OBJDUMP" && OBJDUMP=objdump
6845 test -z "$RANLIB" && RANLIB=:
6846 test -z "$STRIP" && STRIP=:
6847 test -z "$ac_objext" && ac_objext=o
6848
6849 # Determine commands to create old-style static archives.
6850 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6851 old_postinstall_cmds='chmod 644 $oldlib'
6852 old_postuninstall_cmds=
6853
6854 if test -n "$RANLIB"; then
6855   case $host_os in
6856   openbsd*)
6857     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6858     ;;
6859   *)
6860     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6861     ;;
6862   esac
6863   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6864 fi
6865
6866 for cc_temp in $compiler""; do
6867   case $cc_temp in
6868     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6869     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6870     \-*) ;;
6871     *) break;;
6872   esac
6873 done
6874 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6875
6876
6877 # Only perform the check for file, if the check method requires it
6878 case $deplibs_check_method in
6879 file_magic*)
6880   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6881     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6882 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6883 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6884   echo $ECHO_N "(cached) $ECHO_C" >&6
6885 else
6886   case $MAGIC_CMD in
6887 [\\/*] |  ?:[\\/]*)
6888   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6889   ;;
6890 *)
6891   lt_save_MAGIC_CMD="$MAGIC_CMD"
6892   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6893   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6894   for ac_dir in $ac_dummy; do
6895     IFS="$lt_save_ifs"
6896     test -z "$ac_dir" && ac_dir=.
6897     if test -f $ac_dir/${ac_tool_prefix}file; then
6898       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6899       if test -n "$file_magic_test_file"; then
6900         case $deplibs_check_method in
6901         "file_magic "*)
6902           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6903           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6904           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6905             $EGREP "$file_magic_regex" > /dev/null; then
6906             :
6907           else
6908             cat <<EOF 1>&2
6909
6910 *** Warning: the command libtool uses to detect shared libraries,
6911 *** $file_magic_cmd, produces output that libtool cannot recognize.
6912 *** The result is that libtool may fail to recognize shared libraries
6913 *** as such.  This will affect the creation of libtool libraries that
6914 *** depend on shared libraries, but programs linked with such libtool
6915 *** libraries will work regardless of this problem.  Nevertheless, you
6916 *** may want to report the problem to your system manager and/or to
6917 *** bug-libtool@gnu.org
6918
6919 EOF
6920           fi ;;
6921         esac
6922       fi
6923       break
6924     fi
6925   done
6926   IFS="$lt_save_ifs"
6927   MAGIC_CMD="$lt_save_MAGIC_CMD"
6928   ;;
6929 esac
6930 fi
6931
6932 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6933 if test -n "$MAGIC_CMD"; then
6934   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6935 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6936 else
6937   { echo "$as_me:$LINENO: result: no" >&5
6938 echo "${ECHO_T}no" >&6; }
6939 fi
6940
6941 if test -z "$lt_cv_path_MAGIC_CMD"; then
6942   if test -n "$ac_tool_prefix"; then
6943     { echo "$as_me:$LINENO: checking for file" >&5
6944 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6945 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6946   echo $ECHO_N "(cached) $ECHO_C" >&6
6947 else
6948   case $MAGIC_CMD in
6949 [\\/*] |  ?:[\\/]*)
6950   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6951   ;;
6952 *)
6953   lt_save_MAGIC_CMD="$MAGIC_CMD"
6954   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6955   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6956   for ac_dir in $ac_dummy; do
6957     IFS="$lt_save_ifs"
6958     test -z "$ac_dir" && ac_dir=.
6959     if test -f $ac_dir/file; then
6960       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6961       if test -n "$file_magic_test_file"; then
6962         case $deplibs_check_method in
6963         "file_magic "*)
6964           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6965           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6966           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6967             $EGREP "$file_magic_regex" > /dev/null; then
6968             :
6969           else
6970             cat <<EOF 1>&2
6971
6972 *** Warning: the command libtool uses to detect shared libraries,
6973 *** $file_magic_cmd, produces output that libtool cannot recognize.
6974 *** The result is that libtool may fail to recognize shared libraries
6975 *** as such.  This will affect the creation of libtool libraries that
6976 *** depend on shared libraries, but programs linked with such libtool
6977 *** libraries will work regardless of this problem.  Nevertheless, you
6978 *** may want to report the problem to your system manager and/or to
6979 *** bug-libtool@gnu.org
6980
6981 EOF
6982           fi ;;
6983         esac
6984       fi
6985       break
6986     fi
6987   done
6988   IFS="$lt_save_ifs"
6989   MAGIC_CMD="$lt_save_MAGIC_CMD"
6990   ;;
6991 esac
6992 fi
6993
6994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6995 if test -n "$MAGIC_CMD"; then
6996   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6997 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6998 else
6999   { echo "$as_me:$LINENO: result: no" >&5
7000 echo "${ECHO_T}no" >&6; }
7001 fi
7002
7003   else
7004     MAGIC_CMD=:
7005   fi
7006 fi
7007
7008   fi
7009   ;;
7010 esac
7011
7012
7013   case $host_os in
7014     rhapsody* | darwin*)
7015     if test -n "$ac_tool_prefix"; then
7016   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7017 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7020 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7021   echo $ECHO_N "(cached) $ECHO_C" >&6
7022 else
7023   if test -n "$DSYMUTIL"; then
7024   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7025 else
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 for as_dir in $PATH
7028 do
7029   IFS=$as_save_IFS
7030   test -z "$as_dir" && as_dir=.
7031   for ac_exec_ext in '' $ac_executable_extensions; do
7032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7033     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7035     break 2
7036   fi
7037 done
7038 done
7039 IFS=$as_save_IFS
7040
7041 fi
7042 fi
7043 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7044 if test -n "$DSYMUTIL"; then
7045   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7046 echo "${ECHO_T}$DSYMUTIL" >&6; }
7047 else
7048   { echo "$as_me:$LINENO: result: no" >&5
7049 echo "${ECHO_T}no" >&6; }
7050 fi
7051
7052
7053 fi
7054 if test -z "$ac_cv_prog_DSYMUTIL"; then
7055   ac_ct_DSYMUTIL=$DSYMUTIL
7056   # Extract the first word of "dsymutil", so it can be a program name with args.
7057 set dummy dsymutil; ac_word=$2
7058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7061   echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063   if test -n "$ac_ct_DSYMUTIL"; then
7064   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7065 else
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7068 do
7069   IFS=$as_save_IFS
7070   test -z "$as_dir" && as_dir=.
7071   for ac_exec_ext in '' $ac_executable_extensions; do
7072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7075     break 2
7076   fi
7077 done
7078 done
7079 IFS=$as_save_IFS
7080
7081 fi
7082 fi
7083 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7084 if test -n "$ac_ct_DSYMUTIL"; then
7085   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7086 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7087 else
7088   { echo "$as_me:$LINENO: result: no" >&5
7089 echo "${ECHO_T}no" >&6; }
7090 fi
7091
7092   if test "x$ac_ct_DSYMUTIL" = x; then
7093     DSYMUTIL=":"
7094   else
7095     case $cross_compiling:$ac_tool_warned in
7096 yes:)
7097 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7098 whose name does not start with the host triplet.  If you think this
7099 configuration is useful to you, please write to autoconf@gnu.org." >&5
7100 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7101 whose name does not start with the host triplet.  If you think this
7102 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7103 ac_tool_warned=yes ;;
7104 esac
7105     DSYMUTIL=$ac_ct_DSYMUTIL
7106   fi
7107 else
7108   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7109 fi
7110
7111     if test -n "$ac_tool_prefix"; then
7112   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7113 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7116 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7117   echo $ECHO_N "(cached) $ECHO_C" >&6
7118 else
7119   if test -n "$NMEDIT"; then
7120   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7121 else
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 for as_dir in $PATH
7124 do
7125   IFS=$as_save_IFS
7126   test -z "$as_dir" && as_dir=.
7127   for ac_exec_ext in '' $ac_executable_extensions; do
7128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7129     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7131     break 2
7132   fi
7133 done
7134 done
7135 IFS=$as_save_IFS
7136
7137 fi
7138 fi
7139 NMEDIT=$ac_cv_prog_NMEDIT
7140 if test -n "$NMEDIT"; then
7141   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7142 echo "${ECHO_T}$NMEDIT" >&6; }
7143 else
7144   { echo "$as_me:$LINENO: result: no" >&5
7145 echo "${ECHO_T}no" >&6; }
7146 fi
7147
7148
7149 fi
7150 if test -z "$ac_cv_prog_NMEDIT"; then
7151   ac_ct_NMEDIT=$NMEDIT
7152   # Extract the first word of "nmedit", so it can be a program name with args.
7153 set dummy nmedit; ac_word=$2
7154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7156 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7157   echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159   if test -n "$ac_ct_NMEDIT"; then
7160   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7161 else
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 for as_dir in $PATH
7164 do
7165   IFS=$as_save_IFS
7166   test -z "$as_dir" && as_dir=.
7167   for ac_exec_ext in '' $ac_executable_extensions; do
7168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7169     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7171     break 2
7172   fi
7173 done
7174 done
7175 IFS=$as_save_IFS
7176
7177 fi
7178 fi
7179 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7180 if test -n "$ac_ct_NMEDIT"; then
7181   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7182 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7183 else
7184   { echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6; }
7186 fi
7187
7188   if test "x$ac_ct_NMEDIT" = x; then
7189     NMEDIT=":"
7190   else
7191     case $cross_compiling:$ac_tool_warned in
7192 yes:)
7193 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7194 whose name does not start with the host triplet.  If you think this
7195 configuration is useful to you, please write to autoconf@gnu.org." >&5
7196 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7197 whose name does not start with the host triplet.  If you think this
7198 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7199 ac_tool_warned=yes ;;
7200 esac
7201     NMEDIT=$ac_ct_NMEDIT
7202   fi
7203 else
7204   NMEDIT="$ac_cv_prog_NMEDIT"
7205 fi
7206
7207
7208     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7209 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7210 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7211   echo $ECHO_N "(cached) $ECHO_C" >&6
7212 else
7213   lt_cv_apple_cc_single_mod=no
7214       if test -z "${LT_MULTI_MODULE}"; then
7215    # By default we will add the -single_module flag. You can override
7216    # by either setting the environment variable LT_MULTI_MODULE
7217    # non-empty at configure time, or by adding -multi_module to the
7218    # link flags.
7219    echo "int foo(void){return 1;}" > conftest.c
7220    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7221      -dynamiclib ${wl}-single_module conftest.c
7222    if test -f libconftest.dylib; then
7223      lt_cv_apple_cc_single_mod=yes
7224      rm -rf libconftest.dylib*
7225    fi
7226    rm conftest.c
7227       fi
7228 fi
7229 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7230 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7231     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7232 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7233 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7234   echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236   lt_cv_ld_exported_symbols_list=no
7237       save_LDFLAGS=$LDFLAGS
7238       echo "_main" > conftest.sym
7239       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7240       cat >conftest.$ac_ext <<_ACEOF
7241 /* confdefs.h.  */
7242 _ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h.  */
7246
7247 int
7248 main ()
7249 {
7250
7251   ;
7252   return 0;
7253 }
7254 _ACEOF
7255 rm -f conftest.$ac_objext conftest$ac_exeext
7256 if { (ac_try="$ac_link"
7257 case "(($ac_try" in
7258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7259   *) ac_try_echo=$ac_try;;
7260 esac
7261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7262   (eval "$ac_link") 2>conftest.er1
7263   ac_status=$?
7264   grep -v '^ *+' conftest.er1 >conftest.err
7265   rm -f conftest.er1
7266   cat conftest.err >&5
7267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268   (exit $ac_status); } && {
7269          test -z "$ac_c_werror_flag" ||
7270          test ! -s conftest.err
7271        } && test -s conftest$ac_exeext &&
7272        $as_test_x conftest$ac_exeext; then
7273   lt_cv_ld_exported_symbols_list=yes
7274 else
7275   echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.$ac_ext >&5
7277
7278         lt_cv_ld_exported_symbols_list=no
7279 fi
7280
7281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7282       conftest$ac_exeext conftest.$ac_ext
7283    LDFLAGS="$save_LDFLAGS"
7284
7285 fi
7286 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7287 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7288     case $host_os in
7289     rhapsody* | darwin1.[0123])
7290       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7291     darwin1.*)
7292      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7293     darwin*)
7294       # if running on 10.5 or later, the deployment target defaults
7295       # to the OS version, if on x86, and 10.4, the deployment
7296       # target defaults to 10.4. Don't you love it?
7297       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7298    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7299      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7300    10.[012]*)
7301      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7302    10.*)
7303      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7304       esac
7305     ;;
7306   esac
7307     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7308       _lt_dar_single_mod='$single_module'
7309     fi
7310     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7311       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7312     else
7313       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7314     fi
7315     if test "$DSYMUTIL" != ":"; then
7316       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7317     else
7318       _lt_dsymutil=
7319     fi
7320     ;;
7321   esac
7322
7323
7324 enable_dlopen=yes
7325 enable_win32_dll=no
7326
7327 # Check whether --enable-libtool-lock was given.
7328 if test "${enable_libtool_lock+set}" = set; then
7329   enableval=$enable_libtool_lock;
7330 fi
7331
7332 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7333
7334
7335 # Check whether --with-pic was given.
7336 if test "${with_pic+set}" = set; then
7337   withval=$with_pic; pic_mode="$withval"
7338 else
7339   pic_mode=default
7340 fi
7341
7342 test -z "$pic_mode" && pic_mode=default
7343
7344 # Use C for the default configuration in the libtool script
7345 tagname=
7346 lt_save_CC="$CC"
7347 ac_ext=c
7348 ac_cpp='$CPP $CPPFLAGS'
7349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7352
7353
7354 # Source file extension for C test sources.
7355 ac_ext=c
7356
7357 # Object file extension for compiled C test sources.
7358 objext=o
7359 objext=$objext
7360
7361 # Code to be used in simple compile tests
7362 lt_simple_compile_test_code="int some_variable = 0;"
7363
7364 # Code to be used in simple link tests
7365 lt_simple_link_test_code='int main(){return(0);}'
7366
7367
7368 # If no C compiler was specified, use CC.
7369 LTCC=${LTCC-"$CC"}
7370
7371 # If no C compiler flags were specified, use CFLAGS.
7372 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7373
7374 # Allow CC to be a program name with arguments.
7375 compiler=$CC
7376
7377
7378 # save warnings/boilerplate of simple test code
7379 ac_outfile=conftest.$ac_objext
7380 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7381 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7382 _lt_compiler_boilerplate=`cat conftest.err`
7383 $rm conftest*
7384
7385 ac_outfile=conftest.$ac_objext
7386 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7387 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7388 _lt_linker_boilerplate=`cat conftest.err`
7389 $rm -r conftest*
7390
7391
7392
7393 lt_prog_compiler_no_builtin_flag=
7394
7395 if test "$GCC" = yes; then
7396   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7397
7398
7399 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7400 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7401 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7402   echo $ECHO_N "(cached) $ECHO_C" >&6
7403 else
7404   lt_cv_prog_compiler_rtti_exceptions=no
7405   ac_outfile=conftest.$ac_objext
7406    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7407    lt_compiler_flag="-fno-rtti -fno-exceptions"
7408    # Insert the option either (1) after the last *FLAGS variable, or
7409    # (2) before a word containing "conftest.", or (3) at the end.
7410    # Note that $ac_compile itself does not contain backslashes and begins
7411    # with a dollar sign (not a hyphen), so the echo should work correctly.
7412    # The option is referenced via a variable to avoid confusing sed.
7413    lt_compile=`echo "$ac_compile" | $SED \
7414    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7415    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7416    -e 's:$: $lt_compiler_flag:'`
7417    (eval echo "\"\$as_me:7417: $lt_compile\"" >&5)
7418    (eval "$lt_compile" 2>conftest.err)
7419    ac_status=$?
7420    cat conftest.err >&5
7421    echo "$as_me:7421: \$? = $ac_status" >&5
7422    if (exit $ac_status) && test -s "$ac_outfile"; then
7423      # The compiler can only warn and ignore the option if not recognized
7424      # So say no if there are warnings other than the usual output.
7425      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7426      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7427      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7428        lt_cv_prog_compiler_rtti_exceptions=yes
7429      fi
7430    fi
7431    $rm conftest*
7432
7433 fi
7434 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7435 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7436
7437 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7438     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7439 else
7440     :
7441 fi
7442
7443 fi
7444
7445 lt_prog_compiler_wl=
7446 lt_prog_compiler_pic=
7447 lt_prog_compiler_static=
7448
7449 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7450 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7451
7452   if test "$GCC" = yes; then
7453     lt_prog_compiler_wl='-Wl,'
7454     lt_prog_compiler_static='-static'
7455
7456     case $host_os in
7457       aix*)
7458       # All AIX code is PIC.
7459       if test "$host_cpu" = ia64; then
7460         # AIX 5 now supports IA64 processor
7461         lt_prog_compiler_static='-Bstatic'
7462       fi
7463       ;;
7464
7465     amigaos*)
7466       # FIXME: we need at least 68020 code to build shared libraries, but
7467       # adding the `-m68020' flag to GCC prevents building anything better,
7468       # like `-m68040'.
7469       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7470       ;;
7471
7472     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7473       # PIC is the default for these OSes.
7474       ;;
7475
7476     mingw* | cygwin* | pw32* | os2*)
7477       # This hack is so that the source file can tell whether it is being
7478       # built for inclusion in a dll (and should export symbols for example).
7479       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7480       # (--disable-auto-import) libraries
7481       lt_prog_compiler_pic='-DDLL_EXPORT'
7482       ;;
7483
7484     darwin* | rhapsody*)
7485       # PIC is the default on this platform
7486       # Common symbols not allowed in MH_DYLIB files
7487       lt_prog_compiler_pic='-fno-common'
7488       ;;
7489
7490     interix[3-9]*)
7491       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7492       # Instead, we relocate shared libraries at runtime.
7493       ;;
7494
7495     msdosdjgpp*)
7496       # Just because we use GCC doesn't mean we suddenly get shared libraries
7497       # on systems that don't support them.
7498       lt_prog_compiler_can_build_shared=no
7499       enable_shared=no
7500       ;;
7501
7502     sysv4*MP*)
7503       if test -d /usr/nec; then
7504         lt_prog_compiler_pic=-Kconform_pic
7505       fi
7506       ;;
7507
7508     hpux*)
7509       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7510       # not for PA HP-UX.
7511       case $host_cpu in
7512       hppa*64*|ia64*)
7513         # +Z the default
7514         ;;
7515       *)
7516         lt_prog_compiler_pic='-fPIC'
7517         ;;
7518       esac
7519       ;;
7520
7521     *)
7522       lt_prog_compiler_pic='-fPIC'
7523       ;;
7524     esac
7525   else
7526     # PORTME Check for flag to pass linker flags through the system compiler.
7527     case $host_os in
7528     aix*)
7529       lt_prog_compiler_wl='-Wl,'
7530       if test "$host_cpu" = ia64; then
7531         # AIX 5 now supports IA64 processor
7532         lt_prog_compiler_static='-Bstatic'
7533       else
7534         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7535       fi
7536       ;;
7537       darwin*)
7538         # PIC is the default on this platform
7539         # Common symbols not allowed in MH_DYLIB files
7540        case $cc_basename in
7541          xlc*)
7542          lt_prog_compiler_pic='-qnocommon'
7543          lt_prog_compiler_wl='-Wl,'
7544          ;;
7545        esac
7546        ;;
7547
7548     mingw* | cygwin* | pw32* | os2*)
7549       # This hack is so that the source file can tell whether it is being
7550       # built for inclusion in a dll (and should export symbols for example).
7551       lt_prog_compiler_pic='-DDLL_EXPORT'
7552       ;;
7553
7554     hpux9* | hpux10* | hpux11*)
7555       lt_prog_compiler_wl='-Wl,'
7556       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7557       # not for PA HP-UX.
7558       case $host_cpu in
7559       hppa*64*|ia64*)
7560         # +Z the default
7561         ;;
7562       *)
7563         lt_prog_compiler_pic='+Z'
7564         ;;
7565       esac
7566       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7567       lt_prog_compiler_static='${wl}-a ${wl}archive'
7568       ;;
7569
7570     irix5* | irix6* | nonstopux*)
7571       lt_prog_compiler_wl='-Wl,'
7572       # PIC (with -KPIC) is the default.
7573       lt_prog_compiler_static='-non_shared'
7574       ;;
7575
7576     newsos6)
7577       lt_prog_compiler_pic='-KPIC'
7578       lt_prog_compiler_static='-Bstatic'
7579       ;;
7580
7581     linux* | k*bsd*-gnu)
7582       case $cc_basename in
7583       icc* | ecc*)
7584         lt_prog_compiler_wl='-Wl,'
7585         lt_prog_compiler_pic='-KPIC'
7586         lt_prog_compiler_static='-static'
7587         ;;
7588       pgcc* | pgf77* | pgf90* | pgf95*)
7589         # Portland Group compilers (*not* the Pentium gcc compiler,
7590         # which looks to be a dead project)
7591         lt_prog_compiler_wl='-Wl,'
7592         lt_prog_compiler_pic='-fpic'
7593         lt_prog_compiler_static='-Bstatic'
7594         ;;
7595       ccc*)
7596         lt_prog_compiler_wl='-Wl,'
7597         # All Alpha code is PIC.
7598         lt_prog_compiler_static='-non_shared'
7599         ;;
7600       *)
7601         case `$CC -V 2>&1 | sed 5q` in
7602         *Sun\ C*)
7603           # Sun C 5.9
7604           lt_prog_compiler_pic='-KPIC'
7605           lt_prog_compiler_static='-Bstatic'
7606           lt_prog_compiler_wl='-Wl,'
7607           ;;
7608         *Sun\ F*)
7609           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7610           lt_prog_compiler_pic='-KPIC'
7611           lt_prog_compiler_static='-Bstatic'
7612           lt_prog_compiler_wl=''
7613           ;;
7614         esac
7615         ;;
7616       esac
7617       ;;
7618
7619     osf3* | osf4* | osf5*)
7620       lt_prog_compiler_wl='-Wl,'
7621       # All OSF/1 code is PIC.
7622       lt_prog_compiler_static='-non_shared'
7623       ;;
7624
7625     rdos*)
7626       lt_prog_compiler_static='-non_shared'
7627       ;;
7628
7629     solaris*)
7630       lt_prog_compiler_pic='-KPIC'
7631       lt_prog_compiler_static='-Bstatic'
7632       case $cc_basename in
7633       f77* | f90* | f95*)
7634         lt_prog_compiler_wl='-Qoption ld ';;
7635       *)
7636         lt_prog_compiler_wl='-Wl,';;
7637       esac
7638       ;;
7639
7640     sunos4*)
7641       lt_prog_compiler_wl='-Qoption ld '
7642       lt_prog_compiler_pic='-PIC'
7643       lt_prog_compiler_static='-Bstatic'
7644       ;;
7645
7646     sysv4 | sysv4.2uw2* | sysv4.3*)
7647       lt_prog_compiler_wl='-Wl,'
7648       lt_prog_compiler_pic='-KPIC'
7649       lt_prog_compiler_static='-Bstatic'
7650       ;;
7651
7652     sysv4*MP*)
7653       if test -d /usr/nec ;then
7654         lt_prog_compiler_pic='-Kconform_pic'
7655         lt_prog_compiler_static='-Bstatic'
7656       fi
7657       ;;
7658
7659     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7660       lt_prog_compiler_wl='-Wl,'
7661       lt_prog_compiler_pic='-KPIC'
7662       lt_prog_compiler_static='-Bstatic'
7663       ;;
7664
7665     unicos*)
7666       lt_prog_compiler_wl='-Wl,'
7667       lt_prog_compiler_can_build_shared=no
7668       ;;
7669
7670     uts4*)
7671       lt_prog_compiler_pic='-pic'
7672       lt_prog_compiler_static='-Bstatic'
7673       ;;
7674
7675     *)
7676       lt_prog_compiler_can_build_shared=no
7677       ;;
7678     esac
7679   fi
7680
7681 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7682 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7683
7684 #
7685 # Check to make sure the PIC flag actually works.
7686 #
7687 if test -n "$lt_prog_compiler_pic"; then
7688
7689 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7690 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7691 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7692   echo $ECHO_N "(cached) $ECHO_C" >&6
7693 else
7694   lt_cv_prog_compiler_pic_works=no
7695   ac_outfile=conftest.$ac_objext
7696    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7697    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7698    # Insert the option either (1) after the last *FLAGS variable, or
7699    # (2) before a word containing "conftest.", or (3) at the end.
7700    # Note that $ac_compile itself does not contain backslashes and begins
7701    # with a dollar sign (not a hyphen), so the echo should work correctly.
7702    # The option is referenced via a variable to avoid confusing sed.
7703    lt_compile=`echo "$ac_compile" | $SED \
7704    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7705    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7706    -e 's:$: $lt_compiler_flag:'`
7707    (eval echo "\"\$as_me:7707: $lt_compile\"" >&5)
7708    (eval "$lt_compile" 2>conftest.err)
7709    ac_status=$?
7710    cat conftest.err >&5
7711    echo "$as_me:7711: \$? = $ac_status" >&5
7712    if (exit $ac_status) && test -s "$ac_outfile"; then
7713      # The compiler can only warn and ignore the option if not recognized
7714      # So say no if there are warnings other than the usual output.
7715      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7716      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7717      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7718        lt_cv_prog_compiler_pic_works=yes
7719      fi
7720    fi
7721    $rm conftest*
7722
7723 fi
7724 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7725 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7726
7727 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7728     case $lt_prog_compiler_pic in
7729      "" | " "*) ;;
7730      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7731      esac
7732 else
7733     lt_prog_compiler_pic=
7734      lt_prog_compiler_can_build_shared=no
7735 fi
7736
7737 fi
7738 case $host_os in
7739   # For platforms which do not support PIC, -DPIC is meaningless:
7740   *djgpp*)
7741     lt_prog_compiler_pic=
7742     ;;
7743   *)
7744     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7745     ;;
7746 esac
7747
7748 #
7749 # Check to make sure the static flag actually works.
7750 #
7751 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7752 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7753 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7754 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7755   echo $ECHO_N "(cached) $ECHO_C" >&6
7756 else
7757   lt_cv_prog_compiler_static_works=no
7758    save_LDFLAGS="$LDFLAGS"
7759    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7760    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7761    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7762      # The linker can only warn and ignore the option if not recognized
7763      # So say no if there are warnings
7764      if test -s conftest.err; then
7765        # Append any errors to the config.log.
7766        cat conftest.err 1>&5
7767        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7768        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7769        if diff conftest.exp conftest.er2 >/dev/null; then
7770          lt_cv_prog_compiler_static_works=yes
7771        fi
7772      else
7773        lt_cv_prog_compiler_static_works=yes
7774      fi
7775    fi
7776    $rm -r conftest*
7777    LDFLAGS="$save_LDFLAGS"
7778
7779 fi
7780 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7781 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7782
7783 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7784     :
7785 else
7786     lt_prog_compiler_static=
7787 fi
7788
7789
7790 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7791 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7792 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7793   echo $ECHO_N "(cached) $ECHO_C" >&6
7794 else
7795   lt_cv_prog_compiler_c_o=no
7796    $rm -r conftest 2>/dev/null
7797    mkdir conftest
7798    cd conftest
7799    mkdir out
7800    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7801
7802    lt_compiler_flag="-o out/conftest2.$ac_objext"
7803    # Insert the option either (1) after the last *FLAGS variable, or
7804    # (2) before a word containing "conftest.", or (3) at the end.
7805    # Note that $ac_compile itself does not contain backslashes and begins
7806    # with a dollar sign (not a hyphen), so the echo should work correctly.
7807    lt_compile=`echo "$ac_compile" | $SED \
7808    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7809    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7810    -e 's:$: $lt_compiler_flag:'`
7811    (eval echo "\"\$as_me:7811: $lt_compile\"" >&5)
7812    (eval "$lt_compile" 2>out/conftest.err)
7813    ac_status=$?
7814    cat out/conftest.err >&5
7815    echo "$as_me:7815: \$? = $ac_status" >&5
7816    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7817    then
7818      # The compiler can only warn and ignore the option if not recognized
7819      # So say no if there are warnings
7820      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7821      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7822      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7823        lt_cv_prog_compiler_c_o=yes
7824      fi
7825    fi
7826    chmod u+w . 2>&5
7827    $rm conftest*
7828    # SGI C++ compiler will create directory out/ii_files/ for
7829    # template instantiation
7830    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7831    $rm out/* && rmdir out
7832    cd ..
7833    rmdir conftest
7834    $rm conftest*
7835
7836 fi
7837 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7838 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7839
7840
7841 hard_links="nottested"
7842 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7843   # do not overwrite the value of need_locks provided by the user
7844   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7845 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7846   hard_links=yes
7847   $rm conftest*
7848   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7849   touch conftest.a
7850   ln conftest.a conftest.b 2>&5 || hard_links=no
7851   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7852   { echo "$as_me:$LINENO: result: $hard_links" >&5
7853 echo "${ECHO_T}$hard_links" >&6; }
7854   if test "$hard_links" = no; then
7855     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7856 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7857     need_locks=warn
7858   fi
7859 else
7860   need_locks=no
7861 fi
7862
7863 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7864 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7865
7866   runpath_var=
7867   allow_undefined_flag=
7868   enable_shared_with_static_runtimes=no
7869   archive_cmds=
7870   archive_expsym_cmds=
7871   old_archive_From_new_cmds=
7872   old_archive_from_expsyms_cmds=
7873   export_dynamic_flag_spec=
7874   whole_archive_flag_spec=
7875   thread_safe_flag_spec=
7876   hardcode_libdir_flag_spec=
7877   hardcode_libdir_flag_spec_ld=
7878   hardcode_libdir_separator=
7879   hardcode_direct=no
7880   hardcode_minus_L=no
7881   hardcode_shlibpath_var=unsupported
7882   link_all_deplibs=unknown
7883   hardcode_automatic=no
7884   module_cmds=
7885   module_expsym_cmds=
7886   always_export_symbols=no
7887   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7888   # include_expsyms should be a list of space-separated symbols to be *always*
7889   # included in the symbol list
7890   include_expsyms=
7891   # exclude_expsyms can be an extended regexp of symbols to exclude
7892   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7893   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7894   # as well as any symbol that contains `d'.
7895   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7896   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7897   # platforms (ab)use it in PIC code, but their linkers get confused if
7898   # the symbol is explicitly referenced.  Since portable code cannot
7899   # rely on this symbol name, it's probably fine to never include it in
7900   # preloaded symbol tables.
7901   # Exclude shared library initialization/finalization symbols.
7902   extract_expsyms_cmds=
7903   # Just being paranoid about ensuring that cc_basename is set.
7904   for cc_temp in $compiler""; do
7905   case $cc_temp in
7906     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7907     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7908     \-*) ;;
7909     *) break;;
7910   esac
7911 done
7912 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7913
7914   case $host_os in
7915   cygwin* | mingw* | pw32*)
7916     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7917     # When not using gcc, we currently assume that we are using
7918     # Microsoft Visual C++.
7919     if test "$GCC" != yes; then
7920       with_gnu_ld=no
7921     fi
7922     ;;
7923   interix*)
7924     # we just hope/assume this is gcc and not c89 (= MSVC++)
7925     with_gnu_ld=yes
7926     ;;
7927   openbsd*)
7928     with_gnu_ld=no
7929     ;;
7930   esac
7931
7932   ld_shlibs=yes
7933   if test "$with_gnu_ld" = yes; then
7934     # If archive_cmds runs LD, not CC, wlarc should be empty
7935     wlarc='${wl}'
7936
7937     # Set some defaults for GNU ld with shared library support. These
7938     # are reset later if shared libraries are not supported. Putting them
7939     # here allows them to be overridden if necessary.
7940     runpath_var=LD_RUN_PATH
7941     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7942     export_dynamic_flag_spec='${wl}--export-dynamic'
7943     # ancient GNU ld didn't support --whole-archive et. al.
7944     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7945         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7946       else
7947         whole_archive_flag_spec=
7948     fi
7949     supports_anon_versioning=no
7950     case `$LD -v 2>/dev/null` in
7951       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7952       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7953       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7954       *\ 2.11.*) ;; # other 2.11 versions
7955       *) supports_anon_versioning=yes ;;
7956     esac
7957
7958     # See if GNU ld supports shared libraries.
7959     case $host_os in
7960     aix[3-9]*)
7961       # On AIX/PPC, the GNU linker is very broken
7962       if test "$host_cpu" != ia64; then
7963         ld_shlibs=no
7964         cat <<EOF 1>&2
7965
7966 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7967 *** to be unable to reliably create shared libraries on AIX.
7968 *** Therefore, libtool is disabling shared libraries support.  If you
7969 *** really care for shared libraries, you may want to modify your PATH
7970 *** so that a non-GNU linker is found, and then restart.
7971
7972 EOF
7973       fi
7974       ;;
7975
7976     amigaos*)
7977       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)'
7978       hardcode_libdir_flag_spec='-L$libdir'
7979       hardcode_minus_L=yes
7980
7981       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7982       # that the semantics of dynamic libraries on AmigaOS, at least up
7983       # to version 4, is to share data among multiple programs linked
7984       # with the same dynamic library.  Since this doesn't match the
7985       # behavior of shared libraries on other platforms, we can't use
7986       # them.
7987       ld_shlibs=no
7988       ;;
7989
7990     beos*)
7991       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7992         allow_undefined_flag=unsupported
7993         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7994         # support --undefined.  This deserves some investigation.  FIXME
7995         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7996       else
7997         ld_shlibs=no
7998       fi
7999       ;;
8000
8001     cygwin* | mingw* | pw32*)
8002       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8003       # as there is no search path for DLLs.
8004       hardcode_libdir_flag_spec='-L$libdir'
8005       allow_undefined_flag=unsupported
8006       always_export_symbols=no
8007       enable_shared_with_static_runtimes=yes
8008       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8009
8010       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8011         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8012         # If the export-symbols file already is a .def file (1st line
8013         # is EXPORTS), use it as is; otherwise, prepend...
8014         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8015           cp $export_symbols $output_objdir/$soname.def;
8016         else
8017           echo EXPORTS > $output_objdir/$soname.def;
8018           cat $export_symbols >> $output_objdir/$soname.def;
8019         fi~
8020         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8021       else
8022         ld_shlibs=no
8023       fi
8024       ;;
8025
8026     interix[3-9]*)
8027       hardcode_direct=no
8028       hardcode_shlibpath_var=no
8029       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8030       export_dynamic_flag_spec='${wl}-E'
8031       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8032       # Instead, shared libraries are loaded at an image base (0x10000000 by
8033       # default) and relocated if they conflict, which is a slow very memory
8034       # consuming and fragmenting process.  To avoid this, we pick a random,
8035       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8036       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8037       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8038       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'
8039       ;;
8040
8041     gnu* | linux* | k*bsd*-gnu)
8042       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8043         tmp_addflag=
8044         case $cc_basename,$host_cpu in
8045         pgcc*)                          # Portland Group C compiler
8046           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'
8047           tmp_addflag=' $pic_flag'
8048           ;;
8049         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8050           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'
8051           tmp_addflag=' $pic_flag -Mnomain' ;;
8052         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8053           tmp_addflag=' -i_dynamic' ;;
8054         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8055           tmp_addflag=' -i_dynamic -nofor_main' ;;
8056         ifc* | ifort*)                  # Intel Fortran compiler
8057           tmp_addflag=' -nofor_main' ;;
8058         esac
8059         case `$CC -V 2>&1 | sed 5q` in
8060         *Sun\ C*)                       # Sun C 5.9
8061           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'
8062           tmp_sharedflag='-G' ;;
8063         *Sun\ F*)                       # Sun Fortran 8.3
8064           tmp_sharedflag='-G' ;;
8065         *)
8066           tmp_sharedflag='-shared' ;;
8067         esac
8068         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8069
8070         if test $supports_anon_versioning = yes; then
8071           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8072   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8073   $echo "local: *; };" >> $output_objdir/$libname.ver~
8074           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8075         fi
8076         link_all_deplibs=no
8077       else
8078         ld_shlibs=no
8079       fi
8080       ;;
8081
8082     netbsd* | netbsdelf*-gnu)
8083       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8084         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8085         wlarc=
8086       else
8087         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8088         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8089       fi
8090       ;;
8091
8092     solaris*)
8093       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8094         ld_shlibs=no
8095         cat <<EOF 1>&2
8096
8097 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8098 *** create shared libraries on Solaris systems.  Therefore, libtool
8099 *** is disabling shared libraries support.  We urge you to upgrade GNU
8100 *** binutils to release 2.9.1 or newer.  Another option is to modify
8101 *** your PATH or compiler configuration so that the native linker is
8102 *** used, and then restart.
8103
8104 EOF
8105       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8106         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8107         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8108       else
8109         ld_shlibs=no
8110       fi
8111       ;;
8112
8113     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8114       case `$LD -v 2>&1` in
8115         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8116         ld_shlibs=no
8117         cat <<_LT_EOF 1>&2
8118
8119 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8120 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8121 *** is disabling shared libraries support.  We urge you to upgrade GNU
8122 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8123 *** your PATH or compiler configuration so that the native linker is
8124 *** used, and then restart.
8125
8126 _LT_EOF
8127         ;;
8128         *)
8129           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8130             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8131             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8132             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8133           else
8134             ld_shlibs=no
8135           fi
8136         ;;
8137       esac
8138       ;;
8139
8140     sunos4*)
8141       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8142       wlarc=
8143       hardcode_direct=yes
8144       hardcode_shlibpath_var=no
8145       ;;
8146
8147     *)
8148       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8149         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8150         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8151       else
8152         ld_shlibs=no
8153       fi
8154       ;;
8155     esac
8156
8157     if test "$ld_shlibs" = no; then
8158       runpath_var=
8159       hardcode_libdir_flag_spec=
8160       export_dynamic_flag_spec=
8161       whole_archive_flag_spec=
8162     fi
8163   else
8164     # PORTME fill in a description of your system's linker (not GNU ld)
8165     case $host_os in
8166     aix3*)
8167       allow_undefined_flag=unsupported
8168       always_export_symbols=yes
8169       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'
8170       # Note: this linker hardcodes the directories in LIBPATH if there
8171       # are no directories specified by -L.
8172       hardcode_minus_L=yes
8173       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8174         # Neither direct hardcoding nor static linking is supported with a
8175         # broken collect2.
8176         hardcode_direct=unsupported
8177       fi
8178       ;;
8179
8180     aix[4-9]*)
8181       if test "$host_cpu" = ia64; then
8182         # On IA64, the linker does run time linking by default, so we don't
8183         # have to do anything special.
8184         aix_use_runtimelinking=no
8185         exp_sym_flag='-Bexport'
8186         no_entry_flag=""
8187       else
8188         # If we're using GNU nm, then we don't want the "-C" option.
8189         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8190         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8191           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'
8192         else
8193           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'
8194         fi
8195         aix_use_runtimelinking=no
8196
8197         # Test if we are trying to use run time linking or normal
8198         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8199         # need to do runtime linking.
8200         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8201           for ld_flag in $LDFLAGS; do
8202           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8203             aix_use_runtimelinking=yes
8204             break
8205           fi
8206           done
8207           ;;
8208         esac
8209
8210         exp_sym_flag='-bexport'
8211         no_entry_flag='-bnoentry'
8212       fi
8213
8214       # When large executables or shared objects are built, AIX ld can
8215       # have problems creating the table of contents.  If linking a library
8216       # or program results in "error TOC overflow" add -mminimal-toc to
8217       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8218       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8219
8220       archive_cmds=''
8221       hardcode_direct=yes
8222       hardcode_libdir_separator=':'
8223       link_all_deplibs=yes
8224
8225       if test "$GCC" = yes; then
8226         case $host_os in aix4.[012]|aix4.[012].*)
8227         # We only want to do this on AIX 4.2 and lower, the check
8228         # below for broken collect2 doesn't work under 4.3+
8229           collect2name=`${CC} -print-prog-name=collect2`
8230           if test -f "$collect2name" && \
8231            strings "$collect2name" | grep resolve_lib_name >/dev/null
8232           then
8233           # We have reworked collect2
8234           :
8235           else
8236           # We have old collect2
8237           hardcode_direct=unsupported
8238           # It fails to find uninstalled libraries when the uninstalled
8239           # path is not listed in the libpath.  Setting hardcode_minus_L
8240           # to unsupported forces relinking
8241           hardcode_minus_L=yes
8242           hardcode_libdir_flag_spec='-L$libdir'
8243           hardcode_libdir_separator=
8244           fi
8245           ;;
8246         esac
8247         shared_flag='-shared'
8248         if test "$aix_use_runtimelinking" = yes; then
8249           shared_flag="$shared_flag "'${wl}-G'
8250         fi
8251       else
8252         # not using gcc
8253         if test "$host_cpu" = ia64; then
8254         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8255         # chokes on -Wl,-G. The following line is correct:
8256           shared_flag='-G'
8257         else
8258           if test "$aix_use_runtimelinking" = yes; then
8259             shared_flag='${wl}-G'
8260           else
8261             shared_flag='${wl}-bM:SRE'
8262           fi
8263         fi
8264       fi
8265
8266       # It seems that -bexpall does not export symbols beginning with
8267       # underscore (_), so it is better to generate a list of symbols to export.
8268       always_export_symbols=yes
8269       if test "$aix_use_runtimelinking" = yes; then
8270         # Warning - without using the other runtime loading flags (-brtl),
8271         # -berok will link without error, but may produce a broken library.
8272         allow_undefined_flag='-berok'
8273        # Determine the default libpath from the value encoded in an empty executable.
8274        cat >conftest.$ac_ext <<_ACEOF
8275 /* confdefs.h.  */
8276 _ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h.  */
8280
8281 int
8282 main ()
8283 {
8284
8285   ;
8286   return 0;
8287 }
8288 _ACEOF
8289 rm -f conftest.$ac_objext conftest$ac_exeext
8290 if { (ac_try="$ac_link"
8291 case "(($ac_try" in
8292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293   *) ac_try_echo=$ac_try;;
8294 esac
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296   (eval "$ac_link") 2>conftest.er1
8297   ac_status=$?
8298   grep -v '^ *+' conftest.er1 >conftest.err
8299   rm -f conftest.er1
8300   cat conftest.err >&5
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); } && {
8303          test -z "$ac_c_werror_flag" ||
8304          test ! -s conftest.err
8305        } && test -s conftest$ac_exeext &&
8306        $as_test_x conftest$ac_exeext; then
8307
8308 lt_aix_libpath_sed='
8309     /Import File Strings/,/^$/ {
8310         /^0/ {
8311             s/^0  *\(.*\)$/\1/
8312             p
8313         }
8314     }'
8315 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8316 # Check for a 64-bit object if we didn't find anything.
8317 if test -z "$aix_libpath"; then
8318   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8319 fi
8320 else
8321   echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8323
8324
8325 fi
8326
8327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8328       conftest$ac_exeext conftest.$ac_ext
8329 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8330
8331        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8332         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"
8333        else
8334         if test "$host_cpu" = ia64; then
8335           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8336           allow_undefined_flag="-z nodefs"
8337           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"
8338         else
8339          # Determine the default libpath from the value encoded in an empty executable.
8340          cat >conftest.$ac_ext <<_ACEOF
8341 /* confdefs.h.  */
8342 _ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h.  */
8346
8347 int
8348 main ()
8349 {
8350
8351   ;
8352   return 0;
8353 }
8354 _ACEOF
8355 rm -f conftest.$ac_objext conftest$ac_exeext
8356 if { (ac_try="$ac_link"
8357 case "(($ac_try" in
8358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359   *) ac_try_echo=$ac_try;;
8360 esac
8361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8362   (eval "$ac_link") 2>conftest.er1
8363   ac_status=$?
8364   grep -v '^ *+' conftest.er1 >conftest.err
8365   rm -f conftest.er1
8366   cat conftest.err >&5
8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   (exit $ac_status); } && {
8369          test -z "$ac_c_werror_flag" ||
8370          test ! -s conftest.err
8371        } && test -s conftest$ac_exeext &&
8372        $as_test_x conftest$ac_exeext; then
8373
8374 lt_aix_libpath_sed='
8375     /Import File Strings/,/^$/ {
8376         /^0/ {
8377             s/^0  *\(.*\)$/\1/
8378             p
8379         }
8380     }'
8381 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8382 # Check for a 64-bit object if we didn't find anything.
8383 if test -z "$aix_libpath"; then
8384   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8385 fi
8386 else
8387   echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8389
8390
8391 fi
8392
8393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8394       conftest$ac_exeext conftest.$ac_ext
8395 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8396
8397          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8398           # Warning - without using the other run time loading flags,
8399           # -berok will link without error, but may produce a broken library.
8400           no_undefined_flag=' ${wl}-bernotok'
8401           allow_undefined_flag=' ${wl}-berok'
8402           # Exported symbols can be pulled into shared objects from archives
8403           whole_archive_flag_spec='$convenience'
8404           archive_cmds_need_lc=yes
8405           # This is similar to how AIX traditionally builds its shared libraries.
8406           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'
8407         fi
8408       fi
8409       ;;
8410
8411     amigaos*)
8412       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)'
8413       hardcode_libdir_flag_spec='-L$libdir'
8414       hardcode_minus_L=yes
8415       # see comment about different semantics on the GNU ld section
8416       ld_shlibs=no
8417       ;;
8418
8419     bsdi[45]*)
8420       export_dynamic_flag_spec=-rdynamic
8421       ;;
8422
8423     cygwin* | mingw* | pw32*)
8424       # When not using gcc, we currently assume that we are using
8425       # Microsoft Visual C++.
8426       # hardcode_libdir_flag_spec is actually meaningless, as there is
8427       # no search path for DLLs.
8428       hardcode_libdir_flag_spec=' '
8429       allow_undefined_flag=unsupported
8430       # Tell ltmain to make .lib files, not .a files.
8431       libext=lib
8432       # Tell ltmain to make .dll files, not .so files.
8433       shrext_cmds=".dll"
8434       # FIXME: Setting linknames here is a bad hack.
8435       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8436       # The linker will automatically build a .lib file if we build a DLL.
8437       old_archive_From_new_cmds='true'
8438       # FIXME: Should let the user specify the lib program.
8439       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8440       fix_srcfile_path='`cygpath -w "$srcfile"`'
8441       enable_shared_with_static_runtimes=yes
8442       ;;
8443
8444     darwin* | rhapsody*)
8445       case $host_os in
8446         rhapsody* | darwin1.[012])
8447          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8448          ;;
8449        *) # Darwin 1.3 on
8450          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8451            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8452          else
8453            case ${MACOSX_DEPLOYMENT_TARGET} in
8454              10.[012])
8455                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8456                ;;
8457              10.*)
8458                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8459                ;;
8460            esac
8461          fi
8462          ;;
8463       esac
8464       archive_cmds_need_lc=no
8465       hardcode_direct=no
8466       hardcode_automatic=yes
8467       hardcode_shlibpath_var=unsupported
8468       whole_archive_flag_spec=''
8469       link_all_deplibs=yes
8470     if test "$GCC" = yes ; then
8471         output_verbose_link_cmd='echo'
8472         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8473         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8474         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}"
8475         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}"
8476     else
8477       case $cc_basename in
8478         xlc*)
8479          output_verbose_link_cmd='echo'
8480          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8481          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8482           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8483          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}'
8484           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}'
8485           ;;
8486        *)
8487          ld_shlibs=no
8488           ;;
8489       esac
8490     fi
8491       ;;
8492
8493     dgux*)
8494       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8495       hardcode_libdir_flag_spec='-L$libdir'
8496       hardcode_shlibpath_var=no
8497       ;;
8498
8499     freebsd1*)
8500       ld_shlibs=no
8501       ;;
8502
8503     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8504     # support.  Future versions do this automatically, but an explicit c++rt0.o
8505     # does not break anything, and helps significantly (at the cost of a little
8506     # extra space).
8507     freebsd2.2*)
8508       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8509       hardcode_libdir_flag_spec='-R$libdir'
8510       hardcode_direct=yes
8511       hardcode_shlibpath_var=no
8512       ;;
8513
8514     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8515     freebsd2*)
8516       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8517       hardcode_direct=yes
8518       hardcode_minus_L=yes
8519       hardcode_shlibpath_var=no
8520       ;;
8521
8522     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8523     freebsd* | dragonfly*)
8524       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8525       hardcode_libdir_flag_spec='-R$libdir'
8526       hardcode_direct=yes
8527       hardcode_shlibpath_var=no
8528       ;;
8529
8530     hpux9*)
8531       if test "$GCC" = yes; then
8532         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'
8533       else
8534         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'
8535       fi
8536       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8537       hardcode_libdir_separator=:
8538       hardcode_direct=yes
8539
8540       # hardcode_minus_L: Not really in the search PATH,
8541       # but as the default location of the library.
8542       hardcode_minus_L=yes
8543       export_dynamic_flag_spec='${wl}-E'
8544       ;;
8545
8546     hpux10*)
8547       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8548         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8549       else
8550         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8551       fi
8552       if test "$with_gnu_ld" = no; then
8553         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8554         hardcode_libdir_separator=:
8555
8556         hardcode_direct=yes
8557         export_dynamic_flag_spec='${wl}-E'
8558
8559         # hardcode_minus_L: Not really in the search PATH,
8560         # but as the default location of the library.
8561         hardcode_minus_L=yes
8562       fi
8563       ;;
8564
8565     hpux11*)
8566       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8567         case $host_cpu in
8568         hppa*64*)
8569           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8570           ;;
8571         ia64*)
8572           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8573           ;;
8574         *)
8575           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8576           ;;
8577         esac
8578       else
8579         case $host_cpu in
8580         hppa*64*)
8581           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8582           ;;
8583         ia64*)
8584           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8585           ;;
8586         *)
8587           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8588           ;;
8589         esac
8590       fi
8591       if test "$with_gnu_ld" = no; then
8592         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8593         hardcode_libdir_separator=:
8594
8595         case $host_cpu in
8596         hppa*64*|ia64*)
8597           hardcode_libdir_flag_spec_ld='+b $libdir'
8598           hardcode_direct=no
8599           hardcode_shlibpath_var=no
8600           ;;
8601         *)
8602           hardcode_direct=yes
8603           export_dynamic_flag_spec='${wl}-E'
8604
8605           # hardcode_minus_L: Not really in the search PATH,
8606           # but as the default location of the library.
8607           hardcode_minus_L=yes
8608           ;;
8609         esac
8610       fi
8611       ;;
8612
8613     irix5* | irix6* | nonstopux*)
8614       if test "$GCC" = yes; then
8615         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'
8616       else
8617         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'
8618         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8619       fi
8620       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8621       hardcode_libdir_separator=:
8622       link_all_deplibs=yes
8623       ;;
8624
8625     netbsd* | netbsdelf*-gnu)
8626       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8627         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8628       else
8629         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8630       fi
8631       hardcode_libdir_flag_spec='-R$libdir'
8632       hardcode_direct=yes
8633       hardcode_shlibpath_var=no
8634       ;;
8635
8636     newsos6)
8637       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8638       hardcode_direct=yes
8639       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8640       hardcode_libdir_separator=:
8641       hardcode_shlibpath_var=no
8642       ;;
8643
8644     openbsd*)
8645       if test -f /usr/libexec/ld.so; then
8646         hardcode_direct=yes
8647         hardcode_shlibpath_var=no
8648         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8649           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8650           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8651           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8652           export_dynamic_flag_spec='${wl}-E'
8653         else
8654           case $host_os in
8655            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8656              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8657              hardcode_libdir_flag_spec='-R$libdir'
8658              ;;
8659            *)
8660              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8661              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8662              ;;
8663           esac
8664         fi
8665       else
8666         ld_shlibs=no
8667       fi
8668       ;;
8669
8670     os2*)
8671       hardcode_libdir_flag_spec='-L$libdir'
8672       hardcode_minus_L=yes
8673       allow_undefined_flag=unsupported
8674       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'
8675       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8676       ;;
8677
8678     osf3*)
8679       if test "$GCC" = yes; then
8680         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8681         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'
8682       else
8683         allow_undefined_flag=' -expect_unresolved \*'
8684         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'
8685       fi
8686       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8687       hardcode_libdir_separator=:
8688       ;;
8689
8690     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8691       if test "$GCC" = yes; then
8692         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8693         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'
8694         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8695       else
8696         allow_undefined_flag=' -expect_unresolved \*'
8697         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'
8698         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8699         $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'
8700
8701         # Both c and cxx compiler support -rpath directly
8702         hardcode_libdir_flag_spec='-rpath $libdir'
8703       fi
8704       hardcode_libdir_separator=:
8705       ;;
8706
8707     solaris*)
8708       no_undefined_flag=' -z text'
8709       if test "$GCC" = yes; then
8710         wlarc='${wl}'
8711         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8712         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8713           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8714       else
8715         wlarc=''
8716         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8717         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8718         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8719       fi
8720       hardcode_libdir_flag_spec='-R$libdir'
8721       hardcode_shlibpath_var=no
8722       case $host_os in
8723       solaris2.[0-5] | solaris2.[0-5].*) ;;
8724       *)
8725         # The compiler driver will combine and reorder linker options,
8726         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8727         # but is careful enough not to reorder.
8728         # Supported since Solaris 2.6 (maybe 2.5.1?)
8729         if test "$GCC" = yes; then
8730           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8731         else
8732           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8733         fi
8734         ;;
8735       esac
8736       link_all_deplibs=yes
8737       ;;
8738
8739     sunos4*)
8740       if test "x$host_vendor" = xsequent; then
8741         # Use $CC to link under sequent, because it throws in some extra .o
8742         # files that make .init and .fini sections work.
8743         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8744       else
8745         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8746       fi
8747       hardcode_libdir_flag_spec='-L$libdir'
8748       hardcode_direct=yes
8749       hardcode_minus_L=yes
8750       hardcode_shlibpath_var=no
8751       ;;
8752
8753     sysv4)
8754       case $host_vendor in
8755         sni)
8756           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8757           hardcode_direct=yes # is this really true???
8758         ;;
8759         siemens)
8760           ## LD is ld it makes a PLAMLIB
8761           ## CC just makes a GrossModule.
8762           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8763           reload_cmds='$CC -r -o $output$reload_objs'
8764           hardcode_direct=no
8765         ;;
8766         motorola)
8767           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8768           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8769         ;;
8770       esac
8771       runpath_var='LD_RUN_PATH'
8772       hardcode_shlibpath_var=no
8773       ;;
8774
8775     sysv4.3*)
8776       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8777       hardcode_shlibpath_var=no
8778       export_dynamic_flag_spec='-Bexport'
8779       ;;
8780
8781     sysv4*MP*)
8782       if test -d /usr/nec; then
8783         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8784         hardcode_shlibpath_var=no
8785         runpath_var=LD_RUN_PATH
8786         hardcode_runpath_var=yes
8787         ld_shlibs=yes
8788       fi
8789       ;;
8790
8791     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8792       no_undefined_flag='${wl}-z,text'
8793       archive_cmds_need_lc=no
8794       hardcode_shlibpath_var=no
8795       runpath_var='LD_RUN_PATH'
8796
8797       if test "$GCC" = yes; then
8798         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8799         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8800       else
8801         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8802         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8803       fi
8804       ;;
8805
8806     sysv5* | sco3.2v5* | sco5v6*)
8807       # Note: We can NOT use -z defs as we might desire, because we do not
8808       # link with -lc, and that would cause any symbols used from libc to
8809       # always be unresolved, which means just about no library would
8810       # ever link correctly.  If we're not using GNU ld we use -z text
8811       # though, which does catch some bad symbols but isn't as heavy-handed
8812       # as -z defs.
8813       no_undefined_flag='${wl}-z,text'
8814       allow_undefined_flag='${wl}-z,nodefs'
8815       archive_cmds_need_lc=no
8816       hardcode_shlibpath_var=no
8817       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8818       hardcode_libdir_separator=':'
8819       link_all_deplibs=yes
8820       export_dynamic_flag_spec='${wl}-Bexport'
8821       runpath_var='LD_RUN_PATH'
8822
8823       if test "$GCC" = yes; then
8824         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8825         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8826       else
8827         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8828         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8829       fi
8830       ;;
8831
8832     uts4*)
8833       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8834       hardcode_libdir_flag_spec='-L$libdir'
8835       hardcode_shlibpath_var=no
8836       ;;
8837
8838     *)
8839       ld_shlibs=no
8840       ;;
8841     esac
8842   fi
8843
8844 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8845 echo "${ECHO_T}$ld_shlibs" >&6; }
8846 test "$ld_shlibs" = no && can_build_shared=no
8847
8848 #
8849 # Do we need to explicitly link libc?
8850 #
8851 case "x$archive_cmds_need_lc" in
8852 x|xyes)
8853   # Assume -lc should be added
8854   archive_cmds_need_lc=yes
8855
8856   if test "$enable_shared" = yes && test "$GCC" = yes; then
8857     case $archive_cmds in
8858     *'~'*)
8859       # FIXME: we may have to deal with multi-command sequences.
8860       ;;
8861     '$CC '*)
8862       # Test whether the compiler implicitly links with -lc since on some
8863       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8864       # to ld, don't add -lc before -lgcc.
8865       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8866 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8867       $rm conftest*
8868       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8869
8870       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8871   (eval $ac_compile) 2>&5
8872   ac_status=$?
8873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874   (exit $ac_status); } 2>conftest.err; then
8875         soname=conftest
8876         lib=conftest
8877         libobjs=conftest.$ac_objext
8878         deplibs=
8879         wl=$lt_prog_compiler_wl
8880         pic_flag=$lt_prog_compiler_pic
8881         compiler_flags=-v
8882         linker_flags=-v
8883         verstring=
8884         output_objdir=.
8885         libname=conftest
8886         lt_save_allow_undefined_flag=$allow_undefined_flag
8887         allow_undefined_flag=
8888         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8889   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8890   ac_status=$?
8891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892   (exit $ac_status); }
8893         then
8894           archive_cmds_need_lc=no
8895         else
8896           archive_cmds_need_lc=yes
8897         fi
8898         allow_undefined_flag=$lt_save_allow_undefined_flag
8899       else
8900         cat conftest.err 1>&5
8901       fi
8902       $rm conftest*
8903       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8904 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8905       ;;
8906     esac
8907   fi
8908   ;;
8909 esac
8910
8911 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8912 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8913 library_names_spec=
8914 libname_spec='lib$name'
8915 soname_spec=
8916 shrext_cmds=".so"
8917 postinstall_cmds=
8918 postuninstall_cmds=
8919 finish_cmds=
8920 finish_eval=
8921 shlibpath_var=
8922 shlibpath_overrides_runpath=unknown
8923 version_type=none
8924 dynamic_linker="$host_os ld.so"
8925 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8926
8927 if test "$GCC" = yes; then
8928   case $host_os in
8929     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8930     *) lt_awk_arg="/^libraries:/" ;;
8931   esac
8932   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8933   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8934     # if the path contains ";" then we assume it to be the separator
8935     # otherwise default to the standard path separator (i.e. ":") - it is
8936     # assumed that no part of a normal pathname contains ";" but that should
8937     # okay in the real world where ";" in dirpaths is itself problematic.
8938     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8939   else
8940     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8941   fi
8942   # Ok, now we have the path, separated by spaces, we can step through it
8943   # and add multilib dir if necessary.
8944   lt_tmp_lt_search_path_spec=
8945   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8946   for lt_sys_path in $lt_search_path_spec; do
8947     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8948       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8949     else
8950       test -d "$lt_sys_path" && \
8951         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8952     fi
8953   done
8954   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8955 BEGIN {RS=" "; FS="/|\n";} {
8956   lt_foo="";
8957   lt_count=0;
8958   for (lt_i = NF; lt_i > 0; lt_i--) {
8959     if ($lt_i != "" && $lt_i != ".") {
8960       if ($lt_i == "..") {
8961         lt_count++;
8962       } else {
8963         if (lt_count == 0) {
8964           lt_foo="/" $lt_i lt_foo;
8965         } else {
8966           lt_count--;
8967         }
8968       }
8969     }
8970   }
8971   if (lt_foo != "") { lt_freq[lt_foo]++; }
8972   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8973 }'`
8974   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8975 else
8976   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8977 fi
8978 need_lib_prefix=unknown
8979 hardcode_into_libs=no
8980
8981 # when you set need_version to no, make sure it does not cause -set_version
8982 # flags to be left without arguments
8983 need_version=unknown
8984
8985 case $host_os in
8986 aix3*)
8987   version_type=linux
8988   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8989   shlibpath_var=LIBPATH
8990
8991   # AIX 3 has no versioning support, so we append a major version to the name.
8992   soname_spec='${libname}${release}${shared_ext}$major'
8993   ;;
8994
8995 aix[4-9]*)
8996   version_type=linux
8997   need_lib_prefix=no
8998   need_version=no
8999   hardcode_into_libs=yes
9000   if test "$host_cpu" = ia64; then
9001     # AIX 5 supports IA64
9002     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9003     shlibpath_var=LD_LIBRARY_PATH
9004   else
9005     # With GCC up to 2.95.x, collect2 would create an import file
9006     # for dependence libraries.  The import file would start with
9007     # the line `#! .'.  This would cause the generated library to
9008     # depend on `.', always an invalid library.  This was fixed in
9009     # development snapshots of GCC prior to 3.0.
9010     case $host_os in
9011       aix4 | aix4.[01] | aix4.[01].*)
9012       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9013            echo ' yes '
9014            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9015         :
9016       else
9017         can_build_shared=no
9018       fi
9019       ;;
9020     esac
9021     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9022     # soname into executable. Probably we can add versioning support to
9023     # collect2, so additional links can be useful in future.
9024     if test "$aix_use_runtimelinking" = yes; then
9025       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9026       # instead of lib<name>.a to let people know that these are not
9027       # typical AIX shared libraries.
9028       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029     else
9030       # We preserve .a as extension for shared libraries through AIX4.2
9031       # and later when we are not doing run time linking.
9032       library_names_spec='${libname}${release}.a $libname.a'
9033       soname_spec='${libname}${release}${shared_ext}$major'
9034     fi
9035     shlibpath_var=LIBPATH
9036   fi
9037   ;;
9038
9039 amigaos*)
9040   library_names_spec='$libname.ixlibrary $libname.a'
9041   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9042   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'
9043   ;;
9044
9045 beos*)
9046   library_names_spec='${libname}${shared_ext}'
9047   dynamic_linker="$host_os ld.so"
9048   shlibpath_var=LIBRARY_PATH
9049   ;;
9050
9051 bsdi[45]*)
9052   version_type=linux
9053   need_version=no
9054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055   soname_spec='${libname}${release}${shared_ext}$major'
9056   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9057   shlibpath_var=LD_LIBRARY_PATH
9058   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9059   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9060   # the default ld.so.conf also contains /usr/contrib/lib and
9061   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9062   # libtool to hard-code these into programs
9063   ;;
9064
9065 cygwin* | mingw* | pw32*)
9066   version_type=windows
9067   shrext_cmds=".dll"
9068   need_version=no
9069   need_lib_prefix=no
9070
9071   case $GCC,$host_os in
9072   yes,cygwin* | yes,mingw* | yes,pw32*)
9073     library_names_spec='$libname.dll.a'
9074     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9075     postinstall_cmds='base_file=`basename \${file}`~
9076       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9077       dldir=$destdir/`dirname \$dlpath`~
9078       test -d \$dldir || mkdir -p \$dldir~
9079       $install_prog $dir/$dlname \$dldir/$dlname~
9080       chmod a+x \$dldir/$dlname'
9081     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9082       dlpath=$dir/\$dldll~
9083        $rm \$dlpath'
9084     shlibpath_overrides_runpath=yes
9085
9086     case $host_os in
9087     cygwin*)
9088       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9089       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9090       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9091       ;;
9092     mingw*)
9093       # MinGW DLLs use traditional 'lib' prefix
9094       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9095       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9096       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9097         # It is most probably a Windows format PATH printed by
9098         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9099         # path with ; separators, and with drive letters. We can handle the
9100         # drive letters (cygwin fileutils understands them), so leave them,
9101         # especially as we might pass files found there to a mingw objdump,
9102         # which wouldn't understand a cygwinified path. Ahh.
9103         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9104       else
9105         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9106       fi
9107       ;;
9108     pw32*)
9109       # pw32 DLLs use 'pw' prefix rather than 'lib'
9110       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9111       ;;
9112     esac
9113     ;;
9114
9115   *)
9116     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9117     ;;
9118   esac
9119   dynamic_linker='Win32 ld.exe'
9120   # FIXME: first we should search . and the directory the executable is in
9121   shlibpath_var=PATH
9122   ;;
9123
9124 darwin* | rhapsody*)
9125   dynamic_linker="$host_os dyld"
9126   version_type=darwin
9127   need_lib_prefix=no
9128   need_version=no
9129   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9130   soname_spec='${libname}${release}${major}$shared_ext'
9131   shlibpath_overrides_runpath=yes
9132   shlibpath_var=DYLD_LIBRARY_PATH
9133   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9134
9135   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9136   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9137   ;;
9138
9139 dgux*)
9140   version_type=linux
9141   need_lib_prefix=no
9142   need_version=no
9143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9144   soname_spec='${libname}${release}${shared_ext}$major'
9145   shlibpath_var=LD_LIBRARY_PATH
9146   ;;
9147
9148 freebsd1*)
9149   dynamic_linker=no
9150   ;;
9151
9152 freebsd* | dragonfly*)
9153   # DragonFly does not have aout.  When/if they implement a new
9154   # versioning mechanism, adjust this.
9155   if test -x /usr/bin/objformat; then
9156     objformat=`/usr/bin/objformat`
9157   else
9158     case $host_os in
9159     freebsd[123]*) objformat=aout ;;
9160     *) objformat=elf ;;
9161     esac
9162   fi
9163   version_type=freebsd-$objformat
9164   case $version_type in
9165     freebsd-elf*)
9166       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9167       need_version=no
9168       need_lib_prefix=no
9169       ;;
9170     freebsd-*)
9171       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9172       need_version=yes
9173       ;;
9174   esac
9175   shlibpath_var=LD_LIBRARY_PATH
9176   case $host_os in
9177   freebsd2*)
9178     shlibpath_overrides_runpath=yes
9179     ;;
9180   freebsd3.[01]* | freebsdelf3.[01]*)
9181     shlibpath_overrides_runpath=yes
9182     hardcode_into_libs=yes
9183     ;;
9184   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9185   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9186     shlibpath_overrides_runpath=no
9187     hardcode_into_libs=yes
9188     ;;
9189   *) # from 4.6 on, and DragonFly
9190     shlibpath_overrides_runpath=yes
9191     hardcode_into_libs=yes
9192     ;;
9193   esac
9194   ;;
9195
9196 gnu*)
9197   version_type=linux
9198   need_lib_prefix=no
9199   need_version=no
9200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9201   soname_spec='${libname}${release}${shared_ext}$major'
9202   shlibpath_var=LD_LIBRARY_PATH
9203   hardcode_into_libs=yes
9204   ;;
9205
9206 hpux9* | hpux10* | hpux11*)
9207   # Give a soname corresponding to the major version so that dld.sl refuses to
9208   # link against other versions.
9209   version_type=sunos
9210   need_lib_prefix=no
9211   need_version=no
9212   case $host_cpu in
9213   ia64*)
9214     shrext_cmds='.so'
9215     hardcode_into_libs=yes
9216     dynamic_linker="$host_os dld.so"
9217     shlibpath_var=LD_LIBRARY_PATH
9218     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9219     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9220     soname_spec='${libname}${release}${shared_ext}$major'
9221     if test "X$HPUX_IA64_MODE" = X32; then
9222       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9223     else
9224       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9225     fi
9226     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9227     ;;
9228    hppa*64*)
9229      shrext_cmds='.sl'
9230      hardcode_into_libs=yes
9231      dynamic_linker="$host_os dld.sl"
9232      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9233      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9234      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235      soname_spec='${libname}${release}${shared_ext}$major'
9236      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9237      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9238      ;;
9239    *)
9240     shrext_cmds='.sl'
9241     dynamic_linker="$host_os dld.sl"
9242     shlibpath_var=SHLIB_PATH
9243     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9244     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9245     soname_spec='${libname}${release}${shared_ext}$major'
9246     ;;
9247   esac
9248   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9249   postinstall_cmds='chmod 555 $lib'
9250   ;;
9251
9252 interix[3-9]*)
9253   version_type=linux
9254   need_lib_prefix=no
9255   need_version=no
9256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9257   soname_spec='${libname}${release}${shared_ext}$major'
9258   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9259   shlibpath_var=LD_LIBRARY_PATH
9260   shlibpath_overrides_runpath=no
9261   hardcode_into_libs=yes
9262   ;;
9263
9264 irix5* | irix6* | nonstopux*)
9265   case $host_os in
9266     nonstopux*) version_type=nonstopux ;;
9267     *)
9268         if test "$lt_cv_prog_gnu_ld" = yes; then
9269                 version_type=linux
9270         else
9271                 version_type=irix
9272         fi ;;
9273   esac
9274   need_lib_prefix=no
9275   need_version=no
9276   soname_spec='${libname}${release}${shared_ext}$major'
9277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9278   case $host_os in
9279   irix5* | nonstopux*)
9280     libsuff= shlibsuff=
9281     ;;
9282   *)
9283     case $LD in # libtool.m4 will add one of these switches to LD
9284     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9285       libsuff= shlibsuff= libmagic=32-bit;;
9286     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9287       libsuff=32 shlibsuff=N32 libmagic=N32;;
9288     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9289       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9290     *) libsuff= shlibsuff= libmagic=never-match;;
9291     esac
9292     ;;
9293   esac
9294   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9295   shlibpath_overrides_runpath=no
9296   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9297   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9298   hardcode_into_libs=yes
9299   ;;
9300
9301 # No shared lib support for Linux oldld, aout, or coff.
9302 linux*oldld* | linux*aout* | linux*coff*)
9303   dynamic_linker=no
9304   ;;
9305
9306 # This must be Linux ELF.
9307 linux* | k*bsd*-gnu)
9308   version_type=linux
9309   need_lib_prefix=no
9310   need_version=no
9311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312   soname_spec='${libname}${release}${shared_ext}$major'
9313   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9314   shlibpath_var=LD_LIBRARY_PATH
9315   shlibpath_overrides_runpath=no
9316   # This implies no fast_install, which is unacceptable.
9317   # Some rework will be needed to allow for fast_install
9318   # before this can be enabled.
9319   hardcode_into_libs=yes
9320
9321   # Append ld.so.conf contents to the search path
9322   if test -f /etc/ld.so.conf; then
9323     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' ' '`
9324     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9325   fi
9326
9327   # We used to test for /lib/ld.so.1 and disable shared libraries on
9328   # powerpc, because MkLinux only supported shared libraries with the
9329   # GNU dynamic linker.  Since this was broken with cross compilers,
9330   # most powerpc-linux boxes support dynamic linking these days and
9331   # people can always --disable-shared, the test was removed, and we
9332   # assume the GNU/Linux dynamic linker is in use.
9333   dynamic_linker='GNU/Linux ld.so'
9334   ;;
9335
9336 netbsdelf*-gnu)
9337   version_type=linux
9338   need_lib_prefix=no
9339   need_version=no
9340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9341   soname_spec='${libname}${release}${shared_ext}$major'
9342   shlibpath_var=LD_LIBRARY_PATH
9343   shlibpath_overrides_runpath=no
9344   hardcode_into_libs=yes
9345   dynamic_linker='NetBSD ld.elf_so'
9346   ;;
9347
9348 netbsd*)
9349   version_type=sunos
9350   need_lib_prefix=no
9351   need_version=no
9352   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9353     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9354     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9355     dynamic_linker='NetBSD (a.out) ld.so'
9356   else
9357     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9358     soname_spec='${libname}${release}${shared_ext}$major'
9359     dynamic_linker='NetBSD ld.elf_so'
9360   fi
9361   shlibpath_var=LD_LIBRARY_PATH
9362   shlibpath_overrides_runpath=yes
9363   hardcode_into_libs=yes
9364   ;;
9365
9366 newsos6)
9367   version_type=linux
9368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369   shlibpath_var=LD_LIBRARY_PATH
9370   shlibpath_overrides_runpath=yes
9371   ;;
9372
9373 nto-qnx*)
9374   version_type=linux
9375   need_lib_prefix=no
9376   need_version=no
9377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9378   soname_spec='${libname}${release}${shared_ext}$major'
9379   shlibpath_var=LD_LIBRARY_PATH
9380   shlibpath_overrides_runpath=yes
9381   ;;
9382
9383 openbsd*)
9384   version_type=sunos
9385   sys_lib_dlsearch_path_spec="/usr/lib"
9386   need_lib_prefix=no
9387   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9388   case $host_os in
9389     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9390     *)                         need_version=no  ;;
9391   esac
9392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9393   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9394   shlibpath_var=LD_LIBRARY_PATH
9395   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9396     case $host_os in
9397       openbsd2.[89] | openbsd2.[89].*)
9398         shlibpath_overrides_runpath=no
9399         ;;
9400       *)
9401         shlibpath_overrides_runpath=yes
9402         ;;
9403       esac
9404   else
9405     shlibpath_overrides_runpath=yes
9406   fi
9407   ;;
9408
9409 os2*)
9410   libname_spec='$name'
9411   shrext_cmds=".dll"
9412   need_lib_prefix=no
9413   library_names_spec='$libname${shared_ext} $libname.a'
9414   dynamic_linker='OS/2 ld.exe'
9415   shlibpath_var=LIBPATH
9416   ;;
9417
9418 osf3* | osf4* | osf5*)
9419   version_type=osf
9420   need_lib_prefix=no
9421   need_version=no
9422   soname_spec='${libname}${release}${shared_ext}$major'
9423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9424   shlibpath_var=LD_LIBRARY_PATH
9425   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9426   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9427   ;;
9428
9429 rdos*)
9430   dynamic_linker=no
9431   ;;
9432
9433 solaris*)
9434   version_type=linux
9435   need_lib_prefix=no
9436   need_version=no
9437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9438   soname_spec='${libname}${release}${shared_ext}$major'
9439   shlibpath_var=LD_LIBRARY_PATH
9440   shlibpath_overrides_runpath=yes
9441   hardcode_into_libs=yes
9442   # ldd complains unless libraries are executable
9443   postinstall_cmds='chmod +x $lib'
9444   ;;
9445
9446 sunos4*)
9447   version_type=sunos
9448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9449   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9450   shlibpath_var=LD_LIBRARY_PATH
9451   shlibpath_overrides_runpath=yes
9452   if test "$with_gnu_ld" = yes; then
9453     need_lib_prefix=no
9454   fi
9455   need_version=yes
9456   ;;
9457
9458 sysv4 | sysv4.3*)
9459   version_type=linux
9460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9461   soname_spec='${libname}${release}${shared_ext}$major'
9462   shlibpath_var=LD_LIBRARY_PATH
9463   case $host_vendor in
9464     sni)
9465       shlibpath_overrides_runpath=no
9466       need_lib_prefix=no
9467       export_dynamic_flag_spec='${wl}-Blargedynsym'
9468       runpath_var=LD_RUN_PATH
9469       ;;
9470     siemens)
9471       need_lib_prefix=no
9472       ;;
9473     motorola)
9474       need_lib_prefix=no
9475       need_version=no
9476       shlibpath_overrides_runpath=no
9477       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9478       ;;
9479   esac
9480   ;;
9481
9482 sysv4*MP*)
9483   if test -d /usr/nec ;then
9484     version_type=linux
9485     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9486     soname_spec='$libname${shared_ext}.$major'
9487     shlibpath_var=LD_LIBRARY_PATH
9488   fi
9489   ;;
9490
9491 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9492   version_type=freebsd-elf
9493   need_lib_prefix=no
9494   need_version=no
9495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9496   soname_spec='${libname}${release}${shared_ext}$major'
9497   shlibpath_var=LD_LIBRARY_PATH
9498   hardcode_into_libs=yes
9499   if test "$with_gnu_ld" = yes; then
9500     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9501     shlibpath_overrides_runpath=no
9502   else
9503     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9504     shlibpath_overrides_runpath=yes
9505     case $host_os in
9506       sco3.2v5*)
9507         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9508         ;;
9509     esac
9510   fi
9511   sys_lib_dlsearch_path_spec='/usr/lib'
9512   ;;
9513
9514 uts4*)
9515   version_type=linux
9516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9517   soname_spec='${libname}${release}${shared_ext}$major'
9518   shlibpath_var=LD_LIBRARY_PATH
9519   ;;
9520
9521 *)
9522   dynamic_linker=no
9523   ;;
9524 esac
9525 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9526 echo "${ECHO_T}$dynamic_linker" >&6; }
9527 test "$dynamic_linker" = no && can_build_shared=no
9528
9529 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9530   echo $ECHO_N "(cached) $ECHO_C" >&6
9531 else
9532   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9533 fi
9534
9535 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9536 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9537   echo $ECHO_N "(cached) $ECHO_C" >&6
9538 else
9539   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9540 fi
9541
9542 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9543
9544 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9545 if test "$GCC" = yes; then
9546   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9547 fi
9548
9549 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9550 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9551 hardcode_action=
9552 if test -n "$hardcode_libdir_flag_spec" || \
9553    test -n "$runpath_var" || \
9554    test "X$hardcode_automatic" = "Xyes" ; then
9555
9556   # We can hardcode non-existant directories.
9557   if test "$hardcode_direct" != no &&
9558      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9559      # have to relink, otherwise we might link with an installed library
9560      # when we should be linking with a yet-to-be-installed one
9561      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9562      test "$hardcode_minus_L" != no; then
9563     # Linking always hardcodes the temporary library directory.
9564     hardcode_action=relink
9565   else
9566     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9567     hardcode_action=immediate
9568   fi
9569 else
9570   # We cannot hardcode anything, or else we can only hardcode existing
9571   # directories.
9572   hardcode_action=unsupported
9573 fi
9574 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9575 echo "${ECHO_T}$hardcode_action" >&6; }
9576
9577 if test "$hardcode_action" = relink; then
9578   # Fast installation is not supported
9579   enable_fast_install=no
9580 elif test "$shlibpath_overrides_runpath" = yes ||
9581      test "$enable_shared" = no; then
9582   # Fast installation is not necessary
9583   enable_fast_install=needless
9584 fi
9585
9586 striplib=
9587 old_striplib=
9588 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9589 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9590 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9591   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9592   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9593   { echo "$as_me:$LINENO: result: yes" >&5
9594 echo "${ECHO_T}yes" >&6; }
9595 else
9596 # FIXME - insert some real tests, host_os isn't really good enough
9597   case $host_os in
9598    darwin*)
9599        if test -n "$STRIP" ; then
9600          striplib="$STRIP -x"
9601          old_striplib="$STRIP -S"
9602          { echo "$as_me:$LINENO: result: yes" >&5
9603 echo "${ECHO_T}yes" >&6; }
9604        else
9605   { echo "$as_me:$LINENO: result: no" >&5
9606 echo "${ECHO_T}no" >&6; }
9607 fi
9608        ;;
9609    *)
9610   { echo "$as_me:$LINENO: result: no" >&5
9611 echo "${ECHO_T}no" >&6; }
9612     ;;
9613   esac
9614 fi
9615
9616 if test "x$enable_dlopen" != xyes; then
9617   enable_dlopen=unknown
9618   enable_dlopen_self=unknown
9619   enable_dlopen_self_static=unknown
9620 else
9621   lt_cv_dlopen=no
9622   lt_cv_dlopen_libs=
9623
9624   case $host_os in
9625   beos*)
9626     lt_cv_dlopen="load_add_on"
9627     lt_cv_dlopen_libs=
9628     lt_cv_dlopen_self=yes
9629     ;;
9630
9631   mingw* | pw32*)
9632     lt_cv_dlopen="LoadLibrary"
9633     lt_cv_dlopen_libs=
9634    ;;
9635
9636   cygwin*)
9637     lt_cv_dlopen="dlopen"
9638     lt_cv_dlopen_libs=
9639    ;;
9640
9641   darwin*)
9642   # if libdl is installed we need to link against it
9643     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9644 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9645 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9646   echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648   ac_check_lib_save_LIBS=$LIBS
9649 LIBS="-ldl  $LIBS"
9650 cat >conftest.$ac_ext <<_ACEOF
9651 /* confdefs.h.  */
9652 _ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h.  */
9656
9657 /* Override any GCC internal prototype to avoid an error.
9658    Use char because int might match the return type of a GCC
9659    builtin and then its argument prototype would still apply.  */
9660 #ifdef __cplusplus
9661 extern "C"
9662 #endif
9663 char dlopen ();
9664 int
9665 main ()
9666 {
9667 return dlopen ();
9668   ;
9669   return 0;
9670 }
9671 _ACEOF
9672 rm -f conftest.$ac_objext conftest$ac_exeext
9673 if { (ac_try="$ac_link"
9674 case "(($ac_try" in
9675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676   *) ac_try_echo=$ac_try;;
9677 esac
9678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9679   (eval "$ac_link") 2>conftest.er1
9680   ac_status=$?
9681   grep -v '^ *+' conftest.er1 >conftest.err
9682   rm -f conftest.er1
9683   cat conftest.err >&5
9684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   (exit $ac_status); } && {
9686          test -z "$ac_c_werror_flag" ||
9687          test ! -s conftest.err
9688        } && test -s conftest$ac_exeext &&
9689        $as_test_x conftest$ac_exeext; then
9690   ac_cv_lib_dl_dlopen=yes
9691 else
9692   echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9694
9695         ac_cv_lib_dl_dlopen=no
9696 fi
9697
9698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9699       conftest$ac_exeext conftest.$ac_ext
9700 LIBS=$ac_check_lib_save_LIBS
9701 fi
9702 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9703 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9704 if test $ac_cv_lib_dl_dlopen = yes; then
9705   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9706 else
9707
9708     lt_cv_dlopen="dyld"
9709     lt_cv_dlopen_libs=
9710     lt_cv_dlopen_self=yes
9711
9712 fi
9713
9714    ;;
9715
9716   *)
9717     { echo "$as_me:$LINENO: checking for shl_load" >&5
9718 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9719 if test "${ac_cv_func_shl_load+set}" = set; then
9720   echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722   cat >conftest.$ac_ext <<_ACEOF
9723 /* confdefs.h.  */
9724 _ACEOF
9725 cat confdefs.h >>conftest.$ac_ext
9726 cat >>conftest.$ac_ext <<_ACEOF
9727 /* end confdefs.h.  */
9728 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9729    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9730 #define shl_load innocuous_shl_load
9731
9732 /* System header to define __stub macros and hopefully few prototypes,
9733     which can conflict with char shl_load (); below.
9734     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9735     <limits.h> exists even on freestanding compilers.  */
9736
9737 #ifdef __STDC__
9738 # include <limits.h>
9739 #else
9740 # include <assert.h>
9741 #endif
9742
9743 #undef shl_load
9744
9745 /* Override any GCC internal prototype to avoid an error.
9746    Use char because int might match the return type of a GCC
9747    builtin and then its argument prototype would still apply.  */
9748 #ifdef __cplusplus
9749 extern "C"
9750 #endif
9751 char shl_load ();
9752 /* The GNU C library defines this for functions which it implements
9753     to always fail with ENOSYS.  Some functions are actually named
9754     something starting with __ and the normal name is an alias.  */
9755 #if defined __stub_shl_load || defined __stub___shl_load
9756 choke me
9757 #endif
9758
9759 int
9760 main ()
9761 {
9762 return shl_load ();
9763   ;
9764   return 0;
9765 }
9766 _ACEOF
9767 rm -f conftest.$ac_objext conftest$ac_exeext
9768 if { (ac_try="$ac_link"
9769 case "(($ac_try" in
9770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9771   *) ac_try_echo=$ac_try;;
9772 esac
9773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9774   (eval "$ac_link") 2>conftest.er1
9775   ac_status=$?
9776   grep -v '^ *+' conftest.er1 >conftest.err
9777   rm -f conftest.er1
9778   cat conftest.err >&5
9779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780   (exit $ac_status); } && {
9781          test -z "$ac_c_werror_flag" ||
9782          test ! -s conftest.err
9783        } && test -s conftest$ac_exeext &&
9784        $as_test_x conftest$ac_exeext; then
9785   ac_cv_func_shl_load=yes
9786 else
9787   echo "$as_me: failed program was:" >&5
9788 sed 's/^/| /' conftest.$ac_ext >&5
9789
9790         ac_cv_func_shl_load=no
9791 fi
9792
9793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9794       conftest$ac_exeext conftest.$ac_ext
9795 fi
9796 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9797 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9798 if test $ac_cv_func_shl_load = yes; then
9799   lt_cv_dlopen="shl_load"
9800 else
9801   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9802 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9803 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9804   echo $ECHO_N "(cached) $ECHO_C" >&6
9805 else
9806   ac_check_lib_save_LIBS=$LIBS
9807 LIBS="-ldld  $LIBS"
9808 cat >conftest.$ac_ext <<_ACEOF
9809 /* confdefs.h.  */
9810 _ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h.  */
9814
9815 /* Override any GCC internal prototype to avoid an error.
9816    Use char because int might match the return type of a GCC
9817    builtin and then its argument prototype would still apply.  */
9818 #ifdef __cplusplus
9819 extern "C"
9820 #endif
9821 char shl_load ();
9822 int
9823 main ()
9824 {
9825 return shl_load ();
9826   ;
9827   return 0;
9828 }
9829 _ACEOF
9830 rm -f conftest.$ac_objext conftest$ac_exeext
9831 if { (ac_try="$ac_link"
9832 case "(($ac_try" in
9833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834   *) ac_try_echo=$ac_try;;
9835 esac
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837   (eval "$ac_link") 2>conftest.er1
9838   ac_status=$?
9839   grep -v '^ *+' conftest.er1 >conftest.err
9840   rm -f conftest.er1
9841   cat conftest.err >&5
9842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); } && {
9844          test -z "$ac_c_werror_flag" ||
9845          test ! -s conftest.err
9846        } && test -s conftest$ac_exeext &&
9847        $as_test_x conftest$ac_exeext; then
9848   ac_cv_lib_dld_shl_load=yes
9849 else
9850   echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9852
9853         ac_cv_lib_dld_shl_load=no
9854 fi
9855
9856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9857       conftest$ac_exeext conftest.$ac_ext
9858 LIBS=$ac_check_lib_save_LIBS
9859 fi
9860 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9861 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9862 if test $ac_cv_lib_dld_shl_load = yes; then
9863   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9864 else
9865   { echo "$as_me:$LINENO: checking for dlopen" >&5
9866 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9867 if test "${ac_cv_func_dlopen+set}" = set; then
9868   echo $ECHO_N "(cached) $ECHO_C" >&6
9869 else
9870   cat >conftest.$ac_ext <<_ACEOF
9871 /* confdefs.h.  */
9872 _ACEOF
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h.  */
9876 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9877    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9878 #define dlopen innocuous_dlopen
9879
9880 /* System header to define __stub macros and hopefully few prototypes,
9881     which can conflict with char dlopen (); below.
9882     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9883     <limits.h> exists even on freestanding compilers.  */
9884
9885 #ifdef __STDC__
9886 # include <limits.h>
9887 #else
9888 # include <assert.h>
9889 #endif
9890
9891 #undef dlopen
9892
9893 /* Override any GCC internal prototype to avoid an error.
9894    Use char because int might match the return type of a GCC
9895    builtin and then its argument prototype would still apply.  */
9896 #ifdef __cplusplus
9897 extern "C"
9898 #endif
9899 char dlopen ();
9900 /* The GNU C library defines this for functions which it implements
9901     to always fail with ENOSYS.  Some functions are actually named
9902     something starting with __ and the normal name is an alias.  */
9903 #if defined __stub_dlopen || defined __stub___dlopen
9904 choke me
9905 #endif
9906
9907 int
9908 main ()
9909 {
9910 return dlopen ();
9911   ;
9912   return 0;
9913 }
9914 _ACEOF
9915 rm -f conftest.$ac_objext conftest$ac_exeext
9916 if { (ac_try="$ac_link"
9917 case "(($ac_try" in
9918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919   *) ac_try_echo=$ac_try;;
9920 esac
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922   (eval "$ac_link") 2>conftest.er1
9923   ac_status=$?
9924   grep -v '^ *+' conftest.er1 >conftest.err
9925   rm -f conftest.er1
9926   cat conftest.err >&5
9927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928   (exit $ac_status); } && {
9929          test -z "$ac_c_werror_flag" ||
9930          test ! -s conftest.err
9931        } && test -s conftest$ac_exeext &&
9932        $as_test_x conftest$ac_exeext; then
9933   ac_cv_func_dlopen=yes
9934 else
9935   echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9937
9938         ac_cv_func_dlopen=no
9939 fi
9940
9941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9942       conftest$ac_exeext conftest.$ac_ext
9943 fi
9944 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9945 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9946 if test $ac_cv_func_dlopen = yes; then
9947   lt_cv_dlopen="dlopen"
9948 else
9949   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9950 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9951 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9952   echo $ECHO_N "(cached) $ECHO_C" >&6
9953 else
9954   ac_check_lib_save_LIBS=$LIBS
9955 LIBS="-ldl  $LIBS"
9956 cat >conftest.$ac_ext <<_ACEOF
9957 /* confdefs.h.  */
9958 _ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h.  */
9962
9963 /* Override any GCC internal prototype to avoid an error.
9964    Use char because int might match the return type of a GCC
9965    builtin and then its argument prototype would still apply.  */
9966 #ifdef __cplusplus
9967 extern "C"
9968 #endif
9969 char dlopen ();
9970 int
9971 main ()
9972 {
9973 return dlopen ();
9974   ;
9975   return 0;
9976 }
9977 _ACEOF
9978 rm -f conftest.$ac_objext conftest$ac_exeext
9979 if { (ac_try="$ac_link"
9980 case "(($ac_try" in
9981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982   *) ac_try_echo=$ac_try;;
9983 esac
9984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985   (eval "$ac_link") 2>conftest.er1
9986   ac_status=$?
9987   grep -v '^ *+' conftest.er1 >conftest.err
9988   rm -f conftest.er1
9989   cat conftest.err >&5
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); } && {
9992          test -z "$ac_c_werror_flag" ||
9993          test ! -s conftest.err
9994        } && test -s conftest$ac_exeext &&
9995        $as_test_x conftest$ac_exeext; then
9996   ac_cv_lib_dl_dlopen=yes
9997 else
9998   echo "$as_me: failed program was:" >&5
9999 sed 's/^/| /' conftest.$ac_ext >&5
10000
10001         ac_cv_lib_dl_dlopen=no
10002 fi
10003
10004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10005       conftest$ac_exeext conftest.$ac_ext
10006 LIBS=$ac_check_lib_save_LIBS
10007 fi
10008 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10009 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10010 if test $ac_cv_lib_dl_dlopen = yes; then
10011   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10012 else
10013   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10014 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10015 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10016   echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018   ac_check_lib_save_LIBS=$LIBS
10019 LIBS="-lsvld  $LIBS"
10020 cat >conftest.$ac_ext <<_ACEOF
10021 /* confdefs.h.  */
10022 _ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h.  */
10026
10027 /* Override any GCC internal prototype to avoid an error.
10028    Use char because int might match the return type of a GCC
10029    builtin and then its argument prototype would still apply.  */
10030 #ifdef __cplusplus
10031 extern "C"
10032 #endif
10033 char dlopen ();
10034 int
10035 main ()
10036 {
10037 return dlopen ();
10038   ;
10039   return 0;
10040 }
10041 _ACEOF
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (ac_try="$ac_link"
10044 case "(($ac_try" in
10045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046   *) ac_try_echo=$ac_try;;
10047 esac
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049   (eval "$ac_link") 2>conftest.er1
10050   ac_status=$?
10051   grep -v '^ *+' conftest.er1 >conftest.err
10052   rm -f conftest.er1
10053   cat conftest.err >&5
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); } && {
10056          test -z "$ac_c_werror_flag" ||
10057          test ! -s conftest.err
10058        } && test -s conftest$ac_exeext &&
10059        $as_test_x conftest$ac_exeext; then
10060   ac_cv_lib_svld_dlopen=yes
10061 else
10062   echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10064
10065         ac_cv_lib_svld_dlopen=no
10066 fi
10067
10068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10069       conftest$ac_exeext conftest.$ac_ext
10070 LIBS=$ac_check_lib_save_LIBS
10071 fi
10072 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10073 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10074 if test $ac_cv_lib_svld_dlopen = yes; then
10075   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10076 else
10077   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10078 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10079 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10080   echo $ECHO_N "(cached) $ECHO_C" >&6
10081 else
10082   ac_check_lib_save_LIBS=$LIBS
10083 LIBS="-ldld  $LIBS"
10084 cat >conftest.$ac_ext <<_ACEOF
10085 /* confdefs.h.  */
10086 _ACEOF
10087 cat confdefs.h >>conftest.$ac_ext
10088 cat >>conftest.$ac_ext <<_ACEOF
10089 /* end confdefs.h.  */
10090
10091 /* Override any GCC internal prototype to avoid an error.
10092    Use char because int might match the return type of a GCC
10093    builtin and then its argument prototype would still apply.  */
10094 #ifdef __cplusplus
10095 extern "C"
10096 #endif
10097 char dld_link ();
10098 int
10099 main ()
10100 {
10101 return dld_link ();
10102   ;
10103   return 0;
10104 }
10105 _ACEOF
10106 rm -f conftest.$ac_objext conftest$ac_exeext
10107 if { (ac_try="$ac_link"
10108 case "(($ac_try" in
10109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110   *) ac_try_echo=$ac_try;;
10111 esac
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113   (eval "$ac_link") 2>conftest.er1
10114   ac_status=$?
10115   grep -v '^ *+' conftest.er1 >conftest.err
10116   rm -f conftest.er1
10117   cat conftest.err >&5
10118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119   (exit $ac_status); } && {
10120          test -z "$ac_c_werror_flag" ||
10121          test ! -s conftest.err
10122        } && test -s conftest$ac_exeext &&
10123        $as_test_x conftest$ac_exeext; then
10124   ac_cv_lib_dld_dld_link=yes
10125 else
10126   echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10128
10129         ac_cv_lib_dld_dld_link=no
10130 fi
10131
10132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10133       conftest$ac_exeext conftest.$ac_ext
10134 LIBS=$ac_check_lib_save_LIBS
10135 fi
10136 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10137 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10138 if test $ac_cv_lib_dld_dld_link = yes; then
10139   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10140 fi
10141
10142
10143 fi
10144
10145
10146 fi
10147
10148
10149 fi
10150
10151
10152 fi
10153
10154
10155 fi
10156
10157     ;;
10158   esac
10159
10160   if test "x$lt_cv_dlopen" != xno; then
10161     enable_dlopen=yes
10162   else
10163     enable_dlopen=no
10164   fi
10165
10166   case $lt_cv_dlopen in
10167   dlopen)
10168     save_CPPFLAGS="$CPPFLAGS"
10169     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10170
10171     save_LDFLAGS="$LDFLAGS"
10172     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10173
10174     save_LIBS="$LIBS"
10175     LIBS="$lt_cv_dlopen_libs $LIBS"
10176
10177     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10178 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10179 if test "${lt_cv_dlopen_self+set}" = set; then
10180   echo $ECHO_N "(cached) $ECHO_C" >&6
10181 else
10182           if test "$cross_compiling" = yes; then :
10183   lt_cv_dlopen_self=cross
10184 else
10185   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10186   lt_status=$lt_dlunknown
10187   cat > conftest.$ac_ext <<EOF
10188 #line 10188 "configure"
10189 #include "confdefs.h"
10190
10191 #if HAVE_DLFCN_H
10192 #include <dlfcn.h>
10193 #endif
10194
10195 #include <stdio.h>
10196
10197 #ifdef RTLD_GLOBAL
10198 #  define LT_DLGLOBAL           RTLD_GLOBAL
10199 #else
10200 #  ifdef DL_GLOBAL
10201 #    define LT_DLGLOBAL         DL_GLOBAL
10202 #  else
10203 #    define LT_DLGLOBAL         0
10204 #  endif
10205 #endif
10206
10207 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10208    find out it does not work in some platform. */
10209 #ifndef LT_DLLAZY_OR_NOW
10210 #  ifdef RTLD_LAZY
10211 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10212 #  else
10213 #    ifdef DL_LAZY
10214 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10215 #    else
10216 #      ifdef RTLD_NOW
10217 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10218 #      else
10219 #        ifdef DL_NOW
10220 #          define LT_DLLAZY_OR_NOW      DL_NOW
10221 #        else
10222 #          define LT_DLLAZY_OR_NOW      0
10223 #        endif
10224 #      endif
10225 #    endif
10226 #  endif
10227 #endif
10228
10229 #ifdef __cplusplus
10230 extern "C" void exit (int);
10231 #endif
10232
10233 void fnord() { int i=42;}
10234 int main ()
10235 {
10236   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10237   int status = $lt_dlunknown;
10238
10239   if (self)
10240     {
10241       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10242       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10243       /* dlclose (self); */
10244     }
10245   else
10246     puts (dlerror ());
10247
10248     exit (status);
10249 }
10250 EOF
10251   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10252   (eval $ac_link) 2>&5
10253   ac_status=$?
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10256     (./conftest; exit; ) >&5 2>/dev/null
10257     lt_status=$?
10258     case x$lt_status in
10259       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10260       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10261       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10262     esac
10263   else :
10264     # compilation failed
10265     lt_cv_dlopen_self=no
10266   fi
10267 fi
10268 rm -fr conftest*
10269
10270
10271 fi
10272 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10273 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10274
10275     if test "x$lt_cv_dlopen_self" = xyes; then
10276       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10277       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10278 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10279 if test "${lt_cv_dlopen_self_static+set}" = set; then
10280   echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282           if test "$cross_compiling" = yes; then :
10283   lt_cv_dlopen_self_static=cross
10284 else
10285   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10286   lt_status=$lt_dlunknown
10287   cat > conftest.$ac_ext <<EOF
10288 #line 10288 "configure"
10289 #include "confdefs.h"
10290
10291 #if HAVE_DLFCN_H
10292 #include <dlfcn.h>
10293 #endif
10294
10295 #include <stdio.h>
10296
10297 #ifdef RTLD_GLOBAL
10298 #  define LT_DLGLOBAL           RTLD_GLOBAL
10299 #else
10300 #  ifdef DL_GLOBAL
10301 #    define LT_DLGLOBAL         DL_GLOBAL
10302 #  else
10303 #    define LT_DLGLOBAL         0
10304 #  endif
10305 #endif
10306
10307 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10308    find out it does not work in some platform. */
10309 #ifndef LT_DLLAZY_OR_NOW
10310 #  ifdef RTLD_LAZY
10311 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10312 #  else
10313 #    ifdef DL_LAZY
10314 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10315 #    else
10316 #      ifdef RTLD_NOW
10317 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10318 #      else
10319 #        ifdef DL_NOW
10320 #          define LT_DLLAZY_OR_NOW      DL_NOW
10321 #        else
10322 #          define LT_DLLAZY_OR_NOW      0
10323 #        endif
10324 #      endif
10325 #    endif
10326 #  endif
10327 #endif
10328
10329 #ifdef __cplusplus
10330 extern "C" void exit (int);
10331 #endif
10332
10333 void fnord() { int i=42;}
10334 int main ()
10335 {
10336   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10337   int status = $lt_dlunknown;
10338
10339   if (self)
10340     {
10341       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10342       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10343       /* dlclose (self); */
10344     }
10345   else
10346     puts (dlerror ());
10347
10348     exit (status);
10349 }
10350 EOF
10351   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10352   (eval $ac_link) 2>&5
10353   ac_status=$?
10354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10356     (./conftest; exit; ) >&5 2>/dev/null
10357     lt_status=$?
10358     case x$lt_status in
10359       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10360       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10361       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10362     esac
10363   else :
10364     # compilation failed
10365     lt_cv_dlopen_self_static=no
10366   fi
10367 fi
10368 rm -fr conftest*
10369
10370
10371 fi
10372 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10373 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10374     fi
10375
10376     CPPFLAGS="$save_CPPFLAGS"
10377     LDFLAGS="$save_LDFLAGS"
10378     LIBS="$save_LIBS"
10379     ;;
10380   esac
10381
10382   case $lt_cv_dlopen_self in
10383   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10384   *) enable_dlopen_self=unknown ;;
10385   esac
10386
10387   case $lt_cv_dlopen_self_static in
10388   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10389   *) enable_dlopen_self_static=unknown ;;
10390   esac
10391 fi
10392
10393
10394 # Report which library types will actually be built
10395 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10396 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10397 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10398 echo "${ECHO_T}$can_build_shared" >&6; }
10399
10400 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10401 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10402 test "$can_build_shared" = "no" && enable_shared=no
10403
10404 # On AIX, shared libraries and static libraries use the same namespace, and
10405 # are all built from PIC.
10406 case $host_os in
10407 aix3*)
10408   test "$enable_shared" = yes && enable_static=no
10409   if test -n "$RANLIB"; then
10410     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10411     postinstall_cmds='$RANLIB $lib'
10412   fi
10413   ;;
10414
10415 aix[4-9]*)
10416   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10417     test "$enable_shared" = yes && enable_static=no
10418   fi
10419     ;;
10420 esac
10421 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10422 echo "${ECHO_T}$enable_shared" >&6; }
10423
10424 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10425 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10426 # Make sure either enable_shared or enable_static is yes.
10427 test "$enable_shared" = yes || enable_static=yes
10428 { echo "$as_me:$LINENO: result: $enable_static" >&5
10429 echo "${ECHO_T}$enable_static" >&6; }
10430
10431 # The else clause should only fire when bootstrapping the
10432 # libtool distribution, otherwise you forgot to ship ltmain.sh
10433 # with your package, and you will get complaints that there are
10434 # no rules to generate ltmain.sh.
10435 if test -f "$ltmain"; then
10436   # See if we are running on zsh, and set the options which allow our commands through
10437   # without removal of \ escapes.
10438   if test -n "${ZSH_VERSION+set}" ; then
10439     setopt NO_GLOB_SUBST
10440   fi
10441   # Now quote all the things that may contain metacharacters while being
10442   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10443   # variables and quote the copies for generation of the libtool script.
10444   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10445     SED SHELL STRIP \
10446     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10447     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10448     deplibs_check_method reload_flag reload_cmds need_locks \
10449     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10450     lt_cv_sys_global_symbol_to_c_name_address \
10451     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10452     old_postinstall_cmds old_postuninstall_cmds \
10453     compiler \
10454     CC \
10455     LD \
10456     lt_prog_compiler_wl \
10457     lt_prog_compiler_pic \
10458     lt_prog_compiler_static \
10459     lt_prog_compiler_no_builtin_flag \
10460     export_dynamic_flag_spec \
10461     thread_safe_flag_spec \
10462     whole_archive_flag_spec \
10463     enable_shared_with_static_runtimes \
10464     old_archive_cmds \
10465     old_archive_from_new_cmds \
10466     predep_objects \
10467     postdep_objects \
10468     predeps \
10469     postdeps \
10470     compiler_lib_search_path \
10471     compiler_lib_search_dirs \
10472     archive_cmds \
10473     archive_expsym_cmds \
10474     postinstall_cmds \
10475     postuninstall_cmds \
10476     old_archive_from_expsyms_cmds \
10477     allow_undefined_flag \
10478     no_undefined_flag \
10479     export_symbols_cmds \
10480     hardcode_libdir_flag_spec \
10481     hardcode_libdir_flag_spec_ld \
10482     hardcode_libdir_separator \
10483     hardcode_automatic \
10484     module_cmds \
10485     module_expsym_cmds \
10486     lt_cv_prog_compiler_c_o \
10487     fix_srcfile_path \
10488     exclude_expsyms \
10489     include_expsyms; do
10490
10491     case $var in
10492     old_archive_cmds | \
10493     old_archive_from_new_cmds | \
10494     archive_cmds | \
10495     archive_expsym_cmds | \
10496     module_cmds | \
10497     module_expsym_cmds | \
10498     old_archive_from_expsyms_cmds | \
10499     export_symbols_cmds | \
10500     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10501     postinstall_cmds | postuninstall_cmds | \
10502     old_postinstall_cmds | old_postuninstall_cmds | \
10503     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10504       # Double-quote double-evaled strings.
10505       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10506       ;;
10507     *)
10508       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10509       ;;
10510     esac
10511   done
10512
10513   case $lt_echo in
10514   *'\$0 --fallback-echo"')
10515     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10516     ;;
10517   esac
10518
10519 cfgfile="${ofile}T"
10520   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10521   $rm -f "$cfgfile"
10522   { echo "$as_me:$LINENO: creating $ofile" >&5
10523 echo "$as_me: creating $ofile" >&6;}
10524
10525   cat <<__EOF__ >> "$cfgfile"
10526 #! $SHELL
10527
10528 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10529 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10530 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10531 #
10532 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10533 # Free Software Foundation, Inc.
10534 #
10535 # This file is part of GNU Libtool:
10536 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10537 #
10538 # This program is free software; you can redistribute it and/or modify
10539 # it under the terms of the GNU General Public License as published by
10540 # the Free Software Foundation; either version 2 of the License, or
10541 # (at your option) any later version.
10542 #
10543 # This program is distributed in the hope that it will be useful, but
10544 # WITHOUT ANY WARRANTY; without even the implied warranty of
10545 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10546 # General Public License for more details.
10547 #
10548 # You should have received a copy of the GNU General Public License
10549 # along with this program; if not, write to the Free Software
10550 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10551 #
10552 # As a special exception to the GNU General Public License, if you
10553 # distribute this file as part of a program that contains a
10554 # configuration script generated by Autoconf, you may include it under
10555 # the same distribution terms that you use for the rest of that program.
10556
10557 # A sed program that does not truncate output.
10558 SED=$lt_SED
10559
10560 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10561 Xsed="$SED -e 1s/^X//"
10562
10563 # The HP-UX ksh and POSIX shell print the target directory to stdout
10564 # if CDPATH is set.
10565 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10566
10567 # The names of the tagged configurations supported by this script.
10568 available_tags=
10569
10570 # ### BEGIN LIBTOOL CONFIG
10571
10572 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10573
10574 # Shell to use when invoking shell scripts.
10575 SHELL=$lt_SHELL
10576
10577 # Whether or not to build shared libraries.
10578 build_libtool_libs=$enable_shared
10579
10580 # Whether or not to build static libraries.
10581 build_old_libs=$enable_static
10582
10583 # Whether or not to add -lc for building shared libraries.
10584 build_libtool_need_lc=$archive_cmds_need_lc
10585
10586 # Whether or not to disallow shared libs when runtime libs are static
10587 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10588
10589 # Whether or not to optimize for fast installation.
10590 fast_install=$enable_fast_install
10591
10592 # The host system.
10593 host_alias=$host_alias
10594 host=$host
10595 host_os=$host_os
10596
10597 # The build system.
10598 build_alias=$build_alias
10599 build=$build
10600 build_os=$build_os
10601
10602 # An echo program that does not interpret backslashes.
10603 echo=$lt_echo
10604
10605 # The archiver.
10606 AR=$lt_AR
10607 AR_FLAGS=$lt_AR_FLAGS
10608
10609 # A C compiler.
10610 LTCC=$lt_LTCC
10611
10612 # LTCC compiler flags.
10613 LTCFLAGS=$lt_LTCFLAGS
10614
10615 # A language-specific compiler.
10616 CC=$lt_compiler
10617
10618 # Is the compiler the GNU C compiler?
10619 with_gcc=$GCC
10620
10621 # An ERE matcher.
10622 EGREP=$lt_EGREP
10623
10624 # The linker used to build libraries.
10625 LD=$lt_LD
10626
10627 # Whether we need hard or soft links.
10628 LN_S=$lt_LN_S
10629
10630 # A BSD-compatible nm program.
10631 NM=$lt_NM
10632
10633 # A symbol stripping program
10634 STRIP=$lt_STRIP
10635
10636 # Used to examine libraries when file_magic_cmd begins "file"
10637 MAGIC_CMD=$MAGIC_CMD
10638
10639 # Used on cygwin: DLL creation program.
10640 DLLTOOL="$DLLTOOL"
10641
10642 # Used on cygwin: object dumper.
10643 OBJDUMP="$OBJDUMP"
10644
10645 # Used on cygwin: assembler.
10646 AS="$AS"
10647
10648 # The name of the directory that contains temporary libtool files.
10649 objdir=$objdir
10650
10651 # How to create reloadable object files.
10652 reload_flag=$lt_reload_flag
10653 reload_cmds=$lt_reload_cmds
10654
10655 # How to pass a linker flag through the compiler.
10656 wl=$lt_lt_prog_compiler_wl
10657
10658 # Object file suffix (normally "o").
10659 objext="$ac_objext"
10660
10661 # Old archive suffix (normally "a").
10662 libext="$libext"
10663
10664 # Shared library suffix (normally ".so").
10665 shrext_cmds='$shrext_cmds'
10666
10667 # Executable file suffix (normally "").
10668 exeext="$exeext"
10669
10670 # Additional compiler flags for building library objects.
10671 pic_flag=$lt_lt_prog_compiler_pic
10672 pic_mode=$pic_mode
10673
10674 # What is the maximum length of a command?
10675 max_cmd_len=$lt_cv_sys_max_cmd_len
10676
10677 # Does compiler simultaneously support -c and -o options?
10678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10679
10680 # Must we lock files when doing compilation?
10681 need_locks=$lt_need_locks
10682
10683 # Do we need the lib prefix for modules?
10684 need_lib_prefix=$need_lib_prefix
10685
10686 # Do we need a version for libraries?
10687 need_version=$need_version
10688
10689 # Whether dlopen is supported.
10690 dlopen_support=$enable_dlopen
10691
10692 # Whether dlopen of programs is supported.
10693 dlopen_self=$enable_dlopen_self
10694
10695 # Whether dlopen of statically linked programs is supported.
10696 dlopen_self_static=$enable_dlopen_self_static
10697
10698 # Compiler flag to prevent dynamic linking.
10699 link_static_flag=$lt_lt_prog_compiler_static
10700
10701 # Compiler flag to turn off builtin functions.
10702 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10703
10704 # Compiler flag to allow reflexive dlopens.
10705 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10706
10707 # Compiler flag to generate shared objects directly from archives.
10708 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10709
10710 # Compiler flag to generate thread-safe objects.
10711 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10712
10713 # Library versioning type.
10714 version_type=$version_type
10715
10716 # Format of library name prefix.
10717 libname_spec=$lt_libname_spec
10718
10719 # List of archive names.  First name is the real one, the rest are links.
10720 # The last name is the one that the linker finds with -lNAME.
10721 library_names_spec=$lt_library_names_spec
10722
10723 # The coded name of the library, if different from the real name.
10724 soname_spec=$lt_soname_spec
10725
10726 # Commands used to build and install an old-style archive.
10727 RANLIB=$lt_RANLIB
10728 old_archive_cmds=$lt_old_archive_cmds
10729 old_postinstall_cmds=$lt_old_postinstall_cmds
10730 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10731
10732 # Create an old-style archive from a shared archive.
10733 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10734
10735 # Create a temporary old-style archive to link instead of a shared archive.
10736 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10737
10738 # Commands used to build and install a shared archive.
10739 archive_cmds=$lt_archive_cmds
10740 archive_expsym_cmds=$lt_archive_expsym_cmds
10741 postinstall_cmds=$lt_postinstall_cmds
10742 postuninstall_cmds=$lt_postuninstall_cmds
10743
10744 # Commands used to build a loadable module (assumed same as above if empty)
10745 module_cmds=$lt_module_cmds
10746 module_expsym_cmds=$lt_module_expsym_cmds
10747
10748 # Commands to strip libraries.
10749 old_striplib=$lt_old_striplib
10750 striplib=$lt_striplib
10751
10752 # Dependencies to place before the objects being linked to create a
10753 # shared library.
10754 predep_objects=$lt_predep_objects
10755
10756 # Dependencies to place after the objects being linked to create a
10757 # shared library.
10758 postdep_objects=$lt_postdep_objects
10759
10760 # Dependencies to place before the objects being linked to create a
10761 # shared library.
10762 predeps=$lt_predeps
10763
10764 # Dependencies to place after the objects being linked to create a
10765 # shared library.
10766 postdeps=$lt_postdeps
10767
10768 # The directories searched by this compiler when creating a shared
10769 # library
10770 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10771
10772 # The library search path used internally by the compiler when linking
10773 # a shared library.
10774 compiler_lib_search_path=$lt_compiler_lib_search_path
10775
10776 # Method to check whether dependent libraries are shared objects.
10777 deplibs_check_method=$lt_deplibs_check_method
10778
10779 # Command to use when deplibs_check_method == file_magic.
10780 file_magic_cmd=$lt_file_magic_cmd
10781
10782 # Flag that allows shared libraries with undefined symbols to be built.
10783 allow_undefined_flag=$lt_allow_undefined_flag
10784
10785 # Flag that forces no undefined symbols.
10786 no_undefined_flag=$lt_no_undefined_flag
10787
10788 # Commands used to finish a libtool library installation in a directory.
10789 finish_cmds=$lt_finish_cmds
10790
10791 # Same as above, but a single script fragment to be evaled but not shown.
10792 finish_eval=$lt_finish_eval
10793
10794 # Take the output of nm and produce a listing of raw symbols and C names.
10795 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10796
10797 # Transform the output of nm in a proper C declaration
10798 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10799
10800 # Transform the output of nm in a C name address pair
10801 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10802
10803 # This is the shared library runtime path variable.
10804 runpath_var=$runpath_var
10805
10806 # This is the shared library path variable.
10807 shlibpath_var=$shlibpath_var
10808
10809 # Is shlibpath searched before the hard-coded library search path?
10810 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10811
10812 # How to hardcode a shared library path into an executable.
10813 hardcode_action=$hardcode_action
10814
10815 # Whether we should hardcode library paths into libraries.
10816 hardcode_into_libs=$hardcode_into_libs
10817
10818 # Flag to hardcode \$libdir into a binary during linking.
10819 # This must work even if \$libdir does not exist.
10820 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10821
10822 # If ld is used when linking, flag to hardcode \$libdir into
10823 # a binary during linking. This must work even if \$libdir does
10824 # not exist.
10825 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10826
10827 # Whether we need a single -rpath flag with a separated argument.
10828 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10829
10830 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10831 # resulting binary.
10832 hardcode_direct=$hardcode_direct
10833
10834 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10835 # resulting binary.
10836 hardcode_minus_L=$hardcode_minus_L
10837
10838 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10839 # the resulting binary.
10840 hardcode_shlibpath_var=$hardcode_shlibpath_var
10841
10842 # Set to yes if building a shared library automatically hardcodes DIR into the library
10843 # and all subsequent libraries and executables linked against it.
10844 hardcode_automatic=$hardcode_automatic
10845
10846 # Variables whose values should be saved in libtool wrapper scripts and
10847 # restored at relink time.
10848 variables_saved_for_relink="$variables_saved_for_relink"
10849
10850 # Whether libtool must link a program against all its dependency libraries.
10851 link_all_deplibs=$link_all_deplibs
10852
10853 # Compile-time system search path for libraries
10854 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10855
10856 # Run-time system search path for libraries
10857 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10858
10859 # Fix the shell variable \$srcfile for the compiler.
10860 fix_srcfile_path=$lt_fix_srcfile_path
10861
10862 # Set to yes if exported symbols are required.
10863 always_export_symbols=$always_export_symbols
10864
10865 # The commands to list exported symbols.
10866 export_symbols_cmds=$lt_export_symbols_cmds
10867
10868 # The commands to extract the exported symbol list from a shared archive.
10869 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10870
10871 # Symbols that should not be listed in the preloaded symbols.
10872 exclude_expsyms=$lt_exclude_expsyms
10873
10874 # Symbols that must always be exported.
10875 include_expsyms=$lt_include_expsyms
10876
10877 # ### END LIBTOOL CONFIG
10878
10879 __EOF__
10880
10881
10882   case $host_os in
10883   aix3*)
10884     cat <<\EOF >> "$cfgfile"
10885
10886 # AIX sometimes has problems with the GCC collect2 program.  For some
10887 # reason, if we set the COLLECT_NAMES environment variable, the problems
10888 # vanish in a puff of smoke.
10889 if test "X${COLLECT_NAMES+set}" != Xset; then
10890   COLLECT_NAMES=
10891   export COLLECT_NAMES
10892 fi
10893 EOF
10894     ;;
10895   esac
10896
10897   # We use sed instead of cat because bash on DJGPP gets confused if
10898   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10899   # text mode, it properly converts lines to CR/LF.  This bash problem
10900   # is reportedly fixed, but why not run on old versions too?
10901   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10902
10903   mv -f "$cfgfile" "$ofile" || \
10904     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10905   chmod +x "$ofile"
10906
10907 else
10908   # If there is no Makefile yet, we rely on a make rule to execute
10909   # `config.status --recheck' to rerun these tests and create the
10910   # libtool script then.
10911   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10912   if test -f "$ltmain_in"; then
10913     test -f Makefile && make "$ltmain"
10914   fi
10915 fi
10916
10917
10918 ac_ext=c
10919 ac_cpp='$CPP $CPPFLAGS'
10920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10923
10924 CC="$lt_save_CC"
10925
10926
10927 # Check whether --with-tags was given.
10928 if test "${with_tags+set}" = set; then
10929   withval=$with_tags; tagnames="$withval"
10930 fi
10931
10932
10933 if test -f "$ltmain" && test -n "$tagnames"; then
10934   if test ! -f "${ofile}"; then
10935     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10936 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10937   fi
10938
10939   if test -z "$LTCC"; then
10940     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10941     if test -z "$LTCC"; then
10942       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10943 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10944     else
10945       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10946 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10947     fi
10948   fi
10949   if test -z "$LTCFLAGS"; then
10950     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10951   fi
10952
10953   # Extract list of available tagged configurations in $ofile.
10954   # Note that this assumes the entire list is on one line.
10955   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10956
10957   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10958   for tagname in $tagnames; do
10959     IFS="$lt_save_ifs"
10960     # Check whether tagname contains only valid characters
10961     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10962     "") ;;
10963     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10964 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10965    { (exit 1); exit 1; }; }
10966         ;;
10967     esac
10968
10969     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10970     then
10971       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10972 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10973    { (exit 1); exit 1; }; }
10974     fi
10975
10976     # Update the list of available tags.
10977     if test -n "$tagname"; then
10978       echo appending configuration tag \"$tagname\" to $ofile
10979
10980       case $tagname in
10981       CXX)
10982         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10983             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10984             (test "X$CXX" != "Xg++"))) ; then
10985           ac_ext=cpp
10986 ac_cpp='$CXXCPP $CPPFLAGS'
10987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10990
10991
10992
10993
10994 archive_cmds_need_lc_CXX=no
10995 allow_undefined_flag_CXX=
10996 always_export_symbols_CXX=no
10997 archive_expsym_cmds_CXX=
10998 export_dynamic_flag_spec_CXX=
10999 hardcode_direct_CXX=no
11000 hardcode_libdir_flag_spec_CXX=
11001 hardcode_libdir_flag_spec_ld_CXX=
11002 hardcode_libdir_separator_CXX=
11003 hardcode_minus_L_CXX=no
11004 hardcode_shlibpath_var_CXX=unsupported
11005 hardcode_automatic_CXX=no
11006 module_cmds_CXX=
11007 module_expsym_cmds_CXX=
11008 link_all_deplibs_CXX=unknown
11009 old_archive_cmds_CXX=$old_archive_cmds
11010 no_undefined_flag_CXX=
11011 whole_archive_flag_spec_CXX=
11012 enable_shared_with_static_runtimes_CXX=no
11013
11014 # Dependencies to place before and after the object being linked:
11015 predep_objects_CXX=
11016 postdep_objects_CXX=
11017 predeps_CXX=
11018 postdeps_CXX=
11019 compiler_lib_search_path_CXX=
11020 compiler_lib_search_dirs_CXX=
11021
11022 # Source file extension for C++ test sources.
11023 ac_ext=cpp
11024
11025 # Object file extension for compiled C++ test sources.
11026 objext=o
11027 objext_CXX=$objext
11028
11029 # Code to be used in simple compile tests
11030 lt_simple_compile_test_code="int some_variable = 0;"
11031
11032 # Code to be used in simple link tests
11033 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11034
11035 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11036
11037 # If no C compiler was specified, use CC.
11038 LTCC=${LTCC-"$CC"}
11039
11040 # If no C compiler flags were specified, use CFLAGS.
11041 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11042
11043 # Allow CC to be a program name with arguments.
11044 compiler=$CC
11045
11046
11047 # save warnings/boilerplate of simple test code
11048 ac_outfile=conftest.$ac_objext
11049 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11050 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11051 _lt_compiler_boilerplate=`cat conftest.err`
11052 $rm conftest*
11053
11054 ac_outfile=conftest.$ac_objext
11055 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11056 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11057 _lt_linker_boilerplate=`cat conftest.err`
11058 $rm -r conftest*
11059
11060
11061 # Allow CC to be a program name with arguments.
11062 lt_save_CC=$CC
11063 lt_save_LD=$LD
11064 lt_save_GCC=$GCC
11065 GCC=$GXX
11066 lt_save_with_gnu_ld=$with_gnu_ld
11067 lt_save_path_LD=$lt_cv_path_LD
11068 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11069   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11070 else
11071   $as_unset lt_cv_prog_gnu_ld
11072 fi
11073 if test -n "${lt_cv_path_LDCXX+set}"; then
11074   lt_cv_path_LD=$lt_cv_path_LDCXX
11075 else
11076   $as_unset lt_cv_path_LD
11077 fi
11078 test -z "${LDCXX+set}" || LD=$LDCXX
11079 CC=${CXX-"c++"}
11080 compiler=$CC
11081 compiler_CXX=$CC
11082 for cc_temp in $compiler""; do
11083   case $cc_temp in
11084     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11085     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11086     \-*) ;;
11087     *) break;;
11088   esac
11089 done
11090 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11091
11092
11093 # We don't want -fno-exception wen compiling C++ code, so set the
11094 # no_builtin_flag separately
11095 if test "$GXX" = yes; then
11096   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11097 else
11098   lt_prog_compiler_no_builtin_flag_CXX=
11099 fi
11100
11101 if test "$GXX" = yes; then
11102   # Set up default GNU C++ configuration
11103
11104
11105 # Check whether --with-gnu-ld was given.
11106 if test "${with_gnu_ld+set}" = set; then
11107   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11108 else
11109   with_gnu_ld=no
11110 fi
11111
11112 ac_prog=ld
11113 if test "$GCC" = yes; then
11114   # Check if gcc -print-prog-name=ld gives a path.
11115   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11116 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11117   case $host in
11118   *-*-mingw*)
11119     # gcc leaves a trailing carriage return which upsets mingw
11120     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11121   *)
11122     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11123   esac
11124   case $ac_prog in
11125     # Accept absolute paths.
11126     [\\/]* | ?:[\\/]*)
11127       re_direlt='/[^/][^/]*/\.\./'
11128       # Canonicalize the pathname of ld
11129       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11130       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11131         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11132       done
11133       test -z "$LD" && LD="$ac_prog"
11134       ;;
11135   "")
11136     # If it fails, then pretend we aren't using GCC.
11137     ac_prog=ld
11138     ;;
11139   *)
11140     # If it is relative, then search for the first ld in PATH.
11141     with_gnu_ld=unknown
11142     ;;
11143   esac
11144 elif test "$with_gnu_ld" = yes; then
11145   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11146 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11147 else
11148   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11149 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11150 fi
11151 if test "${lt_cv_path_LD+set}" = set; then
11152   echo $ECHO_N "(cached) $ECHO_C" >&6
11153 else
11154   if test -z "$LD"; then
11155   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11156   for ac_dir in $PATH; do
11157     IFS="$lt_save_ifs"
11158     test -z "$ac_dir" && ac_dir=.
11159     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11160       lt_cv_path_LD="$ac_dir/$ac_prog"
11161       # Check to see if the program is GNU ld.  I'd rather use --version,
11162       # but apparently some variants of GNU ld only accept -v.
11163       # Break only if it was the GNU/non-GNU ld that we prefer.
11164       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11165       *GNU* | *'with BFD'*)
11166         test "$with_gnu_ld" != no && break
11167         ;;
11168       *)
11169         test "$with_gnu_ld" != yes && break
11170         ;;
11171       esac
11172     fi
11173   done
11174   IFS="$lt_save_ifs"
11175 else
11176   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11177 fi
11178 fi
11179
11180 LD="$lt_cv_path_LD"
11181 if test -n "$LD"; then
11182   { echo "$as_me:$LINENO: result: $LD" >&5
11183 echo "${ECHO_T}$LD" >&6; }
11184 else
11185   { echo "$as_me:$LINENO: result: no" >&5
11186 echo "${ECHO_T}no" >&6; }
11187 fi
11188 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11189 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11190    { (exit 1); exit 1; }; }
11191 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11192 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11193 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11194   echo $ECHO_N "(cached) $ECHO_C" >&6
11195 else
11196   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11197 case `$LD -v 2>&1 </dev/null` in
11198 *GNU* | *'with BFD'*)
11199   lt_cv_prog_gnu_ld=yes
11200   ;;
11201 *)
11202   lt_cv_prog_gnu_ld=no
11203   ;;
11204 esac
11205 fi
11206 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11207 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11208 with_gnu_ld=$lt_cv_prog_gnu_ld
11209
11210
11211
11212   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11213   # archiving commands below assume that GNU ld is being used.
11214   if test "$with_gnu_ld" = yes; then
11215     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11216     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'
11217
11218     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11219     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11220
11221     # If archive_cmds runs LD, not CC, wlarc should be empty
11222     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11223     #     investigate it a little bit more. (MM)
11224     wlarc='${wl}'
11225
11226     # ancient GNU ld didn't support --whole-archive et. al.
11227     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11228         grep 'no-whole-archive' > /dev/null; then
11229       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11230     else
11231       whole_archive_flag_spec_CXX=
11232     fi
11233   else
11234     with_gnu_ld=no
11235     wlarc=
11236
11237     # A generic and very simple default shared library creation
11238     # command for GNU C++ for the case where it uses the native
11239     # linker, instead of GNU ld.  If possible, this setting should
11240     # overridden to take advantage of the native linker features on
11241     # the platform it is being used on.
11242     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11243   fi
11244
11245   # Commands to make compiler produce verbose output that lists
11246   # what "hidden" libraries, object files and flags are used when
11247   # linking a shared library.
11248   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11249
11250 else
11251   GXX=no
11252   with_gnu_ld=no
11253   wlarc=
11254 fi
11255
11256 # PORTME: fill in a description of your system's C++ link characteristics
11257 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11258 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11259 ld_shlibs_CXX=yes
11260 case $host_os in
11261   aix3*)
11262     # FIXME: insert proper C++ library support
11263     ld_shlibs_CXX=no
11264     ;;
11265   aix[4-9]*)
11266     if test "$host_cpu" = ia64; then
11267       # On IA64, the linker does run time linking by default, so we don't
11268       # have to do anything special.
11269       aix_use_runtimelinking=no
11270       exp_sym_flag='-Bexport'
11271       no_entry_flag=""
11272     else
11273       aix_use_runtimelinking=no
11274
11275       # Test if we are trying to use run time linking or normal
11276       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11277       # need to do runtime linking.
11278       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11279         for ld_flag in $LDFLAGS; do
11280           case $ld_flag in
11281           *-brtl*)
11282             aix_use_runtimelinking=yes
11283             break
11284             ;;
11285           esac
11286         done
11287         ;;
11288       esac
11289
11290       exp_sym_flag='-bexport'
11291       no_entry_flag='-bnoentry'
11292     fi
11293
11294     # When large executables or shared objects are built, AIX ld can
11295     # have problems creating the table of contents.  If linking a library
11296     # or program results in "error TOC overflow" add -mminimal-toc to
11297     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11298     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11299
11300     archive_cmds_CXX=''
11301     hardcode_direct_CXX=yes
11302     hardcode_libdir_separator_CXX=':'
11303     link_all_deplibs_CXX=yes
11304
11305     if test "$GXX" = yes; then
11306       case $host_os in aix4.[012]|aix4.[012].*)
11307       # We only want to do this on AIX 4.2 and lower, the check
11308       # below for broken collect2 doesn't work under 4.3+
11309         collect2name=`${CC} -print-prog-name=collect2`
11310         if test -f "$collect2name" && \
11311            strings "$collect2name" | grep resolve_lib_name >/dev/null
11312         then
11313           # We have reworked collect2
11314           :
11315         else
11316           # We have old collect2
11317           hardcode_direct_CXX=unsupported
11318           # It fails to find uninstalled libraries when the uninstalled
11319           # path is not listed in the libpath.  Setting hardcode_minus_L
11320           # to unsupported forces relinking
11321           hardcode_minus_L_CXX=yes
11322           hardcode_libdir_flag_spec_CXX='-L$libdir'
11323           hardcode_libdir_separator_CXX=
11324         fi
11325         ;;
11326       esac
11327       shared_flag='-shared'
11328       if test "$aix_use_runtimelinking" = yes; then
11329         shared_flag="$shared_flag "'${wl}-G'
11330       fi
11331     else
11332       # not using gcc
11333       if test "$host_cpu" = ia64; then
11334         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11335         # chokes on -Wl,-G. The following line is correct:
11336         shared_flag='-G'
11337       else
11338         if test "$aix_use_runtimelinking" = yes; then
11339           shared_flag='${wl}-G'
11340         else
11341           shared_flag='${wl}-bM:SRE'
11342         fi
11343       fi
11344     fi
11345
11346     # It seems that -bexpall does not export symbols beginning with
11347     # underscore (_), so it is better to generate a list of symbols to export.
11348     always_export_symbols_CXX=yes
11349     if test "$aix_use_runtimelinking" = yes; then
11350       # Warning - without using the other runtime loading flags (-brtl),
11351       # -berok will link without error, but may produce a broken library.
11352       allow_undefined_flag_CXX='-berok'
11353       # Determine the default libpath from the value encoded in an empty executable.
11354       cat >conftest.$ac_ext <<_ACEOF
11355 /* confdefs.h.  */
11356 _ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h.  */
11360
11361 int
11362 main ()
11363 {
11364
11365   ;
11366   return 0;
11367 }
11368 _ACEOF
11369 rm -f conftest.$ac_objext conftest$ac_exeext
11370 if { (ac_try="$ac_link"
11371 case "(($ac_try" in
11372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373   *) ac_try_echo=$ac_try;;
11374 esac
11375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11376   (eval "$ac_link") 2>conftest.er1
11377   ac_status=$?
11378   grep -v '^ *+' conftest.er1 >conftest.err
11379   rm -f conftest.er1
11380   cat conftest.err >&5
11381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382   (exit $ac_status); } && {
11383          test -z "$ac_cxx_werror_flag" ||
11384          test ! -s conftest.err
11385        } && test -s conftest$ac_exeext &&
11386        $as_test_x conftest$ac_exeext; then
11387
11388 lt_aix_libpath_sed='
11389     /Import File Strings/,/^$/ {
11390         /^0/ {
11391             s/^0  *\(.*\)$/\1/
11392             p
11393         }
11394     }'
11395 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11396 # Check for a 64-bit object if we didn't find anything.
11397 if test -z "$aix_libpath"; then
11398   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11399 fi
11400 else
11401   echo "$as_me: failed program was:" >&5
11402 sed 's/^/| /' conftest.$ac_ext >&5
11403
11404
11405 fi
11406
11407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11408       conftest$ac_exeext conftest.$ac_ext
11409 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11410
11411       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11412
11413       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"
11414      else
11415       if test "$host_cpu" = ia64; then
11416         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11417         allow_undefined_flag_CXX="-z nodefs"
11418         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"
11419       else
11420         # Determine the default libpath from the value encoded in an empty executable.
11421         cat >conftest.$ac_ext <<_ACEOF
11422 /* confdefs.h.  */
11423 _ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h.  */
11427
11428 int
11429 main ()
11430 {
11431
11432   ;
11433   return 0;
11434 }
11435 _ACEOF
11436 rm -f conftest.$ac_objext conftest$ac_exeext
11437 if { (ac_try="$ac_link"
11438 case "(($ac_try" in
11439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11440   *) ac_try_echo=$ac_try;;
11441 esac
11442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11443   (eval "$ac_link") 2>conftest.er1
11444   ac_status=$?
11445   grep -v '^ *+' conftest.er1 >conftest.err
11446   rm -f conftest.er1
11447   cat conftest.err >&5
11448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449   (exit $ac_status); } && {
11450          test -z "$ac_cxx_werror_flag" ||
11451          test ! -s conftest.err
11452        } && test -s conftest$ac_exeext &&
11453        $as_test_x conftest$ac_exeext; then
11454
11455 lt_aix_libpath_sed='
11456     /Import File Strings/,/^$/ {
11457         /^0/ {
11458             s/^0  *\(.*\)$/\1/
11459             p
11460         }
11461     }'
11462 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11463 # Check for a 64-bit object if we didn't find anything.
11464 if test -z "$aix_libpath"; then
11465   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11466 fi
11467 else
11468   echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11470
11471
11472 fi
11473
11474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11475       conftest$ac_exeext conftest.$ac_ext
11476 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11477
11478         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11479         # Warning - without using the other run time loading flags,
11480         # -berok will link without error, but may produce a broken library.
11481         no_undefined_flag_CXX=' ${wl}-bernotok'
11482         allow_undefined_flag_CXX=' ${wl}-berok'
11483         # Exported symbols can be pulled into shared objects from archives
11484         whole_archive_flag_spec_CXX='$convenience'
11485         archive_cmds_need_lc_CXX=yes
11486         # This is similar to how AIX traditionally builds its shared libraries.
11487         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'
11488       fi
11489     fi
11490     ;;
11491
11492   beos*)
11493     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11494       allow_undefined_flag_CXX=unsupported
11495       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11496       # support --undefined.  This deserves some investigation.  FIXME
11497       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11498     else
11499       ld_shlibs_CXX=no
11500     fi
11501     ;;
11502
11503   chorus*)
11504     case $cc_basename in
11505       *)
11506         # FIXME: insert proper C++ library support
11507         ld_shlibs_CXX=no
11508         ;;
11509     esac
11510     ;;
11511
11512   cygwin* | mingw* | pw32*)
11513     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11514     # as there is no search path for DLLs.
11515     hardcode_libdir_flag_spec_CXX='-L$libdir'
11516     allow_undefined_flag_CXX=unsupported
11517     always_export_symbols_CXX=no
11518     enable_shared_with_static_runtimes_CXX=yes
11519
11520     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11521       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'
11522       # If the export-symbols file already is a .def file (1st line
11523       # is EXPORTS), use it as is; otherwise, prepend...
11524       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11525         cp $export_symbols $output_objdir/$soname.def;
11526       else
11527         echo EXPORTS > $output_objdir/$soname.def;
11528         cat $export_symbols >> $output_objdir/$soname.def;
11529       fi~
11530       $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'
11531     else
11532       ld_shlibs_CXX=no
11533     fi
11534   ;;
11535       darwin* | rhapsody*)
11536       archive_cmds_need_lc_CXX=no
11537       hardcode_direct_CXX=no
11538       hardcode_automatic_CXX=yes
11539       hardcode_shlibpath_var_CXX=unsupported
11540       whole_archive_flag_spec_CXX=''
11541       link_all_deplibs_CXX=yes
11542       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11543       if test "$GXX" = yes ; then
11544       output_verbose_link_cmd='echo'
11545       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}"
11546       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11547       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}"
11548       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}"
11549       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11550         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}"
11551         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}"
11552       fi
11553       else
11554       case $cc_basename in
11555         xlc*)
11556          output_verbose_link_cmd='echo'
11557           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'
11558           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11559           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11560           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}'
11561           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}'
11562           ;;
11563        *)
11564          ld_shlibs_CXX=no
11565           ;;
11566       esac
11567       fi
11568         ;;
11569
11570   dgux*)
11571     case $cc_basename in
11572       ec++*)
11573         # FIXME: insert proper C++ library support
11574         ld_shlibs_CXX=no
11575         ;;
11576       ghcx*)
11577         # Green Hills C++ Compiler
11578         # FIXME: insert proper C++ library support
11579         ld_shlibs_CXX=no
11580         ;;
11581       *)
11582         # FIXME: insert proper C++ library support
11583         ld_shlibs_CXX=no
11584         ;;
11585     esac
11586     ;;
11587   freebsd[12]*)
11588     # C++ shared libraries reported to be fairly broken before switch to ELF
11589     ld_shlibs_CXX=no
11590     ;;
11591   freebsd-elf*)
11592     archive_cmds_need_lc_CXX=no
11593     ;;
11594   freebsd* | dragonfly*)
11595     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11596     # conventions
11597     ld_shlibs_CXX=yes
11598     ;;
11599   gnu*)
11600     ;;
11601   hpux9*)
11602     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11603     hardcode_libdir_separator_CXX=:
11604     export_dynamic_flag_spec_CXX='${wl}-E'
11605     hardcode_direct_CXX=yes
11606     hardcode_minus_L_CXX=yes # Not in the search PATH,
11607                                 # but as the default
11608                                 # location of the library.
11609
11610     case $cc_basename in
11611     CC*)
11612       # FIXME: insert proper C++ library support
11613       ld_shlibs_CXX=no
11614       ;;
11615     aCC*)
11616       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'
11617       # Commands to make compiler produce verbose output that lists
11618       # what "hidden" libraries, object files and flags are used when
11619       # linking a shared library.
11620       #
11621       # There doesn't appear to be a way to prevent this compiler from
11622       # explicitly linking system object files so we need to strip them
11623       # from the output so that they don't get included in the library
11624       # dependencies.
11625       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'
11626       ;;
11627     *)
11628       if test "$GXX" = yes; then
11629         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'
11630       else
11631         # FIXME: insert proper C++ library support
11632         ld_shlibs_CXX=no
11633       fi
11634       ;;
11635     esac
11636     ;;
11637   hpux10*|hpux11*)
11638     if test $with_gnu_ld = no; then
11639       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11640       hardcode_libdir_separator_CXX=:
11641
11642       case $host_cpu in
11643       hppa*64*|ia64*) ;;
11644       *)
11645         export_dynamic_flag_spec_CXX='${wl}-E'
11646         ;;
11647       esac
11648     fi
11649     case $host_cpu in
11650     hppa*64*|ia64*)
11651       hardcode_direct_CXX=no
11652       hardcode_shlibpath_var_CXX=no
11653       ;;
11654     *)
11655       hardcode_direct_CXX=yes
11656       hardcode_minus_L_CXX=yes # Not in the search PATH,
11657                                               # but as the default
11658                                               # location of the library.
11659       ;;
11660     esac
11661
11662     case $cc_basename in
11663       CC*)
11664         # FIXME: insert proper C++ library support
11665         ld_shlibs_CXX=no
11666         ;;
11667       aCC*)
11668         case $host_cpu in
11669         hppa*64*)
11670           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11671           ;;
11672         ia64*)
11673           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11674           ;;
11675         *)
11676           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11677           ;;
11678         esac
11679         # Commands to make compiler produce verbose output that lists
11680         # what "hidden" libraries, object files and flags are used when
11681         # linking a shared library.
11682         #
11683         # There doesn't appear to be a way to prevent this compiler from
11684         # explicitly linking system object files so we need to strip them
11685         # from the output so that they don't get included in the library
11686         # dependencies.
11687         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'
11688         ;;
11689       *)
11690         if test "$GXX" = yes; then
11691           if test $with_gnu_ld = no; then
11692             case $host_cpu in
11693             hppa*64*)
11694               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11695               ;;
11696             ia64*)
11697               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11698               ;;
11699             *)
11700               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'
11701               ;;
11702             esac
11703           fi
11704         else
11705           # FIXME: insert proper C++ library support
11706           ld_shlibs_CXX=no
11707         fi
11708         ;;
11709     esac
11710     ;;
11711   interix[3-9]*)
11712     hardcode_direct_CXX=no
11713     hardcode_shlibpath_var_CXX=no
11714     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11715     export_dynamic_flag_spec_CXX='${wl}-E'
11716     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11717     # Instead, shared libraries are loaded at an image base (0x10000000 by
11718     # default) and relocated if they conflict, which is a slow very memory
11719     # consuming and fragmenting process.  To avoid this, we pick a random,
11720     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11721     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11722     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'
11723     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'
11724     ;;
11725   irix5* | irix6*)
11726     case $cc_basename in
11727       CC*)
11728         # SGI C++
11729         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'
11730
11731         # Archives containing C++ object files must be created using
11732         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11733         # necessary to make sure instantiated templates are included
11734         # in the archive.
11735         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11736         ;;
11737       *)
11738         if test "$GXX" = yes; then
11739           if test "$with_gnu_ld" = no; then
11740             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'
11741           else
11742             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'
11743           fi
11744         fi
11745         link_all_deplibs_CXX=yes
11746         ;;
11747     esac
11748     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11749     hardcode_libdir_separator_CXX=:
11750     ;;
11751   linux* | k*bsd*-gnu)
11752     case $cc_basename in
11753       KCC*)
11754         # Kuck and Associates, Inc. (KAI) C++ Compiler
11755
11756         # KCC will only create a shared library if the output file
11757         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11758         # to its proper name (with version) after linking.
11759         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'
11760         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'
11761         # Commands to make compiler produce verbose output that lists
11762         # what "hidden" libraries, object files and flags are used when
11763         # linking a shared library.
11764         #
11765         # There doesn't appear to be a way to prevent this compiler from
11766         # explicitly linking system object files so we need to strip them
11767         # from the output so that they don't get included in the library
11768         # dependencies.
11769         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'
11770
11771         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11772         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11773
11774         # Archives containing C++ object files must be created using
11775         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11776         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11777         ;;
11778       icpc*)
11779         # Intel C++
11780         with_gnu_ld=yes
11781         # version 8.0 and above of icpc choke on multiply defined symbols
11782         # if we add $predep_objects and $postdep_objects, however 7.1 and
11783         # earlier do not add the objects themselves.
11784         case `$CC -V 2>&1` in
11785         *"Version 7."*)
11786           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11787           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'
11788           ;;
11789         *)  # Version 8.0 or newer
11790           tmp_idyn=
11791           case $host_cpu in
11792             ia64*) tmp_idyn=' -i_dynamic';;
11793           esac
11794           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11795           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'
11796           ;;
11797         esac
11798         archive_cmds_need_lc_CXX=no
11799         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11800         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11801         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11802         ;;
11803       pgCC* | pgcpp*)
11804         # Portland Group C++ compiler
11805         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11806         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'
11807
11808         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11809         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11810         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'
11811         ;;
11812       cxx*)
11813         # Compaq C++
11814         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11815         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'
11816
11817         runpath_var=LD_RUN_PATH
11818         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11819         hardcode_libdir_separator_CXX=:
11820
11821         # Commands to make compiler produce verbose output that lists
11822         # what "hidden" libraries, object files and flags are used when
11823         # linking a shared library.
11824         #
11825         # There doesn't appear to be a way to prevent this compiler from
11826         # explicitly linking system object files so we need to strip them
11827         # from the output so that they don't get included in the library
11828         # dependencies.
11829         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'
11830         ;;
11831       *)
11832         case `$CC -V 2>&1 | sed 5q` in
11833         *Sun\ C*)
11834           # Sun C++ 5.9
11835           no_undefined_flag_CXX=' -zdefs'
11836           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11837           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'
11838           hardcode_libdir_flag_spec_CXX='-R$libdir'
11839           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'
11840
11841           # Not sure whether something based on
11842           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11843           # would be better.
11844           output_verbose_link_cmd='echo'
11845
11846           # Archives containing C++ object files must be created using
11847           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11848           # necessary to make sure instantiated templates are included
11849           # in the archive.
11850           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11851           ;;
11852         esac
11853         ;;
11854     esac
11855     ;;
11856   lynxos*)
11857     # FIXME: insert proper C++ library support
11858     ld_shlibs_CXX=no
11859     ;;
11860   m88k*)
11861     # FIXME: insert proper C++ library support
11862     ld_shlibs_CXX=no
11863     ;;
11864   mvs*)
11865     case $cc_basename in
11866       cxx*)
11867         # FIXME: insert proper C++ library support
11868         ld_shlibs_CXX=no
11869         ;;
11870       *)
11871         # FIXME: insert proper C++ library support
11872         ld_shlibs_CXX=no
11873         ;;
11874     esac
11875     ;;
11876   netbsd* | netbsdelf*-gnu)
11877     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11878       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11879       wlarc=
11880       hardcode_libdir_flag_spec_CXX='-R$libdir'
11881       hardcode_direct_CXX=yes
11882       hardcode_shlibpath_var_CXX=no
11883     fi
11884     # Workaround some broken pre-1.5 toolchains
11885     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11886     ;;
11887   openbsd2*)
11888     # C++ shared libraries are fairly broken
11889     ld_shlibs_CXX=no
11890     ;;
11891   openbsd*)
11892     if test -f /usr/libexec/ld.so; then
11893       hardcode_direct_CXX=yes
11894       hardcode_shlibpath_var_CXX=no
11895       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11896       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11897       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11898         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11899         export_dynamic_flag_spec_CXX='${wl}-E'
11900         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11901       fi
11902       output_verbose_link_cmd='echo'
11903     else
11904       ld_shlibs_CXX=no
11905     fi
11906     ;;
11907   osf3*)
11908     case $cc_basename in
11909       KCC*)
11910         # Kuck and Associates, Inc. (KAI) C++ Compiler
11911
11912         # KCC will only create a shared library if the output file
11913         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11914         # to its proper name (with version) after linking.
11915         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'
11916
11917         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11918         hardcode_libdir_separator_CXX=:
11919
11920         # Archives containing C++ object files must be created using
11921         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11922         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11923
11924         ;;
11925       RCC*)
11926         # Rational C++ 2.4.1
11927         # FIXME: insert proper C++ library support
11928         ld_shlibs_CXX=no
11929         ;;
11930       cxx*)
11931         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11932         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'
11933
11934         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11935         hardcode_libdir_separator_CXX=:
11936
11937         # Commands to make compiler produce verbose output that lists
11938         # what "hidden" libraries, object files and flags are used when
11939         # linking a shared library.
11940         #
11941         # There doesn't appear to be a way to prevent this compiler from
11942         # explicitly linking system object files so we need to strip them
11943         # from the output so that they don't get included in the library
11944         # dependencies.
11945         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'
11946         ;;
11947       *)
11948         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11949           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11950           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'
11951
11952           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11953           hardcode_libdir_separator_CXX=:
11954
11955           # Commands to make compiler produce verbose output that lists
11956           # what "hidden" libraries, object files and flags are used when
11957           # linking a shared library.
11958           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11959
11960         else
11961           # FIXME: insert proper C++ library support
11962           ld_shlibs_CXX=no
11963         fi
11964         ;;
11965     esac
11966     ;;
11967   osf4* | osf5*)
11968     case $cc_basename in
11969       KCC*)
11970         # Kuck and Associates, Inc. (KAI) C++ Compiler
11971
11972         # KCC will only create a shared library if the output file
11973         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11974         # to its proper name (with version) after linking.
11975         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'
11976
11977         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11978         hardcode_libdir_separator_CXX=:
11979
11980         # Archives containing C++ object files must be created using
11981         # the KAI C++ compiler.
11982         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11983         ;;
11984       RCC*)
11985         # Rational C++ 2.4.1
11986         # FIXME: insert proper C++ library support
11987         ld_shlibs_CXX=no
11988         ;;
11989       cxx*)
11990         allow_undefined_flag_CXX=' -expect_unresolved \*'
11991         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'
11992         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11993           echo "-hidden">> $lib.exp~
11994           $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~
11995           $rm $lib.exp'
11996
11997         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11998         hardcode_libdir_separator_CXX=:
11999
12000         # Commands to make compiler produce verbose output that lists
12001         # what "hidden" libraries, object files and flags are used when
12002         # linking a shared library.
12003         #
12004         # There doesn't appear to be a way to prevent this compiler from
12005         # explicitly linking system object files so we need to strip them
12006         # from the output so that they don't get included in the library
12007         # dependencies.
12008         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'
12009         ;;
12010       *)
12011         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12012           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12013          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'
12014
12015           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12016           hardcode_libdir_separator_CXX=:
12017
12018           # Commands to make compiler produce verbose output that lists
12019           # what "hidden" libraries, object files and flags are used when
12020           # linking a shared library.
12021           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12022
12023         else
12024           # FIXME: insert proper C++ library support
12025           ld_shlibs_CXX=no
12026         fi
12027         ;;
12028     esac
12029     ;;
12030   psos*)
12031     # FIXME: insert proper C++ library support
12032     ld_shlibs_CXX=no
12033     ;;
12034   sunos4*)
12035     case $cc_basename in
12036       CC*)
12037         # Sun C++ 4.x
12038         # FIXME: insert proper C++ library support
12039         ld_shlibs_CXX=no
12040         ;;
12041       lcc*)
12042         # Lucid
12043         # FIXME: insert proper C++ library support
12044         ld_shlibs_CXX=no
12045         ;;
12046       *)
12047         # FIXME: insert proper C++ library support
12048         ld_shlibs_CXX=no
12049         ;;
12050     esac
12051     ;;
12052   solaris*)
12053     case $cc_basename in
12054       CC*)
12055         # Sun C++ 4.2, 5.x and Centerline C++
12056         archive_cmds_need_lc_CXX=yes
12057         no_undefined_flag_CXX=' -zdefs'
12058         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12059         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12060         $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'
12061
12062         hardcode_libdir_flag_spec_CXX='-R$libdir'
12063         hardcode_shlibpath_var_CXX=no
12064         case $host_os in
12065           solaris2.[0-5] | solaris2.[0-5].*) ;;
12066           *)
12067             # The compiler driver will combine and reorder linker options,
12068             # but understands `-z linker_flag'.
12069             # Supported since Solaris 2.6 (maybe 2.5.1?)
12070             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12071             ;;
12072         esac
12073         link_all_deplibs_CXX=yes
12074
12075         output_verbose_link_cmd='echo'
12076
12077         # Archives containing C++ object files must be created using
12078         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12079         # necessary to make sure instantiated templates are included
12080         # in the archive.
12081         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12082         ;;
12083       gcx*)
12084         # Green Hills C++ Compiler
12085         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12086
12087         # The C++ compiler must be used to create the archive.
12088         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12089         ;;
12090       *)
12091         # GNU C++ compiler with Solaris linker
12092         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12093           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12094           if $CC --version | grep -v '^2\.7' > /dev/null; then
12095             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12096             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12097                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12098
12099             # Commands to make compiler produce verbose output that lists
12100             # what "hidden" libraries, object files and flags are used when
12101             # linking a shared library.
12102             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12103           else
12104             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12105             # platform.
12106             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12107             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12108                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12109
12110             # Commands to make compiler produce verbose output that lists
12111             # what "hidden" libraries, object files and flags are used when
12112             # linking a shared library.
12113             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12114           fi
12115
12116           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12117           case $host_os in
12118           solaris2.[0-5] | solaris2.[0-5].*) ;;
12119           *)
12120             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12121             ;;
12122           esac
12123         fi
12124         ;;
12125     esac
12126     ;;
12127   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12128     no_undefined_flag_CXX='${wl}-z,text'
12129     archive_cmds_need_lc_CXX=no
12130     hardcode_shlibpath_var_CXX=no
12131     runpath_var='LD_RUN_PATH'
12132
12133     case $cc_basename in
12134       CC*)
12135         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12136         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12137         ;;
12138       *)
12139         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12140         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12141         ;;
12142     esac
12143     ;;
12144   sysv5* | sco3.2v5* | sco5v6*)
12145     # Note: We can NOT use -z defs as we might desire, because we do not
12146     # link with -lc, and that would cause any symbols used from libc to
12147     # always be unresolved, which means just about no library would
12148     # ever link correctly.  If we're not using GNU ld we use -z text
12149     # though, which does catch some bad symbols but isn't as heavy-handed
12150     # as -z defs.
12151     # For security reasons, it is highly recommended that you always
12152     # use absolute paths for naming shared libraries, and exclude the
12153     # DT_RUNPATH tag from executables and libraries.  But doing so
12154     # requires that you compile everything twice, which is a pain.
12155     # So that behaviour is only enabled if SCOABSPATH is set to a
12156     # non-empty value in the environment.  Most likely only useful for
12157     # creating official distributions of packages.
12158     # This is a hack until libtool officially supports absolute path
12159     # names for shared libraries.
12160     no_undefined_flag_CXX='${wl}-z,text'
12161     allow_undefined_flag_CXX='${wl}-z,nodefs'
12162     archive_cmds_need_lc_CXX=no
12163     hardcode_shlibpath_var_CXX=no
12164     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12165     hardcode_libdir_separator_CXX=':'
12166     link_all_deplibs_CXX=yes
12167     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12168     runpath_var='LD_RUN_PATH'
12169
12170     case $cc_basename in
12171       CC*)
12172         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12173         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12174         ;;
12175       *)
12176         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12177         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12178         ;;
12179     esac
12180     ;;
12181   tandem*)
12182     case $cc_basename in
12183       NCC*)
12184         # NonStop-UX NCC 3.20
12185         # FIXME: insert proper C++ library support
12186         ld_shlibs_CXX=no
12187         ;;
12188       *)
12189         # FIXME: insert proper C++ library support
12190         ld_shlibs_CXX=no
12191         ;;
12192     esac
12193     ;;
12194   vxworks*)
12195     # FIXME: insert proper C++ library support
12196     ld_shlibs_CXX=no
12197     ;;
12198   *)
12199     # FIXME: insert proper C++ library support
12200     ld_shlibs_CXX=no
12201     ;;
12202 esac
12203 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12204 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12205 test "$ld_shlibs_CXX" = no && can_build_shared=no
12206
12207 GCC_CXX="$GXX"
12208 LD_CXX="$LD"
12209
12210 cat > conftest.$ac_ext <<EOF
12211 class Foo
12212 {
12213 public:
12214   Foo (void) { a = 0; }
12215 private:
12216   int a;
12217 };
12218 EOF
12219
12220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12221   (eval $ac_compile) 2>&5
12222   ac_status=$?
12223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224   (exit $ac_status); }; then
12225   # Parse the compiler output and extract the necessary
12226   # objects, libraries and library flags.
12227
12228   # Sentinel used to keep track of whether or not we are before
12229   # the conftest object file.
12230   pre_test_object_deps_done=no
12231
12232   # The `*' in the case matches for architectures that use `case' in
12233   # $output_verbose_cmd can trigger glob expansion during the loop
12234   # eval without this substitution.
12235   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12236
12237   for p in `eval $output_verbose_link_cmd`; do
12238     case $p in
12239
12240     -L* | -R* | -l*)
12241        # Some compilers place space between "-{L,R}" and the path.
12242        # Remove the space.
12243        if test $p = "-L" \
12244           || test $p = "-R"; then
12245          prev=$p
12246          continue
12247        else
12248          prev=
12249        fi
12250
12251        if test "$pre_test_object_deps_done" = no; then
12252          case $p in
12253          -L* | -R*)
12254            # Internal compiler library paths should come after those
12255            # provided the user.  The postdeps already come after the
12256            # user supplied libs so there is no need to process them.
12257            if test -z "$compiler_lib_search_path_CXX"; then
12258              compiler_lib_search_path_CXX="${prev}${p}"
12259            else
12260              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12261            fi
12262            ;;
12263          # The "-l" case would never come before the object being
12264          # linked, so don't bother handling this case.
12265          esac
12266        else
12267          if test -z "$postdeps_CXX"; then
12268            postdeps_CXX="${prev}${p}"
12269          else
12270            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12271          fi
12272        fi
12273        ;;
12274
12275     *.$objext)
12276        # This assumes that the test object file only shows up
12277        # once in the compiler output.
12278        if test "$p" = "conftest.$objext"; then
12279          pre_test_object_deps_done=yes
12280          continue
12281        fi
12282
12283        if test "$pre_test_object_deps_done" = no; then
12284          if test -z "$predep_objects_CXX"; then
12285            predep_objects_CXX="$p"
12286          else
12287            predep_objects_CXX="$predep_objects_CXX $p"
12288          fi
12289        else
12290          if test -z "$postdep_objects_CXX"; then
12291            postdep_objects_CXX="$p"
12292          else
12293            postdep_objects_CXX="$postdep_objects_CXX $p"
12294          fi
12295        fi
12296        ;;
12297
12298     *) ;; # Ignore the rest.
12299
12300     esac
12301   done
12302
12303   # Clean up.
12304   rm -f a.out a.exe
12305 else
12306   echo "libtool.m4: error: problem compiling CXX test program"
12307 fi
12308
12309 $rm -f confest.$objext
12310
12311 compiler_lib_search_dirs_CXX=
12312 if test -n "$compiler_lib_search_path_CXX"; then
12313   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12314 fi
12315
12316 # PORTME: override above test on systems where it is broken
12317 case $host_os in
12318 interix[3-9]*)
12319   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12320   # hack all around it, let's just trust "g++" to DTRT.
12321   predep_objects_CXX=
12322   postdep_objects_CXX=
12323   postdeps_CXX=
12324   ;;
12325
12326 linux*)
12327   case `$CC -V 2>&1 | sed 5q` in
12328   *Sun\ C*)
12329     # Sun C++ 5.9
12330     #
12331     # The more standards-conforming stlport4 library is
12332     # incompatible with the Cstd library. Avoid specifying
12333     # it if it's in CXXFLAGS. Ignore libCrun as
12334     # -library=stlport4 depends on it.
12335     case " $CXX $CXXFLAGS " in
12336     *" -library=stlport4 "*)
12337       solaris_use_stlport4=yes
12338       ;;
12339     esac
12340     if test "$solaris_use_stlport4" != yes; then
12341       postdeps_CXX='-library=Cstd -library=Crun'
12342     fi
12343     ;;
12344   esac
12345   ;;
12346
12347 solaris*)
12348   case $cc_basename in
12349   CC*)
12350     # The more standards-conforming stlport4 library is
12351     # incompatible with the Cstd library. Avoid specifying
12352     # it if it's in CXXFLAGS. Ignore libCrun as
12353     # -library=stlport4 depends on it.
12354     case " $CXX $CXXFLAGS " in
12355     *" -library=stlport4 "*)
12356       solaris_use_stlport4=yes
12357       ;;
12358     esac
12359
12360     # Adding this requires a known-good setup of shared libraries for
12361     # Sun compiler versions before 5.6, else PIC objects from an old
12362     # archive will be linked into the output, leading to subtle bugs.
12363     if test "$solaris_use_stlport4" != yes; then
12364       postdeps_CXX='-library=Cstd -library=Crun'
12365     fi
12366     ;;
12367   esac
12368   ;;
12369 esac
12370
12371 case " $postdeps_CXX " in
12372 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12373 esac
12374
12375 lt_prog_compiler_wl_CXX=
12376 lt_prog_compiler_pic_CXX=
12377 lt_prog_compiler_static_CXX=
12378
12379 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12380 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12381
12382   # C++ specific cases for pic, static, wl, etc.
12383   if test "$GXX" = yes; then
12384     lt_prog_compiler_wl_CXX='-Wl,'
12385     lt_prog_compiler_static_CXX='-static'
12386
12387     case $host_os in
12388     aix*)
12389       # All AIX code is PIC.
12390       if test "$host_cpu" = ia64; then
12391         # AIX 5 now supports IA64 processor
12392         lt_prog_compiler_static_CXX='-Bstatic'
12393       fi
12394       ;;
12395     amigaos*)
12396       # FIXME: we need at least 68020 code to build shared libraries, but
12397       # adding the `-m68020' flag to GCC prevents building anything better,
12398       # like `-m68040'.
12399       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12400       ;;
12401     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12402       # PIC is the default for these OSes.
12403       ;;
12404     mingw* | cygwin* | os2* | pw32*)
12405       # This hack is so that the source file can tell whether it is being
12406       # built for inclusion in a dll (and should export symbols for example).
12407       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12408       # (--disable-auto-import) libraries
12409       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12410       ;;
12411     darwin* | rhapsody*)
12412       # PIC is the default on this platform
12413       # Common symbols not allowed in MH_DYLIB files
12414       lt_prog_compiler_pic_CXX='-fno-common'
12415       ;;
12416     *djgpp*)
12417       # DJGPP does not support shared libraries at all
12418       lt_prog_compiler_pic_CXX=
12419       ;;
12420     interix[3-9]*)
12421       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12422       # Instead, we relocate shared libraries at runtime.
12423       ;;
12424     sysv4*MP*)
12425       if test -d /usr/nec; then
12426         lt_prog_compiler_pic_CXX=-Kconform_pic
12427       fi
12428       ;;
12429     hpux*)
12430       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12431       # not for PA HP-UX.
12432       case $host_cpu in
12433       hppa*64*|ia64*)
12434         ;;
12435       *)
12436         lt_prog_compiler_pic_CXX='-fPIC'
12437         ;;
12438       esac
12439       ;;
12440     *)
12441       lt_prog_compiler_pic_CXX='-fPIC'
12442       ;;
12443     esac
12444   else
12445     case $host_os in
12446       aix[4-9]*)
12447         # All AIX code is PIC.
12448         if test "$host_cpu" = ia64; then
12449           # AIX 5 now supports IA64 processor
12450           lt_prog_compiler_static_CXX='-Bstatic'
12451         else
12452           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12453         fi
12454         ;;
12455       chorus*)
12456         case $cc_basename in
12457         cxch68*)
12458           # Green Hills C++ Compiler
12459           # _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"
12460           ;;
12461         esac
12462         ;;
12463        darwin*)
12464          # PIC is the default on this platform
12465          # Common symbols not allowed in MH_DYLIB files
12466          case $cc_basename in
12467            xlc*)
12468            lt_prog_compiler_pic_CXX='-qnocommon'
12469            lt_prog_compiler_wl_CXX='-Wl,'
12470            ;;
12471          esac
12472        ;;
12473       dgux*)
12474         case $cc_basename in
12475           ec++*)
12476             lt_prog_compiler_pic_CXX='-KPIC'
12477             ;;
12478           ghcx*)
12479             # Green Hills C++ Compiler
12480             lt_prog_compiler_pic_CXX='-pic'
12481             ;;
12482           *)
12483             ;;
12484         esac
12485         ;;
12486       freebsd* | dragonfly*)
12487         # FreeBSD uses GNU C++
12488         ;;
12489       hpux9* | hpux10* | hpux11*)
12490         case $cc_basename in
12491           CC*)
12492             lt_prog_compiler_wl_CXX='-Wl,'
12493             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12494             if test "$host_cpu" != ia64; then
12495               lt_prog_compiler_pic_CXX='+Z'
12496             fi
12497             ;;
12498           aCC*)
12499             lt_prog_compiler_wl_CXX='-Wl,'
12500             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12501             case $host_cpu in
12502             hppa*64*|ia64*)
12503               # +Z the default
12504               ;;
12505             *)
12506               lt_prog_compiler_pic_CXX='+Z'
12507               ;;
12508             esac
12509             ;;
12510           *)
12511             ;;
12512         esac
12513         ;;
12514       interix*)
12515         # This is c89, which is MS Visual C++ (no shared libs)
12516         # Anyone wants to do a port?
12517         ;;
12518       irix5* | irix6* | nonstopux*)
12519         case $cc_basename in
12520           CC*)
12521             lt_prog_compiler_wl_CXX='-Wl,'
12522             lt_prog_compiler_static_CXX='-non_shared'
12523             # CC pic flag -KPIC is the default.
12524             ;;
12525           *)
12526             ;;
12527         esac
12528         ;;
12529       linux* | k*bsd*-gnu)
12530         case $cc_basename in
12531           KCC*)
12532             # KAI C++ Compiler
12533             lt_prog_compiler_wl_CXX='--backend -Wl,'
12534             lt_prog_compiler_pic_CXX='-fPIC'
12535             ;;
12536           icpc* | ecpc*)
12537             # Intel C++
12538             lt_prog_compiler_wl_CXX='-Wl,'
12539             lt_prog_compiler_pic_CXX='-KPIC'
12540             lt_prog_compiler_static_CXX='-static'
12541             ;;
12542           pgCC* | pgcpp*)
12543             # Portland Group C++ compiler.
12544             lt_prog_compiler_wl_CXX='-Wl,'
12545             lt_prog_compiler_pic_CXX='-fpic'
12546             lt_prog_compiler_static_CXX='-Bstatic'
12547             ;;
12548           cxx*)
12549             # Compaq C++
12550             # Make sure the PIC flag is empty.  It appears that all Alpha
12551             # Linux and Compaq Tru64 Unix objects are PIC.
12552             lt_prog_compiler_pic_CXX=
12553             lt_prog_compiler_static_CXX='-non_shared'
12554             ;;
12555           *)
12556             case `$CC -V 2>&1 | sed 5q` in
12557             *Sun\ C*)
12558               # Sun C++ 5.9
12559               lt_prog_compiler_pic_CXX='-KPIC'
12560               lt_prog_compiler_static_CXX='-Bstatic'
12561               lt_prog_compiler_wl_CXX='-Qoption ld '
12562               ;;
12563             esac
12564             ;;
12565         esac
12566         ;;
12567       lynxos*)
12568         ;;
12569       m88k*)
12570         ;;
12571       mvs*)
12572         case $cc_basename in
12573           cxx*)
12574             lt_prog_compiler_pic_CXX='-W c,exportall'
12575             ;;
12576           *)
12577             ;;
12578         esac
12579         ;;
12580       netbsd* | netbsdelf*-gnu)
12581         ;;
12582       osf3* | osf4* | osf5*)
12583         case $cc_basename in
12584           KCC*)
12585             lt_prog_compiler_wl_CXX='--backend -Wl,'
12586             ;;
12587           RCC*)
12588             # Rational C++ 2.4.1
12589             lt_prog_compiler_pic_CXX='-pic'
12590             ;;
12591           cxx*)
12592             # Digital/Compaq C++
12593             lt_prog_compiler_wl_CXX='-Wl,'
12594             # Make sure the PIC flag is empty.  It appears that all Alpha
12595             # Linux and Compaq Tru64 Unix objects are PIC.
12596             lt_prog_compiler_pic_CXX=
12597             lt_prog_compiler_static_CXX='-non_shared'
12598             ;;
12599           *)
12600             ;;
12601         esac
12602         ;;
12603       psos*)
12604         ;;
12605       solaris*)
12606         case $cc_basename in
12607           CC*)
12608             # Sun C++ 4.2, 5.x and Centerline C++
12609             lt_prog_compiler_pic_CXX='-KPIC'
12610             lt_prog_compiler_static_CXX='-Bstatic'
12611             lt_prog_compiler_wl_CXX='-Qoption ld '
12612             ;;
12613           gcx*)
12614             # Green Hills C++ Compiler
12615             lt_prog_compiler_pic_CXX='-PIC'
12616             ;;
12617           *)
12618             ;;
12619         esac
12620         ;;
12621       sunos4*)
12622         case $cc_basename in
12623           CC*)
12624             # Sun C++ 4.x
12625             lt_prog_compiler_pic_CXX='-pic'
12626             lt_prog_compiler_static_CXX='-Bstatic'
12627             ;;
12628           lcc*)
12629             # Lucid
12630             lt_prog_compiler_pic_CXX='-pic'
12631             ;;
12632           *)
12633             ;;
12634         esac
12635         ;;
12636       tandem*)
12637         case $cc_basename in
12638           NCC*)
12639             # NonStop-UX NCC 3.20
12640             lt_prog_compiler_pic_CXX='-KPIC'
12641             ;;
12642           *)
12643             ;;
12644         esac
12645         ;;
12646       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12647         case $cc_basename in
12648           CC*)
12649             lt_prog_compiler_wl_CXX='-Wl,'
12650             lt_prog_compiler_pic_CXX='-KPIC'
12651             lt_prog_compiler_static_CXX='-Bstatic'
12652             ;;
12653         esac
12654         ;;
12655       vxworks*)
12656         ;;
12657       *)
12658         lt_prog_compiler_can_build_shared_CXX=no
12659         ;;
12660     esac
12661   fi
12662
12663 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12664 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12665
12666 #
12667 # Check to make sure the PIC flag actually works.
12668 #
12669 if test -n "$lt_prog_compiler_pic_CXX"; then
12670
12671 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12672 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12673 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12674   echo $ECHO_N "(cached) $ECHO_C" >&6
12675 else
12676   lt_cv_prog_compiler_pic_works_CXX=no
12677   ac_outfile=conftest.$ac_objext
12678    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12679    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12680    # Insert the option either (1) after the last *FLAGS variable, or
12681    # (2) before a word containing "conftest.", or (3) at the end.
12682    # Note that $ac_compile itself does not contain backslashes and begins
12683    # with a dollar sign (not a hyphen), so the echo should work correctly.
12684    # The option is referenced via a variable to avoid confusing sed.
12685    lt_compile=`echo "$ac_compile" | $SED \
12686    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12687    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12688    -e 's:$: $lt_compiler_flag:'`
12689    (eval echo "\"\$as_me:12689: $lt_compile\"" >&5)
12690    (eval "$lt_compile" 2>conftest.err)
12691    ac_status=$?
12692    cat conftest.err >&5
12693    echo "$as_me:12693: \$? = $ac_status" >&5
12694    if (exit $ac_status) && test -s "$ac_outfile"; then
12695      # The compiler can only warn and ignore the option if not recognized
12696      # So say no if there are warnings other than the usual output.
12697      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12698      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12699      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12700        lt_cv_prog_compiler_pic_works_CXX=yes
12701      fi
12702    fi
12703    $rm conftest*
12704
12705 fi
12706 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12707 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12708
12709 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12710     case $lt_prog_compiler_pic_CXX in
12711      "" | " "*) ;;
12712      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12713      esac
12714 else
12715     lt_prog_compiler_pic_CXX=
12716      lt_prog_compiler_can_build_shared_CXX=no
12717 fi
12718
12719 fi
12720 case $host_os in
12721   # For platforms which do not support PIC, -DPIC is meaningless:
12722   *djgpp*)
12723     lt_prog_compiler_pic_CXX=
12724     ;;
12725   *)
12726     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12727     ;;
12728 esac
12729
12730 #
12731 # Check to make sure the static flag actually works.
12732 #
12733 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12734 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12735 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12736 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12737   echo $ECHO_N "(cached) $ECHO_C" >&6
12738 else
12739   lt_cv_prog_compiler_static_works_CXX=no
12740    save_LDFLAGS="$LDFLAGS"
12741    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12742    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12743    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12744      # The linker can only warn and ignore the option if not recognized
12745      # So say no if there are warnings
12746      if test -s conftest.err; then
12747        # Append any errors to the config.log.
12748        cat conftest.err 1>&5
12749        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12750        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12751        if diff conftest.exp conftest.er2 >/dev/null; then
12752          lt_cv_prog_compiler_static_works_CXX=yes
12753        fi
12754      else
12755        lt_cv_prog_compiler_static_works_CXX=yes
12756      fi
12757    fi
12758    $rm -r conftest*
12759    LDFLAGS="$save_LDFLAGS"
12760
12761 fi
12762 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12763 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12764
12765 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12766     :
12767 else
12768     lt_prog_compiler_static_CXX=
12769 fi
12770
12771
12772 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12773 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12774 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12775   echo $ECHO_N "(cached) $ECHO_C" >&6
12776 else
12777   lt_cv_prog_compiler_c_o_CXX=no
12778    $rm -r conftest 2>/dev/null
12779    mkdir conftest
12780    cd conftest
12781    mkdir out
12782    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12783
12784    lt_compiler_flag="-o out/conftest2.$ac_objext"
12785    # Insert the option either (1) after the last *FLAGS variable, or
12786    # (2) before a word containing "conftest.", or (3) at the end.
12787    # Note that $ac_compile itself does not contain backslashes and begins
12788    # with a dollar sign (not a hyphen), so the echo should work correctly.
12789    lt_compile=`echo "$ac_compile" | $SED \
12790    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12791    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12792    -e 's:$: $lt_compiler_flag:'`
12793    (eval echo "\"\$as_me:12793: $lt_compile\"" >&5)
12794    (eval "$lt_compile" 2>out/conftest.err)
12795    ac_status=$?
12796    cat out/conftest.err >&5
12797    echo "$as_me:12797: \$? = $ac_status" >&5
12798    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12799    then
12800      # The compiler can only warn and ignore the option if not recognized
12801      # So say no if there are warnings
12802      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12803      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12804      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12805        lt_cv_prog_compiler_c_o_CXX=yes
12806      fi
12807    fi
12808    chmod u+w . 2>&5
12809    $rm conftest*
12810    # SGI C++ compiler will create directory out/ii_files/ for
12811    # template instantiation
12812    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12813    $rm out/* && rmdir out
12814    cd ..
12815    rmdir conftest
12816    $rm conftest*
12817
12818 fi
12819 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12820 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12821
12822
12823 hard_links="nottested"
12824 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12825   # do not overwrite the value of need_locks provided by the user
12826   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12827 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12828   hard_links=yes
12829   $rm conftest*
12830   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12831   touch conftest.a
12832   ln conftest.a conftest.b 2>&5 || hard_links=no
12833   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12834   { echo "$as_me:$LINENO: result: $hard_links" >&5
12835 echo "${ECHO_T}$hard_links" >&6; }
12836   if test "$hard_links" = no; then
12837     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12838 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12839     need_locks=warn
12840   fi
12841 else
12842   need_locks=no
12843 fi
12844
12845 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12846 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12847
12848   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12849   case $host_os in
12850   aix[4-9]*)
12851     # If we're using GNU nm, then we don't want the "-C" option.
12852     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12853     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12854       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'
12855     else
12856       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'
12857     fi
12858     ;;
12859   pw32*)
12860     export_symbols_cmds_CXX="$ltdll_cmds"
12861   ;;
12862   cygwin* | mingw*)
12863     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'
12864   ;;
12865   linux* | k*bsd*-gnu)
12866     link_all_deplibs_CXX=no
12867   ;;
12868   *)
12869     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12870   ;;
12871   esac
12872   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12873
12874 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12875 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12876 test "$ld_shlibs_CXX" = no && can_build_shared=no
12877
12878 #
12879 # Do we need to explicitly link libc?
12880 #
12881 case "x$archive_cmds_need_lc_CXX" in
12882 x|xyes)
12883   # Assume -lc should be added
12884   archive_cmds_need_lc_CXX=yes
12885
12886   if test "$enable_shared" = yes && test "$GCC" = yes; then
12887     case $archive_cmds_CXX in
12888     *'~'*)
12889       # FIXME: we may have to deal with multi-command sequences.
12890       ;;
12891     '$CC '*)
12892       # Test whether the compiler implicitly links with -lc since on some
12893       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12894       # to ld, don't add -lc before -lgcc.
12895       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12896 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12897       $rm conftest*
12898       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12899
12900       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12901   (eval $ac_compile) 2>&5
12902   ac_status=$?
12903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904   (exit $ac_status); } 2>conftest.err; then
12905         soname=conftest
12906         lib=conftest
12907         libobjs=conftest.$ac_objext
12908         deplibs=
12909         wl=$lt_prog_compiler_wl_CXX
12910         pic_flag=$lt_prog_compiler_pic_CXX
12911         compiler_flags=-v
12912         linker_flags=-v
12913         verstring=
12914         output_objdir=.
12915         libname=conftest
12916         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12917         allow_undefined_flag_CXX=
12918         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12919   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12920   ac_status=$?
12921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922   (exit $ac_status); }
12923         then
12924           archive_cmds_need_lc_CXX=no
12925         else
12926           archive_cmds_need_lc_CXX=yes
12927         fi
12928         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12929       else
12930         cat conftest.err 1>&5
12931       fi
12932       $rm conftest*
12933       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12934 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12935       ;;
12936     esac
12937   fi
12938   ;;
12939 esac
12940
12941 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12942 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12943 library_names_spec=
12944 libname_spec='lib$name'
12945 soname_spec=
12946 shrext_cmds=".so"
12947 postinstall_cmds=
12948 postuninstall_cmds=
12949 finish_cmds=
12950 finish_eval=
12951 shlibpath_var=
12952 shlibpath_overrides_runpath=unknown
12953 version_type=none
12954 dynamic_linker="$host_os ld.so"
12955 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12956
12957 need_lib_prefix=unknown
12958 hardcode_into_libs=no
12959
12960 # when you set need_version to no, make sure it does not cause -set_version
12961 # flags to be left without arguments
12962 need_version=unknown
12963
12964 case $host_os in
12965 aix3*)
12966   version_type=linux
12967   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12968   shlibpath_var=LIBPATH
12969
12970   # AIX 3 has no versioning support, so we append a major version to the name.
12971   soname_spec='${libname}${release}${shared_ext}$major'
12972   ;;
12973
12974 aix[4-9]*)
12975   version_type=linux
12976   need_lib_prefix=no
12977   need_version=no
12978   hardcode_into_libs=yes
12979   if test "$host_cpu" = ia64; then
12980     # AIX 5 supports IA64
12981     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12982     shlibpath_var=LD_LIBRARY_PATH
12983   else
12984     # With GCC up to 2.95.x, collect2 would create an import file
12985     # for dependence libraries.  The import file would start with
12986     # the line `#! .'.  This would cause the generated library to
12987     # depend on `.', always an invalid library.  This was fixed in
12988     # development snapshots of GCC prior to 3.0.
12989     case $host_os in
12990       aix4 | aix4.[01] | aix4.[01].*)
12991       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12992            echo ' yes '
12993            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12994         :
12995       else
12996         can_build_shared=no
12997       fi
12998       ;;
12999     esac
13000     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13001     # soname into executable. Probably we can add versioning support to
13002     # collect2, so additional links can be useful in future.
13003     if test "$aix_use_runtimelinking" = yes; then
13004       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13005       # instead of lib<name>.a to let people know that these are not
13006       # typical AIX shared libraries.
13007       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13008     else
13009       # We preserve .a as extension for shared libraries through AIX4.2
13010       # and later when we are not doing run time linking.
13011       library_names_spec='${libname}${release}.a $libname.a'
13012       soname_spec='${libname}${release}${shared_ext}$major'
13013     fi
13014     shlibpath_var=LIBPATH
13015   fi
13016   ;;
13017
13018 amigaos*)
13019   library_names_spec='$libname.ixlibrary $libname.a'
13020   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13021   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'
13022   ;;
13023
13024 beos*)
13025   library_names_spec='${libname}${shared_ext}'
13026   dynamic_linker="$host_os ld.so"
13027   shlibpath_var=LIBRARY_PATH
13028   ;;
13029
13030 bsdi[45]*)
13031   version_type=linux
13032   need_version=no
13033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13034   soname_spec='${libname}${release}${shared_ext}$major'
13035   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13036   shlibpath_var=LD_LIBRARY_PATH
13037   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13038   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13039   # the default ld.so.conf also contains /usr/contrib/lib and
13040   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13041   # libtool to hard-code these into programs
13042   ;;
13043
13044 cygwin* | mingw* | pw32*)
13045   version_type=windows
13046   shrext_cmds=".dll"
13047   need_version=no
13048   need_lib_prefix=no
13049
13050   case $GCC,$host_os in
13051   yes,cygwin* | yes,mingw* | yes,pw32*)
13052     library_names_spec='$libname.dll.a'
13053     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13054     postinstall_cmds='base_file=`basename \${file}`~
13055       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13056       dldir=$destdir/`dirname \$dlpath`~
13057       test -d \$dldir || mkdir -p \$dldir~
13058       $install_prog $dir/$dlname \$dldir/$dlname~
13059       chmod a+x \$dldir/$dlname'
13060     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13061       dlpath=$dir/\$dldll~
13062        $rm \$dlpath'
13063     shlibpath_overrides_runpath=yes
13064
13065     case $host_os in
13066     cygwin*)
13067       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13068       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13069       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13070       ;;
13071     mingw*)
13072       # MinGW DLLs use traditional 'lib' prefix
13073       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13074       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13075       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13076         # It is most probably a Windows format PATH printed by
13077         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13078         # path with ; separators, and with drive letters. We can handle the
13079         # drive letters (cygwin fileutils understands them), so leave them,
13080         # especially as we might pass files found there to a mingw objdump,
13081         # which wouldn't understand a cygwinified path. Ahh.
13082         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13083       else
13084         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13085       fi
13086       ;;
13087     pw32*)
13088       # pw32 DLLs use 'pw' prefix rather than 'lib'
13089       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13090       ;;
13091     esac
13092     ;;
13093
13094   *)
13095     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13096     ;;
13097   esac
13098   dynamic_linker='Win32 ld.exe'
13099   # FIXME: first we should search . and the directory the executable is in
13100   shlibpath_var=PATH
13101   ;;
13102
13103 darwin* | rhapsody*)
13104   dynamic_linker="$host_os dyld"
13105   version_type=darwin
13106   need_lib_prefix=no
13107   need_version=no
13108   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13109   soname_spec='${libname}${release}${major}$shared_ext'
13110   shlibpath_overrides_runpath=yes
13111   shlibpath_var=DYLD_LIBRARY_PATH
13112   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13113
13114   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13115   ;;
13116
13117 dgux*)
13118   version_type=linux
13119   need_lib_prefix=no
13120   need_version=no
13121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13122   soname_spec='${libname}${release}${shared_ext}$major'
13123   shlibpath_var=LD_LIBRARY_PATH
13124   ;;
13125
13126 freebsd1*)
13127   dynamic_linker=no
13128   ;;
13129
13130 freebsd* | dragonfly*)
13131   # DragonFly does not have aout.  When/if they implement a new
13132   # versioning mechanism, adjust this.
13133   if test -x /usr/bin/objformat; then
13134     objformat=`/usr/bin/objformat`
13135   else
13136     case $host_os in
13137     freebsd[123]*) objformat=aout ;;
13138     *) objformat=elf ;;
13139     esac
13140   fi
13141   version_type=freebsd-$objformat
13142   case $version_type in
13143     freebsd-elf*)
13144       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13145       need_version=no
13146       need_lib_prefix=no
13147       ;;
13148     freebsd-*)
13149       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13150       need_version=yes
13151       ;;
13152   esac
13153   shlibpath_var=LD_LIBRARY_PATH
13154   case $host_os in
13155   freebsd2*)
13156     shlibpath_overrides_runpath=yes
13157     ;;
13158   freebsd3.[01]* | freebsdelf3.[01]*)
13159     shlibpath_overrides_runpath=yes
13160     hardcode_into_libs=yes
13161     ;;
13162   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13163   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13164     shlibpath_overrides_runpath=no
13165     hardcode_into_libs=yes
13166     ;;
13167   *) # from 4.6 on, and DragonFly
13168     shlibpath_overrides_runpath=yes
13169     hardcode_into_libs=yes
13170     ;;
13171   esac
13172   ;;
13173
13174 gnu*)
13175   version_type=linux
13176   need_lib_prefix=no
13177   need_version=no
13178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13179   soname_spec='${libname}${release}${shared_ext}$major'
13180   shlibpath_var=LD_LIBRARY_PATH
13181   hardcode_into_libs=yes
13182   ;;
13183
13184 hpux9* | hpux10* | hpux11*)
13185   # Give a soname corresponding to the major version so that dld.sl refuses to
13186   # link against other versions.
13187   version_type=sunos
13188   need_lib_prefix=no
13189   need_version=no
13190   case $host_cpu in
13191   ia64*)
13192     shrext_cmds='.so'
13193     hardcode_into_libs=yes
13194     dynamic_linker="$host_os dld.so"
13195     shlibpath_var=LD_LIBRARY_PATH
13196     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13197     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13198     soname_spec='${libname}${release}${shared_ext}$major'
13199     if test "X$HPUX_IA64_MODE" = X32; then
13200       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13201     else
13202       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13203     fi
13204     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13205     ;;
13206    hppa*64*)
13207      shrext_cmds='.sl'
13208      hardcode_into_libs=yes
13209      dynamic_linker="$host_os dld.sl"
13210      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13211      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13212      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13213      soname_spec='${libname}${release}${shared_ext}$major'
13214      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13215      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13216      ;;
13217    *)
13218     shrext_cmds='.sl'
13219     dynamic_linker="$host_os dld.sl"
13220     shlibpath_var=SHLIB_PATH
13221     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13222     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13223     soname_spec='${libname}${release}${shared_ext}$major'
13224     ;;
13225   esac
13226   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13227   postinstall_cmds='chmod 555 $lib'
13228   ;;
13229
13230 interix[3-9]*)
13231   version_type=linux
13232   need_lib_prefix=no
13233   need_version=no
13234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13235   soname_spec='${libname}${release}${shared_ext}$major'
13236   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13237   shlibpath_var=LD_LIBRARY_PATH
13238   shlibpath_overrides_runpath=no
13239   hardcode_into_libs=yes
13240   ;;
13241
13242 irix5* | irix6* | nonstopux*)
13243   case $host_os in
13244     nonstopux*) version_type=nonstopux ;;
13245     *)
13246         if test "$lt_cv_prog_gnu_ld" = yes; then
13247                 version_type=linux
13248         else
13249                 version_type=irix
13250         fi ;;
13251   esac
13252   need_lib_prefix=no
13253   need_version=no
13254   soname_spec='${libname}${release}${shared_ext}$major'
13255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13256   case $host_os in
13257   irix5* | nonstopux*)
13258     libsuff= shlibsuff=
13259     ;;
13260   *)
13261     case $LD in # libtool.m4 will add one of these switches to LD
13262     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13263       libsuff= shlibsuff= libmagic=32-bit;;
13264     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13265       libsuff=32 shlibsuff=N32 libmagic=N32;;
13266     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13267       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13268     *) libsuff= shlibsuff= libmagic=never-match;;
13269     esac
13270     ;;
13271   esac
13272   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13273   shlibpath_overrides_runpath=no
13274   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13275   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13276   hardcode_into_libs=yes
13277   ;;
13278
13279 # No shared lib support for Linux oldld, aout, or coff.
13280 linux*oldld* | linux*aout* | linux*coff*)
13281   dynamic_linker=no
13282   ;;
13283
13284 # This must be Linux ELF.
13285 linux* | k*bsd*-gnu)
13286   version_type=linux
13287   need_lib_prefix=no
13288   need_version=no
13289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13290   soname_spec='${libname}${release}${shared_ext}$major'
13291   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13292   shlibpath_var=LD_LIBRARY_PATH
13293   shlibpath_overrides_runpath=no
13294   # This implies no fast_install, which is unacceptable.
13295   # Some rework will be needed to allow for fast_install
13296   # before this can be enabled.
13297   hardcode_into_libs=yes
13298
13299   # Append ld.so.conf contents to the search path
13300   if test -f /etc/ld.so.conf; then
13301     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' ' '`
13302     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13303   fi
13304
13305   # We used to test for /lib/ld.so.1 and disable shared libraries on
13306   # powerpc, because MkLinux only supported shared libraries with the
13307   # GNU dynamic linker.  Since this was broken with cross compilers,
13308   # most powerpc-linux boxes support dynamic linking these days and
13309   # people can always --disable-shared, the test was removed, and we
13310   # assume the GNU/Linux dynamic linker is in use.
13311   dynamic_linker='GNU/Linux ld.so'
13312   ;;
13313
13314 netbsdelf*-gnu)
13315   version_type=linux
13316   need_lib_prefix=no
13317   need_version=no
13318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13319   soname_spec='${libname}${release}${shared_ext}$major'
13320   shlibpath_var=LD_LIBRARY_PATH
13321   shlibpath_overrides_runpath=no
13322   hardcode_into_libs=yes
13323   dynamic_linker='NetBSD ld.elf_so'
13324   ;;
13325
13326 netbsd*)
13327   version_type=sunos
13328   need_lib_prefix=no
13329   need_version=no
13330   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13331     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13332     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13333     dynamic_linker='NetBSD (a.out) ld.so'
13334   else
13335     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13336     soname_spec='${libname}${release}${shared_ext}$major'
13337     dynamic_linker='NetBSD ld.elf_so'
13338   fi
13339   shlibpath_var=LD_LIBRARY_PATH
13340   shlibpath_overrides_runpath=yes
13341   hardcode_into_libs=yes
13342   ;;
13343
13344 newsos6)
13345   version_type=linux
13346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13347   shlibpath_var=LD_LIBRARY_PATH
13348   shlibpath_overrides_runpath=yes
13349   ;;
13350
13351 nto-qnx*)
13352   version_type=linux
13353   need_lib_prefix=no
13354   need_version=no
13355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13356   soname_spec='${libname}${release}${shared_ext}$major'
13357   shlibpath_var=LD_LIBRARY_PATH
13358   shlibpath_overrides_runpath=yes
13359   ;;
13360
13361 openbsd*)
13362   version_type=sunos
13363   sys_lib_dlsearch_path_spec="/usr/lib"
13364   need_lib_prefix=no
13365   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13366   case $host_os in
13367     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13368     *)                         need_version=no  ;;
13369   esac
13370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13371   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13372   shlibpath_var=LD_LIBRARY_PATH
13373   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13374     case $host_os in
13375       openbsd2.[89] | openbsd2.[89].*)
13376         shlibpath_overrides_runpath=no
13377         ;;
13378       *)
13379         shlibpath_overrides_runpath=yes
13380         ;;
13381       esac
13382   else
13383     shlibpath_overrides_runpath=yes
13384   fi
13385   ;;
13386
13387 os2*)
13388   libname_spec='$name'
13389   shrext_cmds=".dll"
13390   need_lib_prefix=no
13391   library_names_spec='$libname${shared_ext} $libname.a'
13392   dynamic_linker='OS/2 ld.exe'
13393   shlibpath_var=LIBPATH
13394   ;;
13395
13396 osf3* | osf4* | osf5*)
13397   version_type=osf
13398   need_lib_prefix=no
13399   need_version=no
13400   soname_spec='${libname}${release}${shared_ext}$major'
13401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13402   shlibpath_var=LD_LIBRARY_PATH
13403   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13404   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13405   ;;
13406
13407 rdos*)
13408   dynamic_linker=no
13409   ;;
13410
13411 solaris*)
13412   version_type=linux
13413   need_lib_prefix=no
13414   need_version=no
13415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13416   soname_spec='${libname}${release}${shared_ext}$major'
13417   shlibpath_var=LD_LIBRARY_PATH
13418   shlibpath_overrides_runpath=yes
13419   hardcode_into_libs=yes
13420   # ldd complains unless libraries are executable
13421   postinstall_cmds='chmod +x $lib'
13422   ;;
13423
13424 sunos4*)
13425   version_type=sunos
13426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13427   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13428   shlibpath_var=LD_LIBRARY_PATH
13429   shlibpath_overrides_runpath=yes
13430   if test "$with_gnu_ld" = yes; then
13431     need_lib_prefix=no
13432   fi
13433   need_version=yes
13434   ;;
13435
13436 sysv4 | sysv4.3*)
13437   version_type=linux
13438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13439   soname_spec='${libname}${release}${shared_ext}$major'
13440   shlibpath_var=LD_LIBRARY_PATH
13441   case $host_vendor in
13442     sni)
13443       shlibpath_overrides_runpath=no
13444       need_lib_prefix=no
13445       export_dynamic_flag_spec='${wl}-Blargedynsym'
13446       runpath_var=LD_RUN_PATH
13447       ;;
13448     siemens)
13449       need_lib_prefix=no
13450       ;;
13451     motorola)
13452       need_lib_prefix=no
13453       need_version=no
13454       shlibpath_overrides_runpath=no
13455       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13456       ;;
13457   esac
13458   ;;
13459
13460 sysv4*MP*)
13461   if test -d /usr/nec ;then
13462     version_type=linux
13463     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13464     soname_spec='$libname${shared_ext}.$major'
13465     shlibpath_var=LD_LIBRARY_PATH
13466   fi
13467   ;;
13468
13469 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13470   version_type=freebsd-elf
13471   need_lib_prefix=no
13472   need_version=no
13473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13474   soname_spec='${libname}${release}${shared_ext}$major'
13475   shlibpath_var=LD_LIBRARY_PATH
13476   hardcode_into_libs=yes
13477   if test "$with_gnu_ld" = yes; then
13478     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13479     shlibpath_overrides_runpath=no
13480   else
13481     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13482     shlibpath_overrides_runpath=yes
13483     case $host_os in
13484       sco3.2v5*)
13485         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13486         ;;
13487     esac
13488   fi
13489   sys_lib_dlsearch_path_spec='/usr/lib'
13490   ;;
13491
13492 uts4*)
13493   version_type=linux
13494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13495   soname_spec='${libname}${release}${shared_ext}$major'
13496   shlibpath_var=LD_LIBRARY_PATH
13497   ;;
13498
13499 *)
13500   dynamic_linker=no
13501   ;;
13502 esac
13503 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13504 echo "${ECHO_T}$dynamic_linker" >&6; }
13505 test "$dynamic_linker" = no && can_build_shared=no
13506
13507 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13508   echo $ECHO_N "(cached) $ECHO_C" >&6
13509 else
13510   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13511 fi
13512
13513 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13514 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13515   echo $ECHO_N "(cached) $ECHO_C" >&6
13516 else
13517   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13518 fi
13519
13520 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13521
13522 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13523 if test "$GCC" = yes; then
13524   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13525 fi
13526
13527 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13528 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13529 hardcode_action_CXX=
13530 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13531    test -n "$runpath_var_CXX" || \
13532    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13533
13534   # We can hardcode non-existant directories.
13535   if test "$hardcode_direct_CXX" != no &&
13536      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13537      # have to relink, otherwise we might link with an installed library
13538      # when we should be linking with a yet-to-be-installed one
13539      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13540      test "$hardcode_minus_L_CXX" != no; then
13541     # Linking always hardcodes the temporary library directory.
13542     hardcode_action_CXX=relink
13543   else
13544     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13545     hardcode_action_CXX=immediate
13546   fi
13547 else
13548   # We cannot hardcode anything, or else we can only hardcode existing
13549   # directories.
13550   hardcode_action_CXX=unsupported
13551 fi
13552 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13553 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13554
13555 if test "$hardcode_action_CXX" = relink; then
13556   # Fast installation is not supported
13557   enable_fast_install=no
13558 elif test "$shlibpath_overrides_runpath" = yes ||
13559      test "$enable_shared" = no; then
13560   # Fast installation is not necessary
13561   enable_fast_install=needless
13562 fi
13563
13564
13565 # The else clause should only fire when bootstrapping the
13566 # libtool distribution, otherwise you forgot to ship ltmain.sh
13567 # with your package, and you will get complaints that there are
13568 # no rules to generate ltmain.sh.
13569 if test -f "$ltmain"; then
13570   # See if we are running on zsh, and set the options which allow our commands through
13571   # without removal of \ escapes.
13572   if test -n "${ZSH_VERSION+set}" ; then
13573     setopt NO_GLOB_SUBST
13574   fi
13575   # Now quote all the things that may contain metacharacters while being
13576   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13577   # variables and quote the copies for generation of the libtool script.
13578   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13579     SED SHELL STRIP \
13580     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13581     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13582     deplibs_check_method reload_flag reload_cmds need_locks \
13583     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13584     lt_cv_sys_global_symbol_to_c_name_address \
13585     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13586     old_postinstall_cmds old_postuninstall_cmds \
13587     compiler_CXX \
13588     CC_CXX \
13589     LD_CXX \
13590     lt_prog_compiler_wl_CXX \
13591     lt_prog_compiler_pic_CXX \
13592     lt_prog_compiler_static_CXX \
13593     lt_prog_compiler_no_builtin_flag_CXX \
13594     export_dynamic_flag_spec_CXX \
13595     thread_safe_flag_spec_CXX \
13596     whole_archive_flag_spec_CXX \
13597     enable_shared_with_static_runtimes_CXX \
13598     old_archive_cmds_CXX \
13599     old_archive_from_new_cmds_CXX \
13600     predep_objects_CXX \
13601     postdep_objects_CXX \
13602     predeps_CXX \
13603     postdeps_CXX \
13604     compiler_lib_search_path_CXX \
13605     compiler_lib_search_dirs_CXX \
13606     archive_cmds_CXX \
13607     archive_expsym_cmds_CXX \
13608     postinstall_cmds_CXX \
13609     postuninstall_cmds_CXX \
13610     old_archive_from_expsyms_cmds_CXX \
13611     allow_undefined_flag_CXX \
13612     no_undefined_flag_CXX \
13613     export_symbols_cmds_CXX \
13614     hardcode_libdir_flag_spec_CXX \
13615     hardcode_libdir_flag_spec_ld_CXX \
13616     hardcode_libdir_separator_CXX \
13617     hardcode_automatic_CXX \
13618     module_cmds_CXX \
13619     module_expsym_cmds_CXX \
13620     lt_cv_prog_compiler_c_o_CXX \
13621     fix_srcfile_path_CXX \
13622     exclude_expsyms_CXX \
13623     include_expsyms_CXX; do
13624
13625     case $var in
13626     old_archive_cmds_CXX | \
13627     old_archive_from_new_cmds_CXX | \
13628     archive_cmds_CXX | \
13629     archive_expsym_cmds_CXX | \
13630     module_cmds_CXX | \
13631     module_expsym_cmds_CXX | \
13632     old_archive_from_expsyms_cmds_CXX | \
13633     export_symbols_cmds_CXX | \
13634     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13635     postinstall_cmds | postuninstall_cmds | \
13636     old_postinstall_cmds | old_postuninstall_cmds | \
13637     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13638       # Double-quote double-evaled strings.
13639       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13640       ;;
13641     *)
13642       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13643       ;;
13644     esac
13645   done
13646
13647   case $lt_echo in
13648   *'\$0 --fallback-echo"')
13649     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13650     ;;
13651   esac
13652
13653 cfgfile="$ofile"
13654
13655   cat <<__EOF__ >> "$cfgfile"
13656 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13657
13658 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13659
13660 # Shell to use when invoking shell scripts.
13661 SHELL=$lt_SHELL
13662
13663 # Whether or not to build shared libraries.
13664 build_libtool_libs=$enable_shared
13665
13666 # Whether or not to build static libraries.
13667 build_old_libs=$enable_static
13668
13669 # Whether or not to add -lc for building shared libraries.
13670 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13671
13672 # Whether or not to disallow shared libs when runtime libs are static
13673 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13674
13675 # Whether or not to optimize for fast installation.
13676 fast_install=$enable_fast_install
13677
13678 # The host system.
13679 host_alias=$host_alias
13680 host=$host
13681 host_os=$host_os
13682
13683 # The build system.
13684 build_alias=$build_alias
13685 build=$build
13686 build_os=$build_os
13687
13688 # An echo program that does not interpret backslashes.
13689 echo=$lt_echo
13690
13691 # The archiver.
13692 AR=$lt_AR
13693 AR_FLAGS=$lt_AR_FLAGS
13694
13695 # A C compiler.
13696 LTCC=$lt_LTCC
13697
13698 # LTCC compiler flags.
13699 LTCFLAGS=$lt_LTCFLAGS
13700
13701 # A language-specific compiler.
13702 CC=$lt_compiler_CXX
13703
13704 # Is the compiler the GNU C compiler?
13705 with_gcc=$GCC_CXX
13706
13707 # An ERE matcher.
13708 EGREP=$lt_EGREP
13709
13710 # The linker used to build libraries.
13711 LD=$lt_LD_CXX
13712
13713 # Whether we need hard or soft links.
13714 LN_S=$lt_LN_S
13715
13716 # A BSD-compatible nm program.
13717 NM=$lt_NM
13718
13719 # A symbol stripping program
13720 STRIP=$lt_STRIP
13721
13722 # Used to examine libraries when file_magic_cmd begins "file"
13723 MAGIC_CMD=$MAGIC_CMD
13724
13725 # Used on cygwin: DLL creation program.
13726 DLLTOOL="$DLLTOOL"
13727
13728 # Used on cygwin: object dumper.
13729 OBJDUMP="$OBJDUMP"
13730
13731 # Used on cygwin: assembler.
13732 AS="$AS"
13733
13734 # The name of the directory that contains temporary libtool files.
13735 objdir=$objdir
13736
13737 # How to create reloadable object files.
13738 reload_flag=$lt_reload_flag
13739 reload_cmds=$lt_reload_cmds
13740
13741 # How to pass a linker flag through the compiler.
13742 wl=$lt_lt_prog_compiler_wl_CXX
13743
13744 # Object file suffix (normally "o").
13745 objext="$ac_objext"
13746
13747 # Old archive suffix (normally "a").
13748 libext="$libext"
13749
13750 # Shared library suffix (normally ".so").
13751 shrext_cmds='$shrext_cmds'
13752
13753 # Executable file suffix (normally "").
13754 exeext="$exeext"
13755
13756 # Additional compiler flags for building library objects.
13757 pic_flag=$lt_lt_prog_compiler_pic_CXX
13758 pic_mode=$pic_mode
13759
13760 # What is the maximum length of a command?
13761 max_cmd_len=$lt_cv_sys_max_cmd_len
13762
13763 # Does compiler simultaneously support -c and -o options?
13764 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13765
13766 # Must we lock files when doing compilation?
13767 need_locks=$lt_need_locks
13768
13769 # Do we need the lib prefix for modules?
13770 need_lib_prefix=$need_lib_prefix
13771
13772 # Do we need a version for libraries?
13773 need_version=$need_version
13774
13775 # Whether dlopen is supported.
13776 dlopen_support=$enable_dlopen
13777
13778 # Whether dlopen of programs is supported.
13779 dlopen_self=$enable_dlopen_self
13780
13781 # Whether dlopen of statically linked programs is supported.
13782 dlopen_self_static=$enable_dlopen_self_static
13783
13784 # Compiler flag to prevent dynamic linking.
13785 link_static_flag=$lt_lt_prog_compiler_static_CXX
13786
13787 # Compiler flag to turn off builtin functions.
13788 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13789
13790 # Compiler flag to allow reflexive dlopens.
13791 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13792
13793 # Compiler flag to generate shared objects directly from archives.
13794 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13795
13796 # Compiler flag to generate thread-safe objects.
13797 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13798
13799 # Library versioning type.
13800 version_type=$version_type
13801
13802 # Format of library name prefix.
13803 libname_spec=$lt_libname_spec
13804
13805 # List of archive names.  First name is the real one, the rest are links.
13806 # The last name is the one that the linker finds with -lNAME.
13807 library_names_spec=$lt_library_names_spec
13808
13809 # The coded name of the library, if different from the real name.
13810 soname_spec=$lt_soname_spec
13811
13812 # Commands used to build and install an old-style archive.
13813 RANLIB=$lt_RANLIB
13814 old_archive_cmds=$lt_old_archive_cmds_CXX
13815 old_postinstall_cmds=$lt_old_postinstall_cmds
13816 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13817
13818 # Create an old-style archive from a shared archive.
13819 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13820
13821 # Create a temporary old-style archive to link instead of a shared archive.
13822 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13823
13824 # Commands used to build and install a shared archive.
13825 archive_cmds=$lt_archive_cmds_CXX
13826 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13827 postinstall_cmds=$lt_postinstall_cmds
13828 postuninstall_cmds=$lt_postuninstall_cmds
13829
13830 # Commands used to build a loadable module (assumed same as above if empty)
13831 module_cmds=$lt_module_cmds_CXX
13832 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13833
13834 # Commands to strip libraries.
13835 old_striplib=$lt_old_striplib
13836 striplib=$lt_striplib
13837
13838 # Dependencies to place before the objects being linked to create a
13839 # shared library.
13840 predep_objects=$lt_predep_objects_CXX
13841
13842 # Dependencies to place after the objects being linked to create a
13843 # shared library.
13844 postdep_objects=$lt_postdep_objects_CXX
13845
13846 # Dependencies to place before the objects being linked to create a
13847 # shared library.
13848 predeps=$lt_predeps_CXX
13849
13850 # Dependencies to place after the objects being linked to create a
13851 # shared library.
13852 postdeps=$lt_postdeps_CXX
13853
13854 # The directories searched by this compiler when creating a shared
13855 # library
13856 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13857
13858 # The library search path used internally by the compiler when linking
13859 # a shared library.
13860 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13861
13862 # Method to check whether dependent libraries are shared objects.
13863 deplibs_check_method=$lt_deplibs_check_method
13864
13865 # Command to use when deplibs_check_method == file_magic.
13866 file_magic_cmd=$lt_file_magic_cmd
13867
13868 # Flag that allows shared libraries with undefined symbols to be built.
13869 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13870
13871 # Flag that forces no undefined symbols.
13872 no_undefined_flag=$lt_no_undefined_flag_CXX
13873
13874 # Commands used to finish a libtool library installation in a directory.
13875 finish_cmds=$lt_finish_cmds
13876
13877 # Same as above, but a single script fragment to be evaled but not shown.
13878 finish_eval=$lt_finish_eval
13879
13880 # Take the output of nm and produce a listing of raw symbols and C names.
13881 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13882
13883 # Transform the output of nm in a proper C declaration
13884 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13885
13886 # Transform the output of nm in a C name address pair
13887 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13888
13889 # This is the shared library runtime path variable.
13890 runpath_var=$runpath_var
13891
13892 # This is the shared library path variable.
13893 shlibpath_var=$shlibpath_var
13894
13895 # Is shlibpath searched before the hard-coded library search path?
13896 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13897
13898 # How to hardcode a shared library path into an executable.
13899 hardcode_action=$hardcode_action_CXX
13900
13901 # Whether we should hardcode library paths into libraries.
13902 hardcode_into_libs=$hardcode_into_libs
13903
13904 # Flag to hardcode \$libdir into a binary during linking.
13905 # This must work even if \$libdir does not exist.
13906 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13907
13908 # If ld is used when linking, flag to hardcode \$libdir into
13909 # a binary during linking. This must work even if \$libdir does
13910 # not exist.
13911 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13912
13913 # Whether we need a single -rpath flag with a separated argument.
13914 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13915
13916 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13917 # resulting binary.
13918 hardcode_direct=$hardcode_direct_CXX
13919
13920 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13921 # resulting binary.
13922 hardcode_minus_L=$hardcode_minus_L_CXX
13923
13924 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13925 # the resulting binary.
13926 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13927
13928 # Set to yes if building a shared library automatically hardcodes DIR into the library
13929 # and all subsequent libraries and executables linked against it.
13930 hardcode_automatic=$hardcode_automatic_CXX
13931
13932 # Variables whose values should be saved in libtool wrapper scripts and
13933 # restored at relink time.
13934 variables_saved_for_relink="$variables_saved_for_relink"
13935
13936 # Whether libtool must link a program against all its dependency libraries.
13937 link_all_deplibs=$link_all_deplibs_CXX
13938
13939 # Compile-time system search path for libraries
13940 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13941
13942 # Run-time system search path for libraries
13943 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13944
13945 # Fix the shell variable \$srcfile for the compiler.
13946 fix_srcfile_path=$lt_fix_srcfile_path
13947
13948 # Set to yes if exported symbols are required.
13949 always_export_symbols=$always_export_symbols_CXX
13950
13951 # The commands to list exported symbols.
13952 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13953
13954 # The commands to extract the exported symbol list from a shared archive.
13955 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13956
13957 # Symbols that should not be listed in the preloaded symbols.
13958 exclude_expsyms=$lt_exclude_expsyms_CXX
13959
13960 # Symbols that must always be exported.
13961 include_expsyms=$lt_include_expsyms_CXX
13962
13963 # ### END LIBTOOL TAG CONFIG: $tagname
13964
13965 __EOF__
13966
13967
13968 else
13969   # If there is no Makefile yet, we rely on a make rule to execute
13970   # `config.status --recheck' to rerun these tests and create the
13971   # libtool script then.
13972   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13973   if test -f "$ltmain_in"; then
13974     test -f Makefile && make "$ltmain"
13975   fi
13976 fi
13977
13978
13979 ac_ext=c
13980 ac_cpp='$CPP $CPPFLAGS'
13981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13984
13985 CC=$lt_save_CC
13986 LDCXX=$LD
13987 LD=$lt_save_LD
13988 GCC=$lt_save_GCC
13989 with_gnu_ldcxx=$with_gnu_ld
13990 with_gnu_ld=$lt_save_with_gnu_ld
13991 lt_cv_path_LDCXX=$lt_cv_path_LD
13992 lt_cv_path_LD=$lt_save_path_LD
13993 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13994 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13995
13996         else
13997           tagname=""
13998         fi
13999         ;;
14000
14001       F77)
14002         if test -n "$F77" && test "X$F77" != "Xno"; then
14003
14004 ac_ext=f
14005 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14006 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14007 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14008
14009
14010 archive_cmds_need_lc_F77=no
14011 allow_undefined_flag_F77=
14012 always_export_symbols_F77=no
14013 archive_expsym_cmds_F77=
14014 export_dynamic_flag_spec_F77=
14015 hardcode_direct_F77=no
14016 hardcode_libdir_flag_spec_F77=
14017 hardcode_libdir_flag_spec_ld_F77=
14018 hardcode_libdir_separator_F77=
14019 hardcode_minus_L_F77=no
14020 hardcode_automatic_F77=no
14021 module_cmds_F77=
14022 module_expsym_cmds_F77=
14023 link_all_deplibs_F77=unknown
14024 old_archive_cmds_F77=$old_archive_cmds
14025 no_undefined_flag_F77=
14026 whole_archive_flag_spec_F77=
14027 enable_shared_with_static_runtimes_F77=no
14028
14029 # Source file extension for f77 test sources.
14030 ac_ext=f
14031
14032 # Object file extension for compiled f77 test sources.
14033 objext=o
14034 objext_F77=$objext
14035
14036 # Code to be used in simple compile tests
14037 lt_simple_compile_test_code="\
14038       subroutine t
14039       return
14040       end
14041 "
14042
14043 # Code to be used in simple link tests
14044 lt_simple_link_test_code="\
14045       program t
14046       end
14047 "
14048
14049 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14050
14051 # If no C compiler was specified, use CC.
14052 LTCC=${LTCC-"$CC"}
14053
14054 # If no C compiler flags were specified, use CFLAGS.
14055 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14056
14057 # Allow CC to be a program name with arguments.
14058 compiler=$CC
14059
14060
14061 # save warnings/boilerplate of simple test code
14062 ac_outfile=conftest.$ac_objext
14063 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14064 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14065 _lt_compiler_boilerplate=`cat conftest.err`
14066 $rm conftest*
14067
14068 ac_outfile=conftest.$ac_objext
14069 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14070 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14071 _lt_linker_boilerplate=`cat conftest.err`
14072 $rm -r conftest*
14073
14074
14075 # Allow CC to be a program name with arguments.
14076 lt_save_CC="$CC"
14077 CC=${F77-"f77"}
14078 compiler=$CC
14079 compiler_F77=$CC
14080 for cc_temp in $compiler""; do
14081   case $cc_temp in
14082     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14083     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14084     \-*) ;;
14085     *) break;;
14086   esac
14087 done
14088 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14089
14090
14091 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14092 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14093 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14094 echo "${ECHO_T}$can_build_shared" >&6; }
14095
14096 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14097 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14098 test "$can_build_shared" = "no" && enable_shared=no
14099
14100 # On AIX, shared libraries and static libraries use the same namespace, and
14101 # are all built from PIC.
14102 case $host_os in
14103 aix3*)
14104   test "$enable_shared" = yes && enable_static=no
14105   if test -n "$RANLIB"; then
14106     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14107     postinstall_cmds='$RANLIB $lib'
14108   fi
14109   ;;
14110 aix[4-9]*)
14111   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14112     test "$enable_shared" = yes && enable_static=no
14113   fi
14114   ;;
14115 esac
14116 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14117 echo "${ECHO_T}$enable_shared" >&6; }
14118
14119 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14120 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14121 # Make sure either enable_shared or enable_static is yes.
14122 test "$enable_shared" = yes || enable_static=yes
14123 { echo "$as_me:$LINENO: result: $enable_static" >&5
14124 echo "${ECHO_T}$enable_static" >&6; }
14125
14126 GCC_F77="$G77"
14127 LD_F77="$LD"
14128
14129 lt_prog_compiler_wl_F77=
14130 lt_prog_compiler_pic_F77=
14131 lt_prog_compiler_static_F77=
14132
14133 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14134 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14135
14136   if test "$GCC" = yes; then
14137     lt_prog_compiler_wl_F77='-Wl,'
14138     lt_prog_compiler_static_F77='-static'
14139
14140     case $host_os in
14141       aix*)
14142       # All AIX code is PIC.
14143       if test "$host_cpu" = ia64; then
14144         # AIX 5 now supports IA64 processor
14145         lt_prog_compiler_static_F77='-Bstatic'
14146       fi
14147       ;;
14148
14149     amigaos*)
14150       # FIXME: we need at least 68020 code to build shared libraries, but
14151       # adding the `-m68020' flag to GCC prevents building anything better,
14152       # like `-m68040'.
14153       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14154       ;;
14155
14156     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14157       # PIC is the default for these OSes.
14158       ;;
14159
14160     mingw* | cygwin* | pw32* | os2*)
14161       # This hack is so that the source file can tell whether it is being
14162       # built for inclusion in a dll (and should export symbols for example).
14163       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14164       # (--disable-auto-import) libraries
14165       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14166       ;;
14167
14168     darwin* | rhapsody*)
14169       # PIC is the default on this platform
14170       # Common symbols not allowed in MH_DYLIB files
14171       lt_prog_compiler_pic_F77='-fno-common'
14172       ;;
14173
14174     interix[3-9]*)
14175       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14176       # Instead, we relocate shared libraries at runtime.
14177       ;;
14178
14179     msdosdjgpp*)
14180       # Just because we use GCC doesn't mean we suddenly get shared libraries
14181       # on systems that don't support them.
14182       lt_prog_compiler_can_build_shared_F77=no
14183       enable_shared=no
14184       ;;
14185
14186     sysv4*MP*)
14187       if test -d /usr/nec; then
14188         lt_prog_compiler_pic_F77=-Kconform_pic
14189       fi
14190       ;;
14191
14192     hpux*)
14193       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14194       # not for PA HP-UX.
14195       case $host_cpu in
14196       hppa*64*|ia64*)
14197         # +Z the default
14198         ;;
14199       *)
14200         lt_prog_compiler_pic_F77='-fPIC'
14201         ;;
14202       esac
14203       ;;
14204
14205     *)
14206       lt_prog_compiler_pic_F77='-fPIC'
14207       ;;
14208     esac
14209   else
14210     # PORTME Check for flag to pass linker flags through the system compiler.
14211     case $host_os in
14212     aix*)
14213       lt_prog_compiler_wl_F77='-Wl,'
14214       if test "$host_cpu" = ia64; then
14215         # AIX 5 now supports IA64 processor
14216         lt_prog_compiler_static_F77='-Bstatic'
14217       else
14218         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14219       fi
14220       ;;
14221       darwin*)
14222         # PIC is the default on this platform
14223         # Common symbols not allowed in MH_DYLIB files
14224        case $cc_basename in
14225          xlc*)
14226          lt_prog_compiler_pic_F77='-qnocommon'
14227          lt_prog_compiler_wl_F77='-Wl,'
14228          ;;
14229        esac
14230        ;;
14231
14232     mingw* | cygwin* | pw32* | os2*)
14233       # This hack is so that the source file can tell whether it is being
14234       # built for inclusion in a dll (and should export symbols for example).
14235       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14236       ;;
14237
14238     hpux9* | hpux10* | hpux11*)
14239       lt_prog_compiler_wl_F77='-Wl,'
14240       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14241       # not for PA HP-UX.
14242       case $host_cpu in
14243       hppa*64*|ia64*)
14244         # +Z the default
14245         ;;
14246       *)
14247         lt_prog_compiler_pic_F77='+Z'
14248         ;;
14249       esac
14250       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14251       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14252       ;;
14253
14254     irix5* | irix6* | nonstopux*)
14255       lt_prog_compiler_wl_F77='-Wl,'
14256       # PIC (with -KPIC) is the default.
14257       lt_prog_compiler_static_F77='-non_shared'
14258       ;;
14259
14260     newsos6)
14261       lt_prog_compiler_pic_F77='-KPIC'
14262       lt_prog_compiler_static_F77='-Bstatic'
14263       ;;
14264
14265     linux* | k*bsd*-gnu)
14266       case $cc_basename in
14267       icc* | ecc*)
14268         lt_prog_compiler_wl_F77='-Wl,'
14269         lt_prog_compiler_pic_F77='-KPIC'
14270         lt_prog_compiler_static_F77='-static'
14271         ;;
14272       pgcc* | pgf77* | pgf90* | pgf95*)
14273         # Portland Group compilers (*not* the Pentium gcc compiler,
14274         # which looks to be a dead project)
14275         lt_prog_compiler_wl_F77='-Wl,'
14276         lt_prog_compiler_pic_F77='-fpic'
14277         lt_prog_compiler_static_F77='-Bstatic'
14278         ;;
14279       ccc*)
14280         lt_prog_compiler_wl_F77='-Wl,'
14281         # All Alpha code is PIC.
14282         lt_prog_compiler_static_F77='-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_F77='-KPIC'
14289           lt_prog_compiler_static_F77='-Bstatic'
14290           lt_prog_compiler_wl_F77='-Wl,'
14291           ;;
14292         *Sun\ F*)
14293           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14294           lt_prog_compiler_pic_F77='-KPIC'
14295           lt_prog_compiler_static_F77='-Bstatic'
14296           lt_prog_compiler_wl_F77=''
14297           ;;
14298         esac
14299         ;;
14300       esac
14301       ;;
14302
14303     osf3* | osf4* | osf5*)
14304       lt_prog_compiler_wl_F77='-Wl,'
14305       # All OSF/1 code is PIC.
14306       lt_prog_compiler_static_F77='-non_shared'
14307       ;;
14308
14309     rdos*)
14310       lt_prog_compiler_static_F77='-non_shared'
14311       ;;
14312
14313     solaris*)
14314       lt_prog_compiler_pic_F77='-KPIC'
14315       lt_prog_compiler_static_F77='-Bstatic'
14316       case $cc_basename in
14317       f77* | f90* | f95*)
14318         lt_prog_compiler_wl_F77='-Qoption ld ';;
14319       *)
14320         lt_prog_compiler_wl_F77='-Wl,';;
14321       esac
14322       ;;
14323
14324     sunos4*)
14325       lt_prog_compiler_wl_F77='-Qoption ld '
14326       lt_prog_compiler_pic_F77='-PIC'
14327       lt_prog_compiler_static_F77='-Bstatic'
14328       ;;
14329
14330     sysv4 | sysv4.2uw2* | sysv4.3*)
14331       lt_prog_compiler_wl_F77='-Wl,'
14332       lt_prog_compiler_pic_F77='-KPIC'
14333       lt_prog_compiler_static_F77='-Bstatic'
14334       ;;
14335
14336     sysv4*MP*)
14337       if test -d /usr/nec ;then
14338         lt_prog_compiler_pic_F77='-Kconform_pic'
14339         lt_prog_compiler_static_F77='-Bstatic'
14340       fi
14341       ;;
14342
14343     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14344       lt_prog_compiler_wl_F77='-Wl,'
14345       lt_prog_compiler_pic_F77='-KPIC'
14346       lt_prog_compiler_static_F77='-Bstatic'
14347       ;;
14348
14349     unicos*)
14350       lt_prog_compiler_wl_F77='-Wl,'
14351       lt_prog_compiler_can_build_shared_F77=no
14352       ;;
14353
14354     uts4*)
14355       lt_prog_compiler_pic_F77='-pic'
14356       lt_prog_compiler_static_F77='-Bstatic'
14357       ;;
14358
14359     *)
14360       lt_prog_compiler_can_build_shared_F77=no
14361       ;;
14362     esac
14363   fi
14364
14365 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14366 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14367
14368 #
14369 # Check to make sure the PIC flag actually works.
14370 #
14371 if test -n "$lt_prog_compiler_pic_F77"; then
14372
14373 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14374 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14375 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14376   echo $ECHO_N "(cached) $ECHO_C" >&6
14377 else
14378   lt_cv_prog_compiler_pic_works_F77=no
14379   ac_outfile=conftest.$ac_objext
14380    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14381    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14382    # Insert the option either (1) after the last *FLAGS variable, or
14383    # (2) before a word containing "conftest.", or (3) at the end.
14384    # Note that $ac_compile itself does not contain backslashes and begins
14385    # with a dollar sign (not a hyphen), so the echo should work correctly.
14386    # The option is referenced via a variable to avoid confusing sed.
14387    lt_compile=`echo "$ac_compile" | $SED \
14388    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14389    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14390    -e 's:$: $lt_compiler_flag:'`
14391    (eval echo "\"\$as_me:14391: $lt_compile\"" >&5)
14392    (eval "$lt_compile" 2>conftest.err)
14393    ac_status=$?
14394    cat conftest.err >&5
14395    echo "$as_me:14395: \$? = $ac_status" >&5
14396    if (exit $ac_status) && test -s "$ac_outfile"; then
14397      # The compiler can only warn and ignore the option if not recognized
14398      # So say no if there are warnings other than the usual output.
14399      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14400      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14401      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14402        lt_cv_prog_compiler_pic_works_F77=yes
14403      fi
14404    fi
14405    $rm conftest*
14406
14407 fi
14408 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14409 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14410
14411 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14412     case $lt_prog_compiler_pic_F77 in
14413      "" | " "*) ;;
14414      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14415      esac
14416 else
14417     lt_prog_compiler_pic_F77=
14418      lt_prog_compiler_can_build_shared_F77=no
14419 fi
14420
14421 fi
14422 case $host_os in
14423   # For platforms which do not support PIC, -DPIC is meaningless:
14424   *djgpp*)
14425     lt_prog_compiler_pic_F77=
14426     ;;
14427   *)
14428     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14429     ;;
14430 esac
14431
14432 #
14433 # Check to make sure the static flag actually works.
14434 #
14435 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14436 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14437 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14438 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14439   echo $ECHO_N "(cached) $ECHO_C" >&6
14440 else
14441   lt_cv_prog_compiler_static_works_F77=no
14442    save_LDFLAGS="$LDFLAGS"
14443    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14444    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14445    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14446      # The linker can only warn and ignore the option if not recognized
14447      # So say no if there are warnings
14448      if test -s conftest.err; then
14449        # Append any errors to the config.log.
14450        cat conftest.err 1>&5
14451        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14452        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14453        if diff conftest.exp conftest.er2 >/dev/null; then
14454          lt_cv_prog_compiler_static_works_F77=yes
14455        fi
14456      else
14457        lt_cv_prog_compiler_static_works_F77=yes
14458      fi
14459    fi
14460    $rm -r conftest*
14461    LDFLAGS="$save_LDFLAGS"
14462
14463 fi
14464 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14465 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14466
14467 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14468     :
14469 else
14470     lt_prog_compiler_static_F77=
14471 fi
14472
14473
14474 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14475 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14476 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14477   echo $ECHO_N "(cached) $ECHO_C" >&6
14478 else
14479   lt_cv_prog_compiler_c_o_F77=no
14480    $rm -r conftest 2>/dev/null
14481    mkdir conftest
14482    cd conftest
14483    mkdir out
14484    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14485
14486    lt_compiler_flag="-o out/conftest2.$ac_objext"
14487    # Insert the option either (1) after the last *FLAGS variable, or
14488    # (2) before a word containing "conftest.", or (3) at the end.
14489    # Note that $ac_compile itself does not contain backslashes and begins
14490    # with a dollar sign (not a hyphen), so the echo should work correctly.
14491    lt_compile=`echo "$ac_compile" | $SED \
14492    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14493    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14494    -e 's:$: $lt_compiler_flag:'`
14495    (eval echo "\"\$as_me:14495: $lt_compile\"" >&5)
14496    (eval "$lt_compile" 2>out/conftest.err)
14497    ac_status=$?
14498    cat out/conftest.err >&5
14499    echo "$as_me:14499: \$? = $ac_status" >&5
14500    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14501    then
14502      # The compiler can only warn and ignore the option if not recognized
14503      # So say no if there are warnings
14504      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14505      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14506      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14507        lt_cv_prog_compiler_c_o_F77=yes
14508      fi
14509    fi
14510    chmod u+w . 2>&5
14511    $rm conftest*
14512    # SGI C++ compiler will create directory out/ii_files/ for
14513    # template instantiation
14514    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14515    $rm out/* && rmdir out
14516    cd ..
14517    rmdir conftest
14518    $rm conftest*
14519
14520 fi
14521 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14522 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14523
14524
14525 hard_links="nottested"
14526 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14527   # do not overwrite the value of need_locks provided by the user
14528   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14529 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14530   hard_links=yes
14531   $rm conftest*
14532   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14533   touch conftest.a
14534   ln conftest.a conftest.b 2>&5 || hard_links=no
14535   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14536   { echo "$as_me:$LINENO: result: $hard_links" >&5
14537 echo "${ECHO_T}$hard_links" >&6; }
14538   if test "$hard_links" = no; then
14539     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14540 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14541     need_locks=warn
14542   fi
14543 else
14544   need_locks=no
14545 fi
14546
14547 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14548 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14549
14550   runpath_var=
14551   allow_undefined_flag_F77=
14552   enable_shared_with_static_runtimes_F77=no
14553   archive_cmds_F77=
14554   archive_expsym_cmds_F77=
14555   old_archive_From_new_cmds_F77=
14556   old_archive_from_expsyms_cmds_F77=
14557   export_dynamic_flag_spec_F77=
14558   whole_archive_flag_spec_F77=
14559   thread_safe_flag_spec_F77=
14560   hardcode_libdir_flag_spec_F77=
14561   hardcode_libdir_flag_spec_ld_F77=
14562   hardcode_libdir_separator_F77=
14563   hardcode_direct_F77=no
14564   hardcode_minus_L_F77=no
14565   hardcode_shlibpath_var_F77=unsupported
14566   link_all_deplibs_F77=unknown
14567   hardcode_automatic_F77=no
14568   module_cmds_F77=
14569   module_expsym_cmds_F77=
14570   always_export_symbols_F77=no
14571   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14572   # include_expsyms should be a list of space-separated symbols to be *always*
14573   # included in the symbol list
14574   include_expsyms_F77=
14575   # exclude_expsyms can be an extended regexp of symbols to exclude
14576   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14577   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14578   # as well as any symbol that contains `d'.
14579   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14580   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14581   # platforms (ab)use it in PIC code, but their linkers get confused if
14582   # the symbol is explicitly referenced.  Since portable code cannot
14583   # rely on this symbol name, it's probably fine to never include it in
14584   # preloaded symbol tables.
14585   # Exclude shared library initialization/finalization symbols.
14586   extract_expsyms_cmds=
14587   # Just being paranoid about ensuring that cc_basename is set.
14588   for cc_temp in $compiler""; do
14589   case $cc_temp in
14590     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14591     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14592     \-*) ;;
14593     *) break;;
14594   esac
14595 done
14596 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14597
14598   case $host_os in
14599   cygwin* | mingw* | pw32*)
14600     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14601     # When not using gcc, we currently assume that we are using
14602     # Microsoft Visual C++.
14603     if test "$GCC" != yes; then
14604       with_gnu_ld=no
14605     fi
14606     ;;
14607   interix*)
14608     # we just hope/assume this is gcc and not c89 (= MSVC++)
14609     with_gnu_ld=yes
14610     ;;
14611   openbsd*)
14612     with_gnu_ld=no
14613     ;;
14614   esac
14615
14616   ld_shlibs_F77=yes
14617   if test "$with_gnu_ld" = yes; then
14618     # If archive_cmds runs LD, not CC, wlarc should be empty
14619     wlarc='${wl}'
14620
14621     # Set some defaults for GNU ld with shared library support. These
14622     # are reset later if shared libraries are not supported. Putting them
14623     # here allows them to be overridden if necessary.
14624     runpath_var=LD_RUN_PATH
14625     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14626     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14627     # ancient GNU ld didn't support --whole-archive et. al.
14628     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14629         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14630       else
14631         whole_archive_flag_spec_F77=
14632     fi
14633     supports_anon_versioning=no
14634     case `$LD -v 2>/dev/null` in
14635       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14636       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14637       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14638       *\ 2.11.*) ;; # other 2.11 versions
14639       *) supports_anon_versioning=yes ;;
14640     esac
14641
14642     # See if GNU ld supports shared libraries.
14643     case $host_os in
14644     aix[3-9]*)
14645       # On AIX/PPC, the GNU linker is very broken
14646       if test "$host_cpu" != ia64; then
14647         ld_shlibs_F77=no
14648         cat <<EOF 1>&2
14649
14650 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14651 *** to be unable to reliably create shared libraries on AIX.
14652 *** Therefore, libtool is disabling shared libraries support.  If you
14653 *** really care for shared libraries, you may want to modify your PATH
14654 *** so that a non-GNU linker is found, and then restart.
14655
14656 EOF
14657       fi
14658       ;;
14659
14660     amigaos*)
14661       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)'
14662       hardcode_libdir_flag_spec_F77='-L$libdir'
14663       hardcode_minus_L_F77=yes
14664
14665       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14666       # that the semantics of dynamic libraries on AmigaOS, at least up
14667       # to version 4, is to share data among multiple programs linked
14668       # with the same dynamic library.  Since this doesn't match the
14669       # behavior of shared libraries on other platforms, we can't use
14670       # them.
14671       ld_shlibs_F77=no
14672       ;;
14673
14674     beos*)
14675       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14676         allow_undefined_flag_F77=unsupported
14677         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14678         # support --undefined.  This deserves some investigation.  FIXME
14679         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14680       else
14681         ld_shlibs_F77=no
14682       fi
14683       ;;
14684
14685     cygwin* | mingw* | pw32*)
14686       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14687       # as there is no search path for DLLs.
14688       hardcode_libdir_flag_spec_F77='-L$libdir'
14689       allow_undefined_flag_F77=unsupported
14690       always_export_symbols_F77=no
14691       enable_shared_with_static_runtimes_F77=yes
14692       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14693
14694       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14695         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14696         # If the export-symbols file already is a .def file (1st line
14697         # is EXPORTS), use it as is; otherwise, prepend...
14698         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14699           cp $export_symbols $output_objdir/$soname.def;
14700         else
14701           echo EXPORTS > $output_objdir/$soname.def;
14702           cat $export_symbols >> $output_objdir/$soname.def;
14703         fi~
14704         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14705       else
14706         ld_shlibs_F77=no
14707       fi
14708       ;;
14709
14710     interix[3-9]*)
14711       hardcode_direct_F77=no
14712       hardcode_shlibpath_var_F77=no
14713       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14714       export_dynamic_flag_spec_F77='${wl}-E'
14715       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14716       # Instead, shared libraries are loaded at an image base (0x10000000 by
14717       # default) and relocated if they conflict, which is a slow very memory
14718       # consuming and fragmenting process.  To avoid this, we pick a random,
14719       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14720       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14721       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'
14722       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'
14723       ;;
14724
14725     gnu* | linux* | k*bsd*-gnu)
14726       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14727         tmp_addflag=
14728         case $cc_basename,$host_cpu in
14729         pgcc*)                          # Portland Group C compiler
14730           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'
14731           tmp_addflag=' $pic_flag'
14732           ;;
14733         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14734           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'
14735           tmp_addflag=' $pic_flag -Mnomain' ;;
14736         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14737           tmp_addflag=' -i_dynamic' ;;
14738         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14739           tmp_addflag=' -i_dynamic -nofor_main' ;;
14740         ifc* | ifort*)                  # Intel Fortran compiler
14741           tmp_addflag=' -nofor_main' ;;
14742         esac
14743         case `$CC -V 2>&1 | sed 5q` in
14744         *Sun\ C*)                       # Sun C 5.9
14745           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'
14746           tmp_sharedflag='-G' ;;
14747         *Sun\ F*)                       # Sun Fortran 8.3
14748           tmp_sharedflag='-G' ;;
14749         *)
14750           tmp_sharedflag='-shared' ;;
14751         esac
14752         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14753
14754         if test $supports_anon_versioning = yes; then
14755           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14756   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14757   $echo "local: *; };" >> $output_objdir/$libname.ver~
14758           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14759         fi
14760         link_all_deplibs_F77=no
14761       else
14762         ld_shlibs_F77=no
14763       fi
14764       ;;
14765
14766     netbsd* | netbsdelf*-gnu)
14767       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14768         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14769         wlarc=
14770       else
14771         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14772         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14773       fi
14774       ;;
14775
14776     solaris*)
14777       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14778         ld_shlibs_F77=no
14779         cat <<EOF 1>&2
14780
14781 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14782 *** create shared libraries on Solaris systems.  Therefore, libtool
14783 *** is disabling shared libraries support.  We urge you to upgrade GNU
14784 *** binutils to release 2.9.1 or newer.  Another option is to modify
14785 *** your PATH or compiler configuration so that the native linker is
14786 *** used, and then restart.
14787
14788 EOF
14789       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14790         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14791         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14792       else
14793         ld_shlibs_F77=no
14794       fi
14795       ;;
14796
14797     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14798       case `$LD -v 2>&1` in
14799         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14800         ld_shlibs_F77=no
14801         cat <<_LT_EOF 1>&2
14802
14803 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14804 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14805 *** is disabling shared libraries support.  We urge you to upgrade GNU
14806 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14807 *** your PATH or compiler configuration so that the native linker is
14808 *** used, and then restart.
14809
14810 _LT_EOF
14811         ;;
14812         *)
14813           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14814             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14815             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14816             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14817           else
14818             ld_shlibs_F77=no
14819           fi
14820         ;;
14821       esac
14822       ;;
14823
14824     sunos4*)
14825       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14826       wlarc=
14827       hardcode_direct_F77=yes
14828       hardcode_shlibpath_var_F77=no
14829       ;;
14830
14831     *)
14832       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14833         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14834         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14835       else
14836         ld_shlibs_F77=no
14837       fi
14838       ;;
14839     esac
14840
14841     if test "$ld_shlibs_F77" = no; then
14842       runpath_var=
14843       hardcode_libdir_flag_spec_F77=
14844       export_dynamic_flag_spec_F77=
14845       whole_archive_flag_spec_F77=
14846     fi
14847   else
14848     # PORTME fill in a description of your system's linker (not GNU ld)
14849     case $host_os in
14850     aix3*)
14851       allow_undefined_flag_F77=unsupported
14852       always_export_symbols_F77=yes
14853       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'
14854       # Note: this linker hardcodes the directories in LIBPATH if there
14855       # are no directories specified by -L.
14856       hardcode_minus_L_F77=yes
14857       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14858         # Neither direct hardcoding nor static linking is supported with a
14859         # broken collect2.
14860         hardcode_direct_F77=unsupported
14861       fi
14862       ;;
14863
14864     aix[4-9]*)
14865       if test "$host_cpu" = ia64; then
14866         # On IA64, the linker does run time linking by default, so we don't
14867         # have to do anything special.
14868         aix_use_runtimelinking=no
14869         exp_sym_flag='-Bexport'
14870         no_entry_flag=""
14871       else
14872         # If we're using GNU nm, then we don't want the "-C" option.
14873         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14874         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14875           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'
14876         else
14877           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'
14878         fi
14879         aix_use_runtimelinking=no
14880
14881         # Test if we are trying to use run time linking or normal
14882         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14883         # need to do runtime linking.
14884         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14885           for ld_flag in $LDFLAGS; do
14886           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14887             aix_use_runtimelinking=yes
14888             break
14889           fi
14890           done
14891           ;;
14892         esac
14893
14894         exp_sym_flag='-bexport'
14895         no_entry_flag='-bnoentry'
14896       fi
14897
14898       # When large executables or shared objects are built, AIX ld can
14899       # have problems creating the table of contents.  If linking a library
14900       # or program results in "error TOC overflow" add -mminimal-toc to
14901       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14902       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14903
14904       archive_cmds_F77=''
14905       hardcode_direct_F77=yes
14906       hardcode_libdir_separator_F77=':'
14907       link_all_deplibs_F77=yes
14908
14909       if test "$GCC" = yes; then
14910         case $host_os in aix4.[012]|aix4.[012].*)
14911         # We only want to do this on AIX 4.2 and lower, the check
14912         # below for broken collect2 doesn't work under 4.3+
14913           collect2name=`${CC} -print-prog-name=collect2`
14914           if test -f "$collect2name" && \
14915            strings "$collect2name" | grep resolve_lib_name >/dev/null
14916           then
14917           # We have reworked collect2
14918           :
14919           else
14920           # We have old collect2
14921           hardcode_direct_F77=unsupported
14922           # It fails to find uninstalled libraries when the uninstalled
14923           # path is not listed in the libpath.  Setting hardcode_minus_L
14924           # to unsupported forces relinking
14925           hardcode_minus_L_F77=yes
14926           hardcode_libdir_flag_spec_F77='-L$libdir'
14927           hardcode_libdir_separator_F77=
14928           fi
14929           ;;
14930         esac
14931         shared_flag='-shared'
14932         if test "$aix_use_runtimelinking" = yes; then
14933           shared_flag="$shared_flag "'${wl}-G'
14934         fi
14935       else
14936         # not using gcc
14937         if test "$host_cpu" = ia64; then
14938         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14939         # chokes on -Wl,-G. The following line is correct:
14940           shared_flag='-G'
14941         else
14942           if test "$aix_use_runtimelinking" = yes; then
14943             shared_flag='${wl}-G'
14944           else
14945             shared_flag='${wl}-bM:SRE'
14946           fi
14947         fi
14948       fi
14949
14950       # It seems that -bexpall does not export symbols beginning with
14951       # underscore (_), so it is better to generate a list of symbols to export.
14952       always_export_symbols_F77=yes
14953       if test "$aix_use_runtimelinking" = yes; then
14954         # Warning - without using the other runtime loading flags (-brtl),
14955         # -berok will link without error, but may produce a broken library.
14956         allow_undefined_flag_F77='-berok'
14957        # Determine the default libpath from the value encoded in an empty executable.
14958        cat >conftest.$ac_ext <<_ACEOF
14959       program main
14960
14961       end
14962 _ACEOF
14963 rm -f conftest.$ac_objext conftest$ac_exeext
14964 if { (ac_try="$ac_link"
14965 case "(($ac_try" in
14966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967   *) ac_try_echo=$ac_try;;
14968 esac
14969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14970   (eval "$ac_link") 2>conftest.er1
14971   ac_status=$?
14972   grep -v '^ *+' conftest.er1 >conftest.err
14973   rm -f conftest.er1
14974   cat conftest.err >&5
14975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976   (exit $ac_status); } && {
14977          test -z "$ac_f77_werror_flag" ||
14978          test ! -s conftest.err
14979        } && test -s conftest$ac_exeext &&
14980        $as_test_x conftest$ac_exeext; then
14981
14982 lt_aix_libpath_sed='
14983     /Import File Strings/,/^$/ {
14984         /^0/ {
14985             s/^0  *\(.*\)$/\1/
14986             p
14987         }
14988     }'
14989 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14990 # Check for a 64-bit object if we didn't find anything.
14991 if test -z "$aix_libpath"; then
14992   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14993 fi
14994 else
14995   echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14997
14998
14999 fi
15000
15001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15002       conftest$ac_exeext conftest.$ac_ext
15003 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15004
15005        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15006         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"
15007        else
15008         if test "$host_cpu" = ia64; then
15009           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15010           allow_undefined_flag_F77="-z nodefs"
15011           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"
15012         else
15013          # Determine the default libpath from the value encoded in an empty executable.
15014          cat >conftest.$ac_ext <<_ACEOF
15015       program main
15016
15017       end
15018 _ACEOF
15019 rm -f conftest.$ac_objext conftest$ac_exeext
15020 if { (ac_try="$ac_link"
15021 case "(($ac_try" in
15022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15023   *) ac_try_echo=$ac_try;;
15024 esac
15025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15026   (eval "$ac_link") 2>conftest.er1
15027   ac_status=$?
15028   grep -v '^ *+' conftest.er1 >conftest.err
15029   rm -f conftest.er1
15030   cat conftest.err >&5
15031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032   (exit $ac_status); } && {
15033          test -z "$ac_f77_werror_flag" ||
15034          test ! -s conftest.err
15035        } && test -s conftest$ac_exeext &&
15036        $as_test_x conftest$ac_exeext; then
15037
15038 lt_aix_libpath_sed='
15039     /Import File Strings/,/^$/ {
15040         /^0/ {
15041             s/^0  *\(.*\)$/\1/
15042             p
15043         }
15044     }'
15045 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15046 # Check for a 64-bit object if we didn't find anything.
15047 if test -z "$aix_libpath"; then
15048   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15049 fi
15050 else
15051   echo "$as_me: failed program was:" >&5
15052 sed 's/^/| /' conftest.$ac_ext >&5
15053
15054
15055 fi
15056
15057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15058       conftest$ac_exeext conftest.$ac_ext
15059 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15060
15061          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15062           # Warning - without using the other run time loading flags,
15063           # -berok will link without error, but may produce a broken library.
15064           no_undefined_flag_F77=' ${wl}-bernotok'
15065           allow_undefined_flag_F77=' ${wl}-berok'
15066           # Exported symbols can be pulled into shared objects from archives
15067           whole_archive_flag_spec_F77='$convenience'
15068           archive_cmds_need_lc_F77=yes
15069           # This is similar to how AIX traditionally builds its shared libraries.
15070           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'
15071         fi
15072       fi
15073       ;;
15074
15075     amigaos*)
15076       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)'
15077       hardcode_libdir_flag_spec_F77='-L$libdir'
15078       hardcode_minus_L_F77=yes
15079       # see comment about different semantics on the GNU ld section
15080       ld_shlibs_F77=no
15081       ;;
15082
15083     bsdi[45]*)
15084       export_dynamic_flag_spec_F77=-rdynamic
15085       ;;
15086
15087     cygwin* | mingw* | pw32*)
15088       # When not using gcc, we currently assume that we are using
15089       # Microsoft Visual C++.
15090       # hardcode_libdir_flag_spec is actually meaningless, as there is
15091       # no search path for DLLs.
15092       hardcode_libdir_flag_spec_F77=' '
15093       allow_undefined_flag_F77=unsupported
15094       # Tell ltmain to make .lib files, not .a files.
15095       libext=lib
15096       # Tell ltmain to make .dll files, not .so files.
15097       shrext_cmds=".dll"
15098       # FIXME: Setting linknames here is a bad hack.
15099       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15100       # The linker will automatically build a .lib file if we build a DLL.
15101       old_archive_From_new_cmds_F77='true'
15102       # FIXME: Should let the user specify the lib program.
15103       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15104       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15105       enable_shared_with_static_runtimes_F77=yes
15106       ;;
15107
15108     darwin* | rhapsody*)
15109       case $host_os in
15110         rhapsody* | darwin1.[012])
15111          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15112          ;;
15113        *) # Darwin 1.3 on
15114          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15115            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15116          else
15117            case ${MACOSX_DEPLOYMENT_TARGET} in
15118              10.[012])
15119                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15120                ;;
15121              10.*)
15122                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15123                ;;
15124            esac
15125          fi
15126          ;;
15127       esac
15128       archive_cmds_need_lc_F77=no
15129       hardcode_direct_F77=no
15130       hardcode_automatic_F77=yes
15131       hardcode_shlibpath_var_F77=unsupported
15132       whole_archive_flag_spec_F77=''
15133       link_all_deplibs_F77=yes
15134     if test "$GCC" = yes ; then
15135         output_verbose_link_cmd='echo'
15136         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}"
15137         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15138         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}"
15139         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}"
15140     else
15141       case $cc_basename in
15142         xlc*)
15143          output_verbose_link_cmd='echo'
15144          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15145          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15146           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15147          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}'
15148           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}'
15149           ;;
15150        *)
15151          ld_shlibs_F77=no
15152           ;;
15153       esac
15154     fi
15155       ;;
15156
15157     dgux*)
15158       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15159       hardcode_libdir_flag_spec_F77='-L$libdir'
15160       hardcode_shlibpath_var_F77=no
15161       ;;
15162
15163     freebsd1*)
15164       ld_shlibs_F77=no
15165       ;;
15166
15167     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15168     # support.  Future versions do this automatically, but an explicit c++rt0.o
15169     # does not break anything, and helps significantly (at the cost of a little
15170     # extra space).
15171     freebsd2.2*)
15172       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15173       hardcode_libdir_flag_spec_F77='-R$libdir'
15174       hardcode_direct_F77=yes
15175       hardcode_shlibpath_var_F77=no
15176       ;;
15177
15178     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15179     freebsd2*)
15180       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15181       hardcode_direct_F77=yes
15182       hardcode_minus_L_F77=yes
15183       hardcode_shlibpath_var_F77=no
15184       ;;
15185
15186     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15187     freebsd* | dragonfly*)
15188       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15189       hardcode_libdir_flag_spec_F77='-R$libdir'
15190       hardcode_direct_F77=yes
15191       hardcode_shlibpath_var_F77=no
15192       ;;
15193
15194     hpux9*)
15195       if test "$GCC" = yes; then
15196         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'
15197       else
15198         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'
15199       fi
15200       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15201       hardcode_libdir_separator_F77=:
15202       hardcode_direct_F77=yes
15203
15204       # hardcode_minus_L: Not really in the search PATH,
15205       # but as the default location of the library.
15206       hardcode_minus_L_F77=yes
15207       export_dynamic_flag_spec_F77='${wl}-E'
15208       ;;
15209
15210     hpux10*)
15211       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15212         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15213       else
15214         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15215       fi
15216       if test "$with_gnu_ld" = no; then
15217         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15218         hardcode_libdir_separator_F77=:
15219
15220         hardcode_direct_F77=yes
15221         export_dynamic_flag_spec_F77='${wl}-E'
15222
15223         # hardcode_minus_L: Not really in the search PATH,
15224         # but as the default location of the library.
15225         hardcode_minus_L_F77=yes
15226       fi
15227       ;;
15228
15229     hpux11*)
15230       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15231         case $host_cpu in
15232         hppa*64*)
15233           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15234           ;;
15235         ia64*)
15236           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15237           ;;
15238         *)
15239           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15240           ;;
15241         esac
15242       else
15243         case $host_cpu in
15244         hppa*64*)
15245           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15246           ;;
15247         ia64*)
15248           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15249           ;;
15250         *)
15251           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15252           ;;
15253         esac
15254       fi
15255       if test "$with_gnu_ld" = no; then
15256         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15257         hardcode_libdir_separator_F77=:
15258
15259         case $host_cpu in
15260         hppa*64*|ia64*)
15261           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15262           hardcode_direct_F77=no
15263           hardcode_shlibpath_var_F77=no
15264           ;;
15265         *)
15266           hardcode_direct_F77=yes
15267           export_dynamic_flag_spec_F77='${wl}-E'
15268
15269           # hardcode_minus_L: Not really in the search PATH,
15270           # but as the default location of the library.
15271           hardcode_minus_L_F77=yes
15272           ;;
15273         esac
15274       fi
15275       ;;
15276
15277     irix5* | irix6* | nonstopux*)
15278       if test "$GCC" = yes; then
15279         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'
15280       else
15281         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'
15282         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15283       fi
15284       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15285       hardcode_libdir_separator_F77=:
15286       link_all_deplibs_F77=yes
15287       ;;
15288
15289     netbsd* | netbsdelf*-gnu)
15290       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15291         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15292       else
15293         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15294       fi
15295       hardcode_libdir_flag_spec_F77='-R$libdir'
15296       hardcode_direct_F77=yes
15297       hardcode_shlibpath_var_F77=no
15298       ;;
15299
15300     newsos6)
15301       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15302       hardcode_direct_F77=yes
15303       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15304       hardcode_libdir_separator_F77=:
15305       hardcode_shlibpath_var_F77=no
15306       ;;
15307
15308     openbsd*)
15309       if test -f /usr/libexec/ld.so; then
15310         hardcode_direct_F77=yes
15311         hardcode_shlibpath_var_F77=no
15312         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15313           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15314           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15315           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15316           export_dynamic_flag_spec_F77='${wl}-E'
15317         else
15318           case $host_os in
15319            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15320              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15321              hardcode_libdir_flag_spec_F77='-R$libdir'
15322              ;;
15323            *)
15324              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15325              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15326              ;;
15327           esac
15328         fi
15329       else
15330         ld_shlibs_F77=no
15331       fi
15332       ;;
15333
15334     os2*)
15335       hardcode_libdir_flag_spec_F77='-L$libdir'
15336       hardcode_minus_L_F77=yes
15337       allow_undefined_flag_F77=unsupported
15338       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'
15339       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15340       ;;
15341
15342     osf3*)
15343       if test "$GCC" = yes; then
15344         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15345         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'
15346       else
15347         allow_undefined_flag_F77=' -expect_unresolved \*'
15348         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'
15349       fi
15350       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15351       hardcode_libdir_separator_F77=:
15352       ;;
15353
15354     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15355       if test "$GCC" = yes; then
15356         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15357         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'
15358         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15359       else
15360         allow_undefined_flag_F77=' -expect_unresolved \*'
15361         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'
15362         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~
15363         $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'
15364
15365         # Both c and cxx compiler support -rpath directly
15366         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15367       fi
15368       hardcode_libdir_separator_F77=:
15369       ;;
15370
15371     solaris*)
15372       no_undefined_flag_F77=' -z text'
15373       if test "$GCC" = yes; then
15374         wlarc='${wl}'
15375         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15376         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15377           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15378       else
15379         wlarc=''
15380         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15381         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15382         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15383       fi
15384       hardcode_libdir_flag_spec_F77='-R$libdir'
15385       hardcode_shlibpath_var_F77=no
15386       case $host_os in
15387       solaris2.[0-5] | solaris2.[0-5].*) ;;
15388       *)
15389         # The compiler driver will combine and reorder linker options,
15390         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15391         # but is careful enough not to reorder.
15392         # Supported since Solaris 2.6 (maybe 2.5.1?)
15393         if test "$GCC" = yes; then
15394           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15395         else
15396           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15397         fi
15398         ;;
15399       esac
15400       link_all_deplibs_F77=yes
15401       ;;
15402
15403     sunos4*)
15404       if test "x$host_vendor" = xsequent; then
15405         # Use $CC to link under sequent, because it throws in some extra .o
15406         # files that make .init and .fini sections work.
15407         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15408       else
15409         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15410       fi
15411       hardcode_libdir_flag_spec_F77='-L$libdir'
15412       hardcode_direct_F77=yes
15413       hardcode_minus_L_F77=yes
15414       hardcode_shlibpath_var_F77=no
15415       ;;
15416
15417     sysv4)
15418       case $host_vendor in
15419         sni)
15420           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15421           hardcode_direct_F77=yes # is this really true???
15422         ;;
15423         siemens)
15424           ## LD is ld it makes a PLAMLIB
15425           ## CC just makes a GrossModule.
15426           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15427           reload_cmds_F77='$CC -r -o $output$reload_objs'
15428           hardcode_direct_F77=no
15429         ;;
15430         motorola)
15431           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15432           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15433         ;;
15434       esac
15435       runpath_var='LD_RUN_PATH'
15436       hardcode_shlibpath_var_F77=no
15437       ;;
15438
15439     sysv4.3*)
15440       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15441       hardcode_shlibpath_var_F77=no
15442       export_dynamic_flag_spec_F77='-Bexport'
15443       ;;
15444
15445     sysv4*MP*)
15446       if test -d /usr/nec; then
15447         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15448         hardcode_shlibpath_var_F77=no
15449         runpath_var=LD_RUN_PATH
15450         hardcode_runpath_var=yes
15451         ld_shlibs_F77=yes
15452       fi
15453       ;;
15454
15455     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15456       no_undefined_flag_F77='${wl}-z,text'
15457       archive_cmds_need_lc_F77=no
15458       hardcode_shlibpath_var_F77=no
15459       runpath_var='LD_RUN_PATH'
15460
15461       if test "$GCC" = yes; then
15462         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15463         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15464       else
15465         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15466         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15467       fi
15468       ;;
15469
15470     sysv5* | sco3.2v5* | sco5v6*)
15471       # Note: We can NOT use -z defs as we might desire, because we do not
15472       # link with -lc, and that would cause any symbols used from libc to
15473       # always be unresolved, which means just about no library would
15474       # ever link correctly.  If we're not using GNU ld we use -z text
15475       # though, which does catch some bad symbols but isn't as heavy-handed
15476       # as -z defs.
15477       no_undefined_flag_F77='${wl}-z,text'
15478       allow_undefined_flag_F77='${wl}-z,nodefs'
15479       archive_cmds_need_lc_F77=no
15480       hardcode_shlibpath_var_F77=no
15481       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15482       hardcode_libdir_separator_F77=':'
15483       link_all_deplibs_F77=yes
15484       export_dynamic_flag_spec_F77='${wl}-Bexport'
15485       runpath_var='LD_RUN_PATH'
15486
15487       if test "$GCC" = yes; then
15488         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15489         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15490       else
15491         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15492         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15493       fi
15494       ;;
15495
15496     uts4*)
15497       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15498       hardcode_libdir_flag_spec_F77='-L$libdir'
15499       hardcode_shlibpath_var_F77=no
15500       ;;
15501
15502     *)
15503       ld_shlibs_F77=no
15504       ;;
15505     esac
15506   fi
15507
15508 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15509 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15510 test "$ld_shlibs_F77" = no && can_build_shared=no
15511
15512 #
15513 # Do we need to explicitly link libc?
15514 #
15515 case "x$archive_cmds_need_lc_F77" in
15516 x|xyes)
15517   # Assume -lc should be added
15518   archive_cmds_need_lc_F77=yes
15519
15520   if test "$enable_shared" = yes && test "$GCC" = yes; then
15521     case $archive_cmds_F77 in
15522     *'~'*)
15523       # FIXME: we may have to deal with multi-command sequences.
15524       ;;
15525     '$CC '*)
15526       # Test whether the compiler implicitly links with -lc since on some
15527       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15528       # to ld, don't add -lc before -lgcc.
15529       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15530 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15531       $rm conftest*
15532       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15533
15534       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15535   (eval $ac_compile) 2>&5
15536   ac_status=$?
15537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538   (exit $ac_status); } 2>conftest.err; then
15539         soname=conftest
15540         lib=conftest
15541         libobjs=conftest.$ac_objext
15542         deplibs=
15543         wl=$lt_prog_compiler_wl_F77
15544         pic_flag=$lt_prog_compiler_pic_F77
15545         compiler_flags=-v
15546         linker_flags=-v
15547         verstring=
15548         output_objdir=.
15549         libname=conftest
15550         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15551         allow_undefined_flag_F77=
15552         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15553   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15554   ac_status=$?
15555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556   (exit $ac_status); }
15557         then
15558           archive_cmds_need_lc_F77=no
15559         else
15560           archive_cmds_need_lc_F77=yes
15561         fi
15562         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15563       else
15564         cat conftest.err 1>&5
15565       fi
15566       $rm conftest*
15567       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15568 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15569       ;;
15570     esac
15571   fi
15572   ;;
15573 esac
15574
15575 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15576 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15577 library_names_spec=
15578 libname_spec='lib$name'
15579 soname_spec=
15580 shrext_cmds=".so"
15581 postinstall_cmds=
15582 postuninstall_cmds=
15583 finish_cmds=
15584 finish_eval=
15585 shlibpath_var=
15586 shlibpath_overrides_runpath=unknown
15587 version_type=none
15588 dynamic_linker="$host_os ld.so"
15589 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15590
15591 need_lib_prefix=unknown
15592 hardcode_into_libs=no
15593
15594 # when you set need_version to no, make sure it does not cause -set_version
15595 # flags to be left without arguments
15596 need_version=unknown
15597
15598 case $host_os in
15599 aix3*)
15600   version_type=linux
15601   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15602   shlibpath_var=LIBPATH
15603
15604   # AIX 3 has no versioning support, so we append a major version to the name.
15605   soname_spec='${libname}${release}${shared_ext}$major'
15606   ;;
15607
15608 aix[4-9]*)
15609   version_type=linux
15610   need_lib_prefix=no
15611   need_version=no
15612   hardcode_into_libs=yes
15613   if test "$host_cpu" = ia64; then
15614     # AIX 5 supports IA64
15615     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15616     shlibpath_var=LD_LIBRARY_PATH
15617   else
15618     # With GCC up to 2.95.x, collect2 would create an import file
15619     # for dependence libraries.  The import file would start with
15620     # the line `#! .'.  This would cause the generated library to
15621     # depend on `.', always an invalid library.  This was fixed in
15622     # development snapshots of GCC prior to 3.0.
15623     case $host_os in
15624       aix4 | aix4.[01] | aix4.[01].*)
15625       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15626            echo ' yes '
15627            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15628         :
15629       else
15630         can_build_shared=no
15631       fi
15632       ;;
15633     esac
15634     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15635     # soname into executable. Probably we can add versioning support to
15636     # collect2, so additional links can be useful in future.
15637     if test "$aix_use_runtimelinking" = yes; then
15638       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15639       # instead of lib<name>.a to let people know that these are not
15640       # typical AIX shared libraries.
15641       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15642     else
15643       # We preserve .a as extension for shared libraries through AIX4.2
15644       # and later when we are not doing run time linking.
15645       library_names_spec='${libname}${release}.a $libname.a'
15646       soname_spec='${libname}${release}${shared_ext}$major'
15647     fi
15648     shlibpath_var=LIBPATH
15649   fi
15650   ;;
15651
15652 amigaos*)
15653   library_names_spec='$libname.ixlibrary $libname.a'
15654   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15655   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'
15656   ;;
15657
15658 beos*)
15659   library_names_spec='${libname}${shared_ext}'
15660   dynamic_linker="$host_os ld.so"
15661   shlibpath_var=LIBRARY_PATH
15662   ;;
15663
15664 bsdi[45]*)
15665   version_type=linux
15666   need_version=no
15667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15668   soname_spec='${libname}${release}${shared_ext}$major'
15669   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15670   shlibpath_var=LD_LIBRARY_PATH
15671   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15672   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15673   # the default ld.so.conf also contains /usr/contrib/lib and
15674   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15675   # libtool to hard-code these into programs
15676   ;;
15677
15678 cygwin* | mingw* | pw32*)
15679   version_type=windows
15680   shrext_cmds=".dll"
15681   need_version=no
15682   need_lib_prefix=no
15683
15684   case $GCC,$host_os in
15685   yes,cygwin* | yes,mingw* | yes,pw32*)
15686     library_names_spec='$libname.dll.a'
15687     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15688     postinstall_cmds='base_file=`basename \${file}`~
15689       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15690       dldir=$destdir/`dirname \$dlpath`~
15691       test -d \$dldir || mkdir -p \$dldir~
15692       $install_prog $dir/$dlname \$dldir/$dlname~
15693       chmod a+x \$dldir/$dlname'
15694     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15695       dlpath=$dir/\$dldll~
15696        $rm \$dlpath'
15697     shlibpath_overrides_runpath=yes
15698
15699     case $host_os in
15700     cygwin*)
15701       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15702       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15703       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15704       ;;
15705     mingw*)
15706       # MinGW DLLs use traditional 'lib' prefix
15707       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15708       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15709       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15710         # It is most probably a Windows format PATH printed by
15711         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15712         # path with ; separators, and with drive letters. We can handle the
15713         # drive letters (cygwin fileutils understands them), so leave them,
15714         # especially as we might pass files found there to a mingw objdump,
15715         # which wouldn't understand a cygwinified path. Ahh.
15716         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15717       else
15718         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15719       fi
15720       ;;
15721     pw32*)
15722       # pw32 DLLs use 'pw' prefix rather than 'lib'
15723       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15724       ;;
15725     esac
15726     ;;
15727
15728   *)
15729     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15730     ;;
15731   esac
15732   dynamic_linker='Win32 ld.exe'
15733   # FIXME: first we should search . and the directory the executable is in
15734   shlibpath_var=PATH
15735   ;;
15736
15737 darwin* | rhapsody*)
15738   dynamic_linker="$host_os dyld"
15739   version_type=darwin
15740   need_lib_prefix=no
15741   need_version=no
15742   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15743   soname_spec='${libname}${release}${major}$shared_ext'
15744   shlibpath_overrides_runpath=yes
15745   shlibpath_var=DYLD_LIBRARY_PATH
15746   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15747
15748   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15749   ;;
15750
15751 dgux*)
15752   version_type=linux
15753   need_lib_prefix=no
15754   need_version=no
15755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15756   soname_spec='${libname}${release}${shared_ext}$major'
15757   shlibpath_var=LD_LIBRARY_PATH
15758   ;;
15759
15760 freebsd1*)
15761   dynamic_linker=no
15762   ;;
15763
15764 freebsd* | dragonfly*)
15765   # DragonFly does not have aout.  When/if they implement a new
15766   # versioning mechanism, adjust this.
15767   if test -x /usr/bin/objformat; then
15768     objformat=`/usr/bin/objformat`
15769   else
15770     case $host_os in
15771     freebsd[123]*) objformat=aout ;;
15772     *) objformat=elf ;;
15773     esac
15774   fi
15775   version_type=freebsd-$objformat
15776   case $version_type in
15777     freebsd-elf*)
15778       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15779       need_version=no
15780       need_lib_prefix=no
15781       ;;
15782     freebsd-*)
15783       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15784       need_version=yes
15785       ;;
15786   esac
15787   shlibpath_var=LD_LIBRARY_PATH
15788   case $host_os in
15789   freebsd2*)
15790     shlibpath_overrides_runpath=yes
15791     ;;
15792   freebsd3.[01]* | freebsdelf3.[01]*)
15793     shlibpath_overrides_runpath=yes
15794     hardcode_into_libs=yes
15795     ;;
15796   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15797   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15798     shlibpath_overrides_runpath=no
15799     hardcode_into_libs=yes
15800     ;;
15801   *) # from 4.6 on, and DragonFly
15802     shlibpath_overrides_runpath=yes
15803     hardcode_into_libs=yes
15804     ;;
15805   esac
15806   ;;
15807
15808 gnu*)
15809   version_type=linux
15810   need_lib_prefix=no
15811   need_version=no
15812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15813   soname_spec='${libname}${release}${shared_ext}$major'
15814   shlibpath_var=LD_LIBRARY_PATH
15815   hardcode_into_libs=yes
15816   ;;
15817
15818 hpux9* | hpux10* | hpux11*)
15819   # Give a soname corresponding to the major version so that dld.sl refuses to
15820   # link against other versions.
15821   version_type=sunos
15822   need_lib_prefix=no
15823   need_version=no
15824   case $host_cpu in
15825   ia64*)
15826     shrext_cmds='.so'
15827     hardcode_into_libs=yes
15828     dynamic_linker="$host_os dld.so"
15829     shlibpath_var=LD_LIBRARY_PATH
15830     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15831     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15832     soname_spec='${libname}${release}${shared_ext}$major'
15833     if test "X$HPUX_IA64_MODE" = X32; then
15834       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15835     else
15836       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15837     fi
15838     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15839     ;;
15840    hppa*64*)
15841      shrext_cmds='.sl'
15842      hardcode_into_libs=yes
15843      dynamic_linker="$host_os dld.sl"
15844      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15845      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15846      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15847      soname_spec='${libname}${release}${shared_ext}$major'
15848      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15849      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15850      ;;
15851    *)
15852     shrext_cmds='.sl'
15853     dynamic_linker="$host_os dld.sl"
15854     shlibpath_var=SHLIB_PATH
15855     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15856     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15857     soname_spec='${libname}${release}${shared_ext}$major'
15858     ;;
15859   esac
15860   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15861   postinstall_cmds='chmod 555 $lib'
15862   ;;
15863
15864 interix[3-9]*)
15865   version_type=linux
15866   need_lib_prefix=no
15867   need_version=no
15868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15869   soname_spec='${libname}${release}${shared_ext}$major'
15870   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15871   shlibpath_var=LD_LIBRARY_PATH
15872   shlibpath_overrides_runpath=no
15873   hardcode_into_libs=yes
15874   ;;
15875
15876 irix5* | irix6* | nonstopux*)
15877   case $host_os in
15878     nonstopux*) version_type=nonstopux ;;
15879     *)
15880         if test "$lt_cv_prog_gnu_ld" = yes; then
15881                 version_type=linux
15882         else
15883                 version_type=irix
15884         fi ;;
15885   esac
15886   need_lib_prefix=no
15887   need_version=no
15888   soname_spec='${libname}${release}${shared_ext}$major'
15889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15890   case $host_os in
15891   irix5* | nonstopux*)
15892     libsuff= shlibsuff=
15893     ;;
15894   *)
15895     case $LD in # libtool.m4 will add one of these switches to LD
15896     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15897       libsuff= shlibsuff= libmagic=32-bit;;
15898     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15899       libsuff=32 shlibsuff=N32 libmagic=N32;;
15900     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15901       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15902     *) libsuff= shlibsuff= libmagic=never-match;;
15903     esac
15904     ;;
15905   esac
15906   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15907   shlibpath_overrides_runpath=no
15908   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15909   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15910   hardcode_into_libs=yes
15911   ;;
15912
15913 # No shared lib support for Linux oldld, aout, or coff.
15914 linux*oldld* | linux*aout* | linux*coff*)
15915   dynamic_linker=no
15916   ;;
15917
15918 # This must be Linux ELF.
15919 linux* | k*bsd*-gnu)
15920   version_type=linux
15921   need_lib_prefix=no
15922   need_version=no
15923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15924   soname_spec='${libname}${release}${shared_ext}$major'
15925   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15926   shlibpath_var=LD_LIBRARY_PATH
15927   shlibpath_overrides_runpath=no
15928   # This implies no fast_install, which is unacceptable.
15929   # Some rework will be needed to allow for fast_install
15930   # before this can be enabled.
15931   hardcode_into_libs=yes
15932
15933   # Append ld.so.conf contents to the search path
15934   if test -f /etc/ld.so.conf; then
15935     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' ' '`
15936     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15937   fi
15938
15939   # We used to test for /lib/ld.so.1 and disable shared libraries on
15940   # powerpc, because MkLinux only supported shared libraries with the
15941   # GNU dynamic linker.  Since this was broken with cross compilers,
15942   # most powerpc-linux boxes support dynamic linking these days and
15943   # people can always --disable-shared, the test was removed, and we
15944   # assume the GNU/Linux dynamic linker is in use.
15945   dynamic_linker='GNU/Linux ld.so'
15946   ;;
15947
15948 netbsdelf*-gnu)
15949   version_type=linux
15950   need_lib_prefix=no
15951   need_version=no
15952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15953   soname_spec='${libname}${release}${shared_ext}$major'
15954   shlibpath_var=LD_LIBRARY_PATH
15955   shlibpath_overrides_runpath=no
15956   hardcode_into_libs=yes
15957   dynamic_linker='NetBSD ld.elf_so'
15958   ;;
15959
15960 netbsd*)
15961   version_type=sunos
15962   need_lib_prefix=no
15963   need_version=no
15964   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15965     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15966     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15967     dynamic_linker='NetBSD (a.out) ld.so'
15968   else
15969     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15970     soname_spec='${libname}${release}${shared_ext}$major'
15971     dynamic_linker='NetBSD ld.elf_so'
15972   fi
15973   shlibpath_var=LD_LIBRARY_PATH
15974   shlibpath_overrides_runpath=yes
15975   hardcode_into_libs=yes
15976   ;;
15977
15978 newsos6)
15979   version_type=linux
15980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15981   shlibpath_var=LD_LIBRARY_PATH
15982   shlibpath_overrides_runpath=yes
15983   ;;
15984
15985 nto-qnx*)
15986   version_type=linux
15987   need_lib_prefix=no
15988   need_version=no
15989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15990   soname_spec='${libname}${release}${shared_ext}$major'
15991   shlibpath_var=LD_LIBRARY_PATH
15992   shlibpath_overrides_runpath=yes
15993   ;;
15994
15995 openbsd*)
15996   version_type=sunos
15997   sys_lib_dlsearch_path_spec="/usr/lib"
15998   need_lib_prefix=no
15999   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16000   case $host_os in
16001     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16002     *)                         need_version=no  ;;
16003   esac
16004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16005   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16006   shlibpath_var=LD_LIBRARY_PATH
16007   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16008     case $host_os in
16009       openbsd2.[89] | openbsd2.[89].*)
16010         shlibpath_overrides_runpath=no
16011         ;;
16012       *)
16013         shlibpath_overrides_runpath=yes
16014         ;;
16015       esac
16016   else
16017     shlibpath_overrides_runpath=yes
16018   fi
16019   ;;
16020
16021 os2*)
16022   libname_spec='$name'
16023   shrext_cmds=".dll"
16024   need_lib_prefix=no
16025   library_names_spec='$libname${shared_ext} $libname.a'
16026   dynamic_linker='OS/2 ld.exe'
16027   shlibpath_var=LIBPATH
16028   ;;
16029
16030 osf3* | osf4* | osf5*)
16031   version_type=osf
16032   need_lib_prefix=no
16033   need_version=no
16034   soname_spec='${libname}${release}${shared_ext}$major'
16035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16036   shlibpath_var=LD_LIBRARY_PATH
16037   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16038   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16039   ;;
16040
16041 rdos*)
16042   dynamic_linker=no
16043   ;;
16044
16045 solaris*)
16046   version_type=linux
16047   need_lib_prefix=no
16048   need_version=no
16049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050   soname_spec='${libname}${release}${shared_ext}$major'
16051   shlibpath_var=LD_LIBRARY_PATH
16052   shlibpath_overrides_runpath=yes
16053   hardcode_into_libs=yes
16054   # ldd complains unless libraries are executable
16055   postinstall_cmds='chmod +x $lib'
16056   ;;
16057
16058 sunos4*)
16059   version_type=sunos
16060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16061   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16062   shlibpath_var=LD_LIBRARY_PATH
16063   shlibpath_overrides_runpath=yes
16064   if test "$with_gnu_ld" = yes; then
16065     need_lib_prefix=no
16066   fi
16067   need_version=yes
16068   ;;
16069
16070 sysv4 | sysv4.3*)
16071   version_type=linux
16072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16073   soname_spec='${libname}${release}${shared_ext}$major'
16074   shlibpath_var=LD_LIBRARY_PATH
16075   case $host_vendor in
16076     sni)
16077       shlibpath_overrides_runpath=no
16078       need_lib_prefix=no
16079       export_dynamic_flag_spec='${wl}-Blargedynsym'
16080       runpath_var=LD_RUN_PATH
16081       ;;
16082     siemens)
16083       need_lib_prefix=no
16084       ;;
16085     motorola)
16086       need_lib_prefix=no
16087       need_version=no
16088       shlibpath_overrides_runpath=no
16089       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16090       ;;
16091   esac
16092   ;;
16093
16094 sysv4*MP*)
16095   if test -d /usr/nec ;then
16096     version_type=linux
16097     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16098     soname_spec='$libname${shared_ext}.$major'
16099     shlibpath_var=LD_LIBRARY_PATH
16100   fi
16101   ;;
16102
16103 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16104   version_type=freebsd-elf
16105   need_lib_prefix=no
16106   need_version=no
16107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16108   soname_spec='${libname}${release}${shared_ext}$major'
16109   shlibpath_var=LD_LIBRARY_PATH
16110   hardcode_into_libs=yes
16111   if test "$with_gnu_ld" = yes; then
16112     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16113     shlibpath_overrides_runpath=no
16114   else
16115     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16116     shlibpath_overrides_runpath=yes
16117     case $host_os in
16118       sco3.2v5*)
16119         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16120         ;;
16121     esac
16122   fi
16123   sys_lib_dlsearch_path_spec='/usr/lib'
16124   ;;
16125
16126 uts4*)
16127   version_type=linux
16128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16129   soname_spec='${libname}${release}${shared_ext}$major'
16130   shlibpath_var=LD_LIBRARY_PATH
16131   ;;
16132
16133 *)
16134   dynamic_linker=no
16135   ;;
16136 esac
16137 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16138 echo "${ECHO_T}$dynamic_linker" >&6; }
16139 test "$dynamic_linker" = no && can_build_shared=no
16140
16141 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16142   echo $ECHO_N "(cached) $ECHO_C" >&6
16143 else
16144   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16145 fi
16146
16147 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16148 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16149   echo $ECHO_N "(cached) $ECHO_C" >&6
16150 else
16151   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16152 fi
16153
16154 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16155
16156 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16157 if test "$GCC" = yes; then
16158   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16159 fi
16160
16161 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16162 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16163 hardcode_action_F77=
16164 if test -n "$hardcode_libdir_flag_spec_F77" || \
16165    test -n "$runpath_var_F77" || \
16166    test "X$hardcode_automatic_F77" = "Xyes" ; then
16167
16168   # We can hardcode non-existant directories.
16169   if test "$hardcode_direct_F77" != no &&
16170      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16171      # have to relink, otherwise we might link with an installed library
16172      # when we should be linking with a yet-to-be-installed one
16173      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16174      test "$hardcode_minus_L_F77" != no; then
16175     # Linking always hardcodes the temporary library directory.
16176     hardcode_action_F77=relink
16177   else
16178     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16179     hardcode_action_F77=immediate
16180   fi
16181 else
16182   # We cannot hardcode anything, or else we can only hardcode existing
16183   # directories.
16184   hardcode_action_F77=unsupported
16185 fi
16186 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16187 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16188
16189 if test "$hardcode_action_F77" = relink; then
16190   # Fast installation is not supported
16191   enable_fast_install=no
16192 elif test "$shlibpath_overrides_runpath" = yes ||
16193      test "$enable_shared" = no; then
16194   # Fast installation is not necessary
16195   enable_fast_install=needless
16196 fi
16197
16198
16199 # The else clause should only fire when bootstrapping the
16200 # libtool distribution, otherwise you forgot to ship ltmain.sh
16201 # with your package, and you will get complaints that there are
16202 # no rules to generate ltmain.sh.
16203 if test -f "$ltmain"; then
16204   # See if we are running on zsh, and set the options which allow our commands through
16205   # without removal of \ escapes.
16206   if test -n "${ZSH_VERSION+set}" ; then
16207     setopt NO_GLOB_SUBST
16208   fi
16209   # Now quote all the things that may contain metacharacters while being
16210   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16211   # variables and quote the copies for generation of the libtool script.
16212   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16213     SED SHELL STRIP \
16214     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16215     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16216     deplibs_check_method reload_flag reload_cmds need_locks \
16217     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16218     lt_cv_sys_global_symbol_to_c_name_address \
16219     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16220     old_postinstall_cmds old_postuninstall_cmds \
16221     compiler_F77 \
16222     CC_F77 \
16223     LD_F77 \
16224     lt_prog_compiler_wl_F77 \
16225     lt_prog_compiler_pic_F77 \
16226     lt_prog_compiler_static_F77 \
16227     lt_prog_compiler_no_builtin_flag_F77 \
16228     export_dynamic_flag_spec_F77 \
16229     thread_safe_flag_spec_F77 \
16230     whole_archive_flag_spec_F77 \
16231     enable_shared_with_static_runtimes_F77 \
16232     old_archive_cmds_F77 \
16233     old_archive_from_new_cmds_F77 \
16234     predep_objects_F77 \
16235     postdep_objects_F77 \
16236     predeps_F77 \
16237     postdeps_F77 \
16238     compiler_lib_search_path_F77 \
16239     compiler_lib_search_dirs_F77 \
16240     archive_cmds_F77 \
16241     archive_expsym_cmds_F77 \
16242     postinstall_cmds_F77 \
16243     postuninstall_cmds_F77 \
16244     old_archive_from_expsyms_cmds_F77 \
16245     allow_undefined_flag_F77 \
16246     no_undefined_flag_F77 \
16247     export_symbols_cmds_F77 \
16248     hardcode_libdir_flag_spec_F77 \
16249     hardcode_libdir_flag_spec_ld_F77 \
16250     hardcode_libdir_separator_F77 \
16251     hardcode_automatic_F77 \
16252     module_cmds_F77 \
16253     module_expsym_cmds_F77 \
16254     lt_cv_prog_compiler_c_o_F77 \
16255     fix_srcfile_path_F77 \
16256     exclude_expsyms_F77 \
16257     include_expsyms_F77; do
16258
16259     case $var in
16260     old_archive_cmds_F77 | \
16261     old_archive_from_new_cmds_F77 | \
16262     archive_cmds_F77 | \
16263     archive_expsym_cmds_F77 | \
16264     module_cmds_F77 | \
16265     module_expsym_cmds_F77 | \
16266     old_archive_from_expsyms_cmds_F77 | \
16267     export_symbols_cmds_F77 | \
16268     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16269     postinstall_cmds | postuninstall_cmds | \
16270     old_postinstall_cmds | old_postuninstall_cmds | \
16271     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16272       # Double-quote double-evaled strings.
16273       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16274       ;;
16275     *)
16276       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16277       ;;
16278     esac
16279   done
16280
16281   case $lt_echo in
16282   *'\$0 --fallback-echo"')
16283     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16284     ;;
16285   esac
16286
16287 cfgfile="$ofile"
16288
16289   cat <<__EOF__ >> "$cfgfile"
16290 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16291
16292 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16293
16294 # Shell to use when invoking shell scripts.
16295 SHELL=$lt_SHELL
16296
16297 # Whether or not to build shared libraries.
16298 build_libtool_libs=$enable_shared
16299
16300 # Whether or not to build static libraries.
16301 build_old_libs=$enable_static
16302
16303 # Whether or not to add -lc for building shared libraries.
16304 build_libtool_need_lc=$archive_cmds_need_lc_F77
16305
16306 # Whether or not to disallow shared libs when runtime libs are static
16307 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16308
16309 # Whether or not to optimize for fast installation.
16310 fast_install=$enable_fast_install
16311
16312 # The host system.
16313 host_alias=$host_alias
16314 host=$host
16315 host_os=$host_os
16316
16317 # The build system.
16318 build_alias=$build_alias
16319 build=$build
16320 build_os=$build_os
16321
16322 # An echo program that does not interpret backslashes.
16323 echo=$lt_echo
16324
16325 # The archiver.
16326 AR=$lt_AR
16327 AR_FLAGS=$lt_AR_FLAGS
16328
16329 # A C compiler.
16330 LTCC=$lt_LTCC
16331
16332 # LTCC compiler flags.
16333 LTCFLAGS=$lt_LTCFLAGS
16334
16335 # A language-specific compiler.
16336 CC=$lt_compiler_F77
16337
16338 # Is the compiler the GNU C compiler?
16339 with_gcc=$GCC_F77
16340
16341 # An ERE matcher.
16342 EGREP=$lt_EGREP
16343
16344 # The linker used to build libraries.
16345 LD=$lt_LD_F77
16346
16347 # Whether we need hard or soft links.
16348 LN_S=$lt_LN_S
16349
16350 # A BSD-compatible nm program.
16351 NM=$lt_NM
16352
16353 # A symbol stripping program
16354 STRIP=$lt_STRIP
16355
16356 # Used to examine libraries when file_magic_cmd begins "file"
16357 MAGIC_CMD=$MAGIC_CMD
16358
16359 # Used on cygwin: DLL creation program.
16360 DLLTOOL="$DLLTOOL"
16361
16362 # Used on cygwin: object dumper.
16363 OBJDUMP="$OBJDUMP"
16364
16365 # Used on cygwin: assembler.
16366 AS="$AS"
16367
16368 # The name of the directory that contains temporary libtool files.
16369 objdir=$objdir
16370
16371 # How to create reloadable object files.
16372 reload_flag=$lt_reload_flag
16373 reload_cmds=$lt_reload_cmds
16374
16375 # How to pass a linker flag through the compiler.
16376 wl=$lt_lt_prog_compiler_wl_F77
16377
16378 # Object file suffix (normally "o").
16379 objext="$ac_objext"
16380
16381 # Old archive suffix (normally "a").
16382 libext="$libext"
16383
16384 # Shared library suffix (normally ".so").
16385 shrext_cmds='$shrext_cmds'
16386
16387 # Executable file suffix (normally "").
16388 exeext="$exeext"
16389
16390 # Additional compiler flags for building library objects.
16391 pic_flag=$lt_lt_prog_compiler_pic_F77
16392 pic_mode=$pic_mode
16393
16394 # What is the maximum length of a command?
16395 max_cmd_len=$lt_cv_sys_max_cmd_len
16396
16397 # Does compiler simultaneously support -c and -o options?
16398 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16399
16400 # Must we lock files when doing compilation?
16401 need_locks=$lt_need_locks
16402
16403 # Do we need the lib prefix for modules?
16404 need_lib_prefix=$need_lib_prefix
16405
16406 # Do we need a version for libraries?
16407 need_version=$need_version
16408
16409 # Whether dlopen is supported.
16410 dlopen_support=$enable_dlopen
16411
16412 # Whether dlopen of programs is supported.
16413 dlopen_self=$enable_dlopen_self
16414
16415 # Whether dlopen of statically linked programs is supported.
16416 dlopen_self_static=$enable_dlopen_self_static
16417
16418 # Compiler flag to prevent dynamic linking.
16419 link_static_flag=$lt_lt_prog_compiler_static_F77
16420
16421 # Compiler flag to turn off builtin functions.
16422 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16423
16424 # Compiler flag to allow reflexive dlopens.
16425 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16426
16427 # Compiler flag to generate shared objects directly from archives.
16428 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16429
16430 # Compiler flag to generate thread-safe objects.
16431 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16432
16433 # Library versioning type.
16434 version_type=$version_type
16435
16436 # Format of library name prefix.
16437 libname_spec=$lt_libname_spec
16438
16439 # List of archive names.  First name is the real one, the rest are links.
16440 # The last name is the one that the linker finds with -lNAME.
16441 library_names_spec=$lt_library_names_spec
16442
16443 # The coded name of the library, if different from the real name.
16444 soname_spec=$lt_soname_spec
16445
16446 # Commands used to build and install an old-style archive.
16447 RANLIB=$lt_RANLIB
16448 old_archive_cmds=$lt_old_archive_cmds_F77
16449 old_postinstall_cmds=$lt_old_postinstall_cmds
16450 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16451
16452 # Create an old-style archive from a shared archive.
16453 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16454
16455 # Create a temporary old-style archive to link instead of a shared archive.
16456 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16457
16458 # Commands used to build and install a shared archive.
16459 archive_cmds=$lt_archive_cmds_F77
16460 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16461 postinstall_cmds=$lt_postinstall_cmds
16462 postuninstall_cmds=$lt_postuninstall_cmds
16463
16464 # Commands used to build a loadable module (assumed same as above if empty)
16465 module_cmds=$lt_module_cmds_F77
16466 module_expsym_cmds=$lt_module_expsym_cmds_F77
16467
16468 # Commands to strip libraries.
16469 old_striplib=$lt_old_striplib
16470 striplib=$lt_striplib
16471
16472 # Dependencies to place before the objects being linked to create a
16473 # shared library.
16474 predep_objects=$lt_predep_objects_F77
16475
16476 # Dependencies to place after the objects being linked to create a
16477 # shared library.
16478 postdep_objects=$lt_postdep_objects_F77
16479
16480 # Dependencies to place before the objects being linked to create a
16481 # shared library.
16482 predeps=$lt_predeps_F77
16483
16484 # Dependencies to place after the objects being linked to create a
16485 # shared library.
16486 postdeps=$lt_postdeps_F77
16487
16488 # The directories searched by this compiler when creating a shared
16489 # library
16490 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16491
16492 # The library search path used internally by the compiler when linking
16493 # a shared library.
16494 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16495
16496 # Method to check whether dependent libraries are shared objects.
16497 deplibs_check_method=$lt_deplibs_check_method
16498
16499 # Command to use when deplibs_check_method == file_magic.
16500 file_magic_cmd=$lt_file_magic_cmd
16501
16502 # Flag that allows shared libraries with undefined symbols to be built.
16503 allow_undefined_flag=$lt_allow_undefined_flag_F77
16504
16505 # Flag that forces no undefined symbols.
16506 no_undefined_flag=$lt_no_undefined_flag_F77
16507
16508 # Commands used to finish a libtool library installation in a directory.
16509 finish_cmds=$lt_finish_cmds
16510
16511 # Same as above, but a single script fragment to be evaled but not shown.
16512 finish_eval=$lt_finish_eval
16513
16514 # Take the output of nm and produce a listing of raw symbols and C names.
16515 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16516
16517 # Transform the output of nm in a proper C declaration
16518 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16519
16520 # Transform the output of nm in a C name address pair
16521 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16522
16523 # This is the shared library runtime path variable.
16524 runpath_var=$runpath_var
16525
16526 # This is the shared library path variable.
16527 shlibpath_var=$shlibpath_var
16528
16529 # Is shlibpath searched before the hard-coded library search path?
16530 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16531
16532 # How to hardcode a shared library path into an executable.
16533 hardcode_action=$hardcode_action_F77
16534
16535 # Whether we should hardcode library paths into libraries.
16536 hardcode_into_libs=$hardcode_into_libs
16537
16538 # Flag to hardcode \$libdir into a binary during linking.
16539 # This must work even if \$libdir does not exist.
16540 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16541
16542 # If ld is used when linking, flag to hardcode \$libdir into
16543 # a binary during linking. This must work even if \$libdir does
16544 # not exist.
16545 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16546
16547 # Whether we need a single -rpath flag with a separated argument.
16548 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16549
16550 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16551 # resulting binary.
16552 hardcode_direct=$hardcode_direct_F77
16553
16554 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16555 # resulting binary.
16556 hardcode_minus_L=$hardcode_minus_L_F77
16557
16558 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16559 # the resulting binary.
16560 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16561
16562 # Set to yes if building a shared library automatically hardcodes DIR into the library
16563 # and all subsequent libraries and executables linked against it.
16564 hardcode_automatic=$hardcode_automatic_F77
16565
16566 # Variables whose values should be saved in libtool wrapper scripts and
16567 # restored at relink time.
16568 variables_saved_for_relink="$variables_saved_for_relink"
16569
16570 # Whether libtool must link a program against all its dependency libraries.
16571 link_all_deplibs=$link_all_deplibs_F77
16572
16573 # Compile-time system search path for libraries
16574 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16575
16576 # Run-time system search path for libraries
16577 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16578
16579 # Fix the shell variable \$srcfile for the compiler.
16580 fix_srcfile_path=$lt_fix_srcfile_path
16581
16582 # Set to yes if exported symbols are required.
16583 always_export_symbols=$always_export_symbols_F77
16584
16585 # The commands to list exported symbols.
16586 export_symbols_cmds=$lt_export_symbols_cmds_F77
16587
16588 # The commands to extract the exported symbol list from a shared archive.
16589 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16590
16591 # Symbols that should not be listed in the preloaded symbols.
16592 exclude_expsyms=$lt_exclude_expsyms_F77
16593
16594 # Symbols that must always be exported.
16595 include_expsyms=$lt_include_expsyms_F77
16596
16597 # ### END LIBTOOL TAG CONFIG: $tagname
16598
16599 __EOF__
16600
16601
16602 else
16603   # If there is no Makefile yet, we rely on a make rule to execute
16604   # `config.status --recheck' to rerun these tests and create the
16605   # libtool script then.
16606   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16607   if test -f "$ltmain_in"; then
16608     test -f Makefile && make "$ltmain"
16609   fi
16610 fi
16611
16612
16613 ac_ext=c
16614 ac_cpp='$CPP $CPPFLAGS'
16615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16618
16619 CC="$lt_save_CC"
16620
16621         else
16622           tagname=""
16623         fi
16624         ;;
16625
16626       GCJ)
16627         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16628
16629
16630 # Source file extension for Java test sources.
16631 ac_ext=java
16632
16633 # Object file extension for compiled Java test sources.
16634 objext=o
16635 objext_GCJ=$objext
16636
16637 # Code to be used in simple compile tests
16638 lt_simple_compile_test_code="class foo {}"
16639
16640 # Code to be used in simple link tests
16641 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16642
16643 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16644
16645 # If no C compiler was specified, use CC.
16646 LTCC=${LTCC-"$CC"}
16647
16648 # If no C compiler flags were specified, use CFLAGS.
16649 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16650
16651 # Allow CC to be a program name with arguments.
16652 compiler=$CC
16653
16654
16655 # save warnings/boilerplate of simple test code
16656 ac_outfile=conftest.$ac_objext
16657 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16658 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16659 _lt_compiler_boilerplate=`cat conftest.err`
16660 $rm conftest*
16661
16662 ac_outfile=conftest.$ac_objext
16663 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16664 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16665 _lt_linker_boilerplate=`cat conftest.err`
16666 $rm -r conftest*
16667
16668
16669 # Allow CC to be a program name with arguments.
16670 lt_save_CC="$CC"
16671 CC=${GCJ-"gcj"}
16672 compiler=$CC
16673 compiler_GCJ=$CC
16674 for cc_temp in $compiler""; do
16675   case $cc_temp in
16676     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16677     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16678     \-*) ;;
16679     *) break;;
16680   esac
16681 done
16682 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16683
16684
16685 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16686 archive_cmds_need_lc_GCJ=no
16687
16688 old_archive_cmds_GCJ=$old_archive_cmds
16689
16690
16691 lt_prog_compiler_no_builtin_flag_GCJ=
16692
16693 if test "$GCC" = yes; then
16694   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16695
16696
16697 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16698 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16699 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16700   echo $ECHO_N "(cached) $ECHO_C" >&6
16701 else
16702   lt_cv_prog_compiler_rtti_exceptions=no
16703   ac_outfile=conftest.$ac_objext
16704    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16705    lt_compiler_flag="-fno-rtti -fno-exceptions"
16706    # Insert the option either (1) after the last *FLAGS variable, or
16707    # (2) before a word containing "conftest.", or (3) at the end.
16708    # Note that $ac_compile itself does not contain backslashes and begins
16709    # with a dollar sign (not a hyphen), so the echo should work correctly.
16710    # The option is referenced via a variable to avoid confusing sed.
16711    lt_compile=`echo "$ac_compile" | $SED \
16712    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16713    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16714    -e 's:$: $lt_compiler_flag:'`
16715    (eval echo "\"\$as_me:16715: $lt_compile\"" >&5)
16716    (eval "$lt_compile" 2>conftest.err)
16717    ac_status=$?
16718    cat conftest.err >&5
16719    echo "$as_me:16719: \$? = $ac_status" >&5
16720    if (exit $ac_status) && test -s "$ac_outfile"; then
16721      # The compiler can only warn and ignore the option if not recognized
16722      # So say no if there are warnings other than the usual output.
16723      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16724      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16725      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16726        lt_cv_prog_compiler_rtti_exceptions=yes
16727      fi
16728    fi
16729    $rm conftest*
16730
16731 fi
16732 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16733 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16734
16735 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16736     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16737 else
16738     :
16739 fi
16740
16741 fi
16742
16743 lt_prog_compiler_wl_GCJ=
16744 lt_prog_compiler_pic_GCJ=
16745 lt_prog_compiler_static_GCJ=
16746
16747 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16748 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16749
16750   if test "$GCC" = yes; then
16751     lt_prog_compiler_wl_GCJ='-Wl,'
16752     lt_prog_compiler_static_GCJ='-static'
16753
16754     case $host_os in
16755       aix*)
16756       # All AIX code is PIC.
16757       if test "$host_cpu" = ia64; then
16758         # AIX 5 now supports IA64 processor
16759         lt_prog_compiler_static_GCJ='-Bstatic'
16760       fi
16761       ;;
16762
16763     amigaos*)
16764       # FIXME: we need at least 68020 code to build shared libraries, but
16765       # adding the `-m68020' flag to GCC prevents building anything better,
16766       # like `-m68040'.
16767       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16768       ;;
16769
16770     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16771       # PIC is the default for these OSes.
16772       ;;
16773
16774     mingw* | cygwin* | pw32* | os2*)
16775       # This hack is so that the source file can tell whether it is being
16776       # built for inclusion in a dll (and should export symbols for example).
16777       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16778       # (--disable-auto-import) libraries
16779
16780       ;;
16781
16782     darwin* | rhapsody*)
16783       # PIC is the default on this platform
16784       # Common symbols not allowed in MH_DYLIB files
16785       lt_prog_compiler_pic_GCJ='-fno-common'
16786       ;;
16787
16788     interix[3-9]*)
16789       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16790       # Instead, we relocate shared libraries at runtime.
16791       ;;
16792
16793     msdosdjgpp*)
16794       # Just because we use GCC doesn't mean we suddenly get shared libraries
16795       # on systems that don't support them.
16796       lt_prog_compiler_can_build_shared_GCJ=no
16797       enable_shared=no
16798       ;;
16799
16800     sysv4*MP*)
16801       if test -d /usr/nec; then
16802         lt_prog_compiler_pic_GCJ=-Kconform_pic
16803       fi
16804       ;;
16805
16806     hpux*)
16807       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16808       # not for PA HP-UX.
16809       case $host_cpu in
16810       hppa*64*|ia64*)
16811         # +Z the default
16812         ;;
16813       *)
16814         lt_prog_compiler_pic_GCJ='-fPIC'
16815         ;;
16816       esac
16817       ;;
16818
16819     *)
16820       lt_prog_compiler_pic_GCJ='-fPIC'
16821       ;;
16822     esac
16823   else
16824     # PORTME Check for flag to pass linker flags through the system compiler.
16825     case $host_os in
16826     aix*)
16827       lt_prog_compiler_wl_GCJ='-Wl,'
16828       if test "$host_cpu" = ia64; then
16829         # AIX 5 now supports IA64 processor
16830         lt_prog_compiler_static_GCJ='-Bstatic'
16831       else
16832         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16833       fi
16834       ;;
16835       darwin*)
16836         # PIC is the default on this platform
16837         # Common symbols not allowed in MH_DYLIB files
16838        case $cc_basename in
16839          xlc*)
16840          lt_prog_compiler_pic_GCJ='-qnocommon'
16841          lt_prog_compiler_wl_GCJ='-Wl,'
16842          ;;
16843        esac
16844        ;;
16845
16846     mingw* | cygwin* | pw32* | os2*)
16847       # This hack is so that the source file can tell whether it is being
16848       # built for inclusion in a dll (and should export symbols for example).
16849
16850       ;;
16851
16852     hpux9* | hpux10* | hpux11*)
16853       lt_prog_compiler_wl_GCJ='-Wl,'
16854       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16855       # not for PA HP-UX.
16856       case $host_cpu in
16857       hppa*64*|ia64*)
16858         # +Z the default
16859         ;;
16860       *)
16861         lt_prog_compiler_pic_GCJ='+Z'
16862         ;;
16863       esac
16864       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16865       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16866       ;;
16867
16868     irix5* | irix6* | nonstopux*)
16869       lt_prog_compiler_wl_GCJ='-Wl,'
16870       # PIC (with -KPIC) is the default.
16871       lt_prog_compiler_static_GCJ='-non_shared'
16872       ;;
16873
16874     newsos6)
16875       lt_prog_compiler_pic_GCJ='-KPIC'
16876       lt_prog_compiler_static_GCJ='-Bstatic'
16877       ;;
16878
16879     linux* | k*bsd*-gnu)
16880       case $cc_basename in
16881       icc* | ecc*)
16882         lt_prog_compiler_wl_GCJ='-Wl,'
16883         lt_prog_compiler_pic_GCJ='-KPIC'
16884         lt_prog_compiler_static_GCJ='-static'
16885         ;;
16886       pgcc* | pgf77* | pgf90* | pgf95*)
16887         # Portland Group compilers (*not* the Pentium gcc compiler,
16888         # which looks to be a dead project)
16889         lt_prog_compiler_wl_GCJ='-Wl,'
16890         lt_prog_compiler_pic_GCJ='-fpic'
16891         lt_prog_compiler_static_GCJ='-Bstatic'
16892         ;;
16893       ccc*)
16894         lt_prog_compiler_wl_GCJ='-Wl,'
16895         # All Alpha code is PIC.
16896         lt_prog_compiler_static_GCJ='-non_shared'
16897         ;;
16898       *)
16899         case `$CC -V 2>&1 | sed 5q` in
16900         *Sun\ C*)
16901           # Sun C 5.9
16902           lt_prog_compiler_pic_GCJ='-KPIC'
16903           lt_prog_compiler_static_GCJ='-Bstatic'
16904           lt_prog_compiler_wl_GCJ='-Wl,'
16905           ;;
16906         *Sun\ F*)
16907           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16908           lt_prog_compiler_pic_GCJ='-KPIC'
16909           lt_prog_compiler_static_GCJ='-Bstatic'
16910           lt_prog_compiler_wl_GCJ=''
16911           ;;
16912         esac
16913         ;;
16914       esac
16915       ;;
16916
16917     osf3* | osf4* | osf5*)
16918       lt_prog_compiler_wl_GCJ='-Wl,'
16919       # All OSF/1 code is PIC.
16920       lt_prog_compiler_static_GCJ='-non_shared'
16921       ;;
16922
16923     rdos*)
16924       lt_prog_compiler_static_GCJ='-non_shared'
16925       ;;
16926
16927     solaris*)
16928       lt_prog_compiler_pic_GCJ='-KPIC'
16929       lt_prog_compiler_static_GCJ='-Bstatic'
16930       case $cc_basename in
16931       f77* | f90* | f95*)
16932         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16933       *)
16934         lt_prog_compiler_wl_GCJ='-Wl,';;
16935       esac
16936       ;;
16937
16938     sunos4*)
16939       lt_prog_compiler_wl_GCJ='-Qoption ld '
16940       lt_prog_compiler_pic_GCJ='-PIC'
16941       lt_prog_compiler_static_GCJ='-Bstatic'
16942       ;;
16943
16944     sysv4 | sysv4.2uw2* | sysv4.3*)
16945       lt_prog_compiler_wl_GCJ='-Wl,'
16946       lt_prog_compiler_pic_GCJ='-KPIC'
16947       lt_prog_compiler_static_GCJ='-Bstatic'
16948       ;;
16949
16950     sysv4*MP*)
16951       if test -d /usr/nec ;then
16952         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16953         lt_prog_compiler_static_GCJ='-Bstatic'
16954       fi
16955       ;;
16956
16957     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16958       lt_prog_compiler_wl_GCJ='-Wl,'
16959       lt_prog_compiler_pic_GCJ='-KPIC'
16960       lt_prog_compiler_static_GCJ='-Bstatic'
16961       ;;
16962
16963     unicos*)
16964       lt_prog_compiler_wl_GCJ='-Wl,'
16965       lt_prog_compiler_can_build_shared_GCJ=no
16966       ;;
16967
16968     uts4*)
16969       lt_prog_compiler_pic_GCJ='-pic'
16970       lt_prog_compiler_static_GCJ='-Bstatic'
16971       ;;
16972
16973     *)
16974       lt_prog_compiler_can_build_shared_GCJ=no
16975       ;;
16976     esac
16977   fi
16978
16979 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16980 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16981
16982 #
16983 # Check to make sure the PIC flag actually works.
16984 #
16985 if test -n "$lt_prog_compiler_pic_GCJ"; then
16986
16987 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16988 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16989 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16990   echo $ECHO_N "(cached) $ECHO_C" >&6
16991 else
16992   lt_cv_prog_compiler_pic_works_GCJ=no
16993   ac_outfile=conftest.$ac_objext
16994    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16995    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16996    # Insert the option either (1) after the last *FLAGS variable, or
16997    # (2) before a word containing "conftest.", or (3) at the end.
16998    # Note that $ac_compile itself does not contain backslashes and begins
16999    # with a dollar sign (not a hyphen), so the echo should work correctly.
17000    # The option is referenced via a variable to avoid confusing sed.
17001    lt_compile=`echo "$ac_compile" | $SED \
17002    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17003    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17004    -e 's:$: $lt_compiler_flag:'`
17005    (eval echo "\"\$as_me:17005: $lt_compile\"" >&5)
17006    (eval "$lt_compile" 2>conftest.err)
17007    ac_status=$?
17008    cat conftest.err >&5
17009    echo "$as_me:17009: \$? = $ac_status" >&5
17010    if (exit $ac_status) && test -s "$ac_outfile"; then
17011      # The compiler can only warn and ignore the option if not recognized
17012      # So say no if there are warnings other than the usual output.
17013      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17014      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17015      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17016        lt_cv_prog_compiler_pic_works_GCJ=yes
17017      fi
17018    fi
17019    $rm conftest*
17020
17021 fi
17022 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17023 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17024
17025 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17026     case $lt_prog_compiler_pic_GCJ in
17027      "" | " "*) ;;
17028      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17029      esac
17030 else
17031     lt_prog_compiler_pic_GCJ=
17032      lt_prog_compiler_can_build_shared_GCJ=no
17033 fi
17034
17035 fi
17036 case $host_os in
17037   # For platforms which do not support PIC, -DPIC is meaningless:
17038   *djgpp*)
17039     lt_prog_compiler_pic_GCJ=
17040     ;;
17041   *)
17042     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17043     ;;
17044 esac
17045
17046 #
17047 # Check to make sure the static flag actually works.
17048 #
17049 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17050 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17051 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17052 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17053   echo $ECHO_N "(cached) $ECHO_C" >&6
17054 else
17055   lt_cv_prog_compiler_static_works_GCJ=no
17056    save_LDFLAGS="$LDFLAGS"
17057    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17058    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17059    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17060      # The linker can only warn and ignore the option if not recognized
17061      # So say no if there are warnings
17062      if test -s conftest.err; then
17063        # Append any errors to the config.log.
17064        cat conftest.err 1>&5
17065        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17066        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17067        if diff conftest.exp conftest.er2 >/dev/null; then
17068          lt_cv_prog_compiler_static_works_GCJ=yes
17069        fi
17070      else
17071        lt_cv_prog_compiler_static_works_GCJ=yes
17072      fi
17073    fi
17074    $rm -r conftest*
17075    LDFLAGS="$save_LDFLAGS"
17076
17077 fi
17078 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17079 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17080
17081 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17082     :
17083 else
17084     lt_prog_compiler_static_GCJ=
17085 fi
17086
17087
17088 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17089 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17090 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17091   echo $ECHO_N "(cached) $ECHO_C" >&6
17092 else
17093   lt_cv_prog_compiler_c_o_GCJ=no
17094    $rm -r conftest 2>/dev/null
17095    mkdir conftest
17096    cd conftest
17097    mkdir out
17098    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17099
17100    lt_compiler_flag="-o out/conftest2.$ac_objext"
17101    # Insert the option either (1) after the last *FLAGS variable, or
17102    # (2) before a word containing "conftest.", or (3) at the end.
17103    # Note that $ac_compile itself does not contain backslashes and begins
17104    # with a dollar sign (not a hyphen), so the echo should work correctly.
17105    lt_compile=`echo "$ac_compile" | $SED \
17106    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17107    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17108    -e 's:$: $lt_compiler_flag:'`
17109    (eval echo "\"\$as_me:17109: $lt_compile\"" >&5)
17110    (eval "$lt_compile" 2>out/conftest.err)
17111    ac_status=$?
17112    cat out/conftest.err >&5
17113    echo "$as_me:17113: \$? = $ac_status" >&5
17114    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17115    then
17116      # The compiler can only warn and ignore the option if not recognized
17117      # So say no if there are warnings
17118      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17119      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17120      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17121        lt_cv_prog_compiler_c_o_GCJ=yes
17122      fi
17123    fi
17124    chmod u+w . 2>&5
17125    $rm conftest*
17126    # SGI C++ compiler will create directory out/ii_files/ for
17127    # template instantiation
17128    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17129    $rm out/* && rmdir out
17130    cd ..
17131    rmdir conftest
17132    $rm conftest*
17133
17134 fi
17135 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17136 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17137
17138
17139 hard_links="nottested"
17140 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17141   # do not overwrite the value of need_locks provided by the user
17142   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17143 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17144   hard_links=yes
17145   $rm conftest*
17146   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17147   touch conftest.a
17148   ln conftest.a conftest.b 2>&5 || hard_links=no
17149   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17150   { echo "$as_me:$LINENO: result: $hard_links" >&5
17151 echo "${ECHO_T}$hard_links" >&6; }
17152   if test "$hard_links" = no; then
17153     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17154 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17155     need_locks=warn
17156   fi
17157 else
17158   need_locks=no
17159 fi
17160
17161 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17162 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17163
17164   runpath_var=
17165   allow_undefined_flag_GCJ=
17166   enable_shared_with_static_runtimes_GCJ=no
17167   archive_cmds_GCJ=
17168   archive_expsym_cmds_GCJ=
17169   old_archive_From_new_cmds_GCJ=
17170   old_archive_from_expsyms_cmds_GCJ=
17171   export_dynamic_flag_spec_GCJ=
17172   whole_archive_flag_spec_GCJ=
17173   thread_safe_flag_spec_GCJ=
17174   hardcode_libdir_flag_spec_GCJ=
17175   hardcode_libdir_flag_spec_ld_GCJ=
17176   hardcode_libdir_separator_GCJ=
17177   hardcode_direct_GCJ=no
17178   hardcode_minus_L_GCJ=no
17179   hardcode_shlibpath_var_GCJ=unsupported
17180   link_all_deplibs_GCJ=unknown
17181   hardcode_automatic_GCJ=no
17182   module_cmds_GCJ=
17183   module_expsym_cmds_GCJ=
17184   always_export_symbols_GCJ=no
17185   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17186   # include_expsyms should be a list of space-separated symbols to be *always*
17187   # included in the symbol list
17188   include_expsyms_GCJ=
17189   # exclude_expsyms can be an extended regexp of symbols to exclude
17190   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17191   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17192   # as well as any symbol that contains `d'.
17193   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17194   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17195   # platforms (ab)use it in PIC code, but their linkers get confused if
17196   # the symbol is explicitly referenced.  Since portable code cannot
17197   # rely on this symbol name, it's probably fine to never include it in
17198   # preloaded symbol tables.
17199   # Exclude shared library initialization/finalization symbols.
17200   extract_expsyms_cmds=
17201   # Just being paranoid about ensuring that cc_basename is set.
17202   for cc_temp in $compiler""; do
17203   case $cc_temp in
17204     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17205     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17206     \-*) ;;
17207     *) break;;
17208   esac
17209 done
17210 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17211
17212   case $host_os in
17213   cygwin* | mingw* | pw32*)
17214     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17215     # When not using gcc, we currently assume that we are using
17216     # Microsoft Visual C++.
17217     if test "$GCC" != yes; then
17218       with_gnu_ld=no
17219     fi
17220     ;;
17221   interix*)
17222     # we just hope/assume this is gcc and not c89 (= MSVC++)
17223     with_gnu_ld=yes
17224     ;;
17225   openbsd*)
17226     with_gnu_ld=no
17227     ;;
17228   esac
17229
17230   ld_shlibs_GCJ=yes
17231   if test "$with_gnu_ld" = yes; then
17232     # If archive_cmds runs LD, not CC, wlarc should be empty
17233     wlarc='${wl}'
17234
17235     # Set some defaults for GNU ld with shared library support. These
17236     # are reset later if shared libraries are not supported. Putting them
17237     # here allows them to be overridden if necessary.
17238     runpath_var=LD_RUN_PATH
17239     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17240     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17241     # ancient GNU ld didn't support --whole-archive et. al.
17242     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17243         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17244       else
17245         whole_archive_flag_spec_GCJ=
17246     fi
17247     supports_anon_versioning=no
17248     case `$LD -v 2>/dev/null` in
17249       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17250       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17251       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17252       *\ 2.11.*) ;; # other 2.11 versions
17253       *) supports_anon_versioning=yes ;;
17254     esac
17255
17256     # See if GNU ld supports shared libraries.
17257     case $host_os in
17258     aix[3-9]*)
17259       # On AIX/PPC, the GNU linker is very broken
17260       if test "$host_cpu" != ia64; then
17261         ld_shlibs_GCJ=no
17262         cat <<EOF 1>&2
17263
17264 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17265 *** to be unable to reliably create shared libraries on AIX.
17266 *** Therefore, libtool is disabling shared libraries support.  If you
17267 *** really care for shared libraries, you may want to modify your PATH
17268 *** so that a non-GNU linker is found, and then restart.
17269
17270 EOF
17271       fi
17272       ;;
17273
17274     amigaos*)
17275       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)'
17276       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17277       hardcode_minus_L_GCJ=yes
17278
17279       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17280       # that the semantics of dynamic libraries on AmigaOS, at least up
17281       # to version 4, is to share data among multiple programs linked
17282       # with the same dynamic library.  Since this doesn't match the
17283       # behavior of shared libraries on other platforms, we can't use
17284       # them.
17285       ld_shlibs_GCJ=no
17286       ;;
17287
17288     beos*)
17289       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17290         allow_undefined_flag_GCJ=unsupported
17291         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17292         # support --undefined.  This deserves some investigation.  FIXME
17293         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17294       else
17295         ld_shlibs_GCJ=no
17296       fi
17297       ;;
17298
17299     cygwin* | mingw* | pw32*)
17300       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17301       # as there is no search path for DLLs.
17302       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17303       allow_undefined_flag_GCJ=unsupported
17304       always_export_symbols_GCJ=no
17305       enable_shared_with_static_runtimes_GCJ=yes
17306       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17307
17308       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17309         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17310         # If the export-symbols file already is a .def file (1st line
17311         # is EXPORTS), use it as is; otherwise, prepend...
17312         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17313           cp $export_symbols $output_objdir/$soname.def;
17314         else
17315           echo EXPORTS > $output_objdir/$soname.def;
17316           cat $export_symbols >> $output_objdir/$soname.def;
17317         fi~
17318         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17319       else
17320         ld_shlibs_GCJ=no
17321       fi
17322       ;;
17323
17324     interix[3-9]*)
17325       hardcode_direct_GCJ=no
17326       hardcode_shlibpath_var_GCJ=no
17327       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17328       export_dynamic_flag_spec_GCJ='${wl}-E'
17329       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17330       # Instead, shared libraries are loaded at an image base (0x10000000 by
17331       # default) and relocated if they conflict, which is a slow very memory
17332       # consuming and fragmenting process.  To avoid this, we pick a random,
17333       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17334       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17335       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'
17336       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'
17337       ;;
17338
17339     gnu* | linux* | k*bsd*-gnu)
17340       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17341         tmp_addflag=
17342         case $cc_basename,$host_cpu in
17343         pgcc*)                          # Portland Group C compiler
17344           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'
17345           tmp_addflag=' $pic_flag'
17346           ;;
17347         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17348           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'
17349           tmp_addflag=' $pic_flag -Mnomain' ;;
17350         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17351           tmp_addflag=' -i_dynamic' ;;
17352         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17353           tmp_addflag=' -i_dynamic -nofor_main' ;;
17354         ifc* | ifort*)                  # Intel Fortran compiler
17355           tmp_addflag=' -nofor_main' ;;
17356         esac
17357         case `$CC -V 2>&1 | sed 5q` in
17358         *Sun\ C*)                       # Sun C 5.9
17359           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'
17360           tmp_sharedflag='-G' ;;
17361         *Sun\ F*)                       # Sun Fortran 8.3
17362           tmp_sharedflag='-G' ;;
17363         *)
17364           tmp_sharedflag='-shared' ;;
17365         esac
17366         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17367
17368         if test $supports_anon_versioning = yes; then
17369           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17370   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17371   $echo "local: *; };" >> $output_objdir/$libname.ver~
17372           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17373         fi
17374         link_all_deplibs_GCJ=no
17375       else
17376         ld_shlibs_GCJ=no
17377       fi
17378       ;;
17379
17380     netbsd* | netbsdelf*-gnu)
17381       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17382         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17383         wlarc=
17384       else
17385         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17386         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17387       fi
17388       ;;
17389
17390     solaris*)
17391       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17392         ld_shlibs_GCJ=no
17393         cat <<EOF 1>&2
17394
17395 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17396 *** create shared libraries on Solaris systems.  Therefore, libtool
17397 *** is disabling shared libraries support.  We urge you to upgrade GNU
17398 *** binutils to release 2.9.1 or newer.  Another option is to modify
17399 *** your PATH or compiler configuration so that the native linker is
17400 *** used, and then restart.
17401
17402 EOF
17403       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17404         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17405         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17406       else
17407         ld_shlibs_GCJ=no
17408       fi
17409       ;;
17410
17411     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17412       case `$LD -v 2>&1` in
17413         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17414         ld_shlibs_GCJ=no
17415         cat <<_LT_EOF 1>&2
17416
17417 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17418 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17419 *** is disabling shared libraries support.  We urge you to upgrade GNU
17420 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17421 *** your PATH or compiler configuration so that the native linker is
17422 *** used, and then restart.
17423
17424 _LT_EOF
17425         ;;
17426         *)
17427           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17428             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17429             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17430             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17431           else
17432             ld_shlibs_GCJ=no
17433           fi
17434         ;;
17435       esac
17436       ;;
17437
17438     sunos4*)
17439       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17440       wlarc=
17441       hardcode_direct_GCJ=yes
17442       hardcode_shlibpath_var_GCJ=no
17443       ;;
17444
17445     *)
17446       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17447         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17448         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17449       else
17450         ld_shlibs_GCJ=no
17451       fi
17452       ;;
17453     esac
17454
17455     if test "$ld_shlibs_GCJ" = no; then
17456       runpath_var=
17457       hardcode_libdir_flag_spec_GCJ=
17458       export_dynamic_flag_spec_GCJ=
17459       whole_archive_flag_spec_GCJ=
17460     fi
17461   else
17462     # PORTME fill in a description of your system's linker (not GNU ld)
17463     case $host_os in
17464     aix3*)
17465       allow_undefined_flag_GCJ=unsupported
17466       always_export_symbols_GCJ=yes
17467       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'
17468       # Note: this linker hardcodes the directories in LIBPATH if there
17469       # are no directories specified by -L.
17470       hardcode_minus_L_GCJ=yes
17471       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17472         # Neither direct hardcoding nor static linking is supported with a
17473         # broken collect2.
17474         hardcode_direct_GCJ=unsupported
17475       fi
17476       ;;
17477
17478     aix[4-9]*)
17479       if test "$host_cpu" = ia64; then
17480         # On IA64, the linker does run time linking by default, so we don't
17481         # have to do anything special.
17482         aix_use_runtimelinking=no
17483         exp_sym_flag='-Bexport'
17484         no_entry_flag=""
17485       else
17486         # If we're using GNU nm, then we don't want the "-C" option.
17487         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17488         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17489           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'
17490         else
17491           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'
17492         fi
17493         aix_use_runtimelinking=no
17494
17495         # Test if we are trying to use run time linking or normal
17496         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17497         # need to do runtime linking.
17498         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17499           for ld_flag in $LDFLAGS; do
17500           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17501             aix_use_runtimelinking=yes
17502             break
17503           fi
17504           done
17505           ;;
17506         esac
17507
17508         exp_sym_flag='-bexport'
17509         no_entry_flag='-bnoentry'
17510       fi
17511
17512       # When large executables or shared objects are built, AIX ld can
17513       # have problems creating the table of contents.  If linking a library
17514       # or program results in "error TOC overflow" add -mminimal-toc to
17515       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17516       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17517
17518       archive_cmds_GCJ=''
17519       hardcode_direct_GCJ=yes
17520       hardcode_libdir_separator_GCJ=':'
17521       link_all_deplibs_GCJ=yes
17522
17523       if test "$GCC" = yes; then
17524         case $host_os in aix4.[012]|aix4.[012].*)
17525         # We only want to do this on AIX 4.2 and lower, the check
17526         # below for broken collect2 doesn't work under 4.3+
17527           collect2name=`${CC} -print-prog-name=collect2`
17528           if test -f "$collect2name" && \
17529            strings "$collect2name" | grep resolve_lib_name >/dev/null
17530           then
17531           # We have reworked collect2
17532           :
17533           else
17534           # We have old collect2
17535           hardcode_direct_GCJ=unsupported
17536           # It fails to find uninstalled libraries when the uninstalled
17537           # path is not listed in the libpath.  Setting hardcode_minus_L
17538           # to unsupported forces relinking
17539           hardcode_minus_L_GCJ=yes
17540           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17541           hardcode_libdir_separator_GCJ=
17542           fi
17543           ;;
17544         esac
17545         shared_flag='-shared'
17546         if test "$aix_use_runtimelinking" = yes; then
17547           shared_flag="$shared_flag "'${wl}-G'
17548         fi
17549       else
17550         # not using gcc
17551         if test "$host_cpu" = ia64; then
17552         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17553         # chokes on -Wl,-G. The following line is correct:
17554           shared_flag='-G'
17555         else
17556           if test "$aix_use_runtimelinking" = yes; then
17557             shared_flag='${wl}-G'
17558           else
17559             shared_flag='${wl}-bM:SRE'
17560           fi
17561         fi
17562       fi
17563
17564       # It seems that -bexpall does not export symbols beginning with
17565       # underscore (_), so it is better to generate a list of symbols to export.
17566       always_export_symbols_GCJ=yes
17567       if test "$aix_use_runtimelinking" = yes; then
17568         # Warning - without using the other runtime loading flags (-brtl),
17569         # -berok will link without error, but may produce a broken library.
17570         allow_undefined_flag_GCJ='-berok'
17571        # Determine the default libpath from the value encoded in an empty executable.
17572        cat >conftest.$ac_ext <<_ACEOF
17573 /* confdefs.h.  */
17574 _ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h.  */
17578
17579 int
17580 main ()
17581 {
17582
17583   ;
17584   return 0;
17585 }
17586 _ACEOF
17587 rm -f conftest.$ac_objext conftest$ac_exeext
17588 if { (ac_try="$ac_link"
17589 case "(($ac_try" in
17590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17591   *) ac_try_echo=$ac_try;;
17592 esac
17593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17594   (eval "$ac_link") 2>conftest.er1
17595   ac_status=$?
17596   grep -v '^ *+' conftest.er1 >conftest.err
17597   rm -f conftest.er1
17598   cat conftest.err >&5
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); } && {
17601          test -z "$ac_c_werror_flag" ||
17602          test ! -s conftest.err
17603        } && test -s conftest$ac_exeext &&
17604        $as_test_x conftest$ac_exeext; then
17605
17606 lt_aix_libpath_sed='
17607     /Import File Strings/,/^$/ {
17608         /^0/ {
17609             s/^0  *\(.*\)$/\1/
17610             p
17611         }
17612     }'
17613 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17614 # Check for a 64-bit object if we didn't find anything.
17615 if test -z "$aix_libpath"; then
17616   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17617 fi
17618 else
17619   echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17621
17622
17623 fi
17624
17625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17626       conftest$ac_exeext conftest.$ac_ext
17627 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17628
17629        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17630         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"
17631        else
17632         if test "$host_cpu" = ia64; then
17633           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17634           allow_undefined_flag_GCJ="-z nodefs"
17635           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"
17636         else
17637          # Determine the default libpath from the value encoded in an empty executable.
17638          cat >conftest.$ac_ext <<_ACEOF
17639 /* confdefs.h.  */
17640 _ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h.  */
17644
17645 int
17646 main ()
17647 {
17648
17649   ;
17650   return 0;
17651 }
17652 _ACEOF
17653 rm -f conftest.$ac_objext conftest$ac_exeext
17654 if { (ac_try="$ac_link"
17655 case "(($ac_try" in
17656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17657   *) ac_try_echo=$ac_try;;
17658 esac
17659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17660   (eval "$ac_link") 2>conftest.er1
17661   ac_status=$?
17662   grep -v '^ *+' conftest.er1 >conftest.err
17663   rm -f conftest.er1
17664   cat conftest.err >&5
17665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666   (exit $ac_status); } && {
17667          test -z "$ac_c_werror_flag" ||
17668          test ! -s conftest.err
17669        } && test -s conftest$ac_exeext &&
17670        $as_test_x conftest$ac_exeext; then
17671
17672 lt_aix_libpath_sed='
17673     /Import File Strings/,/^$/ {
17674         /^0/ {
17675             s/^0  *\(.*\)$/\1/
17676             p
17677         }
17678     }'
17679 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17680 # Check for a 64-bit object if we didn't find anything.
17681 if test -z "$aix_libpath"; then
17682   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17683 fi
17684 else
17685   echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17687
17688
17689 fi
17690
17691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17692       conftest$ac_exeext conftest.$ac_ext
17693 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17694
17695          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17696           # Warning - without using the other run time loading flags,
17697           # -berok will link without error, but may produce a broken library.
17698           no_undefined_flag_GCJ=' ${wl}-bernotok'
17699           allow_undefined_flag_GCJ=' ${wl}-berok'
17700           # Exported symbols can be pulled into shared objects from archives
17701           whole_archive_flag_spec_GCJ='$convenience'
17702           archive_cmds_need_lc_GCJ=yes
17703           # This is similar to how AIX traditionally builds its shared libraries.
17704           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'
17705         fi
17706       fi
17707       ;;
17708
17709     amigaos*)
17710       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)'
17711       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17712       hardcode_minus_L_GCJ=yes
17713       # see comment about different semantics on the GNU ld section
17714       ld_shlibs_GCJ=no
17715       ;;
17716
17717     bsdi[45]*)
17718       export_dynamic_flag_spec_GCJ=-rdynamic
17719       ;;
17720
17721     cygwin* | mingw* | pw32*)
17722       # When not using gcc, we currently assume that we are using
17723       # Microsoft Visual C++.
17724       # hardcode_libdir_flag_spec is actually meaningless, as there is
17725       # no search path for DLLs.
17726       hardcode_libdir_flag_spec_GCJ=' '
17727       allow_undefined_flag_GCJ=unsupported
17728       # Tell ltmain to make .lib files, not .a files.
17729       libext=lib
17730       # Tell ltmain to make .dll files, not .so files.
17731       shrext_cmds=".dll"
17732       # FIXME: Setting linknames here is a bad hack.
17733       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17734       # The linker will automatically build a .lib file if we build a DLL.
17735       old_archive_From_new_cmds_GCJ='true'
17736       # FIXME: Should let the user specify the lib program.
17737       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17738       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17739       enable_shared_with_static_runtimes_GCJ=yes
17740       ;;
17741
17742     darwin* | rhapsody*)
17743       case $host_os in
17744         rhapsody* | darwin1.[012])
17745          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17746          ;;
17747        *) # Darwin 1.3 on
17748          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17749            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17750          else
17751            case ${MACOSX_DEPLOYMENT_TARGET} in
17752              10.[012])
17753                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17754                ;;
17755              10.*)
17756                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17757                ;;
17758            esac
17759          fi
17760          ;;
17761       esac
17762       archive_cmds_need_lc_GCJ=no
17763       hardcode_direct_GCJ=no
17764       hardcode_automatic_GCJ=yes
17765       hardcode_shlibpath_var_GCJ=unsupported
17766       whole_archive_flag_spec_GCJ=''
17767       link_all_deplibs_GCJ=yes
17768     if test "$GCC" = yes ; then
17769         output_verbose_link_cmd='echo'
17770         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}"
17771         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17772         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}"
17773         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}"
17774     else
17775       case $cc_basename in
17776         xlc*)
17777          output_verbose_link_cmd='echo'
17778          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17779          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17780           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17781          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}'
17782           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}'
17783           ;;
17784        *)
17785          ld_shlibs_GCJ=no
17786           ;;
17787       esac
17788     fi
17789       ;;
17790
17791     dgux*)
17792       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17793       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17794       hardcode_shlibpath_var_GCJ=no
17795       ;;
17796
17797     freebsd1*)
17798       ld_shlibs_GCJ=no
17799       ;;
17800
17801     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17802     # support.  Future versions do this automatically, but an explicit c++rt0.o
17803     # does not break anything, and helps significantly (at the cost of a little
17804     # extra space).
17805     freebsd2.2*)
17806       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17807       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17808       hardcode_direct_GCJ=yes
17809       hardcode_shlibpath_var_GCJ=no
17810       ;;
17811
17812     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17813     freebsd2*)
17814       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17815       hardcode_direct_GCJ=yes
17816       hardcode_minus_L_GCJ=yes
17817       hardcode_shlibpath_var_GCJ=no
17818       ;;
17819
17820     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17821     freebsd* | dragonfly*)
17822       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17823       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17824       hardcode_direct_GCJ=yes
17825       hardcode_shlibpath_var_GCJ=no
17826       ;;
17827
17828     hpux9*)
17829       if test "$GCC" = yes; then
17830         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'
17831       else
17832         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'
17833       fi
17834       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17835       hardcode_libdir_separator_GCJ=:
17836       hardcode_direct_GCJ=yes
17837
17838       # hardcode_minus_L: Not really in the search PATH,
17839       # but as the default location of the library.
17840       hardcode_minus_L_GCJ=yes
17841       export_dynamic_flag_spec_GCJ='${wl}-E'
17842       ;;
17843
17844     hpux10*)
17845       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17846         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17847       else
17848         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17849       fi
17850       if test "$with_gnu_ld" = no; then
17851         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17852         hardcode_libdir_separator_GCJ=:
17853
17854         hardcode_direct_GCJ=yes
17855         export_dynamic_flag_spec_GCJ='${wl}-E'
17856
17857         # hardcode_minus_L: Not really in the search PATH,
17858         # but as the default location of the library.
17859         hardcode_minus_L_GCJ=yes
17860       fi
17861       ;;
17862
17863     hpux11*)
17864       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17865         case $host_cpu in
17866         hppa*64*)
17867           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17868           ;;
17869         ia64*)
17870           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17871           ;;
17872         *)
17873           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17874           ;;
17875         esac
17876       else
17877         case $host_cpu in
17878         hppa*64*)
17879           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17880           ;;
17881         ia64*)
17882           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17883           ;;
17884         *)
17885           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17886           ;;
17887         esac
17888       fi
17889       if test "$with_gnu_ld" = no; then
17890         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17891         hardcode_libdir_separator_GCJ=:
17892
17893         case $host_cpu in
17894         hppa*64*|ia64*)
17895           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17896           hardcode_direct_GCJ=no
17897           hardcode_shlibpath_var_GCJ=no
17898           ;;
17899         *)
17900           hardcode_direct_GCJ=yes
17901           export_dynamic_flag_spec_GCJ='${wl}-E'
17902
17903           # hardcode_minus_L: Not really in the search PATH,
17904           # but as the default location of the library.
17905           hardcode_minus_L_GCJ=yes
17906           ;;
17907         esac
17908       fi
17909       ;;
17910
17911     irix5* | irix6* | nonstopux*)
17912       if test "$GCC" = yes; then
17913         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'
17914       else
17915         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'
17916         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17917       fi
17918       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17919       hardcode_libdir_separator_GCJ=:
17920       link_all_deplibs_GCJ=yes
17921       ;;
17922
17923     netbsd* | netbsdelf*-gnu)
17924       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17925         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17926       else
17927         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17928       fi
17929       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17930       hardcode_direct_GCJ=yes
17931       hardcode_shlibpath_var_GCJ=no
17932       ;;
17933
17934     newsos6)
17935       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17936       hardcode_direct_GCJ=yes
17937       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17938       hardcode_libdir_separator_GCJ=:
17939       hardcode_shlibpath_var_GCJ=no
17940       ;;
17941
17942     openbsd*)
17943       if test -f /usr/libexec/ld.so; then
17944         hardcode_direct_GCJ=yes
17945         hardcode_shlibpath_var_GCJ=no
17946         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17947           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17948           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17949           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17950           export_dynamic_flag_spec_GCJ='${wl}-E'
17951         else
17952           case $host_os in
17953            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17954              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17955              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17956              ;;
17957            *)
17958              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17959              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17960              ;;
17961           esac
17962         fi
17963       else
17964         ld_shlibs_GCJ=no
17965       fi
17966       ;;
17967
17968     os2*)
17969       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17970       hardcode_minus_L_GCJ=yes
17971       allow_undefined_flag_GCJ=unsupported
17972       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'
17973       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17974       ;;
17975
17976     osf3*)
17977       if test "$GCC" = yes; then
17978         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17979         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'
17980       else
17981         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17982         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'
17983       fi
17984       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17985       hardcode_libdir_separator_GCJ=:
17986       ;;
17987
17988     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17989       if test "$GCC" = yes; then
17990         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17991         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'
17992         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17993       else
17994         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17995         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'
17996         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~
17997         $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'
17998
17999         # Both c and cxx compiler support -rpath directly
18000         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18001       fi
18002       hardcode_libdir_separator_GCJ=:
18003       ;;
18004
18005     solaris*)
18006       no_undefined_flag_GCJ=' -z text'
18007       if test "$GCC" = yes; then
18008         wlarc='${wl}'
18009         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18010         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18011           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18012       else
18013         wlarc=''
18014         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18015         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18016         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18017       fi
18018       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18019       hardcode_shlibpath_var_GCJ=no
18020       case $host_os in
18021       solaris2.[0-5] | solaris2.[0-5].*) ;;
18022       *)
18023         # The compiler driver will combine and reorder linker options,
18024         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18025         # but is careful enough not to reorder.
18026         # Supported since Solaris 2.6 (maybe 2.5.1?)
18027         if test "$GCC" = yes; then
18028           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18029         else
18030           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18031         fi
18032         ;;
18033       esac
18034       link_all_deplibs_GCJ=yes
18035       ;;
18036
18037     sunos4*)
18038       if test "x$host_vendor" = xsequent; then
18039         # Use $CC to link under sequent, because it throws in some extra .o
18040         # files that make .init and .fini sections work.
18041         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18042       else
18043         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18044       fi
18045       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18046       hardcode_direct_GCJ=yes
18047       hardcode_minus_L_GCJ=yes
18048       hardcode_shlibpath_var_GCJ=no
18049       ;;
18050
18051     sysv4)
18052       case $host_vendor in
18053         sni)
18054           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18055           hardcode_direct_GCJ=yes # is this really true???
18056         ;;
18057         siemens)
18058           ## LD is ld it makes a PLAMLIB
18059           ## CC just makes a GrossModule.
18060           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18061           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18062           hardcode_direct_GCJ=no
18063         ;;
18064         motorola)
18065           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18066           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18067         ;;
18068       esac
18069       runpath_var='LD_RUN_PATH'
18070       hardcode_shlibpath_var_GCJ=no
18071       ;;
18072
18073     sysv4.3*)
18074       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18075       hardcode_shlibpath_var_GCJ=no
18076       export_dynamic_flag_spec_GCJ='-Bexport'
18077       ;;
18078
18079     sysv4*MP*)
18080       if test -d /usr/nec; then
18081         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18082         hardcode_shlibpath_var_GCJ=no
18083         runpath_var=LD_RUN_PATH
18084         hardcode_runpath_var=yes
18085         ld_shlibs_GCJ=yes
18086       fi
18087       ;;
18088
18089     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18090       no_undefined_flag_GCJ='${wl}-z,text'
18091       archive_cmds_need_lc_GCJ=no
18092       hardcode_shlibpath_var_GCJ=no
18093       runpath_var='LD_RUN_PATH'
18094
18095       if test "$GCC" = yes; then
18096         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18097         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18098       else
18099         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18100         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18101       fi
18102       ;;
18103
18104     sysv5* | sco3.2v5* | sco5v6*)
18105       # Note: We can NOT use -z defs as we might desire, because we do not
18106       # link with -lc, and that would cause any symbols used from libc to
18107       # always be unresolved, which means just about no library would
18108       # ever link correctly.  If we're not using GNU ld we use -z text
18109       # though, which does catch some bad symbols but isn't as heavy-handed
18110       # as -z defs.
18111       no_undefined_flag_GCJ='${wl}-z,text'
18112       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18113       archive_cmds_need_lc_GCJ=no
18114       hardcode_shlibpath_var_GCJ=no
18115       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18116       hardcode_libdir_separator_GCJ=':'
18117       link_all_deplibs_GCJ=yes
18118       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18119       runpath_var='LD_RUN_PATH'
18120
18121       if test "$GCC" = yes; then
18122         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18123         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18124       else
18125         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18126         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18127       fi
18128       ;;
18129
18130     uts4*)
18131       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18132       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18133       hardcode_shlibpath_var_GCJ=no
18134       ;;
18135
18136     *)
18137       ld_shlibs_GCJ=no
18138       ;;
18139     esac
18140   fi
18141
18142 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18143 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18144 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18145
18146 #
18147 # Do we need to explicitly link libc?
18148 #
18149 case "x$archive_cmds_need_lc_GCJ" in
18150 x|xyes)
18151   # Assume -lc should be added
18152   archive_cmds_need_lc_GCJ=yes
18153
18154   if test "$enable_shared" = yes && test "$GCC" = yes; then
18155     case $archive_cmds_GCJ in
18156     *'~'*)
18157       # FIXME: we may have to deal with multi-command sequences.
18158       ;;
18159     '$CC '*)
18160       # Test whether the compiler implicitly links with -lc since on some
18161       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18162       # to ld, don't add -lc before -lgcc.
18163       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18164 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18165       $rm conftest*
18166       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18167
18168       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18169   (eval $ac_compile) 2>&5
18170   ac_status=$?
18171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172   (exit $ac_status); } 2>conftest.err; then
18173         soname=conftest
18174         lib=conftest
18175         libobjs=conftest.$ac_objext
18176         deplibs=
18177         wl=$lt_prog_compiler_wl_GCJ
18178         pic_flag=$lt_prog_compiler_pic_GCJ
18179         compiler_flags=-v
18180         linker_flags=-v
18181         verstring=
18182         output_objdir=.
18183         libname=conftest
18184         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18185         allow_undefined_flag_GCJ=
18186         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18187   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18188   ac_status=$?
18189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190   (exit $ac_status); }
18191         then
18192           archive_cmds_need_lc_GCJ=no
18193         else
18194           archive_cmds_need_lc_GCJ=yes
18195         fi
18196         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18197       else
18198         cat conftest.err 1>&5
18199       fi
18200       $rm conftest*
18201       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18202 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18203       ;;
18204     esac
18205   fi
18206   ;;
18207 esac
18208
18209 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18210 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18211 library_names_spec=
18212 libname_spec='lib$name'
18213 soname_spec=
18214 shrext_cmds=".so"
18215 postinstall_cmds=
18216 postuninstall_cmds=
18217 finish_cmds=
18218 finish_eval=
18219 shlibpath_var=
18220 shlibpath_overrides_runpath=unknown
18221 version_type=none
18222 dynamic_linker="$host_os ld.so"
18223 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18224
18225 need_lib_prefix=unknown
18226 hardcode_into_libs=no
18227
18228 # when you set need_version to no, make sure it does not cause -set_version
18229 # flags to be left without arguments
18230 need_version=unknown
18231
18232 case $host_os in
18233 aix3*)
18234   version_type=linux
18235   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18236   shlibpath_var=LIBPATH
18237
18238   # AIX 3 has no versioning support, so we append a major version to the name.
18239   soname_spec='${libname}${release}${shared_ext}$major'
18240   ;;
18241
18242 aix[4-9]*)
18243   version_type=linux
18244   need_lib_prefix=no
18245   need_version=no
18246   hardcode_into_libs=yes
18247   if test "$host_cpu" = ia64; then
18248     # AIX 5 supports IA64
18249     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18250     shlibpath_var=LD_LIBRARY_PATH
18251   else
18252     # With GCC up to 2.95.x, collect2 would create an import file
18253     # for dependence libraries.  The import file would start with
18254     # the line `#! .'.  This would cause the generated library to
18255     # depend on `.', always an invalid library.  This was fixed in
18256     # development snapshots of GCC prior to 3.0.
18257     case $host_os in
18258       aix4 | aix4.[01] | aix4.[01].*)
18259       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18260            echo ' yes '
18261            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18262         :
18263       else
18264         can_build_shared=no
18265       fi
18266       ;;
18267     esac
18268     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18269     # soname into executable. Probably we can add versioning support to
18270     # collect2, so additional links can be useful in future.
18271     if test "$aix_use_runtimelinking" = yes; then
18272       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18273       # instead of lib<name>.a to let people know that these are not
18274       # typical AIX shared libraries.
18275       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18276     else
18277       # We preserve .a as extension for shared libraries through AIX4.2
18278       # and later when we are not doing run time linking.
18279       library_names_spec='${libname}${release}.a $libname.a'
18280       soname_spec='${libname}${release}${shared_ext}$major'
18281     fi
18282     shlibpath_var=LIBPATH
18283   fi
18284   ;;
18285
18286 amigaos*)
18287   library_names_spec='$libname.ixlibrary $libname.a'
18288   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18289   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'
18290   ;;
18291
18292 beos*)
18293   library_names_spec='${libname}${shared_ext}'
18294   dynamic_linker="$host_os ld.so"
18295   shlibpath_var=LIBRARY_PATH
18296   ;;
18297
18298 bsdi[45]*)
18299   version_type=linux
18300   need_version=no
18301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18302   soname_spec='${libname}${release}${shared_ext}$major'
18303   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18304   shlibpath_var=LD_LIBRARY_PATH
18305   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18306   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18307   # the default ld.so.conf also contains /usr/contrib/lib and
18308   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18309   # libtool to hard-code these into programs
18310   ;;
18311
18312 cygwin* | mingw* | pw32*)
18313   version_type=windows
18314   shrext_cmds=".dll"
18315   need_version=no
18316   need_lib_prefix=no
18317
18318   case $GCC,$host_os in
18319   yes,cygwin* | yes,mingw* | yes,pw32*)
18320     library_names_spec='$libname.dll.a'
18321     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18322     postinstall_cmds='base_file=`basename \${file}`~
18323       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18324       dldir=$destdir/`dirname \$dlpath`~
18325       test -d \$dldir || mkdir -p \$dldir~
18326       $install_prog $dir/$dlname \$dldir/$dlname~
18327       chmod a+x \$dldir/$dlname'
18328     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18329       dlpath=$dir/\$dldll~
18330        $rm \$dlpath'
18331     shlibpath_overrides_runpath=yes
18332
18333     case $host_os in
18334     cygwin*)
18335       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18336       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18337       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18338       ;;
18339     mingw*)
18340       # MinGW DLLs use traditional 'lib' prefix
18341       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18342       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18343       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18344         # It is most probably a Windows format PATH printed by
18345         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18346         # path with ; separators, and with drive letters. We can handle the
18347         # drive letters (cygwin fileutils understands them), so leave them,
18348         # especially as we might pass files found there to a mingw objdump,
18349         # which wouldn't understand a cygwinified path. Ahh.
18350         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18351       else
18352         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18353       fi
18354       ;;
18355     pw32*)
18356       # pw32 DLLs use 'pw' prefix rather than 'lib'
18357       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18358       ;;
18359     esac
18360     ;;
18361
18362   *)
18363     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18364     ;;
18365   esac
18366   dynamic_linker='Win32 ld.exe'
18367   # FIXME: first we should search . and the directory the executable is in
18368   shlibpath_var=PATH
18369   ;;
18370
18371 darwin* | rhapsody*)
18372   dynamic_linker="$host_os dyld"
18373   version_type=darwin
18374   need_lib_prefix=no
18375   need_version=no
18376   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18377   soname_spec='${libname}${release}${major}$shared_ext'
18378   shlibpath_overrides_runpath=yes
18379   shlibpath_var=DYLD_LIBRARY_PATH
18380   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18381
18382   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18383   ;;
18384
18385 dgux*)
18386   version_type=linux
18387   need_lib_prefix=no
18388   need_version=no
18389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18390   soname_spec='${libname}${release}${shared_ext}$major'
18391   shlibpath_var=LD_LIBRARY_PATH
18392   ;;
18393
18394 freebsd1*)
18395   dynamic_linker=no
18396   ;;
18397
18398 freebsd* | dragonfly*)
18399   # DragonFly does not have aout.  When/if they implement a new
18400   # versioning mechanism, adjust this.
18401   if test -x /usr/bin/objformat; then
18402     objformat=`/usr/bin/objformat`
18403   else
18404     case $host_os in
18405     freebsd[123]*) objformat=aout ;;
18406     *) objformat=elf ;;
18407     esac
18408   fi
18409   version_type=freebsd-$objformat
18410   case $version_type in
18411     freebsd-elf*)
18412       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18413       need_version=no
18414       need_lib_prefix=no
18415       ;;
18416     freebsd-*)
18417       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18418       need_version=yes
18419       ;;
18420   esac
18421   shlibpath_var=LD_LIBRARY_PATH
18422   case $host_os in
18423   freebsd2*)
18424     shlibpath_overrides_runpath=yes
18425     ;;
18426   freebsd3.[01]* | freebsdelf3.[01]*)
18427     shlibpath_overrides_runpath=yes
18428     hardcode_into_libs=yes
18429     ;;
18430   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18431   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18432     shlibpath_overrides_runpath=no
18433     hardcode_into_libs=yes
18434     ;;
18435   *) # from 4.6 on, and DragonFly
18436     shlibpath_overrides_runpath=yes
18437     hardcode_into_libs=yes
18438     ;;
18439   esac
18440   ;;
18441
18442 gnu*)
18443   version_type=linux
18444   need_lib_prefix=no
18445   need_version=no
18446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18447   soname_spec='${libname}${release}${shared_ext}$major'
18448   shlibpath_var=LD_LIBRARY_PATH
18449   hardcode_into_libs=yes
18450   ;;
18451
18452 hpux9* | hpux10* | hpux11*)
18453   # Give a soname corresponding to the major version so that dld.sl refuses to
18454   # link against other versions.
18455   version_type=sunos
18456   need_lib_prefix=no
18457   need_version=no
18458   case $host_cpu in
18459   ia64*)
18460     shrext_cmds='.so'
18461     hardcode_into_libs=yes
18462     dynamic_linker="$host_os dld.so"
18463     shlibpath_var=LD_LIBRARY_PATH
18464     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18465     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18466     soname_spec='${libname}${release}${shared_ext}$major'
18467     if test "X$HPUX_IA64_MODE" = X32; then
18468       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18469     else
18470       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18471     fi
18472     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18473     ;;
18474    hppa*64*)
18475      shrext_cmds='.sl'
18476      hardcode_into_libs=yes
18477      dynamic_linker="$host_os dld.sl"
18478      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18479      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18480      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18481      soname_spec='${libname}${release}${shared_ext}$major'
18482      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18483      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18484      ;;
18485    *)
18486     shrext_cmds='.sl'
18487     dynamic_linker="$host_os dld.sl"
18488     shlibpath_var=SHLIB_PATH
18489     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18490     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18491     soname_spec='${libname}${release}${shared_ext}$major'
18492     ;;
18493   esac
18494   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18495   postinstall_cmds='chmod 555 $lib'
18496   ;;
18497
18498 interix[3-9]*)
18499   version_type=linux
18500   need_lib_prefix=no
18501   need_version=no
18502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18503   soname_spec='${libname}${release}${shared_ext}$major'
18504   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18505   shlibpath_var=LD_LIBRARY_PATH
18506   shlibpath_overrides_runpath=no
18507   hardcode_into_libs=yes
18508   ;;
18509
18510 irix5* | irix6* | nonstopux*)
18511   case $host_os in
18512     nonstopux*) version_type=nonstopux ;;
18513     *)
18514         if test "$lt_cv_prog_gnu_ld" = yes; then
18515                 version_type=linux
18516         else
18517                 version_type=irix
18518         fi ;;
18519   esac
18520   need_lib_prefix=no
18521   need_version=no
18522   soname_spec='${libname}${release}${shared_ext}$major'
18523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18524   case $host_os in
18525   irix5* | nonstopux*)
18526     libsuff= shlibsuff=
18527     ;;
18528   *)
18529     case $LD in # libtool.m4 will add one of these switches to LD
18530     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18531       libsuff= shlibsuff= libmagic=32-bit;;
18532     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18533       libsuff=32 shlibsuff=N32 libmagic=N32;;
18534     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18535       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18536     *) libsuff= shlibsuff= libmagic=never-match;;
18537     esac
18538     ;;
18539   esac
18540   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18541   shlibpath_overrides_runpath=no
18542   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18543   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18544   hardcode_into_libs=yes
18545   ;;
18546
18547 # No shared lib support for Linux oldld, aout, or coff.
18548 linux*oldld* | linux*aout* | linux*coff*)
18549   dynamic_linker=no
18550   ;;
18551
18552 # This must be Linux ELF.
18553 linux* | k*bsd*-gnu)
18554   version_type=linux
18555   need_lib_prefix=no
18556   need_version=no
18557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18558   soname_spec='${libname}${release}${shared_ext}$major'
18559   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18560   shlibpath_var=LD_LIBRARY_PATH
18561   shlibpath_overrides_runpath=no
18562   # This implies no fast_install, which is unacceptable.
18563   # Some rework will be needed to allow for fast_install
18564   # before this can be enabled.
18565   hardcode_into_libs=yes
18566
18567   # Append ld.so.conf contents to the search path
18568   if test -f /etc/ld.so.conf; then
18569     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' ' '`
18570     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18571   fi
18572
18573   # We used to test for /lib/ld.so.1 and disable shared libraries on
18574   # powerpc, because MkLinux only supported shared libraries with the
18575   # GNU dynamic linker.  Since this was broken with cross compilers,
18576   # most powerpc-linux boxes support dynamic linking these days and
18577   # people can always --disable-shared, the test was removed, and we
18578   # assume the GNU/Linux dynamic linker is in use.
18579   dynamic_linker='GNU/Linux ld.so'
18580   ;;
18581
18582 netbsdelf*-gnu)
18583   version_type=linux
18584   need_lib_prefix=no
18585   need_version=no
18586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18587   soname_spec='${libname}${release}${shared_ext}$major'
18588   shlibpath_var=LD_LIBRARY_PATH
18589   shlibpath_overrides_runpath=no
18590   hardcode_into_libs=yes
18591   dynamic_linker='NetBSD ld.elf_so'
18592   ;;
18593
18594 netbsd*)
18595   version_type=sunos
18596   need_lib_prefix=no
18597   need_version=no
18598   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18599     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18600     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18601     dynamic_linker='NetBSD (a.out) ld.so'
18602   else
18603     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18604     soname_spec='${libname}${release}${shared_ext}$major'
18605     dynamic_linker='NetBSD ld.elf_so'
18606   fi
18607   shlibpath_var=LD_LIBRARY_PATH
18608   shlibpath_overrides_runpath=yes
18609   hardcode_into_libs=yes
18610   ;;
18611
18612 newsos6)
18613   version_type=linux
18614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18615   shlibpath_var=LD_LIBRARY_PATH
18616   shlibpath_overrides_runpath=yes
18617   ;;
18618
18619 nto-qnx*)
18620   version_type=linux
18621   need_lib_prefix=no
18622   need_version=no
18623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18624   soname_spec='${libname}${release}${shared_ext}$major'
18625   shlibpath_var=LD_LIBRARY_PATH
18626   shlibpath_overrides_runpath=yes
18627   ;;
18628
18629 openbsd*)
18630   version_type=sunos
18631   sys_lib_dlsearch_path_spec="/usr/lib"
18632   need_lib_prefix=no
18633   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18634   case $host_os in
18635     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18636     *)                         need_version=no  ;;
18637   esac
18638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18639   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18640   shlibpath_var=LD_LIBRARY_PATH
18641   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18642     case $host_os in
18643       openbsd2.[89] | openbsd2.[89].*)
18644         shlibpath_overrides_runpath=no
18645         ;;
18646       *)
18647         shlibpath_overrides_runpath=yes
18648         ;;
18649       esac
18650   else
18651     shlibpath_overrides_runpath=yes
18652   fi
18653   ;;
18654
18655 os2*)
18656   libname_spec='$name'
18657   shrext_cmds=".dll"
18658   need_lib_prefix=no
18659   library_names_spec='$libname${shared_ext} $libname.a'
18660   dynamic_linker='OS/2 ld.exe'
18661   shlibpath_var=LIBPATH
18662   ;;
18663
18664 osf3* | osf4* | osf5*)
18665   version_type=osf
18666   need_lib_prefix=no
18667   need_version=no
18668   soname_spec='${libname}${release}${shared_ext}$major'
18669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18670   shlibpath_var=LD_LIBRARY_PATH
18671   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18672   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18673   ;;
18674
18675 rdos*)
18676   dynamic_linker=no
18677   ;;
18678
18679 solaris*)
18680   version_type=linux
18681   need_lib_prefix=no
18682   need_version=no
18683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18684   soname_spec='${libname}${release}${shared_ext}$major'
18685   shlibpath_var=LD_LIBRARY_PATH
18686   shlibpath_overrides_runpath=yes
18687   hardcode_into_libs=yes
18688   # ldd complains unless libraries are executable
18689   postinstall_cmds='chmod +x $lib'
18690   ;;
18691
18692 sunos4*)
18693   version_type=sunos
18694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18695   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18696   shlibpath_var=LD_LIBRARY_PATH
18697   shlibpath_overrides_runpath=yes
18698   if test "$with_gnu_ld" = yes; then
18699     need_lib_prefix=no
18700   fi
18701   need_version=yes
18702   ;;
18703
18704 sysv4 | sysv4.3*)
18705   version_type=linux
18706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18707   soname_spec='${libname}${release}${shared_ext}$major'
18708   shlibpath_var=LD_LIBRARY_PATH
18709   case $host_vendor in
18710     sni)
18711       shlibpath_overrides_runpath=no
18712       need_lib_prefix=no
18713       export_dynamic_flag_spec='${wl}-Blargedynsym'
18714       runpath_var=LD_RUN_PATH
18715       ;;
18716     siemens)
18717       need_lib_prefix=no
18718       ;;
18719     motorola)
18720       need_lib_prefix=no
18721       need_version=no
18722       shlibpath_overrides_runpath=no
18723       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18724       ;;
18725   esac
18726   ;;
18727
18728 sysv4*MP*)
18729   if test -d /usr/nec ;then
18730     version_type=linux
18731     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18732     soname_spec='$libname${shared_ext}.$major'
18733     shlibpath_var=LD_LIBRARY_PATH
18734   fi
18735   ;;
18736
18737 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18738   version_type=freebsd-elf
18739   need_lib_prefix=no
18740   need_version=no
18741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18742   soname_spec='${libname}${release}${shared_ext}$major'
18743   shlibpath_var=LD_LIBRARY_PATH
18744   hardcode_into_libs=yes
18745   if test "$with_gnu_ld" = yes; then
18746     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18747     shlibpath_overrides_runpath=no
18748   else
18749     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18750     shlibpath_overrides_runpath=yes
18751     case $host_os in
18752       sco3.2v5*)
18753         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18754         ;;
18755     esac
18756   fi
18757   sys_lib_dlsearch_path_spec='/usr/lib'
18758   ;;
18759
18760 uts4*)
18761   version_type=linux
18762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18763   soname_spec='${libname}${release}${shared_ext}$major'
18764   shlibpath_var=LD_LIBRARY_PATH
18765   ;;
18766
18767 *)
18768   dynamic_linker=no
18769   ;;
18770 esac
18771 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18772 echo "${ECHO_T}$dynamic_linker" >&6; }
18773 test "$dynamic_linker" = no && can_build_shared=no
18774
18775 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18776   echo $ECHO_N "(cached) $ECHO_C" >&6
18777 else
18778   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18779 fi
18780
18781 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18782 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18783   echo $ECHO_N "(cached) $ECHO_C" >&6
18784 else
18785   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18786 fi
18787
18788 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18789
18790 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18791 if test "$GCC" = yes; then
18792   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18793 fi
18794
18795 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18796 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18797 hardcode_action_GCJ=
18798 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18799    test -n "$runpath_var_GCJ" || \
18800    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18801
18802   # We can hardcode non-existant directories.
18803   if test "$hardcode_direct_GCJ" != no &&
18804      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18805      # have to relink, otherwise we might link with an installed library
18806      # when we should be linking with a yet-to-be-installed one
18807      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18808      test "$hardcode_minus_L_GCJ" != no; then
18809     # Linking always hardcodes the temporary library directory.
18810     hardcode_action_GCJ=relink
18811   else
18812     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18813     hardcode_action_GCJ=immediate
18814   fi
18815 else
18816   # We cannot hardcode anything, or else we can only hardcode existing
18817   # directories.
18818   hardcode_action_GCJ=unsupported
18819 fi
18820 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18821 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18822
18823 if test "$hardcode_action_GCJ" = relink; then
18824   # Fast installation is not supported
18825   enable_fast_install=no
18826 elif test "$shlibpath_overrides_runpath" = yes ||
18827      test "$enable_shared" = no; then
18828   # Fast installation is not necessary
18829   enable_fast_install=needless
18830 fi
18831
18832
18833 # The else clause should only fire when bootstrapping the
18834 # libtool distribution, otherwise you forgot to ship ltmain.sh
18835 # with your package, and you will get complaints that there are
18836 # no rules to generate ltmain.sh.
18837 if test -f "$ltmain"; then
18838   # See if we are running on zsh, and set the options which allow our commands through
18839   # without removal of \ escapes.
18840   if test -n "${ZSH_VERSION+set}" ; then
18841     setopt NO_GLOB_SUBST
18842   fi
18843   # Now quote all the things that may contain metacharacters while being
18844   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18845   # variables and quote the copies for generation of the libtool script.
18846   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18847     SED SHELL STRIP \
18848     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18849     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18850     deplibs_check_method reload_flag reload_cmds need_locks \
18851     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18852     lt_cv_sys_global_symbol_to_c_name_address \
18853     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18854     old_postinstall_cmds old_postuninstall_cmds \
18855     compiler_GCJ \
18856     CC_GCJ \
18857     LD_GCJ \
18858     lt_prog_compiler_wl_GCJ \
18859     lt_prog_compiler_pic_GCJ \
18860     lt_prog_compiler_static_GCJ \
18861     lt_prog_compiler_no_builtin_flag_GCJ \
18862     export_dynamic_flag_spec_GCJ \
18863     thread_safe_flag_spec_GCJ \
18864     whole_archive_flag_spec_GCJ \
18865     enable_shared_with_static_runtimes_GCJ \
18866     old_archive_cmds_GCJ \
18867     old_archive_from_new_cmds_GCJ \
18868     predep_objects_GCJ \
18869     postdep_objects_GCJ \
18870     predeps_GCJ \
18871     postdeps_GCJ \
18872     compiler_lib_search_path_GCJ \
18873     compiler_lib_search_dirs_GCJ \
18874     archive_cmds_GCJ \
18875     archive_expsym_cmds_GCJ \
18876     postinstall_cmds_GCJ \
18877     postuninstall_cmds_GCJ \
18878     old_archive_from_expsyms_cmds_GCJ \
18879     allow_undefined_flag_GCJ \
18880     no_undefined_flag_GCJ \
18881     export_symbols_cmds_GCJ \
18882     hardcode_libdir_flag_spec_GCJ \
18883     hardcode_libdir_flag_spec_ld_GCJ \
18884     hardcode_libdir_separator_GCJ \
18885     hardcode_automatic_GCJ \
18886     module_cmds_GCJ \
18887     module_expsym_cmds_GCJ \
18888     lt_cv_prog_compiler_c_o_GCJ \
18889     fix_srcfile_path_GCJ \
18890     exclude_expsyms_GCJ \
18891     include_expsyms_GCJ; do
18892
18893     case $var in
18894     old_archive_cmds_GCJ | \
18895     old_archive_from_new_cmds_GCJ | \
18896     archive_cmds_GCJ | \
18897     archive_expsym_cmds_GCJ | \
18898     module_cmds_GCJ | \
18899     module_expsym_cmds_GCJ | \
18900     old_archive_from_expsyms_cmds_GCJ | \
18901     export_symbols_cmds_GCJ | \
18902     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18903     postinstall_cmds | postuninstall_cmds | \
18904     old_postinstall_cmds | old_postuninstall_cmds | \
18905     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18906       # Double-quote double-evaled strings.
18907       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18908       ;;
18909     *)
18910       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18911       ;;
18912     esac
18913   done
18914
18915   case $lt_echo in
18916   *'\$0 --fallback-echo"')
18917     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18918     ;;
18919   esac
18920
18921 cfgfile="$ofile"
18922
18923   cat <<__EOF__ >> "$cfgfile"
18924 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18925
18926 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18927
18928 # Shell to use when invoking shell scripts.
18929 SHELL=$lt_SHELL
18930
18931 # Whether or not to build shared libraries.
18932 build_libtool_libs=$enable_shared
18933
18934 # Whether or not to build static libraries.
18935 build_old_libs=$enable_static
18936
18937 # Whether or not to add -lc for building shared libraries.
18938 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18939
18940 # Whether or not to disallow shared libs when runtime libs are static
18941 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18942
18943 # Whether or not to optimize for fast installation.
18944 fast_install=$enable_fast_install
18945
18946 # The host system.
18947 host_alias=$host_alias
18948 host=$host
18949 host_os=$host_os
18950
18951 # The build system.
18952 build_alias=$build_alias
18953 build=$build
18954 build_os=$build_os
18955
18956 # An echo program that does not interpret backslashes.
18957 echo=$lt_echo
18958
18959 # The archiver.
18960 AR=$lt_AR
18961 AR_FLAGS=$lt_AR_FLAGS
18962
18963 # A C compiler.
18964 LTCC=$lt_LTCC
18965
18966 # LTCC compiler flags.
18967 LTCFLAGS=$lt_LTCFLAGS
18968
18969 # A language-specific compiler.
18970 CC=$lt_compiler_GCJ
18971
18972 # Is the compiler the GNU C compiler?
18973 with_gcc=$GCC_GCJ
18974
18975 # An ERE matcher.
18976 EGREP=$lt_EGREP
18977
18978 # The linker used to build libraries.
18979 LD=$lt_LD_GCJ
18980
18981 # Whether we need hard or soft links.
18982 LN_S=$lt_LN_S
18983
18984 # A BSD-compatible nm program.
18985 NM=$lt_NM
18986
18987 # A symbol stripping program
18988 STRIP=$lt_STRIP
18989
18990 # Used to examine libraries when file_magic_cmd begins "file"
18991 MAGIC_CMD=$MAGIC_CMD
18992
18993 # Used on cygwin: DLL creation program.
18994 DLLTOOL="$DLLTOOL"
18995
18996 # Used on cygwin: object dumper.
18997 OBJDUMP="$OBJDUMP"
18998
18999 # Used on cygwin: assembler.
19000 AS="$AS"
19001
19002 # The name of the directory that contains temporary libtool files.
19003 objdir=$objdir
19004
19005 # How to create reloadable object files.
19006 reload_flag=$lt_reload_flag
19007 reload_cmds=$lt_reload_cmds
19008
19009 # How to pass a linker flag through the compiler.
19010 wl=$lt_lt_prog_compiler_wl_GCJ
19011
19012 # Object file suffix (normally "o").
19013 objext="$ac_objext"
19014
19015 # Old archive suffix (normally "a").
19016 libext="$libext"
19017
19018 # Shared library suffix (normally ".so").
19019 shrext_cmds='$shrext_cmds'
19020
19021 # Executable file suffix (normally "").
19022 exeext="$exeext"
19023
19024 # Additional compiler flags for building library objects.
19025 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19026 pic_mode=$pic_mode
19027
19028 # What is the maximum length of a command?
19029 max_cmd_len=$lt_cv_sys_max_cmd_len
19030
19031 # Does compiler simultaneously support -c and -o options?
19032 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19033
19034 # Must we lock files when doing compilation?
19035 need_locks=$lt_need_locks
19036
19037 # Do we need the lib prefix for modules?
19038 need_lib_prefix=$need_lib_prefix
19039
19040 # Do we need a version for libraries?
19041 need_version=$need_version
19042
19043 # Whether dlopen is supported.
19044 dlopen_support=$enable_dlopen
19045
19046 # Whether dlopen of programs is supported.
19047 dlopen_self=$enable_dlopen_self
19048
19049 # Whether dlopen of statically linked programs is supported.
19050 dlopen_self_static=$enable_dlopen_self_static
19051
19052 # Compiler flag to prevent dynamic linking.
19053 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19054
19055 # Compiler flag to turn off builtin functions.
19056 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19057
19058 # Compiler flag to allow reflexive dlopens.
19059 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19060
19061 # Compiler flag to generate shared objects directly from archives.
19062 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19063
19064 # Compiler flag to generate thread-safe objects.
19065 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19066
19067 # Library versioning type.
19068 version_type=$version_type
19069
19070 # Format of library name prefix.
19071 libname_spec=$lt_libname_spec
19072
19073 # List of archive names.  First name is the real one, the rest are links.
19074 # The last name is the one that the linker finds with -lNAME.
19075 library_names_spec=$lt_library_names_spec
19076
19077 # The coded name of the library, if different from the real name.
19078 soname_spec=$lt_soname_spec
19079
19080 # Commands used to build and install an old-style archive.
19081 RANLIB=$lt_RANLIB
19082 old_archive_cmds=$lt_old_archive_cmds_GCJ
19083 old_postinstall_cmds=$lt_old_postinstall_cmds
19084 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19085
19086 # Create an old-style archive from a shared archive.
19087 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19088
19089 # Create a temporary old-style archive to link instead of a shared archive.
19090 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19091
19092 # Commands used to build and install a shared archive.
19093 archive_cmds=$lt_archive_cmds_GCJ
19094 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19095 postinstall_cmds=$lt_postinstall_cmds
19096 postuninstall_cmds=$lt_postuninstall_cmds
19097
19098 # Commands used to build a loadable module (assumed same as above if empty)
19099 module_cmds=$lt_module_cmds_GCJ
19100 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19101
19102 # Commands to strip libraries.
19103 old_striplib=$lt_old_striplib
19104 striplib=$lt_striplib
19105
19106 # Dependencies to place before the objects being linked to create a
19107 # shared library.
19108 predep_objects=$lt_predep_objects_GCJ
19109
19110 # Dependencies to place after the objects being linked to create a
19111 # shared library.
19112 postdep_objects=$lt_postdep_objects_GCJ
19113
19114 # Dependencies to place before the objects being linked to create a
19115 # shared library.
19116 predeps=$lt_predeps_GCJ
19117
19118 # Dependencies to place after the objects being linked to create a
19119 # shared library.
19120 postdeps=$lt_postdeps_GCJ
19121
19122 # The directories searched by this compiler when creating a shared
19123 # library
19124 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19125
19126 # The library search path used internally by the compiler when linking
19127 # a shared library.
19128 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19129
19130 # Method to check whether dependent libraries are shared objects.
19131 deplibs_check_method=$lt_deplibs_check_method
19132
19133 # Command to use when deplibs_check_method == file_magic.
19134 file_magic_cmd=$lt_file_magic_cmd
19135
19136 # Flag that allows shared libraries with undefined symbols to be built.
19137 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19138
19139 # Flag that forces no undefined symbols.
19140 no_undefined_flag=$lt_no_undefined_flag_GCJ
19141
19142 # Commands used to finish a libtool library installation in a directory.
19143 finish_cmds=$lt_finish_cmds
19144
19145 # Same as above, but a single script fragment to be evaled but not shown.
19146 finish_eval=$lt_finish_eval
19147
19148 # Take the output of nm and produce a listing of raw symbols and C names.
19149 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19150
19151 # Transform the output of nm in a proper C declaration
19152 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19153
19154 # Transform the output of nm in a C name address pair
19155 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19156
19157 # This is the shared library runtime path variable.
19158 runpath_var=$runpath_var
19159
19160 # This is the shared library path variable.
19161 shlibpath_var=$shlibpath_var
19162
19163 # Is shlibpath searched before the hard-coded library search path?
19164 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19165
19166 # How to hardcode a shared library path into an executable.
19167 hardcode_action=$hardcode_action_GCJ
19168
19169 # Whether we should hardcode library paths into libraries.
19170 hardcode_into_libs=$hardcode_into_libs
19171
19172 # Flag to hardcode \$libdir into a binary during linking.
19173 # This must work even if \$libdir does not exist.
19174 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19175
19176 # If ld is used when linking, flag to hardcode \$libdir into
19177 # a binary during linking. This must work even if \$libdir does
19178 # not exist.
19179 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19180
19181 # Whether we need a single -rpath flag with a separated argument.
19182 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19183
19184 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19185 # resulting binary.
19186 hardcode_direct=$hardcode_direct_GCJ
19187
19188 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19189 # resulting binary.
19190 hardcode_minus_L=$hardcode_minus_L_GCJ
19191
19192 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19193 # the resulting binary.
19194 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19195
19196 # Set to yes if building a shared library automatically hardcodes DIR into the library
19197 # and all subsequent libraries and executables linked against it.
19198 hardcode_automatic=$hardcode_automatic_GCJ
19199
19200 # Variables whose values should be saved in libtool wrapper scripts and
19201 # restored at relink time.
19202 variables_saved_for_relink="$variables_saved_for_relink"
19203
19204 # Whether libtool must link a program against all its dependency libraries.
19205 link_all_deplibs=$link_all_deplibs_GCJ
19206
19207 # Compile-time system search path for libraries
19208 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19209
19210 # Run-time system search path for libraries
19211 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19212
19213 # Fix the shell variable \$srcfile for the compiler.
19214 fix_srcfile_path=$lt_fix_srcfile_path
19215
19216 # Set to yes if exported symbols are required.
19217 always_export_symbols=$always_export_symbols_GCJ
19218
19219 # The commands to list exported symbols.
19220 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19221
19222 # The commands to extract the exported symbol list from a shared archive.
19223 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19224
19225 # Symbols that should not be listed in the preloaded symbols.
19226 exclude_expsyms=$lt_exclude_expsyms_GCJ
19227
19228 # Symbols that must always be exported.
19229 include_expsyms=$lt_include_expsyms_GCJ
19230
19231 # ### END LIBTOOL TAG CONFIG: $tagname
19232
19233 __EOF__
19234
19235
19236 else
19237   # If there is no Makefile yet, we rely on a make rule to execute
19238   # `config.status --recheck' to rerun these tests and create the
19239   # libtool script then.
19240   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19241   if test -f "$ltmain_in"; then
19242     test -f Makefile && make "$ltmain"
19243   fi
19244 fi
19245
19246
19247 ac_ext=c
19248 ac_cpp='$CPP $CPPFLAGS'
19249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19252
19253 CC="$lt_save_CC"
19254
19255         else
19256           tagname=""
19257         fi
19258         ;;
19259
19260       RC)
19261
19262
19263 # Source file extension for RC test sources.
19264 ac_ext=rc
19265
19266 # Object file extension for compiled RC test sources.
19267 objext=o
19268 objext_RC=$objext
19269
19270 # Code to be used in simple compile tests
19271 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19272
19273 # Code to be used in simple link tests
19274 lt_simple_link_test_code="$lt_simple_compile_test_code"
19275
19276 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19277
19278 # If no C compiler was specified, use CC.
19279 LTCC=${LTCC-"$CC"}
19280
19281 # If no C compiler flags were specified, use CFLAGS.
19282 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19283
19284 # Allow CC to be a program name with arguments.
19285 compiler=$CC
19286
19287
19288 # save warnings/boilerplate of simple test code
19289 ac_outfile=conftest.$ac_objext
19290 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19291 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19292 _lt_compiler_boilerplate=`cat conftest.err`
19293 $rm conftest*
19294
19295 ac_outfile=conftest.$ac_objext
19296 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19297 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19298 _lt_linker_boilerplate=`cat conftest.err`
19299 $rm -r conftest*
19300
19301
19302 # Allow CC to be a program name with arguments.
19303 lt_save_CC="$CC"
19304 CC=${RC-"windres"}
19305 compiler=$CC
19306 compiler_RC=$CC
19307 for cc_temp in $compiler""; do
19308   case $cc_temp in
19309     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19310     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19311     \-*) ;;
19312     *) break;;
19313   esac
19314 done
19315 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19316
19317 lt_cv_prog_compiler_c_o_RC=yes
19318
19319 # The else clause should only fire when bootstrapping the
19320 # libtool distribution, otherwise you forgot to ship ltmain.sh
19321 # with your package, and you will get complaints that there are
19322 # no rules to generate ltmain.sh.
19323 if test -f "$ltmain"; then
19324   # See if we are running on zsh, and set the options which allow our commands through
19325   # without removal of \ escapes.
19326   if test -n "${ZSH_VERSION+set}" ; then
19327     setopt NO_GLOB_SUBST
19328   fi
19329   # Now quote all the things that may contain metacharacters while being
19330   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19331   # variables and quote the copies for generation of the libtool script.
19332   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19333     SED SHELL STRIP \
19334     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19335     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19336     deplibs_check_method reload_flag reload_cmds need_locks \
19337     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19338     lt_cv_sys_global_symbol_to_c_name_address \
19339     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19340     old_postinstall_cmds old_postuninstall_cmds \
19341     compiler_RC \
19342     CC_RC \
19343     LD_RC \
19344     lt_prog_compiler_wl_RC \
19345     lt_prog_compiler_pic_RC \
19346     lt_prog_compiler_static_RC \
19347     lt_prog_compiler_no_builtin_flag_RC \
19348     export_dynamic_flag_spec_RC \
19349     thread_safe_flag_spec_RC \
19350     whole_archive_flag_spec_RC \
19351     enable_shared_with_static_runtimes_RC \
19352     old_archive_cmds_RC \
19353     old_archive_from_new_cmds_RC \
19354     predep_objects_RC \
19355     postdep_objects_RC \
19356     predeps_RC \
19357     postdeps_RC \
19358     compiler_lib_search_path_RC \
19359     compiler_lib_search_dirs_RC \
19360     archive_cmds_RC \
19361     archive_expsym_cmds_RC \
19362     postinstall_cmds_RC \
19363     postuninstall_cmds_RC \
19364     old_archive_from_expsyms_cmds_RC \
19365     allow_undefined_flag_RC \
19366     no_undefined_flag_RC \
19367     export_symbols_cmds_RC \
19368     hardcode_libdir_flag_spec_RC \
19369     hardcode_libdir_flag_spec_ld_RC \
19370     hardcode_libdir_separator_RC \
19371     hardcode_automatic_RC \
19372     module_cmds_RC \
19373     module_expsym_cmds_RC \
19374     lt_cv_prog_compiler_c_o_RC \
19375     fix_srcfile_path_RC \
19376     exclude_expsyms_RC \
19377     include_expsyms_RC; do
19378
19379     case $var in
19380     old_archive_cmds_RC | \
19381     old_archive_from_new_cmds_RC | \
19382     archive_cmds_RC | \
19383     archive_expsym_cmds_RC | \
19384     module_cmds_RC | \
19385     module_expsym_cmds_RC | \
19386     old_archive_from_expsyms_cmds_RC | \
19387     export_symbols_cmds_RC | \
19388     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19389     postinstall_cmds | postuninstall_cmds | \
19390     old_postinstall_cmds | old_postuninstall_cmds | \
19391     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19392       # Double-quote double-evaled strings.
19393       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19394       ;;
19395     *)
19396       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19397       ;;
19398     esac
19399   done
19400
19401   case $lt_echo in
19402   *'\$0 --fallback-echo"')
19403     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19404     ;;
19405   esac
19406
19407 cfgfile="$ofile"
19408
19409   cat <<__EOF__ >> "$cfgfile"
19410 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19411
19412 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19413
19414 # Shell to use when invoking shell scripts.
19415 SHELL=$lt_SHELL
19416
19417 # Whether or not to build shared libraries.
19418 build_libtool_libs=$enable_shared
19419
19420 # Whether or not to build static libraries.
19421 build_old_libs=$enable_static
19422
19423 # Whether or not to add -lc for building shared libraries.
19424 build_libtool_need_lc=$archive_cmds_need_lc_RC
19425
19426 # Whether or not to disallow shared libs when runtime libs are static
19427 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19428
19429 # Whether or not to optimize for fast installation.
19430 fast_install=$enable_fast_install
19431
19432 # The host system.
19433 host_alias=$host_alias
19434 host=$host
19435 host_os=$host_os
19436
19437 # The build system.
19438 build_alias=$build_alias
19439 build=$build
19440 build_os=$build_os
19441
19442 # An echo program that does not interpret backslashes.
19443 echo=$lt_echo
19444
19445 # The archiver.
19446 AR=$lt_AR
19447 AR_FLAGS=$lt_AR_FLAGS
19448
19449 # A C compiler.
19450 LTCC=$lt_LTCC
19451
19452 # LTCC compiler flags.
19453 LTCFLAGS=$lt_LTCFLAGS
19454
19455 # A language-specific compiler.
19456 CC=$lt_compiler_RC
19457
19458 # Is the compiler the GNU C compiler?
19459 with_gcc=$GCC_RC
19460
19461 # An ERE matcher.
19462 EGREP=$lt_EGREP
19463
19464 # The linker used to build libraries.
19465 LD=$lt_LD_RC
19466
19467 # Whether we need hard or soft links.
19468 LN_S=$lt_LN_S
19469
19470 # A BSD-compatible nm program.
19471 NM=$lt_NM
19472
19473 # A symbol stripping program
19474 STRIP=$lt_STRIP
19475
19476 # Used to examine libraries when file_magic_cmd begins "file"
19477 MAGIC_CMD=$MAGIC_CMD
19478
19479 # Used on cygwin: DLL creation program.
19480 DLLTOOL="$DLLTOOL"
19481
19482 # Used on cygwin: object dumper.
19483 OBJDUMP="$OBJDUMP"
19484
19485 # Used on cygwin: assembler.
19486 AS="$AS"
19487
19488 # The name of the directory that contains temporary libtool files.
19489 objdir=$objdir
19490
19491 # How to create reloadable object files.
19492 reload_flag=$lt_reload_flag
19493 reload_cmds=$lt_reload_cmds
19494
19495 # How to pass a linker flag through the compiler.
19496 wl=$lt_lt_prog_compiler_wl_RC
19497
19498 # Object file suffix (normally "o").
19499 objext="$ac_objext"
19500
19501 # Old archive suffix (normally "a").
19502 libext="$libext"
19503
19504 # Shared library suffix (normally ".so").
19505 shrext_cmds='$shrext_cmds'
19506
19507 # Executable file suffix (normally "").
19508 exeext="$exeext"
19509
19510 # Additional compiler flags for building library objects.
19511 pic_flag=$lt_lt_prog_compiler_pic_RC
19512 pic_mode=$pic_mode
19513
19514 # What is the maximum length of a command?
19515 max_cmd_len=$lt_cv_sys_max_cmd_len
19516
19517 # Does compiler simultaneously support -c and -o options?
19518 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19519
19520 # Must we lock files when doing compilation?
19521 need_locks=$lt_need_locks
19522
19523 # Do we need the lib prefix for modules?
19524 need_lib_prefix=$need_lib_prefix
19525
19526 # Do we need a version for libraries?
19527 need_version=$need_version
19528
19529 # Whether dlopen is supported.
19530 dlopen_support=$enable_dlopen
19531
19532 # Whether dlopen of programs is supported.
19533 dlopen_self=$enable_dlopen_self
19534
19535 # Whether dlopen of statically linked programs is supported.
19536 dlopen_self_static=$enable_dlopen_self_static
19537
19538 # Compiler flag to prevent dynamic linking.
19539 link_static_flag=$lt_lt_prog_compiler_static_RC
19540
19541 # Compiler flag to turn off builtin functions.
19542 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19543
19544 # Compiler flag to allow reflexive dlopens.
19545 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19546
19547 # Compiler flag to generate shared objects directly from archives.
19548 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19549
19550 # Compiler flag to generate thread-safe objects.
19551 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19552
19553 # Library versioning type.
19554 version_type=$version_type
19555
19556 # Format of library name prefix.
19557 libname_spec=$lt_libname_spec
19558
19559 # List of archive names.  First name is the real one, the rest are links.
19560 # The last name is the one that the linker finds with -lNAME.
19561 library_names_spec=$lt_library_names_spec
19562
19563 # The coded name of the library, if different from the real name.
19564 soname_spec=$lt_soname_spec
19565
19566 # Commands used to build and install an old-style archive.
19567 RANLIB=$lt_RANLIB
19568 old_archive_cmds=$lt_old_archive_cmds_RC
19569 old_postinstall_cmds=$lt_old_postinstall_cmds
19570 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19571
19572 # Create an old-style archive from a shared archive.
19573 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19574
19575 # Create a temporary old-style archive to link instead of a shared archive.
19576 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19577
19578 # Commands used to build and install a shared archive.
19579 archive_cmds=$lt_archive_cmds_RC
19580 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19581 postinstall_cmds=$lt_postinstall_cmds
19582 postuninstall_cmds=$lt_postuninstall_cmds
19583
19584 # Commands used to build a loadable module (assumed same as above if empty)
19585 module_cmds=$lt_module_cmds_RC
19586 module_expsym_cmds=$lt_module_expsym_cmds_RC
19587
19588 # Commands to strip libraries.
19589 old_striplib=$lt_old_striplib
19590 striplib=$lt_striplib
19591
19592 # Dependencies to place before the objects being linked to create a
19593 # shared library.
19594 predep_objects=$lt_predep_objects_RC
19595
19596 # Dependencies to place after the objects being linked to create a
19597 # shared library.
19598 postdep_objects=$lt_postdep_objects_RC
19599
19600 # Dependencies to place before the objects being linked to create a
19601 # shared library.
19602 predeps=$lt_predeps_RC
19603
19604 # Dependencies to place after the objects being linked to create a
19605 # shared library.
19606 postdeps=$lt_postdeps_RC
19607
19608 # The directories searched by this compiler when creating a shared
19609 # library
19610 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19611
19612 # The library search path used internally by the compiler when linking
19613 # a shared library.
19614 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19615
19616 # Method to check whether dependent libraries are shared objects.
19617 deplibs_check_method=$lt_deplibs_check_method
19618
19619 # Command to use when deplibs_check_method == file_magic.
19620 file_magic_cmd=$lt_file_magic_cmd
19621
19622 # Flag that allows shared libraries with undefined symbols to be built.
19623 allow_undefined_flag=$lt_allow_undefined_flag_RC
19624
19625 # Flag that forces no undefined symbols.
19626 no_undefined_flag=$lt_no_undefined_flag_RC
19627
19628 # Commands used to finish a libtool library installation in a directory.
19629 finish_cmds=$lt_finish_cmds
19630
19631 # Same as above, but a single script fragment to be evaled but not shown.
19632 finish_eval=$lt_finish_eval
19633
19634 # Take the output of nm and produce a listing of raw symbols and C names.
19635 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19636
19637 # Transform the output of nm in a proper C declaration
19638 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19639
19640 # Transform the output of nm in a C name address pair
19641 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19642
19643 # This is the shared library runtime path variable.
19644 runpath_var=$runpath_var
19645
19646 # This is the shared library path variable.
19647 shlibpath_var=$shlibpath_var
19648
19649 # Is shlibpath searched before the hard-coded library search path?
19650 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19651
19652 # How to hardcode a shared library path into an executable.
19653 hardcode_action=$hardcode_action_RC
19654
19655 # Whether we should hardcode library paths into libraries.
19656 hardcode_into_libs=$hardcode_into_libs
19657
19658 # Flag to hardcode \$libdir into a binary during linking.
19659 # This must work even if \$libdir does not exist.
19660 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19661
19662 # If ld is used when linking, flag to hardcode \$libdir into
19663 # a binary during linking. This must work even if \$libdir does
19664 # not exist.
19665 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19666
19667 # Whether we need a single -rpath flag with a separated argument.
19668 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19669
19670 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19671 # resulting binary.
19672 hardcode_direct=$hardcode_direct_RC
19673
19674 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19675 # resulting binary.
19676 hardcode_minus_L=$hardcode_minus_L_RC
19677
19678 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19679 # the resulting binary.
19680 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19681
19682 # Set to yes if building a shared library automatically hardcodes DIR into the library
19683 # and all subsequent libraries and executables linked against it.
19684 hardcode_automatic=$hardcode_automatic_RC
19685
19686 # Variables whose values should be saved in libtool wrapper scripts and
19687 # restored at relink time.
19688 variables_saved_for_relink="$variables_saved_for_relink"
19689
19690 # Whether libtool must link a program against all its dependency libraries.
19691 link_all_deplibs=$link_all_deplibs_RC
19692
19693 # Compile-time system search path for libraries
19694 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19695
19696 # Run-time system search path for libraries
19697 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19698
19699 # Fix the shell variable \$srcfile for the compiler.
19700 fix_srcfile_path=$lt_fix_srcfile_path
19701
19702 # Set to yes if exported symbols are required.
19703 always_export_symbols=$always_export_symbols_RC
19704
19705 # The commands to list exported symbols.
19706 export_symbols_cmds=$lt_export_symbols_cmds_RC
19707
19708 # The commands to extract the exported symbol list from a shared archive.
19709 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19710
19711 # Symbols that should not be listed in the preloaded symbols.
19712 exclude_expsyms=$lt_exclude_expsyms_RC
19713
19714 # Symbols that must always be exported.
19715 include_expsyms=$lt_include_expsyms_RC
19716
19717 # ### END LIBTOOL TAG CONFIG: $tagname
19718
19719 __EOF__
19720
19721
19722 else
19723   # If there is no Makefile yet, we rely on a make rule to execute
19724   # `config.status --recheck' to rerun these tests and create the
19725   # libtool script then.
19726   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19727   if test -f "$ltmain_in"; then
19728     test -f Makefile && make "$ltmain"
19729   fi
19730 fi
19731
19732
19733 ac_ext=c
19734 ac_cpp='$CPP $CPPFLAGS'
19735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19738
19739 CC="$lt_save_CC"
19740
19741         ;;
19742
19743       *)
19744         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19745 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19746    { (exit 1); exit 1; }; }
19747         ;;
19748       esac
19749
19750       # Append the new tag name to the list of available tags.
19751       if test -n "$tagname" ; then
19752       available_tags="$available_tags $tagname"
19753     fi
19754     fi
19755   done
19756   IFS="$lt_save_ifs"
19757
19758   # Now substitute the updated list of available tags.
19759   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19760     mv "${ofile}T" "$ofile"
19761     chmod +x "$ofile"
19762   else
19763     rm -f "${ofile}T"
19764     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19765 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19766    { (exit 1); exit 1; }; }
19767   fi
19768 fi
19769
19770
19771
19772 # This can be used to rebuild libtool when needed
19773 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19774
19775 # Always use our own libtool.
19776 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19777
19778 # Prevent multiple expansion
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19800 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
19801 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19802 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
19803   echo $ECHO_N "(cached) $ECHO_C" >&6
19804 else
19805   cat >conftest.make <<\_ACEOF
19806 SHELL = /bin/sh
19807 all:
19808         @echo '@@@%%%=$(MAKE)=@@@%%%'
19809 _ACEOF
19810 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19811 case `${MAKE-make} -f conftest.make 2>/dev/null` in
19812   *@@@%%%=?*=@@@%%%*)
19813     eval ac_cv_prog_make_${ac_make}_set=yes;;
19814   *)
19815     eval ac_cv_prog_make_${ac_make}_set=no;;
19816 esac
19817 rm -f conftest.make
19818 fi
19819 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
19820   { echo "$as_me:$LINENO: result: yes" >&5
19821 echo "${ECHO_T}yes" >&6; }
19822   SET_MAKE=
19823 else
19824   { echo "$as_me:$LINENO: result: no" >&5
19825 echo "${ECHO_T}no" >&6; }
19826   SET_MAKE="MAKE=${MAKE-make}"
19827 fi
19828
19829 if test "x$CC" != xcc; then
19830   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
19831 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
19832 else
19833   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
19834 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
19835 fi
19836 set dummy $CC; ac_cc=`echo $2 |
19837                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19838 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
19839   echo $ECHO_N "(cached) $ECHO_C" >&6
19840 else
19841   cat >conftest.$ac_ext <<_ACEOF
19842 /* confdefs.h.  */
19843 _ACEOF
19844 cat confdefs.h >>conftest.$ac_ext
19845 cat >>conftest.$ac_ext <<_ACEOF
19846 /* end confdefs.h.  */
19847
19848 int
19849 main ()
19850 {
19851
19852   ;
19853   return 0;
19854 }
19855 _ACEOF
19856 # Make sure it works both with $CC and with simple cc.
19857 # We do the test twice because some compilers refuse to overwrite an
19858 # existing .o file with -o, though they will create one.
19859 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19860 rm -f conftest2.*
19861 if { (case "(($ac_try" in
19862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19863   *) ac_try_echo=$ac_try;;
19864 esac
19865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19866   (eval "$ac_try") 2>&5
19867   ac_status=$?
19868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869   (exit $ac_status); } &&
19870    test -f conftest2.$ac_objext && { (case "(($ac_try" in
19871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872   *) ac_try_echo=$ac_try;;
19873 esac
19874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875   (eval "$ac_try") 2>&5
19876   ac_status=$?
19877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878   (exit $ac_status); };
19879 then
19880   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19881   if test "x$CC" != xcc; then
19882     # Test first that cc exists at all.
19883     if { ac_try='cc -c conftest.$ac_ext >&5'
19884   { (case "(($ac_try" in
19885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886   *) ac_try_echo=$ac_try;;
19887 esac
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889   (eval "$ac_try") 2>&5
19890   ac_status=$?
19891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892   (exit $ac_status); }; }; then
19893       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19894       rm -f conftest2.*
19895       if { (case "(($ac_try" in
19896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897   *) ac_try_echo=$ac_try;;
19898 esac
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900   (eval "$ac_try") 2>&5
19901   ac_status=$?
19902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903   (exit $ac_status); } &&
19904          test -f conftest2.$ac_objext && { (case "(($ac_try" in
19905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19906   *) ac_try_echo=$ac_try;;
19907 esac
19908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19909   (eval "$ac_try") 2>&5
19910   ac_status=$?
19911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912   (exit $ac_status); };
19913       then
19914         # cc works too.
19915         :
19916       else
19917         # cc exists but doesn't like -o.
19918         eval ac_cv_prog_cc_${ac_cc}_c_o=no
19919       fi
19920     fi
19921   fi
19922 else
19923   eval ac_cv_prog_cc_${ac_cc}_c_o=no
19924 fi
19925 rm -f core conftest*
19926
19927 fi
19928 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19929   { echo "$as_me:$LINENO: result: yes" >&5
19930 echo "${ECHO_T}yes" >&6; }
19931 else
19932   { echo "$as_me:$LINENO: result: no" >&5
19933 echo "${ECHO_T}no" >&6; }
19934
19935 cat >>confdefs.h <<\_ACEOF
19936 #define NO_MINUS_C_MINUS_O 1
19937 _ACEOF
19938
19939 fi
19940
19941 # FIXME: we rely on the cache variable name because
19942 # there is no other way.
19943 set dummy $CC
19944 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19945 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
19946    # Losing compiler, so override with the script.
19947    # FIXME: It is wrong to rewrite CC.
19948    # But if we don't then we get into trouble of one sort or another.
19949    # A longer-term fix would be to have automake use am__CC in this case,
19950    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19951    CC="$am_aux_dir/compile $CC"
19952 fi
19953
19954
19955
19956
19957
19958 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19959         if test -n "$ac_tool_prefix"; then
19960   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19961 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19964 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19965   echo $ECHO_N "(cached) $ECHO_C" >&6
19966 else
19967   case $PKG_CONFIG in
19968   [\\/]* | ?:[\\/]*)
19969   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19970   ;;
19971   *)
19972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19973 for as_dir in $PATH
19974 do
19975   IFS=$as_save_IFS
19976   test -z "$as_dir" && as_dir=.
19977   for ac_exec_ext in '' $ac_executable_extensions; do
19978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19979     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19981     break 2
19982   fi
19983 done
19984 done
19985 IFS=$as_save_IFS
19986
19987   ;;
19988 esac
19989 fi
19990 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19991 if test -n "$PKG_CONFIG"; then
19992   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19993 echo "${ECHO_T}$PKG_CONFIG" >&6; }
19994 else
19995   { echo "$as_me:$LINENO: result: no" >&5
19996 echo "${ECHO_T}no" >&6; }
19997 fi
19998
19999
20000 fi
20001 if test -z "$ac_cv_path_PKG_CONFIG"; then
20002   ac_pt_PKG_CONFIG=$PKG_CONFIG
20003   # Extract the first word of "pkg-config", so it can be a program name with args.
20004 set dummy pkg-config; ac_word=$2
20005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20007 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20008   echo $ECHO_N "(cached) $ECHO_C" >&6
20009 else
20010   case $ac_pt_PKG_CONFIG in
20011   [\\/]* | ?:[\\/]*)
20012   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20013   ;;
20014   *)
20015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20016 for as_dir in $PATH
20017 do
20018   IFS=$as_save_IFS
20019   test -z "$as_dir" && as_dir=.
20020   for ac_exec_ext in '' $ac_executable_extensions; do
20021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20022     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20024     break 2
20025   fi
20026 done
20027 done
20028 IFS=$as_save_IFS
20029
20030   ;;
20031 esac
20032 fi
20033 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20034 if test -n "$ac_pt_PKG_CONFIG"; then
20035   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20036 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20037 else
20038   { echo "$as_me:$LINENO: result: no" >&5
20039 echo "${ECHO_T}no" >&6; }
20040 fi
20041
20042   if test "x$ac_pt_PKG_CONFIG" = x; then
20043     PKG_CONFIG=""
20044   else
20045     case $cross_compiling:$ac_tool_warned in
20046 yes:)
20047 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20048 whose name does not start with the host triplet.  If you think this
20049 configuration is useful to you, please write to autoconf@gnu.org." >&5
20050 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20051 whose name does not start with the host triplet.  If you think this
20052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20053 ac_tool_warned=yes ;;
20054 esac
20055     PKG_CONFIG=$ac_pt_PKG_CONFIG
20056   fi
20057 else
20058   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20059 fi
20060
20061 fi
20062 if test -n "$PKG_CONFIG"; then
20063         _pkg_min_version=0.9.0
20064         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20065 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20066         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20067                 { echo "$as_me:$LINENO: result: yes" >&5
20068 echo "${ECHO_T}yes" >&6; }
20069         else
20070                 { echo "$as_me:$LINENO: result: no" >&5
20071 echo "${ECHO_T}no" >&6; }
20072                 PKG_CONFIG=""
20073         fi
20074
20075 fi
20076
20077 pkg_failed=no
20078 { echo "$as_me:$LINENO: checking for PCRE" >&5
20079 echo $ECHO_N "checking for PCRE... $ECHO_C" >&6; }
20080
20081 if test -n "$PKG_CONFIG"; then
20082     if test -n "$PCRE_CFLAGS"; then
20083         pkg_cv_PCRE_CFLAGS="$PCRE_CFLAGS"
20084     else
20085         if test -n "$PKG_CONFIG" && \
20086     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpcre\"") >&5
20087   ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
20088   ac_status=$?
20089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090   (exit $ac_status); }; then
20091   pkg_cv_PCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre" 2>/dev/null`
20092 else
20093   pkg_failed=yes
20094 fi
20095     fi
20096 else
20097         pkg_failed=untried
20098 fi
20099 if test -n "$PKG_CONFIG"; then
20100     if test -n "$PCRE_LIBS"; then
20101         pkg_cv_PCRE_LIBS="$PCRE_LIBS"
20102     else
20103         if test -n "$PKG_CONFIG" && \
20104     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpcre\"") >&5
20105   ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
20106   ac_status=$?
20107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108   (exit $ac_status); }; then
20109   pkg_cv_PCRE_LIBS=`$PKG_CONFIG --libs "libpcre" 2>/dev/null`
20110 else
20111   pkg_failed=yes
20112 fi
20113     fi
20114 else
20115         pkg_failed=untried
20116 fi
20117
20118
20119
20120 if test $pkg_failed = yes; then
20121
20122 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20123         _pkg_short_errors_supported=yes
20124 else
20125         _pkg_short_errors_supported=no
20126 fi
20127         if test $_pkg_short_errors_supported = yes; then
20128                 PCRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpcre"`
20129         else
20130                 PCRE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpcre"`
20131         fi
20132         # Put the nasty error message in config.log where it belongs
20133         echo "$PCRE_PKG_ERRORS" >&5
20134
20135         { { echo "$as_me:$LINENO: error: Package requirements (libpcre) were not met:
20136
20137 $PCRE_PKG_ERRORS
20138
20139 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20140 installed software in a non-standard prefix.
20141
20142 Alternatively, you may set the environment variables PCRE_CFLAGS
20143 and PCRE_LIBS to avoid the need to call pkg-config.
20144 See the pkg-config man page for more details.
20145 " >&5
20146 echo "$as_me: error: Package requirements (libpcre) were not met:
20147
20148 $PCRE_PKG_ERRORS
20149
20150 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20151 installed software in a non-standard prefix.
20152
20153 Alternatively, you may set the environment variables PCRE_CFLAGS
20154 and PCRE_LIBS to avoid the need to call pkg-config.
20155 See the pkg-config man page for more details.
20156 " >&2;}
20157    { (exit 1); exit 1; }; }
20158 elif test $pkg_failed = untried; then
20159         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20160 is in your PATH or set the PKG_CONFIG environment variable to the full
20161 path to pkg-config.
20162
20163 Alternatively, you may set the environment variables PCRE_CFLAGS
20164 and PCRE_LIBS to avoid the need to call pkg-config.
20165 See the pkg-config man page for more details.
20166
20167 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20168 See \`config.log' for more details." >&5
20169 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20170 is in your PATH or set the PKG_CONFIG environment variable to the full
20171 path to pkg-config.
20172
20173 Alternatively, you may set the environment variables PCRE_CFLAGS
20174 and PCRE_LIBS to avoid the need to call pkg-config.
20175 See the pkg-config man page for more details.
20176
20177 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20178 See \`config.log' for more details." >&2;}
20179    { (exit 1); exit 1; }; }
20180 else
20181         PCRE_CFLAGS=$pkg_cv_PCRE_CFLAGS
20182         PCRE_LIBS=$pkg_cv_PCRE_LIBS
20183         { echo "$as_me:$LINENO: result: yes" >&5
20184 echo "${ECHO_T}yes" >&6; }
20185         :
20186 fi
20187
20188 pkg_failed=no
20189 { echo "$as_me:$LINENO: checking for SQLITE3" >&5
20190 echo $ECHO_N "checking for SQLITE3... $ECHO_C" >&6; }
20191
20192 if test -n "$PKG_CONFIG"; then
20193     if test -n "$SQLITE3_CFLAGS"; then
20194         pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
20195     else
20196         if test -n "$PKG_CONFIG" && \
20197     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
20198   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
20199   ac_status=$?
20200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); }; then
20202   pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
20203 else
20204   pkg_failed=yes
20205 fi
20206     fi
20207 else
20208         pkg_failed=untried
20209 fi
20210 if test -n "$PKG_CONFIG"; then
20211     if test -n "$SQLITE3_LIBS"; then
20212         pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
20213     else
20214         if test -n "$PKG_CONFIG" && \
20215     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
20216   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
20217   ac_status=$?
20218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219   (exit $ac_status); }; then
20220   pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
20221 else
20222   pkg_failed=yes
20223 fi
20224     fi
20225 else
20226         pkg_failed=untried
20227 fi
20228
20229
20230
20231 if test $pkg_failed = yes; then
20232
20233 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20234         _pkg_short_errors_supported=yes
20235 else
20236         _pkg_short_errors_supported=no
20237 fi
20238         if test $_pkg_short_errors_supported = yes; then
20239                 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
20240         else
20241                 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
20242         fi
20243         # Put the nasty error message in config.log where it belongs
20244         echo "$SQLITE3_PKG_ERRORS" >&5
20245
20246         { { echo "$as_me:$LINENO: error: Package requirements (sqlite3) were not met:
20247
20248 $SQLITE3_PKG_ERRORS
20249
20250 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20251 installed software in a non-standard prefix.
20252
20253 Alternatively, you may set the environment variables SQLITE3_CFLAGS
20254 and SQLITE3_LIBS to avoid the need to call pkg-config.
20255 See the pkg-config man page for more details.
20256 " >&5
20257 echo "$as_me: error: Package requirements (sqlite3) were not met:
20258
20259 $SQLITE3_PKG_ERRORS
20260
20261 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20262 installed software in a non-standard prefix.
20263
20264 Alternatively, you may set the environment variables SQLITE3_CFLAGS
20265 and SQLITE3_LIBS to avoid the need to call pkg-config.
20266 See the pkg-config man page for more details.
20267 " >&2;}
20268    { (exit 1); exit 1; }; }
20269 elif test $pkg_failed = untried; then
20270         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20271 is in your PATH or set the PKG_CONFIG environment variable to the full
20272 path to pkg-config.
20273
20274 Alternatively, you may set the environment variables SQLITE3_CFLAGS
20275 and SQLITE3_LIBS to avoid the need to call pkg-config.
20276 See the pkg-config man page for more details.
20277
20278 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20279 See \`config.log' for more details." >&5
20280 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20281 is in your PATH or set the PKG_CONFIG environment variable to the full
20282 path to pkg-config.
20283
20284 Alternatively, you may set the environment variables SQLITE3_CFLAGS
20285 and SQLITE3_LIBS to avoid the need to call pkg-config.
20286 See the pkg-config man page for more details.
20287
20288 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20289 See \`config.log' for more details." >&2;}
20290    { (exit 1); exit 1; }; }
20291 else
20292         SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
20293         SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
20294         { echo "$as_me:$LINENO: result: yes" >&5
20295 echo "${ECHO_T}yes" >&6; }
20296         :
20297 fi
20298 if test "${ac_cv_header_zlib_h+set}" = set; then
20299   { echo "$as_me:$LINENO: checking for zlib.h" >&5
20300 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
20301 if test "${ac_cv_header_zlib_h+set}" = set; then
20302   echo $ECHO_N "(cached) $ECHO_C" >&6
20303 fi
20304 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20305 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
20306 else
20307   # Is the header compilable?
20308 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
20309 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
20310 cat >conftest.$ac_ext <<_ACEOF
20311 /* confdefs.h.  */
20312 _ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h.  */
20316 $ac_includes_default
20317 #include <zlib.h>
20318 _ACEOF
20319 rm -f conftest.$ac_objext
20320 if { (ac_try="$ac_compile"
20321 case "(($ac_try" in
20322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323   *) ac_try_echo=$ac_try;;
20324 esac
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326   (eval "$ac_compile") 2>conftest.er1
20327   ac_status=$?
20328   grep -v '^ *+' conftest.er1 >conftest.err
20329   rm -f conftest.er1
20330   cat conftest.err >&5
20331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332   (exit $ac_status); } && {
20333          test -z "$ac_c_werror_flag" ||
20334          test ! -s conftest.err
20335        } && test -s conftest.$ac_objext; then
20336   ac_header_compiler=yes
20337 else
20338   echo "$as_me: failed program was:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20340
20341         ac_header_compiler=no
20342 fi
20343
20344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20346 echo "${ECHO_T}$ac_header_compiler" >&6; }
20347
20348 # Is the header present?
20349 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
20350 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
20351 cat >conftest.$ac_ext <<_ACEOF
20352 /* confdefs.h.  */
20353 _ACEOF
20354 cat confdefs.h >>conftest.$ac_ext
20355 cat >>conftest.$ac_ext <<_ACEOF
20356 /* end confdefs.h.  */
20357 #include <zlib.h>
20358 _ACEOF
20359 if { (ac_try="$ac_cpp conftest.$ac_ext"
20360 case "(($ac_try" in
20361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362   *) ac_try_echo=$ac_try;;
20363 esac
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20366   ac_status=$?
20367   grep -v '^ *+' conftest.er1 >conftest.err
20368   rm -f conftest.er1
20369   cat conftest.err >&5
20370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371   (exit $ac_status); } >/dev/null && {
20372          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20373          test ! -s conftest.err
20374        }; then
20375   ac_header_preproc=yes
20376 else
20377   echo "$as_me: failed program was:" >&5
20378 sed 's/^/| /' conftest.$ac_ext >&5
20379
20380   ac_header_preproc=no
20381 fi
20382
20383 rm -f conftest.err conftest.$ac_ext
20384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20385 echo "${ECHO_T}$ac_header_preproc" >&6; }
20386
20387 # So?  What about this header?
20388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20389   yes:no: )
20390     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20391 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20392     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20393 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20394     ac_header_preproc=yes
20395     ;;
20396   no:yes:* )
20397     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20398 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
20399     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
20400 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
20401     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20402 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20403     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
20404 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20405     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20406 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
20407     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20408 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
20409
20410     ;;
20411 esac
20412 { echo "$as_me:$LINENO: checking for zlib.h" >&5
20413 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
20414 if test "${ac_cv_header_zlib_h+set}" = set; then
20415   echo $ECHO_N "(cached) $ECHO_C" >&6
20416 else
20417   ac_cv_header_zlib_h=$ac_header_preproc
20418 fi
20419 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20420 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
20421
20422 fi
20423 if test $ac_cv_header_zlib_h = yes; then
20424   :
20425 else
20426   { { echo "$as_me:$LINENO: error: zlib.h not found." >&5
20427 echo "$as_me: error: zlib.h not found." >&2;}
20428    { (exit 1); exit 1; }; }
20429 fi
20430
20431
20432 if test "${ac_cv_header_xmltok_xmlparse_h+set}" = set; then
20433   { echo "$as_me:$LINENO: checking for xmltok/xmlparse.h" >&5
20434 echo $ECHO_N "checking for xmltok/xmlparse.h... $ECHO_C" >&6; }
20435 if test "${ac_cv_header_xmltok_xmlparse_h+set}" = set; then
20436   echo $ECHO_N "(cached) $ECHO_C" >&6
20437 fi
20438 { echo "$as_me:$LINENO: result: $ac_cv_header_xmltok_xmlparse_h" >&5
20439 echo "${ECHO_T}$ac_cv_header_xmltok_xmlparse_h" >&6; }
20440 else
20441   # Is the header compilable?
20442 { echo "$as_me:$LINENO: checking xmltok/xmlparse.h usability" >&5
20443 echo $ECHO_N "checking xmltok/xmlparse.h usability... $ECHO_C" >&6; }
20444 cat >conftest.$ac_ext <<_ACEOF
20445 /* confdefs.h.  */
20446 _ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h.  */
20450 $ac_includes_default
20451 #include <xmltok/xmlparse.h>
20452 _ACEOF
20453 rm -f conftest.$ac_objext
20454 if { (ac_try="$ac_compile"
20455 case "(($ac_try" in
20456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457   *) ac_try_echo=$ac_try;;
20458 esac
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460   (eval "$ac_compile") 2>conftest.er1
20461   ac_status=$?
20462   grep -v '^ *+' conftest.er1 >conftest.err
20463   rm -f conftest.er1
20464   cat conftest.err >&5
20465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466   (exit $ac_status); } && {
20467          test -z "$ac_c_werror_flag" ||
20468          test ! -s conftest.err
20469        } && test -s conftest.$ac_objext; then
20470   ac_header_compiler=yes
20471 else
20472   echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20474
20475         ac_header_compiler=no
20476 fi
20477
20478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20480 echo "${ECHO_T}$ac_header_compiler" >&6; }
20481
20482 # Is the header present?
20483 { echo "$as_me:$LINENO: checking xmltok/xmlparse.h presence" >&5
20484 echo $ECHO_N "checking xmltok/xmlparse.h presence... $ECHO_C" >&6; }
20485 cat >conftest.$ac_ext <<_ACEOF
20486 /* confdefs.h.  */
20487 _ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h.  */
20491 #include <xmltok/xmlparse.h>
20492 _ACEOF
20493 if { (ac_try="$ac_cpp conftest.$ac_ext"
20494 case "(($ac_try" in
20495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496   *) ac_try_echo=$ac_try;;
20497 esac
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20500   ac_status=$?
20501   grep -v '^ *+' conftest.er1 >conftest.err
20502   rm -f conftest.er1
20503   cat conftest.err >&5
20504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505   (exit $ac_status); } >/dev/null && {
20506          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20507          test ! -s conftest.err
20508        }; then
20509   ac_header_preproc=yes
20510 else
20511   echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20513
20514   ac_header_preproc=no
20515 fi
20516
20517 rm -f conftest.err conftest.$ac_ext
20518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20519 echo "${ECHO_T}$ac_header_preproc" >&6; }
20520
20521 # So?  What about this header?
20522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20523   yes:no: )
20524     { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: accepted by the compiler, rejected by the preprocessor!" >&5
20525 echo "$as_me: WARNING: xmltok/xmlparse.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20526     { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: proceeding with the compiler's result" >&5
20527 echo "$as_me: WARNING: xmltok/xmlparse.h: proceeding with the compiler's result" >&2;}
20528     ac_header_preproc=yes
20529     ;;
20530   no:yes:* )
20531     { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: present but cannot be compiled" >&5
20532 echo "$as_me: WARNING: xmltok/xmlparse.h: present but cannot be compiled" >&2;}
20533     { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h:     check for missing prerequisite headers?" >&5
20534 echo "$as_me: WARNING: xmltok/xmlparse.h:     check for missing prerequisite headers?" >&2;}
20535     { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: see the Autoconf documentation" >&5
20536 echo "$as_me: WARNING: xmltok/xmlparse.h: see the Autoconf documentation" >&2;}
20537     { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h:     section \"Present But Cannot Be Compiled\"" >&5
20538 echo "$as_me: WARNING: xmltok/xmlparse.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20539     { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: proceeding with the preprocessor's result" >&5
20540 echo "$as_me: WARNING: xmltok/xmlparse.h: proceeding with the preprocessor's result" >&2;}
20541     { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: in the future, the compiler will take precedence" >&5
20542 echo "$as_me: WARNING: xmltok/xmlparse.h: in the future, the compiler will take precedence" >&2;}
20543
20544     ;;
20545 esac
20546 { echo "$as_me:$LINENO: checking for xmltok/xmlparse.h" >&5
20547 echo $ECHO_N "checking for xmltok/xmlparse.h... $ECHO_C" >&6; }
20548 if test "${ac_cv_header_xmltok_xmlparse_h+set}" = set; then
20549   echo $ECHO_N "(cached) $ECHO_C" >&6
20550 else
20551   ac_cv_header_xmltok_xmlparse_h=$ac_header_preproc
20552 fi
20553 { echo "$as_me:$LINENO: result: $ac_cv_header_xmltok_xmlparse_h" >&5
20554 echo "${ECHO_T}$ac_cv_header_xmltok_xmlparse_h" >&6; }
20555
20556 fi
20557 if test $ac_cv_header_xmltok_xmlparse_h = yes; then
20558   have_system_xmltok="yes"
20559 fi
20560
20561
20562 if test "${ac_cv_header_expat_h+set}" = set; then
20563   { echo "$as_me:$LINENO: checking for expat.h" >&5
20564 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
20565 if test "${ac_cv_header_expat_h+set}" = set; then
20566   echo $ECHO_N "(cached) $ECHO_C" >&6
20567 fi
20568 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20569 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
20570 else
20571   # Is the header compilable?
20572 { echo "$as_me:$LINENO: checking expat.h usability" >&5
20573 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6; }
20574 cat >conftest.$ac_ext <<_ACEOF
20575 /* confdefs.h.  */
20576 _ACEOF
20577 cat confdefs.h >>conftest.$ac_ext
20578 cat >>conftest.$ac_ext <<_ACEOF
20579 /* end confdefs.h.  */
20580 $ac_includes_default
20581 #include <expat.h>
20582 _ACEOF
20583 rm -f conftest.$ac_objext
20584 if { (ac_try="$ac_compile"
20585 case "(($ac_try" in
20586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20587   *) ac_try_echo=$ac_try;;
20588 esac
20589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20590   (eval "$ac_compile") 2>conftest.er1
20591   ac_status=$?
20592   grep -v '^ *+' conftest.er1 >conftest.err
20593   rm -f conftest.er1
20594   cat conftest.err >&5
20595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596   (exit $ac_status); } && {
20597          test -z "$ac_c_werror_flag" ||
20598          test ! -s conftest.err
20599        } && test -s conftest.$ac_objext; then
20600   ac_header_compiler=yes
20601 else
20602   echo "$as_me: failed program was:" >&5
20603 sed 's/^/| /' conftest.$ac_ext >&5
20604
20605         ac_header_compiler=no
20606 fi
20607
20608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20610 echo "${ECHO_T}$ac_header_compiler" >&6; }
20611
20612 # Is the header present?
20613 { echo "$as_me:$LINENO: checking expat.h presence" >&5
20614 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6; }
20615 cat >conftest.$ac_ext <<_ACEOF
20616 /* confdefs.h.  */
20617 _ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h.  */
20621 #include <expat.h>
20622 _ACEOF
20623 if { (ac_try="$ac_cpp conftest.$ac_ext"
20624 case "(($ac_try" in
20625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626   *) ac_try_echo=$ac_try;;
20627 esac
20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20630   ac_status=$?
20631   grep -v '^ *+' conftest.er1 >conftest.err
20632   rm -f conftest.er1
20633   cat conftest.err >&5
20634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635   (exit $ac_status); } >/dev/null && {
20636          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20637          test ! -s conftest.err
20638        }; then
20639   ac_header_preproc=yes
20640 else
20641   echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20643
20644   ac_header_preproc=no
20645 fi
20646
20647 rm -f conftest.err conftest.$ac_ext
20648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20649 echo "${ECHO_T}$ac_header_preproc" >&6; }
20650
20651 # So?  What about this header?
20652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20653   yes:no: )
20654     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
20655 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20656     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
20657 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
20658     ac_header_preproc=yes
20659     ;;
20660   no:yes:* )
20661     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
20662 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
20663     { echo "$as_me:$LINENO: WARNING: expat.h:     check for missing prerequisite headers?" >&5
20664 echo "$as_me: WARNING: expat.h:     check for missing prerequisite headers?" >&2;}
20665     { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
20666 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
20667     { echo "$as_me:$LINENO: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&5
20668 echo "$as_me: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20669     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
20670 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
20671     { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
20672 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
20673
20674     ;;
20675 esac
20676 { echo "$as_me:$LINENO: checking for expat.h" >&5
20677 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
20678 if test "${ac_cv_header_expat_h+set}" = set; then
20679   echo $ECHO_N "(cached) $ECHO_C" >&6
20680 else
20681   ac_cv_header_expat_h=$ac_header_preproc
20682 fi
20683 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20684 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
20685
20686 fi
20687 if test $ac_cv_header_expat_h = yes; then
20688   have_system_expat="yes"
20689 fi
20690
20691
20692
20693
20694 pkg_failed=no
20695 { echo "$as_me:$LINENO: checking for LIBICAL" >&5
20696 echo $ECHO_N "checking for LIBICAL... $ECHO_C" >&6; }
20697
20698 if test -n "$PKG_CONFIG"; then
20699     if test -n "$LIBICAL_CFLAGS"; then
20700         pkg_cv_LIBICAL_CFLAGS="$LIBICAL_CFLAGS"
20701     else
20702         if test -n "$PKG_CONFIG" && \
20703     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libical\"") >&5
20704   ($PKG_CONFIG --exists --print-errors "libical") 2>&5
20705   ac_status=$?
20706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707   (exit $ac_status); }; then
20708   pkg_cv_LIBICAL_CFLAGS=`$PKG_CONFIG --cflags "libical" 2>/dev/null`
20709 else
20710   pkg_failed=yes
20711 fi
20712     fi
20713 else
20714         pkg_failed=untried
20715 fi
20716 if test -n "$PKG_CONFIG"; then
20717     if test -n "$LIBICAL_LIBS"; then
20718         pkg_cv_LIBICAL_LIBS="$LIBICAL_LIBS"
20719     else
20720         if test -n "$PKG_CONFIG" && \
20721     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libical\"") >&5
20722   ($PKG_CONFIG --exists --print-errors "libical") 2>&5
20723   ac_status=$?
20724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725   (exit $ac_status); }; then
20726   pkg_cv_LIBICAL_LIBS=`$PKG_CONFIG --libs "libical" 2>/dev/null`
20727 else
20728   pkg_failed=yes
20729 fi
20730     fi
20731 else
20732         pkg_failed=untried
20733 fi
20734
20735
20736
20737 if test $pkg_failed = yes; then
20738
20739 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20740         _pkg_short_errors_supported=yes
20741 else
20742         _pkg_short_errors_supported=no
20743 fi
20744         if test $_pkg_short_errors_supported = yes; then
20745                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libical"`
20746         else
20747                 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libical"`
20748         fi
20749         # Put the nasty error message in config.log where it belongs
20750         echo "$LIBICAL_PKG_ERRORS" >&5
20751
20752         { echo "$as_me:$LINENO: result: no" >&5
20753 echo "${ECHO_T}no" >&6; }
20754
20755 pkg_failed=no
20756 { echo "$as_me:$LINENO: checking for LIBECAL" >&5
20757 echo $ECHO_N "checking for LIBECAL... $ECHO_C" >&6; }
20758
20759 if test -n "$PKG_CONFIG"; then
20760     if test -n "$LIBECAL_CFLAGS"; then
20761         pkg_cv_LIBECAL_CFLAGS="$LIBECAL_CFLAGS"
20762     else
20763         if test -n "$PKG_CONFIG" && \
20764     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\"") >&5
20765   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
20766   ac_status=$?
20767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768   (exit $ac_status); }; then
20769   pkg_cv_LIBECAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
20770 else
20771   pkg_failed=yes
20772 fi
20773     fi
20774 else
20775         pkg_failed=untried
20776 fi
20777 if test -n "$PKG_CONFIG"; then
20778     if test -n "$LIBECAL_LIBS"; then
20779         pkg_cv_LIBECAL_LIBS="$LIBECAL_LIBS"
20780     else
20781         if test -n "$PKG_CONFIG" && \
20782     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\"") >&5
20783   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
20784   ac_status=$?
20785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786   (exit $ac_status); }; then
20787   pkg_cv_LIBECAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
20788 else
20789   pkg_failed=yes
20790 fi
20791     fi
20792 else
20793         pkg_failed=untried
20794 fi
20795
20796
20797
20798 if test $pkg_failed = yes; then
20799
20800 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20801         _pkg_short_errors_supported=yes
20802 else
20803         _pkg_short_errors_supported=no
20804 fi
20805         if test $_pkg_short_errors_supported = yes; then
20806                 LIBECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libecal-1.2"`
20807         else
20808                 LIBECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libecal-1.2"`
20809         fi
20810         # Put the nasty error message in config.log where it belongs
20811         echo "$LIBECAL_PKG_ERRORS" >&5
20812
20813         { echo "$as_me:$LINENO: result: no" >&5
20814 echo "${ECHO_T}no" >&6; }
20815                 true
20816 elif test $pkg_failed = untried; then
20817         true
20818 else
20819         LIBECAL_CFLAGS=$pkg_cv_LIBECAL_CFLAGS
20820         LIBECAL_LIBS=$pkg_cv_LIBECAL_LIBS
20821         { echo "$as_me:$LINENO: result: yes" >&5
20822 echo "${ECHO_T}yes" >&6; }
20823
20824 cat >>confdefs.h <<\_ACEOF
20825 #define HAVE_LIBICAL 1
20826 _ACEOF
20827
20828
20829 cat >>confdefs.h <<\_ACEOF
20830 #define HAVE_LIBECAL 1
20831 _ACEOF
20832
20833 fi
20834 elif test $pkg_failed = untried; then
20835
20836 pkg_failed=no
20837 { echo "$as_me:$LINENO: checking for LIBECAL" >&5
20838 echo $ECHO_N "checking for LIBECAL... $ECHO_C" >&6; }
20839
20840 if test -n "$PKG_CONFIG"; then
20841     if test -n "$LIBECAL_CFLAGS"; then
20842         pkg_cv_LIBECAL_CFLAGS="$LIBECAL_CFLAGS"
20843     else
20844         if test -n "$PKG_CONFIG" && \
20845     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\"") >&5
20846   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
20847   ac_status=$?
20848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849   (exit $ac_status); }; then
20850   pkg_cv_LIBECAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
20851 else
20852   pkg_failed=yes
20853 fi
20854     fi
20855 else
20856         pkg_failed=untried
20857 fi
20858 if test -n "$PKG_CONFIG"; then
20859     if test -n "$LIBECAL_LIBS"; then
20860         pkg_cv_LIBECAL_LIBS="$LIBECAL_LIBS"
20861     else
20862         if test -n "$PKG_CONFIG" && \
20863     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\"") >&5
20864   ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
20865   ac_status=$?
20866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867   (exit $ac_status); }; then
20868   pkg_cv_LIBECAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
20869 else
20870   pkg_failed=yes
20871 fi
20872     fi
20873 else
20874         pkg_failed=untried
20875 fi
20876
20877
20878
20879 if test $pkg_failed = yes; then
20880
20881 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20882         _pkg_short_errors_supported=yes
20883 else
20884         _pkg_short_errors_supported=no
20885 fi
20886         if test $_pkg_short_errors_supported = yes; then
20887                 LIBECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libecal-1.2"`
20888         else
20889                 LIBECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libecal-1.2"`
20890         fi
20891         # Put the nasty error message in config.log where it belongs
20892         echo "$LIBECAL_PKG_ERRORS" >&5
20893
20894         { echo "$as_me:$LINENO: result: no" >&5
20895 echo "${ECHO_T}no" >&6; }
20896                 true
20897 elif test $pkg_failed = untried; then
20898         true
20899 else
20900         LIBECAL_CFLAGS=$pkg_cv_LIBECAL_CFLAGS
20901         LIBECAL_LIBS=$pkg_cv_LIBECAL_LIBS
20902         { echo "$as_me:$LINENO: result: yes" >&5
20903 echo "${ECHO_T}yes" >&6; }
20904
20905 cat >>confdefs.h <<\_ACEOF
20906 #define HAVE_LIBICAL 1
20907 _ACEOF
20908
20909
20910 cat >>confdefs.h <<\_ACEOF
20911 #define HAVE_LIBECAL 1
20912 _ACEOF
20913
20914 fi
20915 else
20916         LIBICAL_CFLAGS=$pkg_cv_LIBICAL_CFLAGS
20917         LIBICAL_LIBS=$pkg_cv_LIBICAL_LIBS
20918         { echo "$as_me:$LINENO: result: yes" >&5
20919 echo "${ECHO_T}yes" >&6; }
20920
20921 cat >>confdefs.h <<\_ACEOF
20922 #define HAVE_LIBICAL 1
20923 _ACEOF
20924
20925 fi
20926
20927 # Check whether --enable-evolution-compatibility was given.
20928 if test "${enable_evolution_compatibility+set}" = set; then
20929   enableval=$enable_evolution_compatibility; enable_evolution_compatibility="$enableval"
20930 else
20931   enable_evolution_compatibility="no"
20932 fi
20933
20934 if test "$enable_evolution_compatibility" == "yes"; then
20935
20936 cat >>confdefs.h <<\_ACEOF
20937 #define EVOLUTION_COMPATIBILITY 1
20938 _ACEOF
20939
20940    LIBICAL_LIBS=
20941    LIBECAL_LIBS=
20942 fi
20943
20944
20945 # Check whether --with-xmltok was given.
20946 if test "${with_xmltok+set}" = set; then
20947   withval=$with_xmltok;  if test "$withval" = "builtin"; then with_xmltok="builtin"
20948           elif test "$withval" = "system" || test "$withval" = "yes"; then with_xmltok="system"
20949           else with_xmltok="$withval"
20950           fi
20951 else
20952    with_xmltok="no"
20953 fi
20954
20955
20956
20957 # Check whether --with-expat was given.
20958 if test "${with_expat+set}" = set; then
20959   withval=$with_expat;  if test "$withval" = "system" || test "$withval" = "yes"; then with_expat="system"
20960           else with_expath="$withval"
20961           fi
20962 else
20963    with_expat="no"
20964 fi
20965
20966
20967 if test "$with_xmltok" = "no" && test "$with_expat" = "no"; then
20968    if test "$have_system_expat" = "yes"; then
20969       with_expat="yes"
20970       XMLPARSE_LIBS="-lexpat"
20971    elif test "$have_system_xmltok" = "yes"; then
20972       with_xmltok="yes"
20973       XMLPARSE_LIBS="-lxmlparse"
20974    else
20975       with_xmltok="builtin"
20976    fi
20977 elif test "$with_expat" != "no"; then
20978    if test "$with_expat" = "system"; then
20979       if test "$have_system_expat" = "yes"; then XMLPARSE_LIBS="-lexpat"
20980       else { { echo "$as_me:$LINENO: error: expat.h not found." >&5
20981 echo "$as_me: error: expat.h not found." >&2;}
20982    { (exit 1); exit 1; }; }
20983       fi
20984    else # user path
20985       XMLPARSE_LIBS="-L$with_expat/lib -lexpat"
20986       XMLPARSE_CFLAGS="-I$with_expat/include"
20987    fi
20988    with_expat="yes"
20989 else # with_xmltok
20990    if test "$with_xmltok" = "system"; then
20991       if test "$have_system_xmltok" = "yes"; then XMLPARSE_LIBS="-lxmlparse"
20992       else { { echo "$as_me:$LINENO: error: xmltok/xmplarse.h not found." >&5
20993 echo "$as_me: error: xmltok/xmplarse.h not found." >&2;}
20994    { (exit 1); exit 1; }; }
20995       fi
20996    elif test "$with_xmltok" != "builtin"; then
20997       XMLPARSE_LIBS="-L$with_xmltok/lib -lxmlparse"
20998       XMLPARSE_CFLAGS="-I$with_xmltok/include"
20999    fi
21000 fi
21001
21002 if test "$with_expat" = "yes"; then
21003
21004 cat >>confdefs.h <<\_ACEOF
21005 #define HAVE_EXPAT 1
21006 _ACEOF
21007
21008 elif test "$with_xmltok" != "builtin"; then
21009
21010 cat >>confdefs.h <<\_ACEOF
21011 #define HAVE_SYS_XMLTOK 1
21012 _ACEOF
21013
21014 else
21015
21016 cat >>confdefs.h <<\_ACEOF
21017 #define HAVE_BUILTIN_XMLTOK 1
21018 _ACEOF
21019
21020 fi
21021
21022
21023
21024  if test "$with_xmltok" = "builtin"; then
21025   COND_XMLPARSE_TRUE=
21026   COND_XMLPARSE_FALSE='#'
21027 else
21028   COND_XMLPARSE_TRUE='#'
21029   COND_XMLPARSE_FALSE=
21030 fi
21031
21032
21033 if test "${ac_cv_header_stdint_h+set}" = set; then
21034   { echo "$as_me:$LINENO: checking for stdint.h" >&5
21035 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
21036 if test "${ac_cv_header_stdint_h+set}" = set; then
21037   echo $ECHO_N "(cached) $ECHO_C" >&6
21038 fi
21039 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
21040 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
21041 else
21042   # Is the header compilable?
21043 { echo "$as_me:$LINENO: checking stdint.h usability" >&5
21044 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
21045 cat >conftest.$ac_ext <<_ACEOF
21046 /* confdefs.h.  */
21047 _ACEOF
21048 cat confdefs.h >>conftest.$ac_ext
21049 cat >>conftest.$ac_ext <<_ACEOF
21050 /* end confdefs.h.  */
21051 $ac_includes_default
21052 #include <stdint.h>
21053 _ACEOF
21054 rm -f conftest.$ac_objext
21055 if { (ac_try="$ac_compile"
21056 case "(($ac_try" in
21057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21058   *) ac_try_echo=$ac_try;;
21059 esac
21060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21061   (eval "$ac_compile") 2>conftest.er1
21062   ac_status=$?
21063   grep -v '^ *+' conftest.er1 >conftest.err
21064   rm -f conftest.er1
21065   cat conftest.err >&5
21066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067   (exit $ac_status); } && {
21068          test -z "$ac_c_werror_flag" ||
21069          test ! -s conftest.err
21070        } && test -s conftest.$ac_objext; then
21071   ac_header_compiler=yes
21072 else
21073   echo "$as_me: failed program was:" >&5
21074 sed 's/^/| /' conftest.$ac_ext >&5
21075
21076         ac_header_compiler=no
21077 fi
21078
21079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21081 echo "${ECHO_T}$ac_header_compiler" >&6; }
21082
21083 # Is the header present?
21084 { echo "$as_me:$LINENO: checking stdint.h presence" >&5
21085 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
21086 cat >conftest.$ac_ext <<_ACEOF
21087 /* confdefs.h.  */
21088 _ACEOF
21089 cat confdefs.h >>conftest.$ac_ext
21090 cat >>conftest.$ac_ext <<_ACEOF
21091 /* end confdefs.h.  */
21092 #include <stdint.h>
21093 _ACEOF
21094 if { (ac_try="$ac_cpp conftest.$ac_ext"
21095 case "(($ac_try" in
21096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097   *) ac_try_echo=$ac_try;;
21098 esac
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21101   ac_status=$?
21102   grep -v '^ *+' conftest.er1 >conftest.err
21103   rm -f conftest.er1
21104   cat conftest.err >&5
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); } >/dev/null && {
21107          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21108          test ! -s conftest.err
21109        }; then
21110   ac_header_preproc=yes
21111 else
21112   echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21114
21115   ac_header_preproc=no
21116 fi
21117
21118 rm -f conftest.err conftest.$ac_ext
21119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21120 echo "${ECHO_T}$ac_header_preproc" >&6; }
21121
21122 # So?  What about this header?
21123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21124   yes:no: )
21125     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
21126 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21127     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
21128 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
21129     ac_header_preproc=yes
21130     ;;
21131   no:yes:* )
21132     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
21133 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
21134     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
21135 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
21136     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
21137 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
21138     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
21139 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21140     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
21141 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
21142     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
21143 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
21144
21145     ;;
21146 esac
21147 { echo "$as_me:$LINENO: checking for stdint.h" >&5
21148 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
21149 if test "${ac_cv_header_stdint_h+set}" = set; then
21150   echo $ECHO_N "(cached) $ECHO_C" >&6
21151 else
21152   ac_cv_header_stdint_h=$ac_header_preproc
21153 fi
21154 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
21155 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
21156
21157 fi
21158
21159
21160
21161 # the autotools SDK always assumes that it is linked against the engine
21162
21163 cat >>confdefs.h <<\_ACEOF
21164 #define UIAPI_LINKED 1
21165 _ACEOF
21166
21167
21168 cat >>confdefs.h <<\_ACEOF
21169 #define DBAPI_LINKED 1
21170 _ACEOF
21171
21172
21173 cat >>confdefs.h <<\_ACEOF
21174 #define DBAPI_SRV_LINKED 1
21175 _ACEOF
21176
21177
21178 # determines which object files are needed in the SDK:
21179 # if linking statically, some object files are shared with
21180 # libsynthesis.a
21181  if test "$enable_shared" = "no"; then
21182   COND_STATIC_TRUE=
21183   COND_STATIC_FALSE='#'
21184 else
21185   COND_STATIC_TRUE='#'
21186   COND_STATIC_FALSE=
21187 fi
21188
21189
21190 # Disable unconditionally at the moment. Would add dependency of SDK
21191 # on SyncML Toolkit.
21192
21193 cat >>confdefs.h <<\_ACEOF
21194 #define WITHOUT_SAN_1_1 1
21195 _ACEOF
21196
21197
21198 ac_config_files="$ac_config_files Makefile src/Makefile synthesis.pc synthesis-sdk.pc"
21199
21200 cat >confcache <<\_ACEOF
21201 # This file is a shell script that caches the results of configure
21202 # tests run on this system so they can be shared between configure
21203 # scripts and configure runs, see configure's option --config-cache.
21204 # It is not useful on other systems.  If it contains results you don't
21205 # want to keep, you may remove or edit it.
21206 #
21207 # config.status only pays attention to the cache file if you give it
21208 # the --recheck option to rerun configure.
21209 #
21210 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21211 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21212 # following values.
21213
21214 _ACEOF
21215
21216 # The following way of writing the cache mishandles newlines in values,
21217 # but we know of no workaround that is simple, portable, and efficient.
21218 # So, we kill variables containing newlines.
21219 # Ultrix sh set writes to stderr and can't be redirected directly,
21220 # and sets the high bit in the cache file unless we assign to the vars.
21221 (
21222   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21223     eval ac_val=\$$ac_var
21224     case $ac_val in #(
21225     *${as_nl}*)
21226       case $ac_var in #(
21227       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21228 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21229       esac
21230       case $ac_var in #(
21231       _ | IFS | as_nl) ;; #(
21232       *) $as_unset $ac_var ;;
21233       esac ;;
21234     esac
21235   done
21236
21237   (set) 2>&1 |
21238     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21239     *${as_nl}ac_space=\ *)
21240       # `set' does not quote correctly, so add quotes (double-quote
21241       # substitution turns \\\\ into \\, and sed turns \\ into \).
21242       sed -n \
21243         "s/'/'\\\\''/g;
21244           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21245       ;; #(
21246     *)
21247       # `set' quotes correctly as required by POSIX, so do not add quotes.
21248       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21249       ;;
21250     esac |
21251     sort
21252 ) |
21253   sed '
21254      /^ac_cv_env_/b end
21255      t clear
21256      :clear
21257      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21258      t end
21259      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21260      :end' >>confcache
21261 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21262   if test -w "$cache_file"; then
21263     test "x$cache_file" != "x/dev/null" &&
21264       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21265 echo "$as_me: updating cache $cache_file" >&6;}
21266     cat confcache >$cache_file
21267   else
21268     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21269 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21270   fi
21271 fi
21272 rm -f confcache
21273
21274 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21275 # Let make expand exec_prefix.
21276 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21277
21278 DEFS=-DHAVE_CONFIG_H
21279
21280 ac_libobjs=
21281 ac_ltlibobjs=
21282 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21283   # 1. Remove the extension, and $U if already installed.
21284   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21285   ac_i=`echo "$ac_i" | sed "$ac_script"`
21286   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21287   #    will be set to the directory where LIBOBJS objects are built.
21288   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21289   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21290 done
21291 LIBOBJS=$ac_libobjs
21292
21293 LTLIBOBJS=$ac_ltlibobjs
21294
21295
21296 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21297   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21298 Usually this means the macro was only invoked conditionally." >&5
21299 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21300 Usually this means the macro was only invoked conditionally." >&2;}
21301    { (exit 1); exit 1; }; }
21302 fi
21303 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21304   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21305 Usually this means the macro was only invoked conditionally." >&5
21306 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21307 Usually this means the macro was only invoked conditionally." >&2;}
21308    { (exit 1); exit 1; }; }
21309 fi
21310 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21311   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21312 Usually this means the macro was only invoked conditionally." >&5
21313 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21314 Usually this means the macro was only invoked conditionally." >&2;}
21315    { (exit 1); exit 1; }; }
21316 fi
21317 if test -z "${COND_XMLPARSE_TRUE}" && test -z "${COND_XMLPARSE_FALSE}"; then
21318   { { echo "$as_me:$LINENO: error: conditional \"COND_XMLPARSE\" was never defined.
21319 Usually this means the macro was only invoked conditionally." >&5
21320 echo "$as_me: error: conditional \"COND_XMLPARSE\" was never defined.
21321 Usually this means the macro was only invoked conditionally." >&2;}
21322    { (exit 1); exit 1; }; }
21323 fi
21324 if test -z "${COND_STATIC_TRUE}" && test -z "${COND_STATIC_FALSE}"; then
21325   { { echo "$as_me:$LINENO: error: conditional \"COND_STATIC\" was never defined.
21326 Usually this means the macro was only invoked conditionally." >&5
21327 echo "$as_me: error: conditional \"COND_STATIC\" was never defined.
21328 Usually this means the macro was only invoked conditionally." >&2;}
21329    { (exit 1); exit 1; }; }
21330 fi
21331
21332 : ${CONFIG_STATUS=./config.status}
21333 ac_clean_files_save=$ac_clean_files
21334 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21335 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21336 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21337 cat >$CONFIG_STATUS <<_ACEOF
21338 #! $SHELL
21339 # Generated by $as_me.
21340 # Run this file to recreate the current configuration.
21341 # Compiler output produced by configure, useful for debugging
21342 # configure, is in config.log if it exists.
21343
21344 debug=false
21345 ac_cs_recheck=false
21346 ac_cs_silent=false
21347 SHELL=\${CONFIG_SHELL-$SHELL}
21348 _ACEOF
21349
21350 cat >>$CONFIG_STATUS <<\_ACEOF
21351 ## --------------------- ##
21352 ## M4sh Initialization.  ##
21353 ## --------------------- ##
21354
21355 # Be more Bourne compatible
21356 DUALCASE=1; export DUALCASE # for MKS sh
21357 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21358   emulate sh
21359   NULLCMD=:
21360   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21361   # is contrary to our usage.  Disable this feature.
21362   alias -g '${1+"$@"}'='"$@"'
21363   setopt NO_GLOB_SUBST
21364 else
21365   case `(set -o) 2>/dev/null` in
21366   *posix*) set -o posix ;;
21367 esac
21368
21369 fi
21370
21371
21372
21373
21374 # PATH needs CR
21375 # Avoid depending upon Character Ranges.
21376 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21377 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21378 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21379 as_cr_digits='0123456789'
21380 as_cr_alnum=$as_cr_Letters$as_cr_digits
21381
21382 # The user is always right.
21383 if test "${PATH_SEPARATOR+set}" != set; then
21384   echo "#! /bin/sh" >conf$$.sh
21385   echo  "exit 0"   >>conf$$.sh
21386   chmod +x conf$$.sh
21387   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21388     PATH_SEPARATOR=';'
21389   else
21390     PATH_SEPARATOR=:
21391   fi
21392   rm -f conf$$.sh
21393 fi
21394
21395 # Support unset when possible.
21396 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21397   as_unset=unset
21398 else
21399   as_unset=false
21400 fi
21401
21402
21403 # IFS
21404 # We need space, tab and new line, in precisely that order.  Quoting is
21405 # there to prevent editors from complaining about space-tab.
21406 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21407 # splitting by setting IFS to empty value.)
21408 as_nl='
21409 '
21410 IFS=" ""        $as_nl"
21411
21412 # Find who we are.  Look in the path if we contain no directory separator.
21413 case $0 in
21414   *[\\/]* ) as_myself=$0 ;;
21415   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21416 for as_dir in $PATH
21417 do
21418   IFS=$as_save_IFS
21419   test -z "$as_dir" && as_dir=.
21420   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21421 done
21422 IFS=$as_save_IFS
21423
21424      ;;
21425 esac
21426 # We did not find ourselves, most probably we were run as `sh COMMAND'
21427 # in which case we are not to be found in the path.
21428 if test "x$as_myself" = x; then
21429   as_myself=$0
21430 fi
21431 if test ! -f "$as_myself"; then
21432   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21433   { (exit 1); exit 1; }
21434 fi
21435
21436 # Work around bugs in pre-3.0 UWIN ksh.
21437 for as_var in ENV MAIL MAILPATH
21438 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21439 done
21440 PS1='$ '
21441 PS2='> '
21442 PS4='+ '
21443
21444 # NLS nuisances.
21445 for as_var in \
21446   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21447   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21448   LC_TELEPHONE LC_TIME
21449 do
21450   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21451     eval $as_var=C; export $as_var
21452   else
21453     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21454   fi
21455 done
21456
21457 # Required to use basename.
21458 if expr a : '\(a\)' >/dev/null 2>&1 &&
21459    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21460   as_expr=expr
21461 else
21462   as_expr=false
21463 fi
21464
21465 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21466   as_basename=basename
21467 else
21468   as_basename=false
21469 fi
21470
21471
21472 # Name of the executable.
21473 as_me=`$as_basename -- "$0" ||
21474 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21475          X"$0" : 'X\(//\)$' \| \
21476          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21477 echo X/"$0" |
21478     sed '/^.*\/\([^/][^/]*\)\/*$/{
21479             s//\1/
21480             q
21481           }
21482           /^X\/\(\/\/\)$/{
21483             s//\1/
21484             q
21485           }
21486           /^X\/\(\/\).*/{
21487             s//\1/
21488             q
21489           }
21490           s/.*/./; q'`
21491
21492 # CDPATH.
21493 $as_unset CDPATH
21494
21495
21496
21497   as_lineno_1=$LINENO
21498   as_lineno_2=$LINENO
21499   test "x$as_lineno_1" != "x$as_lineno_2" &&
21500   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21501
21502   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21503   # uniformly replaced by the line number.  The first 'sed' inserts a
21504   # line-number line after each line using $LINENO; the second 'sed'
21505   # does the real work.  The second script uses 'N' to pair each
21506   # line-number line with the line containing $LINENO, and appends
21507   # trailing '-' during substitution so that $LINENO is not a special
21508   # case at line end.
21509   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21510   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21511   # E. McMahon (1931-1989) for sed's syntax.  :-)
21512   sed -n '
21513     p
21514     /[$]LINENO/=
21515   ' <$as_myself |
21516     sed '
21517       s/[$]LINENO.*/&-/
21518       t lineno
21519       b
21520       :lineno
21521       N
21522       :loop
21523       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21524       t loop
21525       s/-\n.*//
21526     ' >$as_me.lineno &&
21527   chmod +x "$as_me.lineno" ||
21528     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21529    { (exit 1); exit 1; }; }
21530
21531   # Don't try to exec as it changes $[0], causing all sort of problems
21532   # (the dirname of $[0] is not the place where we might find the
21533   # original and so on.  Autoconf is especially sensitive to this).
21534   . "./$as_me.lineno"
21535   # Exit status is that of the last command.
21536   exit
21537 }
21538
21539
21540 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21541   as_dirname=dirname
21542 else
21543   as_dirname=false
21544 fi
21545
21546 ECHO_C= ECHO_N= ECHO_T=
21547 case `echo -n x` in
21548 -n*)
21549   case `echo 'x\c'` in
21550   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21551   *)   ECHO_C='\c';;
21552   esac;;
21553 *)
21554   ECHO_N='-n';;
21555 esac
21556
21557 if expr a : '\(a\)' >/dev/null 2>&1 &&
21558    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21559   as_expr=expr
21560 else
21561   as_expr=false
21562 fi
21563
21564 rm -f conf$$ conf$$.exe conf$$.file
21565 if test -d conf$$.dir; then
21566   rm -f conf$$.dir/conf$$.file
21567 else
21568   rm -f conf$$.dir
21569   mkdir conf$$.dir
21570 fi
21571 echo >conf$$.file
21572 if ln -s conf$$.file conf$$ 2>/dev/null; then
21573   as_ln_s='ln -s'
21574   # ... but there are two gotchas:
21575   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21576   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21577   # In both cases, we have to default to `cp -p'.
21578   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21579     as_ln_s='cp -p'
21580 elif ln conf$$.file conf$$ 2>/dev/null; then
21581   as_ln_s=ln
21582 else
21583   as_ln_s='cp -p'
21584 fi
21585 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21586 rmdir conf$$.dir 2>/dev/null
21587
21588 if mkdir -p . 2>/dev/null; then
21589   as_mkdir_p=:
21590 else
21591   test -d ./-p && rmdir ./-p
21592   as_mkdir_p=false
21593 fi
21594
21595 if test -x / >/dev/null 2>&1; then
21596   as_test_x='test -x'
21597 else
21598   if ls -dL / >/dev/null 2>&1; then
21599     as_ls_L_option=L
21600   else
21601     as_ls_L_option=
21602   fi
21603   as_test_x='
21604     eval sh -c '\''
21605       if test -d "$1"; then
21606         test -d "$1/.";
21607       else
21608         case $1 in
21609         -*)set "./$1";;
21610         esac;
21611         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21612         ???[sx]*):;;*)false;;esac;fi
21613     '\'' sh
21614   '
21615 fi
21616 as_executable_p=$as_test_x
21617
21618 # Sed expression to map a string onto a valid CPP name.
21619 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21620
21621 # Sed expression to map a string onto a valid variable name.
21622 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21623
21624
21625 exec 6>&1
21626
21627 # Save the log message, to keep $[0] and so on meaningful, and to
21628 # report actual input values of CONFIG_FILES etc. instead of their
21629 # values after options handling.
21630 ac_log="
21631 This file was extended by $as_me, which was
21632 generated by GNU Autoconf 2.61.  Invocation command line was
21633
21634   CONFIG_FILES    = $CONFIG_FILES
21635   CONFIG_HEADERS  = $CONFIG_HEADERS
21636   CONFIG_LINKS    = $CONFIG_LINKS
21637   CONFIG_COMMANDS = $CONFIG_COMMANDS
21638   $ $0 $@
21639
21640 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21641 "
21642
21643 _ACEOF
21644
21645 cat >>$CONFIG_STATUS <<_ACEOF
21646 # Files that config.status was made for.
21647 config_files="$ac_config_files"
21648 config_headers="$ac_config_headers"
21649 config_commands="$ac_config_commands"
21650
21651 _ACEOF
21652
21653 cat >>$CONFIG_STATUS <<\_ACEOF
21654 ac_cs_usage="\
21655 \`$as_me' instantiates files from templates according to the
21656 current configuration.
21657
21658 Usage: $0 [OPTIONS] [FILE]...
21659
21660   -h, --help       print this help, then exit
21661   -V, --version    print version number and configuration settings, then exit
21662   -q, --quiet      do not print progress messages
21663   -d, --debug      don't remove temporary files
21664       --recheck    update $as_me by reconfiguring in the same conditions
21665   --file=FILE[:TEMPLATE]
21666                    instantiate the configuration file FILE
21667   --header=FILE[:TEMPLATE]
21668                    instantiate the configuration header FILE
21669
21670 Configuration files:
21671 $config_files
21672
21673 Configuration headers:
21674 $config_headers
21675
21676 Configuration commands:
21677 $config_commands
21678
21679 Report bugs to <bug-autoconf@gnu.org>."
21680
21681 _ACEOF
21682 cat >>$CONFIG_STATUS <<_ACEOF
21683 ac_cs_version="\\
21684 config.status
21685 configured by $0, generated by GNU Autoconf 2.61,
21686   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21687
21688 Copyright (C) 2006 Free Software Foundation, Inc.
21689 This config.status script is free software; the Free Software Foundation
21690 gives unlimited permission to copy, distribute and modify it."
21691
21692 ac_pwd='$ac_pwd'
21693 srcdir='$srcdir'
21694 INSTALL='$INSTALL'
21695 MKDIR_P='$MKDIR_P'
21696 _ACEOF
21697
21698 cat >>$CONFIG_STATUS <<\_ACEOF
21699 # If no file are specified by the user, then we need to provide default
21700 # value.  By we need to know if files were specified by the user.
21701 ac_need_defaults=:
21702 while test $# != 0
21703 do
21704   case $1 in
21705   --*=*)
21706     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21707     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21708     ac_shift=:
21709     ;;
21710   *)
21711     ac_option=$1
21712     ac_optarg=$2
21713     ac_shift=shift
21714     ;;
21715   esac
21716
21717   case $ac_option in
21718   # Handling of the options.
21719   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21720     ac_cs_recheck=: ;;
21721   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21722     echo "$ac_cs_version"; exit ;;
21723   --debug | --debu | --deb | --de | --d | -d )
21724     debug=: ;;
21725   --file | --fil | --fi | --f )
21726     $ac_shift
21727     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21728     ac_need_defaults=false;;
21729   --header | --heade | --head | --hea )
21730     $ac_shift
21731     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21732     ac_need_defaults=false;;
21733   --he | --h)
21734     # Conflict between --help and --header
21735     { echo "$as_me: error: ambiguous option: $1
21736 Try \`$0 --help' for more information." >&2
21737    { (exit 1); exit 1; }; };;
21738   --help | --hel | -h )
21739     echo "$ac_cs_usage"; exit ;;
21740   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21741   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21742     ac_cs_silent=: ;;
21743
21744   # This is an error.
21745   -*) { echo "$as_me: error: unrecognized option: $1
21746 Try \`$0 --help' for more information." >&2
21747    { (exit 1); exit 1; }; } ;;
21748
21749   *) ac_config_targets="$ac_config_targets $1"
21750      ac_need_defaults=false ;;
21751
21752   esac
21753   shift
21754 done
21755
21756 ac_configure_extra_args=
21757
21758 if $ac_cs_silent; then
21759   exec 6>/dev/null
21760   ac_configure_extra_args="$ac_configure_extra_args --silent"
21761 fi
21762
21763 _ACEOF
21764 cat >>$CONFIG_STATUS <<_ACEOF
21765 if \$ac_cs_recheck; then
21766   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21767   CONFIG_SHELL=$SHELL
21768   export CONFIG_SHELL
21769   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21770 fi
21771
21772 _ACEOF
21773 cat >>$CONFIG_STATUS <<\_ACEOF
21774 exec 5>>config.log
21775 {
21776   echo
21777   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21778 ## Running $as_me. ##
21779 _ASBOX
21780   echo "$ac_log"
21781 } >&5
21782
21783 _ACEOF
21784 cat >>$CONFIG_STATUS <<_ACEOF
21785 #
21786 # INIT-COMMANDS
21787 #
21788 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21789
21790 _ACEOF
21791
21792 cat >>$CONFIG_STATUS <<\_ACEOF
21793
21794 # Handling of arguments.
21795 for ac_config_target in $ac_config_targets
21796 do
21797   case $ac_config_target in
21798     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21799     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21800     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21801     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21802     "synthesis.pc") CONFIG_FILES="$CONFIG_FILES synthesis.pc" ;;
21803     "synthesis-sdk.pc") CONFIG_FILES="$CONFIG_FILES synthesis-sdk.pc" ;;
21804
21805   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21806 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21807    { (exit 1); exit 1; }; };;
21808   esac
21809 done
21810
21811
21812 # If the user did not use the arguments to specify the items to instantiate,
21813 # then the envvar interface is used.  Set only those that are not.
21814 # We use the long form for the default assignment because of an extremely
21815 # bizarre bug on SunOS 4.1.3.
21816 if $ac_need_defaults; then
21817   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21818   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21819   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21820 fi
21821
21822 # Have a temporary directory for convenience.  Make it in the build tree
21823 # simply because there is no reason against having it here, and in addition,
21824 # creating and moving files from /tmp can sometimes cause problems.
21825 # Hook for its removal unless debugging.
21826 # Note that there is a small window in which the directory will not be cleaned:
21827 # after its creation but before its name has been assigned to `$tmp'.
21828 $debug ||
21829 {
21830   tmp=
21831   trap 'exit_status=$?
21832   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21833 ' 0
21834   trap '{ (exit 1); exit 1; }' 1 2 13 15
21835 }
21836 # Create a (secure) tmp directory for tmp files.
21837
21838 {
21839   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21840   test -n "$tmp" && test -d "$tmp"
21841 }  ||
21842 {
21843   tmp=./conf$$-$RANDOM
21844   (umask 077 && mkdir "$tmp")
21845 } ||
21846 {
21847    echo "$me: cannot create a temporary directory in ." >&2
21848    { (exit 1); exit 1; }
21849 }
21850
21851 #
21852 # Set up the sed scripts for CONFIG_FILES section.
21853 #
21854
21855 # No need to generate the scripts if there are no CONFIG_FILES.
21856 # This happens for instance when ./config.status config.h
21857 if test -n "$CONFIG_FILES"; then
21858
21859 _ACEOF
21860
21861
21862
21863 ac_delim='%!_!# '
21864 for ac_last_try in false false false false false :; do
21865   cat >conf$$subs.sed <<_ACEOF
21866 SHELL!$SHELL$ac_delim
21867 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21868 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21869 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21870 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21871 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21872 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21873 exec_prefix!$exec_prefix$ac_delim
21874 prefix!$prefix$ac_delim
21875 program_transform_name!$program_transform_name$ac_delim
21876 bindir!$bindir$ac_delim
21877 sbindir!$sbindir$ac_delim
21878 libexecdir!$libexecdir$ac_delim
21879 datarootdir!$datarootdir$ac_delim
21880 datadir!$datadir$ac_delim
21881 sysconfdir!$sysconfdir$ac_delim
21882 sharedstatedir!$sharedstatedir$ac_delim
21883 localstatedir!$localstatedir$ac_delim
21884 includedir!$includedir$ac_delim
21885 oldincludedir!$oldincludedir$ac_delim
21886 docdir!$docdir$ac_delim
21887 infodir!$infodir$ac_delim
21888 htmldir!$htmldir$ac_delim
21889 dvidir!$dvidir$ac_delim
21890 pdfdir!$pdfdir$ac_delim
21891 psdir!$psdir$ac_delim
21892 libdir!$libdir$ac_delim
21893 localedir!$localedir$ac_delim
21894 mandir!$mandir$ac_delim
21895 DEFS!$DEFS$ac_delim
21896 ECHO_C!$ECHO_C$ac_delim
21897 ECHO_N!$ECHO_N$ac_delim
21898 ECHO_T!$ECHO_T$ac_delim
21899 LIBS!$LIBS$ac_delim
21900 build_alias!$build_alias$ac_delim
21901 host_alias!$host_alias$ac_delim
21902 target_alias!$target_alias$ac_delim
21903 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21904 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21905 INSTALL_DATA!$INSTALL_DATA$ac_delim
21906 am__isrc!$am__isrc$ac_delim
21907 CYGPATH_W!$CYGPATH_W$ac_delim
21908 PACKAGE!$PACKAGE$ac_delim
21909 VERSION!$VERSION$ac_delim
21910 ACLOCAL!$ACLOCAL$ac_delim
21911 AUTOCONF!$AUTOCONF$ac_delim
21912 AUTOMAKE!$AUTOMAKE$ac_delim
21913 AUTOHEADER!$AUTOHEADER$ac_delim
21914 MAKEINFO!$MAKEINFO$ac_delim
21915 install_sh!$install_sh$ac_delim
21916 STRIP!$STRIP$ac_delim
21917 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21918 mkdir_p!$mkdir_p$ac_delim
21919 AWK!$AWK$ac_delim
21920 SET_MAKE!$SET_MAKE$ac_delim
21921 am__leading_dot!$am__leading_dot$ac_delim
21922 AMTAR!$AMTAR$ac_delim
21923 am__tar!$am__tar$ac_delim
21924 am__untar!$am__untar$ac_delim
21925 CXX!$CXX$ac_delim
21926 CXXFLAGS!$CXXFLAGS$ac_delim
21927 LDFLAGS!$LDFLAGS$ac_delim
21928 CPPFLAGS!$CPPFLAGS$ac_delim
21929 ac_ct_CXX!$ac_ct_CXX$ac_delim
21930 EXEEXT!$EXEEXT$ac_delim
21931 OBJEXT!$OBJEXT$ac_delim
21932 DEPDIR!$DEPDIR$ac_delim
21933 am__include!$am__include$ac_delim
21934 am__quote!$am__quote$ac_delim
21935 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21936 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21937 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21938 CXXDEPMODE!$CXXDEPMODE$ac_delim
21939 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21940 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21941 build!$build$ac_delim
21942 build_cpu!$build_cpu$ac_delim
21943 build_vendor!$build_vendor$ac_delim
21944 build_os!$build_os$ac_delim
21945 host!$host$ac_delim
21946 host_cpu!$host_cpu$ac_delim
21947 host_vendor!$host_vendor$ac_delim
21948 host_os!$host_os$ac_delim
21949 CC!$CC$ac_delim
21950 CFLAGS!$CFLAGS$ac_delim
21951 ac_ct_CC!$ac_ct_CC$ac_delim
21952 CCDEPMODE!$CCDEPMODE$ac_delim
21953 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21954 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21955 SED!$SED$ac_delim
21956 GREP!$GREP$ac_delim
21957 EGREP!$EGREP$ac_delim
21958 LN_S!$LN_S$ac_delim
21959 ECHO!$ECHO$ac_delim
21960 AR!$AR$ac_delim
21961 RANLIB!$RANLIB$ac_delim
21962 DSYMUTIL!$DSYMUTIL$ac_delim
21963 _ACEOF
21964
21965   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21966     break
21967   elif $ac_last_try; then
21968     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21969 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21970    { (exit 1); exit 1; }; }
21971   else
21972     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21973   fi
21974 done
21975
21976 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21977 if test -n "$ac_eof"; then
21978   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21979   ac_eof=`expr $ac_eof + 1`
21980 fi
21981
21982 cat >>$CONFIG_STATUS <<_ACEOF
21983 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21984 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21985 _ACEOF
21986 sed '
21987 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21988 s/^/s,@/; s/!/@,|#_!!_#|/
21989 :n
21990 t n
21991 s/'"$ac_delim"'$/,g/; t
21992 s/$/\\/; p
21993 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21994 ' >>$CONFIG_STATUS <conf$$subs.sed
21995 rm -f conf$$subs.sed
21996 cat >>$CONFIG_STATUS <<_ACEOF
21997 CEOF$ac_eof
21998 _ACEOF
21999
22000
22001 ac_delim='%!_!# '
22002 for ac_last_try in false false false false false :; do
22003   cat >conf$$subs.sed <<_ACEOF
22004 NMEDIT!$NMEDIT$ac_delim
22005 CPP!$CPP$ac_delim
22006 CXXCPP!$CXXCPP$ac_delim
22007 F77!$F77$ac_delim
22008 FFLAGS!$FFLAGS$ac_delim
22009 ac_ct_F77!$ac_ct_F77$ac_delim
22010 LIBTOOL!$LIBTOOL$ac_delim
22011 PKG_CONFIG!$PKG_CONFIG$ac_delim
22012 PCRE_CFLAGS!$PCRE_CFLAGS$ac_delim
22013 PCRE_LIBS!$PCRE_LIBS$ac_delim
22014 SQLITE3_CFLAGS!$SQLITE3_CFLAGS$ac_delim
22015 SQLITE3_LIBS!$SQLITE3_LIBS$ac_delim
22016 LIBICAL_CFLAGS!$LIBICAL_CFLAGS$ac_delim
22017 LIBICAL_LIBS!$LIBICAL_LIBS$ac_delim
22018 LIBECAL_CFLAGS!$LIBECAL_CFLAGS$ac_delim
22019 LIBECAL_LIBS!$LIBECAL_LIBS$ac_delim
22020 XMLPARSE_LIBS!$XMLPARSE_LIBS$ac_delim
22021 XMLPARSE_CFLAGS!$XMLPARSE_CFLAGS$ac_delim
22022 COND_XMLPARSE_TRUE!$COND_XMLPARSE_TRUE$ac_delim
22023 COND_XMLPARSE_FALSE!$COND_XMLPARSE_FALSE$ac_delim
22024 COND_STATIC_TRUE!$COND_STATIC_TRUE$ac_delim
22025 COND_STATIC_FALSE!$COND_STATIC_FALSE$ac_delim
22026 LIBOBJS!$LIBOBJS$ac_delim
22027 LTLIBOBJS!$LTLIBOBJS$ac_delim
22028 _ACEOF
22029
22030   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
22031     break
22032   elif $ac_last_try; then
22033     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22034 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22035    { (exit 1); exit 1; }; }
22036   else
22037     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22038   fi
22039 done
22040
22041 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22042 if test -n "$ac_eof"; then
22043   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22044   ac_eof=`expr $ac_eof + 1`
22045 fi
22046
22047 cat >>$CONFIG_STATUS <<_ACEOF
22048 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22049 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22050 _ACEOF
22051 sed '
22052 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22053 s/^/s,@/; s/!/@,|#_!!_#|/
22054 :n
22055 t n
22056 s/'"$ac_delim"'$/,g/; t
22057 s/$/\\/; p
22058 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22059 ' >>$CONFIG_STATUS <conf$$subs.sed
22060 rm -f conf$$subs.sed
22061 cat >>$CONFIG_STATUS <<_ACEOF
22062 :end
22063 s/|#_!!_#|//g
22064 CEOF$ac_eof
22065 _ACEOF
22066
22067
22068 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22069 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22070 # trailing colons and then remove the whole line if VPATH becomes empty
22071 # (actually we leave an empty line to preserve line numbers).
22072 if test "x$srcdir" = x.; then
22073   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22074 s/:*\$(srcdir):*/:/
22075 s/:*\${srcdir}:*/:/
22076 s/:*@srcdir@:*/:/
22077 s/^\([^=]*=[     ]*\):*/\1/
22078 s/:*$//
22079 s/^[^=]*=[       ]*$//
22080 }'
22081 fi
22082
22083 cat >>$CONFIG_STATUS <<\_ACEOF
22084 fi # test -n "$CONFIG_FILES"
22085
22086
22087 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22088 do
22089   case $ac_tag in
22090   :[FHLC]) ac_mode=$ac_tag; continue;;
22091   esac
22092   case $ac_mode$ac_tag in
22093   :[FHL]*:*);;
22094   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22095 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22096    { (exit 1); exit 1; }; };;
22097   :[FH]-) ac_tag=-:-;;
22098   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22099   esac
22100   ac_save_IFS=$IFS
22101   IFS=:
22102   set x $ac_tag
22103   IFS=$ac_save_IFS
22104   shift
22105   ac_file=$1
22106   shift
22107
22108   case $ac_mode in
22109   :L) ac_source=$1;;
22110   :[FH])
22111     ac_file_inputs=
22112     for ac_f
22113     do
22114       case $ac_f in
22115       -) ac_f="$tmp/stdin";;
22116       *) # Look for the file first in the build tree, then in the source tree
22117          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22118          # because $ac_f cannot contain `:'.
22119          test -f "$ac_f" ||
22120            case $ac_f in
22121            [\\/$]*) false;;
22122            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22123            esac ||
22124            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22125 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22126    { (exit 1); exit 1; }; };;
22127       esac
22128       ac_file_inputs="$ac_file_inputs $ac_f"
22129     done
22130
22131     # Let's still pretend it is `configure' which instantiates (i.e., don't
22132     # use $as_me), people would be surprised to read:
22133     #    /* config.h.  Generated by config.status.  */
22134     configure_input="Generated from "`IFS=:
22135           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22136     if test x"$ac_file" != x-; then
22137       configure_input="$ac_file.  $configure_input"
22138       { echo "$as_me:$LINENO: creating $ac_file" >&5
22139 echo "$as_me: creating $ac_file" >&6;}
22140     fi
22141
22142     case $ac_tag in
22143     *:-:* | *:-) cat >"$tmp/stdin";;
22144     esac
22145     ;;
22146   esac
22147
22148   ac_dir=`$as_dirname -- "$ac_file" ||
22149 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22150          X"$ac_file" : 'X\(//\)[^/]' \| \
22151          X"$ac_file" : 'X\(//\)$' \| \
22152          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22153 echo X"$ac_file" |
22154     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22155             s//\1/
22156             q
22157           }
22158           /^X\(\/\/\)[^/].*/{
22159             s//\1/
22160             q
22161           }
22162           /^X\(\/\/\)$/{
22163             s//\1/
22164             q
22165           }
22166           /^X\(\/\).*/{
22167             s//\1/
22168             q
22169           }
22170           s/.*/./; q'`
22171   { as_dir="$ac_dir"
22172   case $as_dir in #(
22173   -*) as_dir=./$as_dir;;
22174   esac
22175   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22176     as_dirs=
22177     while :; do
22178       case $as_dir in #(
22179       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22180       *) as_qdir=$as_dir;;
22181       esac
22182       as_dirs="'$as_qdir' $as_dirs"
22183       as_dir=`$as_dirname -- "$as_dir" ||
22184 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22185          X"$as_dir" : 'X\(//\)[^/]' \| \
22186          X"$as_dir" : 'X\(//\)$' \| \
22187          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22188 echo X"$as_dir" |
22189     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22190             s//\1/
22191             q
22192           }
22193           /^X\(\/\/\)[^/].*/{
22194             s//\1/
22195             q
22196           }
22197           /^X\(\/\/\)$/{
22198             s//\1/
22199             q
22200           }
22201           /^X\(\/\).*/{
22202             s//\1/
22203             q
22204           }
22205           s/.*/./; q'`
22206       test -d "$as_dir" && break
22207     done
22208     test -z "$as_dirs" || eval "mkdir $as_dirs"
22209   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22210 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22211    { (exit 1); exit 1; }; }; }
22212   ac_builddir=.
22213
22214 case "$ac_dir" in
22215 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22216 *)
22217   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22218   # A ".." for each directory in $ac_dir_suffix.
22219   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22220   case $ac_top_builddir_sub in
22221   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22222   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22223   esac ;;
22224 esac
22225 ac_abs_top_builddir=$ac_pwd
22226 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22227 # for backward compatibility:
22228 ac_top_builddir=$ac_top_build_prefix
22229
22230 case $srcdir in
22231   .)  # We are building in place.
22232     ac_srcdir=.
22233     ac_top_srcdir=$ac_top_builddir_sub
22234     ac_abs_top_srcdir=$ac_pwd ;;
22235   [\\/]* | ?:[\\/]* )  # Absolute name.
22236     ac_srcdir=$srcdir$ac_dir_suffix;
22237     ac_top_srcdir=$srcdir
22238     ac_abs_top_srcdir=$srcdir ;;
22239   *) # Relative name.
22240     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22241     ac_top_srcdir=$ac_top_build_prefix$srcdir
22242     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22243 esac
22244 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22245
22246
22247   case $ac_mode in
22248   :F)
22249   #
22250   # CONFIG_FILE
22251   #
22252
22253   case $INSTALL in
22254   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22255   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22256   esac
22257   ac_MKDIR_P=$MKDIR_P
22258   case $MKDIR_P in
22259   [\\/$]* | ?:[\\/]* ) ;;
22260   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22261   esac
22262 _ACEOF
22263
22264 cat >>$CONFIG_STATUS <<\_ACEOF
22265 # If the template does not know about datarootdir, expand it.
22266 # FIXME: This hack should be removed a few years after 2.60.
22267 ac_datarootdir_hack=; ac_datarootdir_seen=
22268
22269 case `sed -n '/datarootdir/ {
22270   p
22271   q
22272 }
22273 /@datadir@/p
22274 /@docdir@/p
22275 /@infodir@/p
22276 /@localedir@/p
22277 /@mandir@/p
22278 ' $ac_file_inputs` in
22279 *datarootdir*) ac_datarootdir_seen=yes;;
22280 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22281   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22282 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22283 _ACEOF
22284 cat >>$CONFIG_STATUS <<_ACEOF
22285   ac_datarootdir_hack='
22286   s&@datadir@&$datadir&g
22287   s&@docdir@&$docdir&g
22288   s&@infodir@&$infodir&g
22289   s&@localedir@&$localedir&g
22290   s&@mandir@&$mandir&g
22291     s&\\\${datarootdir}&$datarootdir&g' ;;
22292 esac
22293 _ACEOF
22294
22295 # Neutralize VPATH when `$srcdir' = `.'.
22296 # Shell code in configure.ac might set extrasub.
22297 # FIXME: do we really want to maintain this feature?
22298 cat >>$CONFIG_STATUS <<_ACEOF
22299   sed "$ac_vpsub
22300 $extrasub
22301 _ACEOF
22302 cat >>$CONFIG_STATUS <<\_ACEOF
22303 :t
22304 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22305 s&@configure_input@&$configure_input&;t t
22306 s&@top_builddir@&$ac_top_builddir_sub&;t t
22307 s&@srcdir@&$ac_srcdir&;t t
22308 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22309 s&@top_srcdir@&$ac_top_srcdir&;t t
22310 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22311 s&@builddir@&$ac_builddir&;t t
22312 s&@abs_builddir@&$ac_abs_builddir&;t t
22313 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22314 s&@INSTALL@&$ac_INSTALL&;t t
22315 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22316 $ac_datarootdir_hack
22317 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22318
22319 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22320   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22321   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22322   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22323 which seems to be undefined.  Please make sure it is defined." >&5
22324 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22325 which seems to be undefined.  Please make sure it is defined." >&2;}
22326
22327   rm -f "$tmp/stdin"
22328   case $ac_file in
22329   -) cat "$tmp/out"; rm -f "$tmp/out";;
22330   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22331   esac
22332  ;;
22333   :H)
22334   #
22335   # CONFIG_HEADER
22336   #
22337 _ACEOF
22338
22339 # Transform confdefs.h into a sed script `conftest.defines', that
22340 # substitutes the proper values into config.h.in to produce config.h.
22341 rm -f conftest.defines conftest.tail
22342 # First, append a space to every undef/define line, to ease matching.
22343 echo 's/$/ /' >conftest.defines
22344 # Then, protect against being on the right side of a sed subst, or in
22345 # an unquoted here document, in config.status.  If some macros were
22346 # called several times there might be several #defines for the same
22347 # symbol, which is useless.  But do not sort them, since the last
22348 # AC_DEFINE must be honored.
22349 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22350 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22351 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22352 # PARAMS is the parameter list in the macro definition--in most cases, it's
22353 # just an empty string.
22354 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22355 ac_dB='\\)[      (].*,\\1define\\2'
22356 ac_dC=' '
22357 ac_dD=' ,'
22358
22359 uniq confdefs.h |
22360   sed -n '
22361         t rset
22362         :rset
22363         s/^[     ]*#[    ]*define[       ][      ]*//
22364         t ok
22365         d
22366         :ok
22367         s/[\\&,]/\\&/g
22368         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22369         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22370   ' >>conftest.defines
22371
22372 # Remove the space that was appended to ease matching.
22373 # Then replace #undef with comments.  This is necessary, for
22374 # example, in the case of _POSIX_SOURCE, which is predefined and required
22375 # on some systems where configure will not decide to define it.
22376 # (The regexp can be short, since the line contains either #define or #undef.)
22377 echo 's/ $//
22378 s,^[     #]*u.*,/* & */,' >>conftest.defines
22379
22380 # Break up conftest.defines:
22381 ac_max_sed_lines=50
22382
22383 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22384 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22385 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22386 # et cetera.
22387 ac_in='$ac_file_inputs'
22388 ac_out='"$tmp/out1"'
22389 ac_nxt='"$tmp/out2"'
22390
22391 while :
22392 do
22393   # Write a here document:
22394     cat >>$CONFIG_STATUS <<_ACEOF
22395     # First, check the format of the line:
22396     cat >"\$tmp/defines.sed" <<\\CEOF
22397 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22398 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22399 b
22400 :def
22401 _ACEOF
22402   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22403   echo 'CEOF
22404     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22405   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22406   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22407   grep . conftest.tail >/dev/null || break
22408   rm -f conftest.defines
22409   mv conftest.tail conftest.defines
22410 done
22411 rm -f conftest.defines conftest.tail
22412
22413 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22414 cat >>$CONFIG_STATUS <<\_ACEOF
22415   if test x"$ac_file" != x-; then
22416     echo "/* $configure_input  */" >"$tmp/config.h"
22417     cat "$ac_result" >>"$tmp/config.h"
22418     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22419       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22420 echo "$as_me: $ac_file is unchanged" >&6;}
22421     else
22422       rm -f $ac_file
22423       mv "$tmp/config.h" $ac_file
22424     fi
22425   else
22426     echo "/* $configure_input  */"
22427     cat "$ac_result"
22428   fi
22429   rm -f "$tmp/out12"
22430 # Compute $ac_file's index in $config_headers.
22431 _am_arg=$ac_file
22432 _am_stamp_count=1
22433 for _am_header in $config_headers :; do
22434   case $_am_header in
22435     $_am_arg | $_am_arg:* )
22436       break ;;
22437     * )
22438       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22439   esac
22440 done
22441 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22442 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22443          X"$_am_arg" : 'X\(//\)[^/]' \| \
22444          X"$_am_arg" : 'X\(//\)$' \| \
22445          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22446 echo X"$_am_arg" |
22447     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22448             s//\1/
22449             q
22450           }
22451           /^X\(\/\/\)[^/].*/{
22452             s//\1/
22453             q
22454           }
22455           /^X\(\/\/\)$/{
22456             s//\1/
22457             q
22458           }
22459           /^X\(\/\).*/{
22460             s//\1/
22461             q
22462           }
22463           s/.*/./; q'`/stamp-h$_am_stamp_count
22464  ;;
22465
22466   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22467 echo "$as_me: executing $ac_file commands" >&6;}
22468  ;;
22469   esac
22470
22471
22472   case $ac_file$ac_mode in
22473     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22474   # Strip MF so we end up with the name of the file.
22475   mf=`echo "$mf" | sed -e 's/:.*$//'`
22476   # Check whether this is an Automake generated Makefile or not.
22477   # We used to match only the files named `Makefile.in', but
22478   # some people rename them; so instead we look at the file content.
22479   # Grep'ing the first line is not enough: some people post-process
22480   # each Makefile.in and add a new line on top of each file to say so.
22481   # Grep'ing the whole file is not good either: AIX grep has a line
22482   # limit of 2048, but all sed's we know have understand at least 4000.
22483   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22484     dirpart=`$as_dirname -- "$mf" ||
22485 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22486          X"$mf" : 'X\(//\)[^/]' \| \
22487          X"$mf" : 'X\(//\)$' \| \
22488          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22489 echo X"$mf" |
22490     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22491             s//\1/
22492             q
22493           }
22494           /^X\(\/\/\)[^/].*/{
22495             s//\1/
22496             q
22497           }
22498           /^X\(\/\/\)$/{
22499             s//\1/
22500             q
22501           }
22502           /^X\(\/\).*/{
22503             s//\1/
22504             q
22505           }
22506           s/.*/./; q'`
22507   else
22508     continue
22509   fi
22510   # Extract the definition of DEPDIR, am__include, and am__quote
22511   # from the Makefile without running `make'.
22512   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22513   test -z "$DEPDIR" && continue
22514   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22515   test -z "am__include" && continue
22516   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22517   # When using ansi2knr, U may be empty or an underscore; expand it
22518   U=`sed -n 's/^U = //p' < "$mf"`
22519   # Find all dependency output files, they are included files with
22520   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22521   # simplest approach to changing $(DEPDIR) to its actual value in the
22522   # expansion.
22523   for file in `sed -n "
22524     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22525        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22526     # Make sure the directory exists.
22527     test -f "$dirpart/$file" && continue
22528     fdir=`$as_dirname -- "$file" ||
22529 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22530          X"$file" : 'X\(//\)[^/]' \| \
22531          X"$file" : 'X\(//\)$' \| \
22532          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22533 echo X"$file" |
22534     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22535             s//\1/
22536             q
22537           }
22538           /^X\(\/\/\)[^/].*/{
22539             s//\1/
22540             q
22541           }
22542           /^X\(\/\/\)$/{
22543             s//\1/
22544             q
22545           }
22546           /^X\(\/\).*/{
22547             s//\1/
22548             q
22549           }
22550           s/.*/./; q'`
22551     { as_dir=$dirpart/$fdir
22552   case $as_dir in #(
22553   -*) as_dir=./$as_dir;;
22554   esac
22555   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22556     as_dirs=
22557     while :; do
22558       case $as_dir in #(
22559       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22560       *) as_qdir=$as_dir;;
22561       esac
22562       as_dirs="'$as_qdir' $as_dirs"
22563       as_dir=`$as_dirname -- "$as_dir" ||
22564 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22565          X"$as_dir" : 'X\(//\)[^/]' \| \
22566          X"$as_dir" : 'X\(//\)$' \| \
22567          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22568 echo X"$as_dir" |
22569     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22570             s//\1/
22571             q
22572           }
22573           /^X\(\/\/\)[^/].*/{
22574             s//\1/
22575             q
22576           }
22577           /^X\(\/\/\)$/{
22578             s//\1/
22579             q
22580           }
22581           /^X\(\/\).*/{
22582             s//\1/
22583             q
22584           }
22585           s/.*/./; q'`
22586       test -d "$as_dir" && break
22587     done
22588     test -z "$as_dirs" || eval "mkdir $as_dirs"
22589   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22590 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22591    { (exit 1); exit 1; }; }; }
22592     # echo "creating $dirpart/$file"
22593     echo '# dummy' > "$dirpart/$file"
22594   done
22595 done
22596  ;;
22597
22598   esac
22599 done # for ac_tag
22600
22601
22602 { (exit 0); exit 0; }
22603 _ACEOF
22604 chmod +x $CONFIG_STATUS
22605 ac_clean_files=$ac_clean_files_save
22606
22607
22608 # configure is writing to config.log, and then calls config.status.
22609 # config.status does its own redirection, appending to config.log.
22610 # Unfortunately, on DOS this fails, as config.log is still kept open
22611 # by configure, so config.status won't be able to write to it; its
22612 # output is simply discarded.  So we exec the FD to /dev/null,
22613 # effectively closing config.log, so it can be properly (re)opened and
22614 # appended to by config.status.  When coming back to configure, we
22615 # need to make the FD available again.
22616 if test "$no_create" != yes; then
22617   ac_cs_success=:
22618   ac_config_status_args=
22619   test "$silent" = yes &&
22620     ac_config_status_args="$ac_config_status_args --quiet"
22621   exec 5>/dev/null
22622   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22623   exec 5>>config.log
22624   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22625   # would make configure fail if this is the last instruction.
22626   $ac_cs_success || { (exit 1); exit 1; }
22627 fi
22628