Imported Upstream version 0.8
[platform/upstream/syncevolution.git] / src / client-api / build / autotools / 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/c++/common/base/base64.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 build
808 build_cpu
809 build_vendor
810 build_os
811 host
812 host_cpu
813 host_vendor
814 host_os
815 target
816 target_cpu
817 target_vendor
818 target_os
819 INSTALL_PROGRAM
820 INSTALL_SCRIPT
821 INSTALL_DATA
822 CYGPATH_W
823 PACKAGE
824 VERSION
825 ACLOCAL
826 AUTOCONF
827 AUTOMAKE
828 AUTOHEADER
829 MAKEINFO
830 install_sh
831 STRIP
832 INSTALL_STRIP_PROGRAM
833 mkdir_p
834 AWK
835 SET_MAKE
836 am__leading_dot
837 AMTAR
838 am__tar
839 am__untar
840 CXX
841 CXXFLAGS
842 LDFLAGS
843 CPPFLAGS
844 ac_ct_CXX
845 EXEEXT
846 OBJEXT
847 DEPDIR
848 am__include
849 am__quote
850 AMDEP_TRUE
851 AMDEP_FALSE
852 AMDEPBACKSLASH
853 CXXDEPMODE
854 am__fastdepCXX_TRUE
855 am__fastdepCXX_FALSE
856 CC
857 CFLAGS
858 ac_ct_CC
859 CCDEPMODE
860 am__fastdepCC_TRUE
861 am__fastdepCC_FALSE
862 GREP
863 EGREP
864 LN_S
865 ECHO
866 AR
867 RANLIB
868 CPP
869 CXXCPP
870 F77
871 FFLAGS
872 ac_ct_F77
873 LIBTOOL
874 CURL_LDFLAGS
875 CURL_CFLAGS
876 CPPUNIT_CXXFLAGS
877 CPPUNIT_LDFLAGS
878 CPPUNIT_TESTS
879 LIBOBJS
880 LTLIBOBJS'
881 ac_subst_files=''
882       ac_precious_vars='build_alias
883 host_alias
884 target_alias
885 CXX
886 CXXFLAGS
887 LDFLAGS
888 LIBS
889 CPPFLAGS
890 CCC
891 CC
892 CFLAGS
893 CPP
894 CXXCPP
895 F77
896 FFLAGS'
897
898
899 # Initialize some variables set by options.
900 ac_init_help=
901 ac_init_version=false
902 # The variables have the same names as the options, with
903 # dashes changed to underlines.
904 cache_file=/dev/null
905 exec_prefix=NONE
906 no_create=
907 no_recursion=
908 prefix=NONE
909 program_prefix=NONE
910 program_suffix=NONE
911 program_transform_name=s,x,x,
912 silent=
913 site=
914 srcdir=
915 verbose=
916 x_includes=NONE
917 x_libraries=NONE
918
919 # Installation directory options.
920 # These are left unexpanded so users can "make install exec_prefix=/foo"
921 # and all the variables that are supposed to be based on exec_prefix
922 # by default will actually change.
923 # Use braces instead of parens because sh, perl, etc. also accept them.
924 # (The list follows the same order as the GNU Coding Standards.)
925 bindir='${exec_prefix}/bin'
926 sbindir='${exec_prefix}/sbin'
927 libexecdir='${exec_prefix}/libexec'
928 datarootdir='${prefix}/share'
929 datadir='${datarootdir}'
930 sysconfdir='${prefix}/etc'
931 sharedstatedir='${prefix}/com'
932 localstatedir='${prefix}/var'
933 includedir='${prefix}/include'
934 oldincludedir='/usr/include'
935 docdir='${datarootdir}/doc/${PACKAGE}'
936 infodir='${datarootdir}/info'
937 htmldir='${docdir}'
938 dvidir='${docdir}'
939 pdfdir='${docdir}'
940 psdir='${docdir}'
941 libdir='${exec_prefix}/lib'
942 localedir='${datarootdir}/locale'
943 mandir='${datarootdir}/man'
944
945 ac_prev=
946 ac_dashdash=
947 for ac_option
948 do
949   # If the previous option needs an argument, assign it.
950   if test -n "$ac_prev"; then
951     eval $ac_prev=\$ac_option
952     ac_prev=
953     continue
954   fi
955
956   case $ac_option in
957   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
958   *)    ac_optarg=yes ;;
959   esac
960
961   # Accept the important Cygnus configure options, so we can diagnose typos.
962
963   case $ac_dashdash$ac_option in
964   --)
965     ac_dashdash=yes ;;
966
967   -bindir | --bindir | --bindi | --bind | --bin | --bi)
968     ac_prev=bindir ;;
969   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970     bindir=$ac_optarg ;;
971
972   -build | --build | --buil | --bui | --bu)
973     ac_prev=build_alias ;;
974   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
975     build_alias=$ac_optarg ;;
976
977   -cache-file | --cache-file | --cache-fil | --cache-fi \
978   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979     ac_prev=cache_file ;;
980   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
982     cache_file=$ac_optarg ;;
983
984   --config-cache | -C)
985     cache_file=config.cache ;;
986
987   -datadir | --datadir | --datadi | --datad)
988     ac_prev=datadir ;;
989   -datadir=* | --datadir=* | --datadi=* | --datad=*)
990     datadir=$ac_optarg ;;
991
992   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
993   | --dataroo | --dataro | --datar)
994     ac_prev=datarootdir ;;
995   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
996   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
997     datarootdir=$ac_optarg ;;
998
999   -disable-* | --disable-*)
1000     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1001     # Reject names that are not valid shell variable names.
1002     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1003       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1004    { (exit 1); exit 1; }; }
1005     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1006     eval enable_$ac_feature=no ;;
1007
1008   -docdir | --docdir | --docdi | --doc | --do)
1009     ac_prev=docdir ;;
1010   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011     docdir=$ac_optarg ;;
1012
1013   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014     ac_prev=dvidir ;;
1015   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016     dvidir=$ac_optarg ;;
1017
1018   -enable-* | --enable-*)
1019     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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=\$ac_optarg ;;
1026
1027   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029   | --exec | --exe | --ex)
1030     ac_prev=exec_prefix ;;
1031   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033   | --exec=* | --exe=* | --ex=*)
1034     exec_prefix=$ac_optarg ;;
1035
1036   -gas | --gas | --ga | --g)
1037     # Obsolete; use --with-gas.
1038     with_gas=yes ;;
1039
1040   -help | --help | --hel | --he | -h)
1041     ac_init_help=long ;;
1042   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043     ac_init_help=recursive ;;
1044   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045     ac_init_help=short ;;
1046
1047   -host | --host | --hos | --ho)
1048     ac_prev=host_alias ;;
1049   -host=* | --host=* | --hos=* | --ho=*)
1050     host_alias=$ac_optarg ;;
1051
1052   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053     ac_prev=htmldir ;;
1054   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055   | --ht=*)
1056     htmldir=$ac_optarg ;;
1057
1058   -includedir | --includedir | --includedi | --included | --include \
1059   | --includ | --inclu | --incl | --inc)
1060     ac_prev=includedir ;;
1061   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062   | --includ=* | --inclu=* | --incl=* | --inc=*)
1063     includedir=$ac_optarg ;;
1064
1065   -infodir | --infodir | --infodi | --infod | --info | --inf)
1066     ac_prev=infodir ;;
1067   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068     infodir=$ac_optarg ;;
1069
1070   -libdir | --libdir | --libdi | --libd)
1071     ac_prev=libdir ;;
1072   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073     libdir=$ac_optarg ;;
1074
1075   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076   | --libexe | --libex | --libe)
1077     ac_prev=libexecdir ;;
1078   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079   | --libexe=* | --libex=* | --libe=*)
1080     libexecdir=$ac_optarg ;;
1081
1082   -localedir | --localedir | --localedi | --localed | --locale)
1083     ac_prev=localedir ;;
1084   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085     localedir=$ac_optarg ;;
1086
1087   -localstatedir | --localstatedir | --localstatedi | --localstated \
1088   | --localstate | --localstat | --localsta | --localst | --locals)
1089     ac_prev=localstatedir ;;
1090   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092     localstatedir=$ac_optarg ;;
1093
1094   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095     ac_prev=mandir ;;
1096   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097     mandir=$ac_optarg ;;
1098
1099   -nfp | --nfp | --nf)
1100     # Obsolete; use --without-fp.
1101     with_fp=no ;;
1102
1103   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104   | --no-cr | --no-c | -n)
1105     no_create=yes ;;
1106
1107   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109     no_recursion=yes ;;
1110
1111   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113   | --oldin | --oldi | --old | --ol | --o)
1114     ac_prev=oldincludedir ;;
1115   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118     oldincludedir=$ac_optarg ;;
1119
1120   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121     ac_prev=prefix ;;
1122   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123     prefix=$ac_optarg ;;
1124
1125   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126   | --program-pre | --program-pr | --program-p)
1127     ac_prev=program_prefix ;;
1128   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130     program_prefix=$ac_optarg ;;
1131
1132   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133   | --program-suf | --program-su | --program-s)
1134     ac_prev=program_suffix ;;
1135   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137     program_suffix=$ac_optarg ;;
1138
1139   -program-transform-name | --program-transform-name \
1140   | --program-transform-nam | --program-transform-na \
1141   | --program-transform-n | --program-transform- \
1142   | --program-transform | --program-transfor \
1143   | --program-transfo | --program-transf \
1144   | --program-trans | --program-tran \
1145   | --progr-tra | --program-tr | --program-t)
1146     ac_prev=program_transform_name ;;
1147   -program-transform-name=* | --program-transform-name=* \
1148   | --program-transform-nam=* | --program-transform-na=* \
1149   | --program-transform-n=* | --program-transform-=* \
1150   | --program-transform=* | --program-transfor=* \
1151   | --program-transfo=* | --program-transf=* \
1152   | --program-trans=* | --program-tran=* \
1153   | --progr-tra=* | --program-tr=* | --program-t=*)
1154     program_transform_name=$ac_optarg ;;
1155
1156   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157     ac_prev=pdfdir ;;
1158   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159     pdfdir=$ac_optarg ;;
1160
1161   -psdir | --psdir | --psdi | --psd | --ps)
1162     ac_prev=psdir ;;
1163   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164     psdir=$ac_optarg ;;
1165
1166   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167   | -silent | --silent | --silen | --sile | --sil)
1168     silent=yes ;;
1169
1170   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171     ac_prev=sbindir ;;
1172   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173   | --sbi=* | --sb=*)
1174     sbindir=$ac_optarg ;;
1175
1176   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178   | --sharedst | --shareds | --shared | --share | --shar \
1179   | --sha | --sh)
1180     ac_prev=sharedstatedir ;;
1181   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184   | --sha=* | --sh=*)
1185     sharedstatedir=$ac_optarg ;;
1186
1187   -site | --site | --sit)
1188     ac_prev=site ;;
1189   -site=* | --site=* | --sit=*)
1190     site=$ac_optarg ;;
1191
1192   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193     ac_prev=srcdir ;;
1194   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195     srcdir=$ac_optarg ;;
1196
1197   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198   | --syscon | --sysco | --sysc | --sys | --sy)
1199     ac_prev=sysconfdir ;;
1200   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202     sysconfdir=$ac_optarg ;;
1203
1204   -target | --target | --targe | --targ | --tar | --ta | --t)
1205     ac_prev=target_alias ;;
1206   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207     target_alias=$ac_optarg ;;
1208
1209   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210     verbose=yes ;;
1211
1212   -version | --version | --versio | --versi | --vers | -V)
1213     ac_init_version=: ;;
1214
1215   -with-* | --with-*)
1216     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217     # Reject names that are not valid shell variable names.
1218     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219       { echo "$as_me: error: invalid package name: $ac_package" >&2
1220    { (exit 1); exit 1; }; }
1221     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1222     eval with_$ac_package=\$ac_optarg ;;
1223
1224   -without-* | --without-*)
1225     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226     # Reject names that are not valid shell variable names.
1227     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228       { echo "$as_me: error: invalid package name: $ac_package" >&2
1229    { (exit 1); exit 1; }; }
1230     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1231     eval with_$ac_package=no ;;
1232
1233   --x)
1234     # Obsolete; use --with-x.
1235     with_x=yes ;;
1236
1237   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238   | --x-incl | --x-inc | --x-in | --x-i)
1239     ac_prev=x_includes ;;
1240   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242     x_includes=$ac_optarg ;;
1243
1244   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246     ac_prev=x_libraries ;;
1247   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249     x_libraries=$ac_optarg ;;
1250
1251   -*) { echo "$as_me: error: unrecognized option: $ac_option
1252 Try \`$0 --help' for more information." >&2
1253    { (exit 1); exit 1; }; }
1254     ;;
1255
1256   *=*)
1257     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258     # Reject names that are not valid shell variable names.
1259     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1260       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261    { (exit 1); exit 1; }; }
1262     eval $ac_envvar=\$ac_optarg
1263     export $ac_envvar ;;
1264
1265   *)
1266     # FIXME: should be removed in autoconf 3.0.
1267     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1271     ;;
1272
1273   esac
1274 done
1275
1276 if test -n "$ac_prev"; then
1277   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278   { echo "$as_me: error: missing argument to $ac_option" >&2
1279    { (exit 1); exit 1; }; }
1280 fi
1281
1282 # Be sure to have absolute directory names.
1283 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284                 datadir sysconfdir sharedstatedir localstatedir includedir \
1285                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286                 libdir localedir mandir
1287 do
1288   eval ac_val=\$$ac_var
1289   case $ac_val in
1290     [\\/$]* | ?:[\\/]* )  continue;;
1291     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292   esac
1293   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1294    { (exit 1); exit 1; }; }
1295 done
1296
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1300 build=$build_alias
1301 host=$host_alias
1302 target=$target_alias
1303
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306   if test "x$build_alias" = x; then
1307     cross_compiling=maybe
1308     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1309     If a cross compiler is detected then cross compile mode will be used." >&2
1310   elif test "x$build_alias" != "x$host_alias"; then
1311     cross_compiling=yes
1312   fi
1313 fi
1314
1315 ac_tool_prefix=
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317
1318 test "$silent" = yes && exec 6>/dev/null
1319
1320
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324   { echo "$as_me: error: Working directory cannot be determined" >&2
1325    { (exit 1); exit 1; }; }
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327   { echo "$as_me: error: pwd does not report name of working directory" >&2
1328    { (exit 1); exit 1; }; }
1329
1330
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333   ac_srcdir_defaulted=yes
1334   # Try the directory containing this script, then the parent directory.
1335   ac_confdir=`$as_dirname -- "$0" ||
1336 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337          X"$0" : 'X\(//\)[^/]' \| \
1338          X"$0" : 'X\(//\)$' \| \
1339          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1340 echo X"$0" |
1341     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342             s//\1/
1343             q
1344           }
1345           /^X\(\/\/\)[^/].*/{
1346             s//\1/
1347             q
1348           }
1349           /^X\(\/\/\)$/{
1350             s//\1/
1351             q
1352           }
1353           /^X\(\/\).*/{
1354             s//\1/
1355             q
1356           }
1357           s/.*/./; q'`
1358   srcdir=$ac_confdir
1359   if test ! -r "$srcdir/$ac_unique_file"; then
1360     srcdir=..
1361   fi
1362 else
1363   ac_srcdir_defaulted=no
1364 fi
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1368    { (exit 1); exit 1; }; }
1369 fi
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 ac_abs_confdir=`(
1372         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1373    { (exit 1); exit 1; }; }
1374         pwd)`
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377   srcdir=.
1378 fi
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1382 case $srcdir in
1383 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 esac
1385 for ac_var in $ac_precious_vars; do
1386   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387   eval ac_env_${ac_var}_value=\$${ac_var}
1388   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390 done
1391
1392 #
1393 # Report the --help message.
1394 #
1395 if test "$ac_init_help" = "long"; then
1396   # Omit some internal or obsolete options to make the list less imposing.
1397   # This message is too long to be a string in the A/UX 3.1 sh.
1398   cat <<_ACEOF
1399 \`configure' configures this package to adapt to many kinds of systems.
1400
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1402
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE.  See below for descriptions of some of the useful variables.
1405
1406 Defaults for the options are specified in brackets.
1407
1408 Configuration:
1409   -h, --help              display this help and exit
1410       --help=short        display options specific to this package
1411       --help=recursive    display the short help of all the included packages
1412   -V, --version           display version information and exit
1413   -q, --quiet, --silent   do not print \`checking...' messages
1414       --cache-file=FILE   cache test results in FILE [disabled]
1415   -C, --config-cache      alias for \`--cache-file=config.cache'
1416   -n, --no-create         do not create output files
1417       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1418
1419 Installation directories:
1420   --prefix=PREFIX         install architecture-independent files in PREFIX
1421                           [$ac_default_prefix]
1422   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1423                           [PREFIX]
1424
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1429
1430 For better control, use the options below.
1431
1432 Fine tuning of the installation directories:
1433   --bindir=DIR           user executables [EPREFIX/bin]
1434   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1435   --libexecdir=DIR       program executables [EPREFIX/libexec]
1436   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1437   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1438   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1439   --libdir=DIR           object code libraries [EPREFIX/lib]
1440   --includedir=DIR       C header files [PREFIX/include]
1441   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1442   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1443   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1444   --infodir=DIR          info documentation [DATAROOTDIR/info]
1445   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1446   --mandir=DIR           man documentation [DATAROOTDIR/man]
1447   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1448   --htmldir=DIR          html documentation [DOCDIR]
1449   --dvidir=DIR           dvi documentation [DOCDIR]
1450   --pdfdir=DIR           pdf documentation [DOCDIR]
1451   --psdir=DIR            ps documentation [DOCDIR]
1452 _ACEOF
1453
1454   cat <<\_ACEOF
1455
1456 Program names:
1457   --program-prefix=PREFIX            prepend PREFIX to installed program names
1458   --program-suffix=SUFFIX            append SUFFIX to installed program names
1459   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1460
1461 System types:
1462   --build=BUILD     configure for building on BUILD [guessed]
1463   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1464   --target=TARGET   configure for building compilers for TARGET [HOST]
1465 _ACEOF
1466 fi
1467
1468 if test -n "$ac_init_help"; then
1469
1470   cat <<\_ACEOF
1471
1472 Optional Features:
1473   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1474   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1475   --disable-dependency-tracking  speeds up one-time build
1476   --enable-dependency-tracking   do not reject slow dependency extractors
1477   --enable-shared[=PKGS]  build shared libraries [default=yes]
1478   --enable-static[=PKGS]  build static libraries [default=yes]
1479   --enable-fast-install[=PKGS]
1480                           optimize for fast installation [default=yes]
1481   --disable-libtool-lock  avoid locking (might break parallel builds)
1482   --enable-unit-tests     enables tests embedded in the source code of the
1483                           library (changes content of the library)
1484   --enable-integration-tests
1485                           enables tests outside of the library (can be used
1486                           together with normal builds of the library)
1487   --enable-assert         turn on assertions
1488   --enable-wchar          enable Unicode wchar usage
1489
1490 Optional Packages:
1491   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1492   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1493   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1494   --with-pic              try to use only PIC/non-PIC objects [default=use
1495                           both]
1496   --with-tags[=TAGS]      include additional configurations [automatic]
1497   --with-transport-agent=curl/mac/mozilla
1498                           force to use the specified transport agent. NOTE:
1499                           the Mozilla transport agent requires
1500                           --with-mozilla-sdk-path=DIR for setting the Mozilla
1501                           SDK path
1502   --with-mozilla-sdk-path=DIR
1503                           use the Mozilla SDK from directory DIR
1504
1505 Some influential environment variables:
1506   CXX         C++ compiler command
1507   CXXFLAGS    C++ compiler flags
1508   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1509               nonstandard directory <lib dir>
1510   LIBS        libraries to pass to the linker, e.g. -l<library>
1511   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1512               you have headers in a nonstandard directory <include dir>
1513   CC          C compiler command
1514   CFLAGS      C compiler flags
1515   CPP         C preprocessor
1516   CXXCPP      C++ preprocessor
1517   F77         Fortran 77 compiler command
1518   FFLAGS      Fortran 77 compiler flags
1519
1520 Use these variables to override the choices made by `configure' or to help
1521 it to find libraries and programs with nonstandard names/locations.
1522
1523 _ACEOF
1524 ac_status=$?
1525 fi
1526
1527 if test "$ac_init_help" = "recursive"; then
1528   # If there are subdirs, report their specific --help.
1529   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530     test -d "$ac_dir" || continue
1531     ac_builddir=.
1532
1533 case "$ac_dir" in
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *)
1536   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1537   # A ".." for each directory in $ac_dir_suffix.
1538   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1539   case $ac_top_builddir_sub in
1540   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542   esac ;;
1543 esac
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1548
1549 case $srcdir in
1550   .)  # We are building in place.
1551     ac_srcdir=.
1552     ac_top_srcdir=$ac_top_builddir_sub
1553     ac_abs_top_srcdir=$ac_pwd ;;
1554   [\\/]* | ?:[\\/]* )  # Absolute name.
1555     ac_srcdir=$srcdir$ac_dir_suffix;
1556     ac_top_srcdir=$srcdir
1557     ac_abs_top_srcdir=$srcdir ;;
1558   *) # Relative name.
1559     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560     ac_top_srcdir=$ac_top_build_prefix$srcdir
1561     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 esac
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564
1565     cd "$ac_dir" || { ac_status=$?; continue; }
1566     # Check for guested configure.
1567     if test -f "$ac_srcdir/configure.gnu"; then
1568       echo &&
1569       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570     elif test -f "$ac_srcdir/configure"; then
1571       echo &&
1572       $SHELL "$ac_srcdir/configure" --help=recursive
1573     else
1574       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575     fi || ac_status=$?
1576     cd "$ac_pwd" || { ac_status=$?; break; }
1577   done
1578 fi
1579
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1582   cat <<\_ACEOF
1583 configure
1584 generated by GNU Autoconf 2.61
1585
1586 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1587 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1590 _ACEOF
1591   exit
1592 fi
1593 cat >config.log <<_ACEOF
1594 This file contains any messages produced by compilers while
1595 running configure, to aid debugging if configure makes a mistake.
1596
1597 It was created by $as_me, which was
1598 generated by GNU Autoconf 2.61.  Invocation command line was
1599
1600   $ $0 $@
1601
1602 _ACEOF
1603 exec 5>>config.log
1604 {
1605 cat <<_ASUNAME
1606 ## --------- ##
1607 ## Platform. ##
1608 ## --------- ##
1609
1610 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1611 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1612 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1613 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1614 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1615
1616 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1617 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1618
1619 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1620 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1621 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1622 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1623 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1624 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1625 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1626
1627 _ASUNAME
1628
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 for as_dir in $PATH
1631 do
1632   IFS=$as_save_IFS
1633   test -z "$as_dir" && as_dir=.
1634   echo "PATH: $as_dir"
1635 done
1636 IFS=$as_save_IFS
1637
1638 } >&5
1639
1640 cat >&5 <<_ACEOF
1641
1642
1643 ## ----------- ##
1644 ## Core tests. ##
1645 ## ----------- ##
1646
1647 _ACEOF
1648
1649
1650 # Keep a trace of the command line.
1651 # Strip out --no-create and --no-recursion so they do not pile up.
1652 # Strip out --silent because we don't want to record it for future runs.
1653 # Also quote any args containing shell meta-characters.
1654 # Make two passes to allow for proper duplicate-argument suppression.
1655 ac_configure_args=
1656 ac_configure_args0=
1657 ac_configure_args1=
1658 ac_must_keep_next=false
1659 for ac_pass in 1 2
1660 do
1661   for ac_arg
1662   do
1663     case $ac_arg in
1664     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1665     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1666     | -silent | --silent | --silen | --sile | --sil)
1667       continue ;;
1668     *\'*)
1669       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1670     esac
1671     case $ac_pass in
1672     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1673     2)
1674       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1675       if test $ac_must_keep_next = true; then
1676         ac_must_keep_next=false # Got value, back to normal.
1677       else
1678         case $ac_arg in
1679           *=* | --config-cache | -C | -disable-* | --disable-* \
1680           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1681           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1682           | -with-* | --with-* | -without-* | --without-* | --x)
1683             case "$ac_configure_args0 " in
1684               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1685             esac
1686             ;;
1687           -* ) ac_must_keep_next=true ;;
1688         esac
1689       fi
1690       ac_configure_args="$ac_configure_args '$ac_arg'"
1691       ;;
1692     esac
1693   done
1694 done
1695 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1696 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1697
1698 # When interrupted or exit'd, cleanup temporary files, and complete
1699 # config.log.  We remove comments because anyway the quotes in there
1700 # would cause problems or look ugly.
1701 # WARNING: Use '\'' to represent an apostrophe within the trap.
1702 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1703 trap 'exit_status=$?
1704   # Save into config.log some information that might help in debugging.
1705   {
1706     echo
1707
1708     cat <<\_ASBOX
1709 ## ---------------- ##
1710 ## Cache variables. ##
1711 ## ---------------- ##
1712 _ASBOX
1713     echo
1714     # The following way of writing the cache mishandles newlines in values,
1715 (
1716   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1717     eval ac_val=\$$ac_var
1718     case $ac_val in #(
1719     *${as_nl}*)
1720       case $ac_var in #(
1721       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1722 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1723       esac
1724       case $ac_var in #(
1725       _ | IFS | as_nl) ;; #(
1726       *) $as_unset $ac_var ;;
1727       esac ;;
1728     esac
1729   done
1730   (set) 2>&1 |
1731     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1732     *${as_nl}ac_space=\ *)
1733       sed -n \
1734         "s/'\''/'\''\\\\'\'''\''/g;
1735           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1736       ;; #(
1737     *)
1738       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1739       ;;
1740     esac |
1741     sort
1742 )
1743     echo
1744
1745     cat <<\_ASBOX
1746 ## ----------------- ##
1747 ## Output variables. ##
1748 ## ----------------- ##
1749 _ASBOX
1750     echo
1751     for ac_var in $ac_subst_vars
1752     do
1753       eval ac_val=\$$ac_var
1754       case $ac_val in
1755       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756       esac
1757       echo "$ac_var='\''$ac_val'\''"
1758     done | sort
1759     echo
1760
1761     if test -n "$ac_subst_files"; then
1762       cat <<\_ASBOX
1763 ## ------------------- ##
1764 ## File substitutions. ##
1765 ## ------------------- ##
1766 _ASBOX
1767       echo
1768       for ac_var in $ac_subst_files
1769       do
1770         eval ac_val=\$$ac_var
1771         case $ac_val in
1772         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1773         esac
1774         echo "$ac_var='\''$ac_val'\''"
1775       done | sort
1776       echo
1777     fi
1778
1779     if test -s confdefs.h; then
1780       cat <<\_ASBOX
1781 ## ----------- ##
1782 ## confdefs.h. ##
1783 ## ----------- ##
1784 _ASBOX
1785       echo
1786       cat confdefs.h
1787       echo
1788     fi
1789     test "$ac_signal" != 0 &&
1790       echo "$as_me: caught signal $ac_signal"
1791     echo "$as_me: exit $exit_status"
1792   } >&5
1793   rm -f core *.core core.conftest.* &&
1794     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1795     exit $exit_status
1796 ' 0
1797 for ac_signal in 1 2 13 15; do
1798   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1799 done
1800 ac_signal=0
1801
1802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1803 rm -f -r conftest* confdefs.h
1804
1805 # Predefined preprocessor variables.
1806
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_NAME "$PACKAGE_NAME"
1809 _ACEOF
1810
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1814 _ACEOF
1815
1816
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1819 _ACEOF
1820
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_STRING "$PACKAGE_STRING"
1824 _ACEOF
1825
1826
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1829 _ACEOF
1830
1831
1832 # Let the site file select an alternate cache file if it wants to.
1833 # Prefer explicitly selected file to automatically selected ones.
1834 if test -n "$CONFIG_SITE"; then
1835   set x "$CONFIG_SITE"
1836 elif test "x$prefix" != xNONE; then
1837   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1838 else
1839   set x "$ac_default_prefix/share/config.site" \
1840         "$ac_default_prefix/etc/config.site"
1841 fi
1842 shift
1843 for ac_site_file
1844 do
1845   if test -r "$ac_site_file"; then
1846     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1847 echo "$as_me: loading site script $ac_site_file" >&6;}
1848     sed 's/^/| /' "$ac_site_file" >&5
1849     . "$ac_site_file"
1850   fi
1851 done
1852
1853 if test -r "$cache_file"; then
1854   # Some versions of bash will fail to source /dev/null (special
1855   # files actually), so we avoid doing that.
1856   if test -f "$cache_file"; then
1857     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1858 echo "$as_me: loading cache $cache_file" >&6;}
1859     case $cache_file in
1860       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1861       *)                      . "./$cache_file";;
1862     esac
1863   fi
1864 else
1865   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1866 echo "$as_me: creating cache $cache_file" >&6;}
1867   >$cache_file
1868 fi
1869
1870 # Check that the precious variables saved in the cache have kept the same
1871 # value.
1872 ac_cache_corrupted=false
1873 for ac_var in $ac_precious_vars; do
1874   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1875   eval ac_new_set=\$ac_env_${ac_var}_set
1876   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1877   eval ac_new_val=\$ac_env_${ac_var}_value
1878   case $ac_old_set,$ac_new_set in
1879     set,)
1880       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1881 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1882       ac_cache_corrupted=: ;;
1883     ,set)
1884       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1885 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1886       ac_cache_corrupted=: ;;
1887     ,);;
1888     *)
1889       if test "x$ac_old_val" != "x$ac_new_val"; then
1890         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1891 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1892         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1893 echo "$as_me:   former value:  $ac_old_val" >&2;}
1894         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1895 echo "$as_me:   current value: $ac_new_val" >&2;}
1896         ac_cache_corrupted=:
1897       fi;;
1898   esac
1899   # Pass precious variables to config.status.
1900   if test "$ac_new_set" = set; then
1901     case $ac_new_val in
1902     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1903     *) ac_arg=$ac_var=$ac_new_val ;;
1904     esac
1905     case " $ac_configure_args " in
1906       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1907       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1908     esac
1909   fi
1910 done
1911 if $ac_cache_corrupted; then
1912   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1913 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1914   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1915 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1916    { (exit 1); exit 1; }; }
1917 fi
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935 ac_ext=c
1936 ac_cpp='$CPP $CPPFLAGS'
1937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940
1941
1942 ac_aux_dir=
1943 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1944   if test -f "$ac_dir/install-sh"; then
1945     ac_aux_dir=$ac_dir
1946     ac_install_sh="$ac_aux_dir/install-sh -c"
1947     break
1948   elif test -f "$ac_dir/install.sh"; then
1949     ac_aux_dir=$ac_dir
1950     ac_install_sh="$ac_aux_dir/install.sh -c"
1951     break
1952   elif test -f "$ac_dir/shtool"; then
1953     ac_aux_dir=$ac_dir
1954     ac_install_sh="$ac_aux_dir/shtool install -c"
1955     break
1956   fi
1957 done
1958 if test -z "$ac_aux_dir"; then
1959   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1960 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1961    { (exit 1); exit 1; }; }
1962 fi
1963
1964 # These three variables are undocumented and unsupported,
1965 # and are intended to be withdrawn in a future Autoconf release.
1966 # They can cause serious problems if a builder's source tree is in a directory
1967 # whose full name contains unusual characters.
1968 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1969 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1970 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1971
1972
1973 # Make sure we can run config.sub.
1974 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1975   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1976 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1977    { (exit 1); exit 1; }; }
1978
1979 { echo "$as_me:$LINENO: checking build system type" >&5
1980 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1981 if test "${ac_cv_build+set}" = set; then
1982   echo $ECHO_N "(cached) $ECHO_C" >&6
1983 else
1984   ac_build_alias=$build_alias
1985 test "x$ac_build_alias" = x &&
1986   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1987 test "x$ac_build_alias" = x &&
1988   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1989 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1990    { (exit 1); exit 1; }; }
1991 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1992   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1993 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1994    { (exit 1); exit 1; }; }
1995
1996 fi
1997 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1998 echo "${ECHO_T}$ac_cv_build" >&6; }
1999 case $ac_cv_build in
2000 *-*-*) ;;
2001 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2002 echo "$as_me: error: invalid value of canonical build" >&2;}
2003    { (exit 1); exit 1; }; };;
2004 esac
2005 build=$ac_cv_build
2006 ac_save_IFS=$IFS; IFS='-'
2007 set x $ac_cv_build
2008 shift
2009 build_cpu=$1
2010 build_vendor=$2
2011 shift; shift
2012 # Remember, the first character of IFS is used to create $*,
2013 # except with old shells:
2014 build_os=$*
2015 IFS=$ac_save_IFS
2016 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2017
2018
2019 { echo "$as_me:$LINENO: checking host system type" >&5
2020 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2021 if test "${ac_cv_host+set}" = set; then
2022   echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024   if test "x$host_alias" = x; then
2025   ac_cv_host=$ac_cv_build
2026 else
2027   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2028     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2029 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2030    { (exit 1); exit 1; }; }
2031 fi
2032
2033 fi
2034 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2035 echo "${ECHO_T}$ac_cv_host" >&6; }
2036 case $ac_cv_host in
2037 *-*-*) ;;
2038 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2039 echo "$as_me: error: invalid value of canonical host" >&2;}
2040    { (exit 1); exit 1; }; };;
2041 esac
2042 host=$ac_cv_host
2043 ac_save_IFS=$IFS; IFS='-'
2044 set x $ac_cv_host
2045 shift
2046 host_cpu=$1
2047 host_vendor=$2
2048 shift; shift
2049 # Remember, the first character of IFS is used to create $*,
2050 # except with old shells:
2051 host_os=$*
2052 IFS=$ac_save_IFS
2053 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2054
2055
2056 { echo "$as_me:$LINENO: checking target system type" >&5
2057 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2058 if test "${ac_cv_target+set}" = set; then
2059   echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061   if test "x$target_alias" = x; then
2062   ac_cv_target=$ac_cv_host
2063 else
2064   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2065     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2066 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2067    { (exit 1); exit 1; }; }
2068 fi
2069
2070 fi
2071 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2072 echo "${ECHO_T}$ac_cv_target" >&6; }
2073 case $ac_cv_target in
2074 *-*-*) ;;
2075 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2076 echo "$as_me: error: invalid value of canonical target" >&2;}
2077    { (exit 1); exit 1; }; };;
2078 esac
2079 target=$ac_cv_target
2080 ac_save_IFS=$IFS; IFS='-'
2081 set x $ac_cv_target
2082 shift
2083 target_cpu=$1
2084 target_vendor=$2
2085 shift; shift
2086 # Remember, the first character of IFS is used to create $*,
2087 # except with old shells:
2088 target_os=$*
2089 IFS=$ac_save_IFS
2090 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2091
2092
2093 # The aliases save the names the user supplied, while $host etc.
2094 # will get canonicalized.
2095 test -n "$target_alias" &&
2096   test "$program_prefix$program_suffix$program_transform_name" = \
2097     NONENONEs,x,x, &&
2098   program_prefix=${target_alias}-
2099 am__api_version="1.9"
2100 # Find a good install program.  We prefer a C program (faster),
2101 # so one script is as good as another.  But avoid the broken or
2102 # incompatible versions:
2103 # SysV /etc/install, /usr/sbin/install
2104 # SunOS /usr/etc/install
2105 # IRIX /sbin/install
2106 # AIX /bin/install
2107 # AmigaOS /C/install, which installs bootblocks on floppy discs
2108 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2109 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2110 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2111 # OS/2's system install, which has a completely different semantic
2112 # ./install, which can be erroneously created by make from ./install.sh.
2113 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2114 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2115 if test -z "$INSTALL"; then
2116 if test "${ac_cv_path_install+set}" = set; then
2117   echo $ECHO_N "(cached) $ECHO_C" >&6
2118 else
2119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 for as_dir in $PATH
2121 do
2122   IFS=$as_save_IFS
2123   test -z "$as_dir" && as_dir=.
2124   # Account for people who put trailing slashes in PATH elements.
2125 case $as_dir/ in
2126   ./ | .// | /cC/* | \
2127   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2128   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2129   /usr/ucb/* ) ;;
2130   *)
2131     # OSF1 and SCO ODT 3.0 have their own names for install.
2132     # Don't use installbsd from OSF since it installs stuff as root
2133     # by default.
2134     for ac_prog in ginstall scoinst install; do
2135       for ac_exec_ext in '' $ac_executable_extensions; do
2136         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2137           if test $ac_prog = install &&
2138             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2139             # AIX install.  It has an incompatible calling convention.
2140             :
2141           elif test $ac_prog = install &&
2142             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2143             # program-specific install script used by HP pwplus--don't use.
2144             :
2145           else
2146             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2147             break 3
2148           fi
2149         fi
2150       done
2151     done
2152     ;;
2153 esac
2154 done
2155 IFS=$as_save_IFS
2156
2157
2158 fi
2159   if test "${ac_cv_path_install+set}" = set; then
2160     INSTALL=$ac_cv_path_install
2161   else
2162     # As a last resort, use the slow shell script.  Don't cache a
2163     # value for INSTALL within a source directory, because that will
2164     # break other packages using the cache if that directory is
2165     # removed, or if the value is a relative name.
2166     INSTALL=$ac_install_sh
2167   fi
2168 fi
2169 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2170 echo "${ECHO_T}$INSTALL" >&6; }
2171
2172 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2173 # It thinks the first close brace ends the variable substitution.
2174 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2175
2176 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2177
2178 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2179
2180 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2181 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2182 # Just in case
2183 sleep 1
2184 echo timestamp > conftest.file
2185 # Do `set' in a subshell so we don't clobber the current shell's
2186 # arguments.  Must try -L first in case configure is actually a
2187 # symlink; some systems play weird games with the mod time of symlinks
2188 # (eg FreeBSD returns the mod time of the symlink's containing
2189 # directory).
2190 if (
2191    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2192    if test "$*" = "X"; then
2193       # -L didn't work.
2194       set X `ls -t $srcdir/configure conftest.file`
2195    fi
2196    rm -f conftest.file
2197    if test "$*" != "X $srcdir/configure conftest.file" \
2198       && test "$*" != "X conftest.file $srcdir/configure"; then
2199
2200       # If neither matched, then we have a broken ls.  This can happen
2201       # if, for instance, CONFIG_SHELL is bash and it inherits a
2202       # broken ls alias from the environment.  This has actually
2203       # happened.  Such a system could not be considered "sane".
2204       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2205 alias in your environment" >&5
2206 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2207 alias in your environment" >&2;}
2208    { (exit 1); exit 1; }; }
2209    fi
2210
2211    test "$2" = conftest.file
2212    )
2213 then
2214    # Ok.
2215    :
2216 else
2217    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2218 Check your system clock" >&5
2219 echo "$as_me: error: newly created file is older than distributed files!
2220 Check your system clock" >&2;}
2221    { (exit 1); exit 1; }; }
2222 fi
2223 { echo "$as_me:$LINENO: result: yes" >&5
2224 echo "${ECHO_T}yes" >&6; }
2225 test "$program_prefix" != NONE &&
2226   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2227 # Use a double $ so make ignores it.
2228 test "$program_suffix" != NONE &&
2229   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2230 # Double any \ or $.  echo might interpret backslashes.
2231 # By default was `s,x,x', remove it if useless.
2232 cat <<\_ACEOF >conftest.sed
2233 s/[\\$]/&&/g;s/;s,x,x,$//
2234 _ACEOF
2235 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2236 rm -f conftest.sed
2237
2238 # expand $ac_aux_dir to an absolute path
2239 am_aux_dir=`cd $ac_aux_dir && pwd`
2240
2241 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2242 # Use eval to expand $SHELL
2243 if eval "$MISSING --run true"; then
2244   am_missing_run="$MISSING --run "
2245 else
2246   am_missing_run=
2247   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2248 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2249 fi
2250
2251 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2252   # We used to keeping the `.' as first argument, in order to
2253   # allow $(mkdir_p) to be used without argument.  As in
2254   #   $(mkdir_p) $(somedir)
2255   # where $(somedir) is conditionally defined.  However this is wrong
2256   # for two reasons:
2257   #  1. if the package is installed by a user who cannot write `.'
2258   #     make install will fail,
2259   #  2. the above comment should most certainly read
2260   #     $(mkdir_p) $(DESTDIR)$(somedir)
2261   #     so it does not work when $(somedir) is undefined and
2262   #     $(DESTDIR) is not.
2263   #  To support the latter case, we have to write
2264   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2265   #  so the `.' trick is pointless.
2266   mkdir_p='mkdir -p --'
2267 else
2268   # On NextStep and OpenStep, the `mkdir' command does not
2269   # recognize any option.  It will interpret all options as
2270   # directories to create, and then abort because `.' already
2271   # exists.
2272   for d in ./-p ./--version;
2273   do
2274     test -d $d && rmdir $d
2275   done
2276   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2277   if test -f "$ac_aux_dir/mkinstalldirs"; then
2278     mkdir_p='$(mkinstalldirs)'
2279   else
2280     mkdir_p='$(install_sh) -d'
2281   fi
2282 fi
2283
2284 for ac_prog in gawk mawk nawk awk
2285 do
2286   # Extract the first word of "$ac_prog", so it can be a program name with args.
2287 set dummy $ac_prog; ac_word=$2
2288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2290 if test "${ac_cv_prog_AWK+set}" = set; then
2291   echo $ECHO_N "(cached) $ECHO_C" >&6
2292 else
2293   if test -n "$AWK"; then
2294   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2295 else
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 for as_dir in $PATH
2298 do
2299   IFS=$as_save_IFS
2300   test -z "$as_dir" && as_dir=.
2301   for ac_exec_ext in '' $ac_executable_extensions; do
2302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2303     ac_cv_prog_AWK="$ac_prog"
2304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305     break 2
2306   fi
2307 done
2308 done
2309 IFS=$as_save_IFS
2310
2311 fi
2312 fi
2313 AWK=$ac_cv_prog_AWK
2314 if test -n "$AWK"; then
2315   { echo "$as_me:$LINENO: result: $AWK" >&5
2316 echo "${ECHO_T}$AWK" >&6; }
2317 else
2318   { echo "$as_me:$LINENO: result: no" >&5
2319 echo "${ECHO_T}no" >&6; }
2320 fi
2321
2322
2323   test -n "$AWK" && break
2324 done
2325
2326 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2327 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2328 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2329 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2330   echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332   cat >conftest.make <<\_ACEOF
2333 SHELL = /bin/sh
2334 all:
2335         @echo '@@@%%%=$(MAKE)=@@@%%%'
2336 _ACEOF
2337 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2338 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2339   *@@@%%%=?*=@@@%%%*)
2340     eval ac_cv_prog_make_${ac_make}_set=yes;;
2341   *)
2342     eval ac_cv_prog_make_${ac_make}_set=no;;
2343 esac
2344 rm -f conftest.make
2345 fi
2346 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2347   { echo "$as_me:$LINENO: result: yes" >&5
2348 echo "${ECHO_T}yes" >&6; }
2349   SET_MAKE=
2350 else
2351   { echo "$as_me:$LINENO: result: no" >&5
2352 echo "${ECHO_T}no" >&6; }
2353   SET_MAKE="MAKE=${MAKE-make}"
2354 fi
2355
2356 rm -rf .tst 2>/dev/null
2357 mkdir .tst 2>/dev/null
2358 if test -d .tst; then
2359   am__leading_dot=.
2360 else
2361   am__leading_dot=_
2362 fi
2363 rmdir .tst 2>/dev/null
2364
2365 # test to see if srcdir already configured
2366 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2367    test -f $srcdir/config.status; then
2368   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2369 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2370    { (exit 1); exit 1; }; }
2371 fi
2372
2373 # test whether we have cygpath
2374 if test -z "$CYGPATH_W"; then
2375   if (cygpath --version) >/dev/null 2>/dev/null; then
2376     CYGPATH_W='cygpath -w'
2377   else
2378     CYGPATH_W=echo
2379   fi
2380 fi
2381
2382
2383 # Define the identity of the package.
2384  PACKAGE=funambol
2385  VERSION=2.0
2386
2387
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE "$PACKAGE"
2390 _ACEOF
2391
2392
2393 cat >>confdefs.h <<_ACEOF
2394 #define VERSION "$VERSION"
2395 _ACEOF
2396
2397 # Some tools Automake needs.
2398
2399 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2400
2401
2402 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2403
2404
2405 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2406
2407
2408 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2409
2410
2411 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2412
2413 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2414
2415 # Installed binaries are usually stripped using `strip' when the user
2416 # run `make install-strip'.  However `strip' might not be the right
2417 # tool to use in cross-compilation environments, therefore Automake
2418 # will honor the `STRIP' environment variable to overrule this program.
2419 if test "$cross_compiling" != no; then
2420   if test -n "$ac_tool_prefix"; then
2421   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2422 set dummy ${ac_tool_prefix}strip; ac_word=$2
2423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2425 if test "${ac_cv_prog_STRIP+set}" = set; then
2426   echo $ECHO_N "(cached) $ECHO_C" >&6
2427 else
2428   if test -n "$STRIP"; then
2429   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2430 else
2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432 for as_dir in $PATH
2433 do
2434   IFS=$as_save_IFS
2435   test -z "$as_dir" && as_dir=.
2436   for ac_exec_ext in '' $ac_executable_extensions; do
2437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2438     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2440     break 2
2441   fi
2442 done
2443 done
2444 IFS=$as_save_IFS
2445
2446 fi
2447 fi
2448 STRIP=$ac_cv_prog_STRIP
2449 if test -n "$STRIP"; then
2450   { echo "$as_me:$LINENO: result: $STRIP" >&5
2451 echo "${ECHO_T}$STRIP" >&6; }
2452 else
2453   { echo "$as_me:$LINENO: result: no" >&5
2454 echo "${ECHO_T}no" >&6; }
2455 fi
2456
2457
2458 fi
2459 if test -z "$ac_cv_prog_STRIP"; then
2460   ac_ct_STRIP=$STRIP
2461   # Extract the first word of "strip", so it can be a program name with args.
2462 set dummy strip; ac_word=$2
2463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2465 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2466   echo $ECHO_N "(cached) $ECHO_C" >&6
2467 else
2468   if test -n "$ac_ct_STRIP"; then
2469   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2470 else
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2473 do
2474   IFS=$as_save_IFS
2475   test -z "$as_dir" && as_dir=.
2476   for ac_exec_ext in '' $ac_executable_extensions; do
2477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478     ac_cv_prog_ac_ct_STRIP="strip"
2479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2480     break 2
2481   fi
2482 done
2483 done
2484 IFS=$as_save_IFS
2485
2486 fi
2487 fi
2488 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2489 if test -n "$ac_ct_STRIP"; then
2490   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2491 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2492 else
2493   { echo "$as_me:$LINENO: result: no" >&5
2494 echo "${ECHO_T}no" >&6; }
2495 fi
2496
2497   if test "x$ac_ct_STRIP" = x; then
2498     STRIP=":"
2499   else
2500     case $cross_compiling:$ac_tool_warned in
2501 yes:)
2502 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2503 whose name does not start with the host triplet.  If you think this
2504 configuration is useful to you, please write to autoconf@gnu.org." >&5
2505 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2506 whose name does not start with the host triplet.  If you think this
2507 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2508 ac_tool_warned=yes ;;
2509 esac
2510     STRIP=$ac_ct_STRIP
2511   fi
2512 else
2513   STRIP="$ac_cv_prog_STRIP"
2514 fi
2515
2516 fi
2517 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2518
2519 # We need awk for the "check" target.  The system "awk" is bad on
2520 # some platforms.
2521 # Always define AMTAR for backward compatibility.
2522
2523 AMTAR=${AMTAR-"${am_missing_run}tar"}
2524
2525 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2526
2527
2528
2529
2530
2531 ac_config_headers="$ac_config_headers config.h"
2532
2533
2534 ac_ext=cpp
2535 ac_cpp='$CXXCPP $CPPFLAGS'
2536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2539 if test -z "$CXX"; then
2540   if test -n "$CCC"; then
2541     CXX=$CCC
2542   else
2543     if test -n "$ac_tool_prefix"; then
2544   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2545   do
2546     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2547 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2550 if test "${ac_cv_prog_CXX+set}" = set; then
2551   echo $ECHO_N "(cached) $ECHO_C" >&6
2552 else
2553   if test -n "$CXX"; then
2554   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2555 else
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 for as_dir in $PATH
2558 do
2559   IFS=$as_save_IFS
2560   test -z "$as_dir" && as_dir=.
2561   for ac_exec_ext in '' $ac_executable_extensions; do
2562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2563     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2565     break 2
2566   fi
2567 done
2568 done
2569 IFS=$as_save_IFS
2570
2571 fi
2572 fi
2573 CXX=$ac_cv_prog_CXX
2574 if test -n "$CXX"; then
2575   { echo "$as_me:$LINENO: result: $CXX" >&5
2576 echo "${ECHO_T}$CXX" >&6; }
2577 else
2578   { echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6; }
2580 fi
2581
2582
2583     test -n "$CXX" && break
2584   done
2585 fi
2586 if test -z "$CXX"; then
2587   ac_ct_CXX=$CXX
2588   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2589 do
2590   # Extract the first word of "$ac_prog", so it can be a program name with args.
2591 set dummy $ac_prog; ac_word=$2
2592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2594 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2595   echo $ECHO_N "(cached) $ECHO_C" >&6
2596 else
2597   if test -n "$ac_ct_CXX"; then
2598   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2599 else
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 for as_dir in $PATH
2602 do
2603   IFS=$as_save_IFS
2604   test -z "$as_dir" && as_dir=.
2605   for ac_exec_ext in '' $ac_executable_extensions; do
2606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2607     ac_cv_prog_ac_ct_CXX="$ac_prog"
2608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609     break 2
2610   fi
2611 done
2612 done
2613 IFS=$as_save_IFS
2614
2615 fi
2616 fi
2617 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2618 if test -n "$ac_ct_CXX"; then
2619   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2620 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2621 else
2622   { echo "$as_me:$LINENO: result: no" >&5
2623 echo "${ECHO_T}no" >&6; }
2624 fi
2625
2626
2627   test -n "$ac_ct_CXX" && break
2628 done
2629
2630   if test "x$ac_ct_CXX" = x; then
2631     CXX="g++"
2632   else
2633     case $cross_compiling:$ac_tool_warned in
2634 yes:)
2635 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2636 whose name does not start with the host triplet.  If you think this
2637 configuration is useful to you, please write to autoconf@gnu.org." >&5
2638 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2639 whose name does not start with the host triplet.  If you think this
2640 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2641 ac_tool_warned=yes ;;
2642 esac
2643     CXX=$ac_ct_CXX
2644   fi
2645 fi
2646
2647   fi
2648 fi
2649 # Provide some information about the compiler.
2650 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2651 ac_compiler=`set X $ac_compile; echo $2`
2652 { (ac_try="$ac_compiler --version >&5"
2653 case "(($ac_try" in
2654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655   *) ac_try_echo=$ac_try;;
2656 esac
2657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2658   (eval "$ac_compiler --version >&5") 2>&5
2659   ac_status=$?
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }
2662 { (ac_try="$ac_compiler -v >&5"
2663 case "(($ac_try" in
2664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665   *) ac_try_echo=$ac_try;;
2666 esac
2667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668   (eval "$ac_compiler -v >&5") 2>&5
2669   ac_status=$?
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); }
2672 { (ac_try="$ac_compiler -V >&5"
2673 case "(($ac_try" in
2674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675   *) ac_try_echo=$ac_try;;
2676 esac
2677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2678   (eval "$ac_compiler -V >&5") 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }
2682
2683 cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h.  */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h.  */
2689
2690 int
2691 main ()
2692 {
2693
2694   ;
2695   return 0;
2696 }
2697 _ACEOF
2698 ac_clean_files_save=$ac_clean_files
2699 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2700 # Try to create an executable without -o first, disregard a.out.
2701 # It will help us diagnose broken compilers, and finding out an intuition
2702 # of exeext.
2703 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2704 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2705 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2706 #
2707 # List of possible output files, starting from the most likely.
2708 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2709 # only as a last resort.  b.out is created by i960 compilers.
2710 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2711 #
2712 # The IRIX 6 linker writes into existing files which may not be
2713 # executable, retaining their permissions.  Remove them first so a
2714 # subsequent execution test works.
2715 ac_rmfiles=
2716 for ac_file in $ac_files
2717 do
2718   case $ac_file in
2719     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2720     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2721   esac
2722 done
2723 rm -f $ac_rmfiles
2724
2725 if { (ac_try="$ac_link_default"
2726 case "(($ac_try" in
2727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728   *) ac_try_echo=$ac_try;;
2729 esac
2730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731   (eval "$ac_link_default") 2>&5
2732   ac_status=$?
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); }; then
2735   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2736 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2737 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2738 # so that the user can short-circuit this test for compilers unknown to
2739 # Autoconf.
2740 for ac_file in $ac_files ''
2741 do
2742   test -f "$ac_file" || continue
2743   case $ac_file in
2744     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2745         ;;
2746     [ab].out )
2747         # We found the default executable, but exeext='' is most
2748         # certainly right.
2749         break;;
2750     *.* )
2751         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2752         then :; else
2753            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2754         fi
2755         # We set ac_cv_exeext here because the later test for it is not
2756         # safe: cross compilers may not add the suffix if given an `-o'
2757         # argument, so we may need to know it at that point already.
2758         # Even if this section looks crufty: it has the advantage of
2759         # actually working.
2760         break;;
2761     * )
2762         break;;
2763   esac
2764 done
2765 test "$ac_cv_exeext" = no && ac_cv_exeext=
2766
2767 else
2768   ac_file=''
2769 fi
2770
2771 { echo "$as_me:$LINENO: result: $ac_file" >&5
2772 echo "${ECHO_T}$ac_file" >&6; }
2773 if test -z "$ac_file"; then
2774   echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2776
2777 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2778 See \`config.log' for more details." >&5
2779 echo "$as_me: error: C++ compiler cannot create executables
2780 See \`config.log' for more details." >&2;}
2781    { (exit 77); exit 77; }; }
2782 fi
2783
2784 ac_exeext=$ac_cv_exeext
2785
2786 # Check that the compiler produces executables we can run.  If not, either
2787 # the compiler is broken, or we cross compile.
2788 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2789 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2790 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2791 # If not cross compiling, check that we can run a simple program.
2792 if test "$cross_compiling" != yes; then
2793   if { ac_try='./$ac_file'
2794   { (case "(($ac_try" in
2795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796   *) ac_try_echo=$ac_try;;
2797 esac
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799   (eval "$ac_try") 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; }; then
2803     cross_compiling=no
2804   else
2805     if test "$cross_compiling" = maybe; then
2806         cross_compiling=yes
2807     else
2808         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2809 If you meant to cross compile, use \`--host'.
2810 See \`config.log' for more details." >&5
2811 echo "$as_me: error: cannot run C++ compiled programs.
2812 If you meant to cross compile, use \`--host'.
2813 See \`config.log' for more details." >&2;}
2814    { (exit 1); exit 1; }; }
2815     fi
2816   fi
2817 fi
2818 { echo "$as_me:$LINENO: result: yes" >&5
2819 echo "${ECHO_T}yes" >&6; }
2820
2821 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2822 ac_clean_files=$ac_clean_files_save
2823 # Check that the compiler produces executables we can run.  If not, either
2824 # the compiler is broken, or we cross compile.
2825 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2826 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2827 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2828 echo "${ECHO_T}$cross_compiling" >&6; }
2829
2830 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2831 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2832 if { (ac_try="$ac_link"
2833 case "(($ac_try" in
2834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835   *) ac_try_echo=$ac_try;;
2836 esac
2837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838   (eval "$ac_link") 2>&5
2839   ac_status=$?
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); }; then
2842   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2843 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2844 # work properly (i.e., refer to `conftest.exe'), while it won't with
2845 # `rm'.
2846 for ac_file in conftest.exe conftest conftest.*; do
2847   test -f "$ac_file" || continue
2848   case $ac_file in
2849     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2850     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2851           break;;
2852     * ) break;;
2853   esac
2854 done
2855 else
2856   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2857 See \`config.log' for more details." >&5
2858 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2859 See \`config.log' for more details." >&2;}
2860    { (exit 1); exit 1; }; }
2861 fi
2862
2863 rm -f conftest$ac_cv_exeext
2864 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2865 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2866
2867 rm -f conftest.$ac_ext
2868 EXEEXT=$ac_cv_exeext
2869 ac_exeext=$EXEEXT
2870 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2871 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2872 if test "${ac_cv_objext+set}" = set; then
2873   echo $ECHO_N "(cached) $ECHO_C" >&6
2874 else
2875   cat >conftest.$ac_ext <<_ACEOF
2876 /* confdefs.h.  */
2877 _ACEOF
2878 cat confdefs.h >>conftest.$ac_ext
2879 cat >>conftest.$ac_ext <<_ACEOF
2880 /* end confdefs.h.  */
2881
2882 int
2883 main ()
2884 {
2885
2886   ;
2887   return 0;
2888 }
2889 _ACEOF
2890 rm -f conftest.o conftest.obj
2891 if { (ac_try="$ac_compile"
2892 case "(($ac_try" in
2893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894   *) ac_try_echo=$ac_try;;
2895 esac
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897   (eval "$ac_compile") 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }; then
2901   for ac_file in conftest.o conftest.obj conftest.*; do
2902   test -f "$ac_file" || continue;
2903   case $ac_file in
2904     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2905     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2906        break;;
2907   esac
2908 done
2909 else
2910   echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2912
2913 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2914 See \`config.log' for more details." >&5
2915 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2916 See \`config.log' for more details." >&2;}
2917    { (exit 1); exit 1; }; }
2918 fi
2919
2920 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2921 fi
2922 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2923 echo "${ECHO_T}$ac_cv_objext" >&6; }
2924 OBJEXT=$ac_cv_objext
2925 ac_objext=$OBJEXT
2926 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2927 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2928 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2929   echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931   cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h.  */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h.  */
2937
2938 int
2939 main ()
2940 {
2941 #ifndef __GNUC__
2942        choke me
2943 #endif
2944
2945   ;
2946   return 0;
2947 }
2948 _ACEOF
2949 rm -f conftest.$ac_objext
2950 if { (ac_try="$ac_compile"
2951 case "(($ac_try" in
2952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953   *) ac_try_echo=$ac_try;;
2954 esac
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956   (eval "$ac_compile") 2>conftest.er1
2957   ac_status=$?
2958   grep -v '^ *+' conftest.er1 >conftest.err
2959   rm -f conftest.er1
2960   cat conftest.err >&5
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); } && {
2963          test -z "$ac_cxx_werror_flag" ||
2964          test ! -s conftest.err
2965        } && test -s conftest.$ac_objext; then
2966   ac_compiler_gnu=yes
2967 else
2968   echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2970
2971         ac_compiler_gnu=no
2972 fi
2973
2974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2975 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2976
2977 fi
2978 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2979 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2980 GXX=`test $ac_compiler_gnu = yes && echo yes`
2981 ac_test_CXXFLAGS=${CXXFLAGS+set}
2982 ac_save_CXXFLAGS=$CXXFLAGS
2983 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2984 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2985 if test "${ac_cv_prog_cxx_g+set}" = set; then
2986   echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2989    ac_cxx_werror_flag=yes
2990    ac_cv_prog_cxx_g=no
2991    CXXFLAGS="-g"
2992    cat >conftest.$ac_ext <<_ACEOF
2993 /* confdefs.h.  */
2994 _ACEOF
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h.  */
2998
2999 int
3000 main ()
3001 {
3002
3003   ;
3004   return 0;
3005 }
3006 _ACEOF
3007 rm -f conftest.$ac_objext
3008 if { (ac_try="$ac_compile"
3009 case "(($ac_try" in
3010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011   *) ac_try_echo=$ac_try;;
3012 esac
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014   (eval "$ac_compile") 2>conftest.er1
3015   ac_status=$?
3016   grep -v '^ *+' conftest.er1 >conftest.err
3017   rm -f conftest.er1
3018   cat conftest.err >&5
3019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020   (exit $ac_status); } && {
3021          test -z "$ac_cxx_werror_flag" ||
3022          test ! -s conftest.err
3023        } && test -s conftest.$ac_objext; then
3024   ac_cv_prog_cxx_g=yes
3025 else
3026   echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.$ac_ext >&5
3028
3029         CXXFLAGS=""
3030       cat >conftest.$ac_ext <<_ACEOF
3031 /* confdefs.h.  */
3032 _ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h.  */
3036
3037 int
3038 main ()
3039 {
3040
3041   ;
3042   return 0;
3043 }
3044 _ACEOF
3045 rm -f conftest.$ac_objext
3046 if { (ac_try="$ac_compile"
3047 case "(($ac_try" in
3048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049   *) ac_try_echo=$ac_try;;
3050 esac
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052   (eval "$ac_compile") 2>conftest.er1
3053   ac_status=$?
3054   grep -v '^ *+' conftest.er1 >conftest.err
3055   rm -f conftest.er1
3056   cat conftest.err >&5
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); } && {
3059          test -z "$ac_cxx_werror_flag" ||
3060          test ! -s conftest.err
3061        } && test -s conftest.$ac_objext; then
3062   :
3063 else
3064   echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3066
3067         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3068          CXXFLAGS="-g"
3069          cat >conftest.$ac_ext <<_ACEOF
3070 /* confdefs.h.  */
3071 _ACEOF
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h.  */
3075
3076 int
3077 main ()
3078 {
3079
3080   ;
3081   return 0;
3082 }
3083 _ACEOF
3084 rm -f conftest.$ac_objext
3085 if { (ac_try="$ac_compile"
3086 case "(($ac_try" in
3087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088   *) ac_try_echo=$ac_try;;
3089 esac
3090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091   (eval "$ac_compile") 2>conftest.er1
3092   ac_status=$?
3093   grep -v '^ *+' conftest.er1 >conftest.err
3094   rm -f conftest.er1
3095   cat conftest.err >&5
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); } && {
3098          test -z "$ac_cxx_werror_flag" ||
3099          test ! -s conftest.err
3100        } && test -s conftest.$ac_objext; then
3101   ac_cv_prog_cxx_g=yes
3102 else
3103   echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3105
3106
3107 fi
3108
3109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110 fi
3111
3112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3113 fi
3114
3115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3116    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3117 fi
3118 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3119 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3120 if test "$ac_test_CXXFLAGS" = set; then
3121   CXXFLAGS=$ac_save_CXXFLAGS
3122 elif test $ac_cv_prog_cxx_g = yes; then
3123   if test "$GXX" = yes; then
3124     CXXFLAGS="-g -O2"
3125   else
3126     CXXFLAGS="-g"
3127   fi
3128 else
3129   if test "$GXX" = yes; then
3130     CXXFLAGS="-O2"
3131   else
3132     CXXFLAGS=
3133   fi
3134 fi
3135 ac_ext=c
3136 ac_cpp='$CPP $CPPFLAGS'
3137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3140 DEPDIR="${am__leading_dot}deps"
3141
3142 ac_config_commands="$ac_config_commands depfiles"
3143
3144
3145 am_make=${MAKE-make}
3146 cat > confinc << 'END'
3147 am__doit:
3148         @echo done
3149 .PHONY: am__doit
3150 END
3151 # If we don't find an include directive, just comment out the code.
3152 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3153 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3154 am__include="#"
3155 am__quote=
3156 _am_result=none
3157 # First try GNU make style include.
3158 echo "include confinc" > confmf
3159 # We grep out `Entering directory' and `Leaving directory'
3160 # messages which can occur if `w' ends up in MAKEFLAGS.
3161 # In particular we don't look at `^make:' because GNU make might
3162 # be invoked under some other name (usually "gmake"), in which
3163 # case it prints its new name instead of `make'.
3164 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3165    am__include=include
3166    am__quote=
3167    _am_result=GNU
3168 fi
3169 # Now try BSD make style include.
3170 if test "$am__include" = "#"; then
3171    echo '.include "confinc"' > confmf
3172    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3173       am__include=.include
3174       am__quote="\""
3175       _am_result=BSD
3176    fi
3177 fi
3178
3179
3180 { echo "$as_me:$LINENO: result: $_am_result" >&5
3181 echo "${ECHO_T}$_am_result" >&6; }
3182 rm -f confinc confmf
3183
3184 # Check whether --enable-dependency-tracking was given.
3185 if test "${enable_dependency_tracking+set}" = set; then
3186   enableval=$enable_dependency_tracking;
3187 fi
3188
3189 if test "x$enable_dependency_tracking" != xno; then
3190   am_depcomp="$ac_aux_dir/depcomp"
3191   AMDEPBACKSLASH='\'
3192 fi
3193
3194
3195 if test "x$enable_dependency_tracking" != xno; then
3196   AMDEP_TRUE=
3197   AMDEP_FALSE='#'
3198 else
3199   AMDEP_TRUE='#'
3200   AMDEP_FALSE=
3201 fi
3202
3203
3204
3205
3206 depcc="$CXX"  am_compiler_list=
3207
3208 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3209 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3210 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3211   echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3214   # We make a subdir and do the tests there.  Otherwise we can end up
3215   # making bogus files that we don't know about and never remove.  For
3216   # instance it was reported that on HP-UX the gcc test will end up
3217   # making a dummy file named `D' -- because `-MD' means `put the output
3218   # in D'.
3219   mkdir conftest.dir
3220   # Copy depcomp to subdir because otherwise we won't find it if we're
3221   # using a relative directory.
3222   cp "$am_depcomp" conftest.dir
3223   cd conftest.dir
3224   # We will build objects and dependencies in a subdirectory because
3225   # it helps to detect inapplicable dependency modes.  For instance
3226   # both Tru64's cc and ICC support -MD to output dependencies as a
3227   # side effect of compilation, but ICC will put the dependencies in
3228   # the current directory while Tru64 will put them in the object
3229   # directory.
3230   mkdir sub
3231
3232   am_cv_CXX_dependencies_compiler_type=none
3233   if test "$am_compiler_list" = ""; then
3234      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3235   fi
3236   for depmode in $am_compiler_list; do
3237     # Setup a source with many dependencies, because some compilers
3238     # like to wrap large dependency lists on column 80 (with \), and
3239     # we should not choose a depcomp mode which is confused by this.
3240     #
3241     # We need to recreate these files for each test, as the compiler may
3242     # overwrite some of them when testing with obscure command lines.
3243     # This happens at least with the AIX C compiler.
3244     : > sub/conftest.c
3245     for i in 1 2 3 4 5 6; do
3246       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3247       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3248       # Solaris 8's {/usr,}/bin/sh.
3249       touch sub/conftst$i.h
3250     done
3251     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3252
3253     case $depmode in
3254     nosideeffect)
3255       # after this tag, mechanisms are not by side-effect, so they'll
3256       # only be used when explicitly requested
3257       if test "x$enable_dependency_tracking" = xyes; then
3258         continue
3259       else
3260         break
3261       fi
3262       ;;
3263     none) break ;;
3264     esac
3265     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3266     # mode.  It turns out that the SunPro C++ compiler does not properly
3267     # handle `-M -o', and we need to detect this.
3268     if depmode=$depmode \
3269        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3270        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3271        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3272          >/dev/null 2>conftest.err &&
3273        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3274        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3275        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3276       # icc doesn't choke on unknown options, it will just issue warnings
3277       # or remarks (even with -Werror).  So we grep stderr for any message
3278       # that says an option was ignored or not supported.
3279       # When given -MP, icc 7.0 and 7.1 complain thusly:
3280       #   icc: Command line warning: ignoring option '-M'; no argument required
3281       # The diagnosis changed in icc 8.0:
3282       #   icc: Command line remark: option '-MP' not supported
3283       if (grep 'ignoring option' conftest.err ||
3284           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3285         am_cv_CXX_dependencies_compiler_type=$depmode
3286         break
3287       fi
3288     fi
3289   done
3290
3291   cd ..
3292   rm -rf conftest.dir
3293 else
3294   am_cv_CXX_dependencies_compiler_type=none
3295 fi
3296
3297 fi
3298 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3299 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3300 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3301
3302
3303
3304 if
3305   test "x$enable_dependency_tracking" != xno \
3306   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3307   am__fastdepCXX_TRUE=
3308   am__fastdepCXX_FALSE='#'
3309 else
3310   am__fastdepCXX_TRUE='#'
3311   am__fastdepCXX_FALSE=
3312 fi
3313
3314
3315 # Check whether --enable-shared was given.
3316 if test "${enable_shared+set}" = set; then
3317   enableval=$enable_shared; p=${PACKAGE-default}
3318     case $enableval in
3319     yes) enable_shared=yes ;;
3320     no) enable_shared=no ;;
3321     *)
3322       enable_shared=no
3323       # Look at the argument we got.  We use all the common list separators.
3324       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3325       for pkg in $enableval; do
3326         IFS="$lt_save_ifs"
3327         if test "X$pkg" = "X$p"; then
3328           enable_shared=yes
3329         fi
3330       done
3331       IFS="$lt_save_ifs"
3332       ;;
3333     esac
3334 else
3335   enable_shared=yes
3336 fi
3337
3338
3339 # Check whether --enable-static was given.
3340 if test "${enable_static+set}" = set; then
3341   enableval=$enable_static; p=${PACKAGE-default}
3342     case $enableval in
3343     yes) enable_static=yes ;;
3344     no) enable_static=no ;;
3345     *)
3346      enable_static=no
3347       # Look at the argument we got.  We use all the common list separators.
3348       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3349       for pkg in $enableval; do
3350         IFS="$lt_save_ifs"
3351         if test "X$pkg" = "X$p"; then
3352           enable_static=yes
3353         fi
3354       done
3355       IFS="$lt_save_ifs"
3356       ;;
3357     esac
3358 else
3359   enable_static=yes
3360 fi
3361
3362
3363 # Check whether --enable-fast-install was given.
3364 if test "${enable_fast_install+set}" = set; then
3365   enableval=$enable_fast_install; p=${PACKAGE-default}
3366     case $enableval in
3367     yes) enable_fast_install=yes ;;
3368     no) enable_fast_install=no ;;
3369     *)
3370       enable_fast_install=no
3371       # Look at the argument we got.  We use all the common list separators.
3372       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3373       for pkg in $enableval; do
3374         IFS="$lt_save_ifs"
3375         if test "X$pkg" = "X$p"; then
3376           enable_fast_install=yes
3377         fi
3378       done
3379       IFS="$lt_save_ifs"
3380       ;;
3381     esac
3382 else
3383   enable_fast_install=yes
3384 fi
3385
3386
3387 ac_ext=c
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 if test -n "$ac_tool_prefix"; then
3393   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3394 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3397 if test "${ac_cv_prog_CC+set}" = set; then
3398   echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400   if test -n "$CC"; then
3401   ac_cv_prog_CC="$CC" # Let the user override the test.
3402 else
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3405 do
3406   IFS=$as_save_IFS
3407   test -z "$as_dir" && as_dir=.
3408   for ac_exec_ext in '' $ac_executable_extensions; do
3409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3410     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412     break 2
3413   fi
3414 done
3415 done
3416 IFS=$as_save_IFS
3417
3418 fi
3419 fi
3420 CC=$ac_cv_prog_CC
3421 if test -n "$CC"; then
3422   { echo "$as_me:$LINENO: result: $CC" >&5
3423 echo "${ECHO_T}$CC" >&6; }
3424 else
3425   { echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6; }
3427 fi
3428
3429
3430 fi
3431 if test -z "$ac_cv_prog_CC"; then
3432   ac_ct_CC=$CC
3433   # Extract the first word of "gcc", so it can be a program name with args.
3434 set dummy gcc; ac_word=$2
3435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3438   echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440   if test -n "$ac_ct_CC"; then
3441   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3442 else
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3445 do
3446   IFS=$as_save_IFS
3447   test -z "$as_dir" && as_dir=.
3448   for ac_exec_ext in '' $ac_executable_extensions; do
3449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3450     ac_cv_prog_ac_ct_CC="gcc"
3451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3452     break 2
3453   fi
3454 done
3455 done
3456 IFS=$as_save_IFS
3457
3458 fi
3459 fi
3460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3461 if test -n "$ac_ct_CC"; then
3462   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3463 echo "${ECHO_T}$ac_ct_CC" >&6; }
3464 else
3465   { echo "$as_me:$LINENO: result: no" >&5
3466 echo "${ECHO_T}no" >&6; }
3467 fi
3468
3469   if test "x$ac_ct_CC" = x; then
3470     CC=""
3471   else
3472     case $cross_compiling:$ac_tool_warned in
3473 yes:)
3474 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3475 whose name does not start with the host triplet.  If you think this
3476 configuration is useful to you, please write to autoconf@gnu.org." >&5
3477 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3478 whose name does not start with the host triplet.  If you think this
3479 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3480 ac_tool_warned=yes ;;
3481 esac
3482     CC=$ac_ct_CC
3483   fi
3484 else
3485   CC="$ac_cv_prog_CC"
3486 fi
3487
3488 if test -z "$CC"; then
3489           if test -n "$ac_tool_prefix"; then
3490     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3491 set dummy ${ac_tool_prefix}cc; ac_word=$2
3492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3494 if test "${ac_cv_prog_CC+set}" = set; then
3495   echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497   if test -n "$CC"; then
3498   ac_cv_prog_CC="$CC" # Let the user override the test.
3499 else
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3502 do
3503   IFS=$as_save_IFS
3504   test -z "$as_dir" && as_dir=.
3505   for ac_exec_ext in '' $ac_executable_extensions; do
3506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507     ac_cv_prog_CC="${ac_tool_prefix}cc"
3508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3509     break 2
3510   fi
3511 done
3512 done
3513 IFS=$as_save_IFS
3514
3515 fi
3516 fi
3517 CC=$ac_cv_prog_CC
3518 if test -n "$CC"; then
3519   { echo "$as_me:$LINENO: result: $CC" >&5
3520 echo "${ECHO_T}$CC" >&6; }
3521 else
3522   { echo "$as_me:$LINENO: result: no" >&5
3523 echo "${ECHO_T}no" >&6; }
3524 fi
3525
3526
3527   fi
3528 fi
3529 if test -z "$CC"; then
3530   # Extract the first word of "cc", so it can be a program name with args.
3531 set dummy cc; ac_word=$2
3532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3534 if test "${ac_cv_prog_CC+set}" = set; then
3535   echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537   if test -n "$CC"; then
3538   ac_cv_prog_CC="$CC" # Let the user override the test.
3539 else
3540   ac_prog_rejected=no
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3543 do
3544   IFS=$as_save_IFS
3545   test -z "$as_dir" && as_dir=.
3546   for ac_exec_ext in '' $ac_executable_extensions; do
3547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3548     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3549        ac_prog_rejected=yes
3550        continue
3551      fi
3552     ac_cv_prog_CC="cc"
3553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3554     break 2
3555   fi
3556 done
3557 done
3558 IFS=$as_save_IFS
3559
3560 if test $ac_prog_rejected = yes; then
3561   # We found a bogon in the path, so make sure we never use it.
3562   set dummy $ac_cv_prog_CC
3563   shift
3564   if test $# != 0; then
3565     # We chose a different compiler from the bogus one.
3566     # However, it has the same basename, so the bogon will be chosen
3567     # first if we set CC to just the basename; use the full file name.
3568     shift
3569     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3570   fi
3571 fi
3572 fi
3573 fi
3574 CC=$ac_cv_prog_CC
3575 if test -n "$CC"; then
3576   { echo "$as_me:$LINENO: result: $CC" >&5
3577 echo "${ECHO_T}$CC" >&6; }
3578 else
3579   { echo "$as_me:$LINENO: result: no" >&5
3580 echo "${ECHO_T}no" >&6; }
3581 fi
3582
3583
3584 fi
3585 if test -z "$CC"; then
3586   if test -n "$ac_tool_prefix"; then
3587   for ac_prog in cl.exe
3588   do
3589     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3593 if test "${ac_cv_prog_CC+set}" = set; then
3594   echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596   if test -n "$CC"; then
3597   ac_cv_prog_CC="$CC" # Let the user override the test.
3598 else
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH
3601 do
3602   IFS=$as_save_IFS
3603   test -z "$as_dir" && as_dir=.
3604   for ac_exec_ext in '' $ac_executable_extensions; do
3605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3606     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3608     break 2
3609   fi
3610 done
3611 done
3612 IFS=$as_save_IFS
3613
3614 fi
3615 fi
3616 CC=$ac_cv_prog_CC
3617 if test -n "$CC"; then
3618   { echo "$as_me:$LINENO: result: $CC" >&5
3619 echo "${ECHO_T}$CC" >&6; }
3620 else
3621   { echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6; }
3623 fi
3624
3625
3626     test -n "$CC" && break
3627   done
3628 fi
3629 if test -z "$CC"; then
3630   ac_ct_CC=$CC
3631   for ac_prog in cl.exe
3632 do
3633   # Extract the first word of "$ac_prog", so it can be a program name with args.
3634 set dummy $ac_prog; ac_word=$2
3635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3638   echo $ECHO_N "(cached) $ECHO_C" >&6
3639 else
3640   if test -n "$ac_ct_CC"; then
3641   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3642 else
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH
3645 do
3646   IFS=$as_save_IFS
3647   test -z "$as_dir" && as_dir=.
3648   for ac_exec_ext in '' $ac_executable_extensions; do
3649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3650     ac_cv_prog_ac_ct_CC="$ac_prog"
3651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3652     break 2
3653   fi
3654 done
3655 done
3656 IFS=$as_save_IFS
3657
3658 fi
3659 fi
3660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3661 if test -n "$ac_ct_CC"; then
3662   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3663 echo "${ECHO_T}$ac_ct_CC" >&6; }
3664 else
3665   { echo "$as_me:$LINENO: result: no" >&5
3666 echo "${ECHO_T}no" >&6; }
3667 fi
3668
3669
3670   test -n "$ac_ct_CC" && break
3671 done
3672
3673   if test "x$ac_ct_CC" = x; then
3674     CC=""
3675   else
3676     case $cross_compiling:$ac_tool_warned in
3677 yes:)
3678 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3679 whose name does not start with the host triplet.  If you think this
3680 configuration is useful to you, please write to autoconf@gnu.org." >&5
3681 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3682 whose name does not start with the host triplet.  If you think this
3683 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3684 ac_tool_warned=yes ;;
3685 esac
3686     CC=$ac_ct_CC
3687   fi
3688 fi
3689
3690 fi
3691
3692
3693 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3694 See \`config.log' for more details." >&5
3695 echo "$as_me: error: no acceptable C compiler found in \$PATH
3696 See \`config.log' for more details." >&2;}
3697    { (exit 1); exit 1; }; }
3698
3699 # Provide some information about the compiler.
3700 echo "$as_me:$LINENO: checking for C compiler version" >&5
3701 ac_compiler=`set X $ac_compile; echo $2`
3702 { (ac_try="$ac_compiler --version >&5"
3703 case "(($ac_try" in
3704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705   *) ac_try_echo=$ac_try;;
3706 esac
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708   (eval "$ac_compiler --version >&5") 2>&5
3709   ac_status=$?
3710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711   (exit $ac_status); }
3712 { (ac_try="$ac_compiler -v >&5"
3713 case "(($ac_try" in
3714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715   *) ac_try_echo=$ac_try;;
3716 esac
3717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3718   (eval "$ac_compiler -v >&5") 2>&5
3719   ac_status=$?
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); }
3722 { (ac_try="$ac_compiler -V >&5"
3723 case "(($ac_try" in
3724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725   *) ac_try_echo=$ac_try;;
3726 esac
3727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3728   (eval "$ac_compiler -V >&5") 2>&5
3729   ac_status=$?
3730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731   (exit $ac_status); }
3732
3733 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3734 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3735 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3736   echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738   cat >conftest.$ac_ext <<_ACEOF
3739 /* confdefs.h.  */
3740 _ACEOF
3741 cat confdefs.h >>conftest.$ac_ext
3742 cat >>conftest.$ac_ext <<_ACEOF
3743 /* end confdefs.h.  */
3744
3745 int
3746 main ()
3747 {
3748 #ifndef __GNUC__
3749        choke me
3750 #endif
3751
3752   ;
3753   return 0;
3754 }
3755 _ACEOF
3756 rm -f conftest.$ac_objext
3757 if { (ac_try="$ac_compile"
3758 case "(($ac_try" in
3759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760   *) ac_try_echo=$ac_try;;
3761 esac
3762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3763   (eval "$ac_compile") 2>conftest.er1
3764   ac_status=$?
3765   grep -v '^ *+' conftest.er1 >conftest.err
3766   rm -f conftest.er1
3767   cat conftest.err >&5
3768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769   (exit $ac_status); } && {
3770          test -z "$ac_c_werror_flag" ||
3771          test ! -s conftest.err
3772        } && test -s conftest.$ac_objext; then
3773   ac_compiler_gnu=yes
3774 else
3775   echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3777
3778         ac_compiler_gnu=no
3779 fi
3780
3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3783
3784 fi
3785 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3786 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3787 GCC=`test $ac_compiler_gnu = yes && echo yes`
3788 ac_test_CFLAGS=${CFLAGS+set}
3789 ac_save_CFLAGS=$CFLAGS
3790 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3791 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3792 if test "${ac_cv_prog_cc_g+set}" = set; then
3793   echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795   ac_save_c_werror_flag=$ac_c_werror_flag
3796    ac_c_werror_flag=yes
3797    ac_cv_prog_cc_g=no
3798    CFLAGS="-g"
3799    cat >conftest.$ac_ext <<_ACEOF
3800 /* confdefs.h.  */
3801 _ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h.  */
3805
3806 int
3807 main ()
3808 {
3809
3810   ;
3811   return 0;
3812 }
3813 _ACEOF
3814 rm -f conftest.$ac_objext
3815 if { (ac_try="$ac_compile"
3816 case "(($ac_try" in
3817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818   *) ac_try_echo=$ac_try;;
3819 esac
3820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3821   (eval "$ac_compile") 2>conftest.er1
3822   ac_status=$?
3823   grep -v '^ *+' conftest.er1 >conftest.err
3824   rm -f conftest.er1
3825   cat conftest.err >&5
3826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827   (exit $ac_status); } && {
3828          test -z "$ac_c_werror_flag" ||
3829          test ! -s conftest.err
3830        } && test -s conftest.$ac_objext; then
3831   ac_cv_prog_cc_g=yes
3832 else
3833   echo "$as_me: failed program was:" >&5
3834 sed 's/^/| /' conftest.$ac_ext >&5
3835
3836         CFLAGS=""
3837       cat >conftest.$ac_ext <<_ACEOF
3838 /* confdefs.h.  */
3839 _ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h.  */
3843
3844 int
3845 main ()
3846 {
3847
3848   ;
3849   return 0;
3850 }
3851 _ACEOF
3852 rm -f conftest.$ac_objext
3853 if { (ac_try="$ac_compile"
3854 case "(($ac_try" in
3855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856   *) ac_try_echo=$ac_try;;
3857 esac
3858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3859   (eval "$ac_compile") 2>conftest.er1
3860   ac_status=$?
3861   grep -v '^ *+' conftest.er1 >conftest.err
3862   rm -f conftest.er1
3863   cat conftest.err >&5
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); } && {
3866          test -z "$ac_c_werror_flag" ||
3867          test ! -s conftest.err
3868        } && test -s conftest.$ac_objext; then
3869   :
3870 else
3871   echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3873
3874         ac_c_werror_flag=$ac_save_c_werror_flag
3875          CFLAGS="-g"
3876          cat >conftest.$ac_ext <<_ACEOF
3877 /* confdefs.h.  */
3878 _ACEOF
3879 cat confdefs.h >>conftest.$ac_ext
3880 cat >>conftest.$ac_ext <<_ACEOF
3881 /* end confdefs.h.  */
3882
3883 int
3884 main ()
3885 {
3886
3887   ;
3888   return 0;
3889 }
3890 _ACEOF
3891 rm -f conftest.$ac_objext
3892 if { (ac_try="$ac_compile"
3893 case "(($ac_try" in
3894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895   *) ac_try_echo=$ac_try;;
3896 esac
3897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3898   (eval "$ac_compile") 2>conftest.er1
3899   ac_status=$?
3900   grep -v '^ *+' conftest.er1 >conftest.err
3901   rm -f conftest.er1
3902   cat conftest.err >&5
3903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904   (exit $ac_status); } && {
3905          test -z "$ac_c_werror_flag" ||
3906          test ! -s conftest.err
3907        } && test -s conftest.$ac_objext; then
3908   ac_cv_prog_cc_g=yes
3909 else
3910   echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3912
3913
3914 fi
3915
3916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3917 fi
3918
3919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920 fi
3921
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923    ac_c_werror_flag=$ac_save_c_werror_flag
3924 fi
3925 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3926 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3927 if test "$ac_test_CFLAGS" = set; then
3928   CFLAGS=$ac_save_CFLAGS
3929 elif test $ac_cv_prog_cc_g = yes; then
3930   if test "$GCC" = yes; then
3931     CFLAGS="-g -O2"
3932   else
3933     CFLAGS="-g"
3934   fi
3935 else
3936   if test "$GCC" = yes; then
3937     CFLAGS="-O2"
3938   else
3939     CFLAGS=
3940   fi
3941 fi
3942 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3943 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3944 if test "${ac_cv_prog_cc_c89+set}" = set; then
3945   echo $ECHO_N "(cached) $ECHO_C" >&6
3946 else
3947   ac_cv_prog_cc_c89=no
3948 ac_save_CC=$CC
3949 cat >conftest.$ac_ext <<_ACEOF
3950 /* confdefs.h.  */
3951 _ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h.  */
3955 #include <stdarg.h>
3956 #include <stdio.h>
3957 #include <sys/types.h>
3958 #include <sys/stat.h>
3959 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3960 struct buf { int x; };
3961 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3962 static char *e (p, i)
3963      char **p;
3964      int i;
3965 {
3966   return p[i];
3967 }
3968 static char *f (char * (*g) (char **, int), char **p, ...)
3969 {
3970   char *s;
3971   va_list v;
3972   va_start (v,p);
3973   s = g (p, va_arg (v,int));
3974   va_end (v);
3975   return s;
3976 }
3977
3978 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3979    function prototypes and stuff, but not '\xHH' hex character constants.
3980    These don't provoke an error unfortunately, instead are silently treated
3981    as 'x'.  The following induces an error, until -std is added to get
3982    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3983    array size at least.  It's necessary to write '\x00'==0 to get something
3984    that's true only with -std.  */
3985 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3986
3987 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3988    inside strings and character constants.  */
3989 #define FOO(x) 'x'
3990 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3991
3992 int test (int i, double x);
3993 struct s1 {int (*f) (int a);};
3994 struct s2 {int (*f) (double a);};
3995 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3996 int argc;
3997 char **argv;
3998 int
3999 main ()
4000 {
4001 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4002   ;
4003   return 0;
4004 }
4005 _ACEOF
4006 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4007         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4008 do
4009   CC="$ac_save_CC $ac_arg"
4010   rm -f conftest.$ac_objext
4011 if { (ac_try="$ac_compile"
4012 case "(($ac_try" in
4013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014   *) ac_try_echo=$ac_try;;
4015 esac
4016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4017   (eval "$ac_compile") 2>conftest.er1
4018   ac_status=$?
4019   grep -v '^ *+' conftest.er1 >conftest.err
4020   rm -f conftest.er1
4021   cat conftest.err >&5
4022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023   (exit $ac_status); } && {
4024          test -z "$ac_c_werror_flag" ||
4025          test ! -s conftest.err
4026        } && test -s conftest.$ac_objext; then
4027   ac_cv_prog_cc_c89=$ac_arg
4028 else
4029   echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4031
4032
4033 fi
4034
4035 rm -f core conftest.err conftest.$ac_objext
4036   test "x$ac_cv_prog_cc_c89" != "xno" && break
4037 done
4038 rm -f conftest.$ac_ext
4039 CC=$ac_save_CC
4040
4041 fi
4042 # AC_CACHE_VAL
4043 case "x$ac_cv_prog_cc_c89" in
4044   x)
4045     { echo "$as_me:$LINENO: result: none needed" >&5
4046 echo "${ECHO_T}none needed" >&6; } ;;
4047   xno)
4048     { echo "$as_me:$LINENO: result: unsupported" >&5
4049 echo "${ECHO_T}unsupported" >&6; } ;;
4050   *)
4051     CC="$CC $ac_cv_prog_cc_c89"
4052     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4053 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4054 esac
4055
4056
4057 ac_ext=c
4058 ac_cpp='$CPP $CPPFLAGS'
4059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4062
4063 depcc="$CC"   am_compiler_list=
4064
4065 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4066 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4067 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4068   echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4071   # We make a subdir and do the tests there.  Otherwise we can end up
4072   # making bogus files that we don't know about and never remove.  For
4073   # instance it was reported that on HP-UX the gcc test will end up
4074   # making a dummy file named `D' -- because `-MD' means `put the output
4075   # in D'.
4076   mkdir conftest.dir
4077   # Copy depcomp to subdir because otherwise we won't find it if we're
4078   # using a relative directory.
4079   cp "$am_depcomp" conftest.dir
4080   cd conftest.dir
4081   # We will build objects and dependencies in a subdirectory because
4082   # it helps to detect inapplicable dependency modes.  For instance
4083   # both Tru64's cc and ICC support -MD to output dependencies as a
4084   # side effect of compilation, but ICC will put the dependencies in
4085   # the current directory while Tru64 will put them in the object
4086   # directory.
4087   mkdir sub
4088
4089   am_cv_CC_dependencies_compiler_type=none
4090   if test "$am_compiler_list" = ""; then
4091      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4092   fi
4093   for depmode in $am_compiler_list; do
4094     # Setup a source with many dependencies, because some compilers
4095     # like to wrap large dependency lists on column 80 (with \), and
4096     # we should not choose a depcomp mode which is confused by this.
4097     #
4098     # We need to recreate these files for each test, as the compiler may
4099     # overwrite some of them when testing with obscure command lines.
4100     # This happens at least with the AIX C compiler.
4101     : > sub/conftest.c
4102     for i in 1 2 3 4 5 6; do
4103       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4104       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4105       # Solaris 8's {/usr,}/bin/sh.
4106       touch sub/conftst$i.h
4107     done
4108     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4109
4110     case $depmode in
4111     nosideeffect)
4112       # after this tag, mechanisms are not by side-effect, so they'll
4113       # only be used when explicitly requested
4114       if test "x$enable_dependency_tracking" = xyes; then
4115         continue
4116       else
4117         break
4118       fi
4119       ;;
4120     none) break ;;
4121     esac
4122     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4123     # mode.  It turns out that the SunPro C++ compiler does not properly
4124     # handle `-M -o', and we need to detect this.
4125     if depmode=$depmode \
4126        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4127        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4128        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4129          >/dev/null 2>conftest.err &&
4130        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4131        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4132        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4133       # icc doesn't choke on unknown options, it will just issue warnings
4134       # or remarks (even with -Werror).  So we grep stderr for any message
4135       # that says an option was ignored or not supported.
4136       # When given -MP, icc 7.0 and 7.1 complain thusly:
4137       #   icc: Command line warning: ignoring option '-M'; no argument required
4138       # The diagnosis changed in icc 8.0:
4139       #   icc: Command line remark: option '-MP' not supported
4140       if (grep 'ignoring option' conftest.err ||
4141           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4142         am_cv_CC_dependencies_compiler_type=$depmode
4143         break
4144       fi
4145     fi
4146   done
4147
4148   cd ..
4149   rm -rf conftest.dir
4150 else
4151   am_cv_CC_dependencies_compiler_type=none
4152 fi
4153
4154 fi
4155 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4156 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4157 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4158
4159
4160
4161 if
4162   test "x$enable_dependency_tracking" != xno \
4163   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4164   am__fastdepCC_TRUE=
4165   am__fastdepCC_FALSE='#'
4166 else
4167   am__fastdepCC_TRUE='#'
4168   am__fastdepCC_FALSE=
4169 fi
4170
4171
4172 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4173 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4174 if test "${lt_cv_path_SED+set}" = set; then
4175   echo $ECHO_N "(cached) $ECHO_C" >&6
4176 else
4177   # Loop through the user's path and test for sed and gsed.
4178 # Then use that list of sed's as ones to test for truncation.
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH
4181 do
4182   IFS=$as_save_IFS
4183   test -z "$as_dir" && as_dir=.
4184   for lt_ac_prog in sed gsed; do
4185     for ac_exec_ext in '' $ac_executable_extensions; do
4186       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4187         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4188       fi
4189     done
4190   done
4191 done
4192 lt_ac_max=0
4193 lt_ac_count=0
4194 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4195 # along with /bin/sed that truncates output.
4196 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4197   test ! -f $lt_ac_sed && continue
4198   cat /dev/null > conftest.in
4199   lt_ac_count=0
4200   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4201   # Check for GNU sed and select it if it is found.
4202   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4203     lt_cv_path_SED=$lt_ac_sed
4204     break
4205   fi
4206   while true; do
4207     cat conftest.in conftest.in >conftest.tmp
4208     mv conftest.tmp conftest.in
4209     cp conftest.in conftest.nl
4210     echo >>conftest.nl
4211     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4212     cmp -s conftest.out conftest.nl || break
4213     # 10000 chars as input seems more than enough
4214     test $lt_ac_count -gt 10 && break
4215     lt_ac_count=`expr $lt_ac_count + 1`
4216     if test $lt_ac_count -gt $lt_ac_max; then
4217       lt_ac_max=$lt_ac_count
4218       lt_cv_path_SED=$lt_ac_sed
4219     fi
4220   done
4221 done
4222
4223 fi
4224
4225 SED=$lt_cv_path_SED
4226 { echo "$as_me:$LINENO: result: $SED" >&5
4227 echo "${ECHO_T}$SED" >&6; }
4228
4229 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4230 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4231 if test "${ac_cv_path_GREP+set}" = set; then
4232   echo $ECHO_N "(cached) $ECHO_C" >&6
4233 else
4234   # Extract the first word of "grep ggrep" to use in msg output
4235 if test -z "$GREP"; then
4236 set dummy grep ggrep; ac_prog_name=$2
4237 if test "${ac_cv_path_GREP+set}" = set; then
4238   echo $ECHO_N "(cached) $ECHO_C" >&6
4239 else
4240   ac_path_GREP_found=false
4241 # Loop through the user's path and test for each of PROGNAME-LIST
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4244 do
4245   IFS=$as_save_IFS
4246   test -z "$as_dir" && as_dir=.
4247   for ac_prog in grep ggrep; do
4248   for ac_exec_ext in '' $ac_executable_extensions; do
4249     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4250     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4251     # Check for GNU ac_path_GREP and select it if it is found.
4252   # Check for GNU $ac_path_GREP
4253 case `"$ac_path_GREP" --version 2>&1` in
4254 *GNU*)
4255   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4256 *)
4257   ac_count=0
4258   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4259   while :
4260   do
4261     cat "conftest.in" "conftest.in" >"conftest.tmp"
4262     mv "conftest.tmp" "conftest.in"
4263     cp "conftest.in" "conftest.nl"
4264     echo 'GREP' >> "conftest.nl"
4265     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4266     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4267     ac_count=`expr $ac_count + 1`
4268     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4269       # Best one so far, save it but keep looking for a better one
4270       ac_cv_path_GREP="$ac_path_GREP"
4271       ac_path_GREP_max=$ac_count
4272     fi
4273     # 10*(2^10) chars as input seems more than enough
4274     test $ac_count -gt 10 && break
4275   done
4276   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4277 esac
4278
4279
4280     $ac_path_GREP_found && break 3
4281   done
4282 done
4283
4284 done
4285 IFS=$as_save_IFS
4286
4287
4288 fi
4289
4290 GREP="$ac_cv_path_GREP"
4291 if test -z "$GREP"; then
4292   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4293 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4294    { (exit 1); exit 1; }; }
4295 fi
4296
4297 else
4298   ac_cv_path_GREP=$GREP
4299 fi
4300
4301
4302 fi
4303 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4304 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4305  GREP="$ac_cv_path_GREP"
4306
4307
4308 { echo "$as_me:$LINENO: checking for egrep" >&5
4309 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4310 if test "${ac_cv_path_EGREP+set}" = set; then
4311   echo $ECHO_N "(cached) $ECHO_C" >&6
4312 else
4313   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4314    then ac_cv_path_EGREP="$GREP -E"
4315    else
4316      # Extract the first word of "egrep" to use in msg output
4317 if test -z "$EGREP"; then
4318 set dummy egrep; ac_prog_name=$2
4319 if test "${ac_cv_path_EGREP+set}" = set; then
4320   echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322   ac_path_EGREP_found=false
4323 # Loop through the user's path and test for each of PROGNAME-LIST
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4326 do
4327   IFS=$as_save_IFS
4328   test -z "$as_dir" && as_dir=.
4329   for ac_prog in egrep; do
4330   for ac_exec_ext in '' $ac_executable_extensions; do
4331     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4332     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4333     # Check for GNU ac_path_EGREP and select it if it is found.
4334   # Check for GNU $ac_path_EGREP
4335 case `"$ac_path_EGREP" --version 2>&1` in
4336 *GNU*)
4337   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4338 *)
4339   ac_count=0
4340   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4341   while :
4342   do
4343     cat "conftest.in" "conftest.in" >"conftest.tmp"
4344     mv "conftest.tmp" "conftest.in"
4345     cp "conftest.in" "conftest.nl"
4346     echo 'EGREP' >> "conftest.nl"
4347     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4348     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4349     ac_count=`expr $ac_count + 1`
4350     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4351       # Best one so far, save it but keep looking for a better one
4352       ac_cv_path_EGREP="$ac_path_EGREP"
4353       ac_path_EGREP_max=$ac_count
4354     fi
4355     # 10*(2^10) chars as input seems more than enough
4356     test $ac_count -gt 10 && break
4357   done
4358   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4359 esac
4360
4361
4362     $ac_path_EGREP_found && break 3
4363   done
4364 done
4365
4366 done
4367 IFS=$as_save_IFS
4368
4369
4370 fi
4371
4372 EGREP="$ac_cv_path_EGREP"
4373 if test -z "$EGREP"; then
4374   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4375 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4376    { (exit 1); exit 1; }; }
4377 fi
4378
4379 else
4380   ac_cv_path_EGREP=$EGREP
4381 fi
4382
4383
4384    fi
4385 fi
4386 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4387 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4388  EGREP="$ac_cv_path_EGREP"
4389
4390
4391
4392 # Check whether --with-gnu-ld was given.
4393 if test "${with_gnu_ld+set}" = set; then
4394   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4395 else
4396   with_gnu_ld=no
4397 fi
4398
4399 ac_prog=ld
4400 if test "$GCC" = yes; then
4401   # Check if gcc -print-prog-name=ld gives a path.
4402   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4403 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4404   case $host in
4405   *-*-mingw*)
4406     # gcc leaves a trailing carriage return which upsets mingw
4407     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4408   *)
4409     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4410   esac
4411   case $ac_prog in
4412     # Accept absolute paths.
4413     [\\/]* | ?:[\\/]*)
4414       re_direlt='/[^/][^/]*/\.\./'
4415       # Canonicalize the pathname of ld
4416       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4417       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4418         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4419       done
4420       test -z "$LD" && LD="$ac_prog"
4421       ;;
4422   "")
4423     # If it fails, then pretend we aren't using GCC.
4424     ac_prog=ld
4425     ;;
4426   *)
4427     # If it is relative, then search for the first ld in PATH.
4428     with_gnu_ld=unknown
4429     ;;
4430   esac
4431 elif test "$with_gnu_ld" = yes; then
4432   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4433 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4434 else
4435   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4436 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4437 fi
4438 if test "${lt_cv_path_LD+set}" = set; then
4439   echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441   if test -z "$LD"; then
4442   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4443   for ac_dir in $PATH; do
4444     IFS="$lt_save_ifs"
4445     test -z "$ac_dir" && ac_dir=.
4446     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4447       lt_cv_path_LD="$ac_dir/$ac_prog"
4448       # Check to see if the program is GNU ld.  I'd rather use --version,
4449       # but apparently some variants of GNU ld only accept -v.
4450       # Break only if it was the GNU/non-GNU ld that we prefer.
4451       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4452       *GNU* | *'with BFD'*)
4453         test "$with_gnu_ld" != no && break
4454         ;;
4455       *)
4456         test "$with_gnu_ld" != yes && break
4457         ;;
4458       esac
4459     fi
4460   done
4461   IFS="$lt_save_ifs"
4462 else
4463   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4464 fi
4465 fi
4466
4467 LD="$lt_cv_path_LD"
4468 if test -n "$LD"; then
4469   { echo "$as_me:$LINENO: result: $LD" >&5
4470 echo "${ECHO_T}$LD" >&6; }
4471 else
4472   { echo "$as_me:$LINENO: result: no" >&5
4473 echo "${ECHO_T}no" >&6; }
4474 fi
4475 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4476 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4477    { (exit 1); exit 1; }; }
4478 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4479 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4480 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4484 case `$LD -v 2>&1 </dev/null` in
4485 *GNU* | *'with BFD'*)
4486   lt_cv_prog_gnu_ld=yes
4487   ;;
4488 *)
4489   lt_cv_prog_gnu_ld=no
4490   ;;
4491 esac
4492 fi
4493 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4494 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4495 with_gnu_ld=$lt_cv_prog_gnu_ld
4496
4497
4498 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4499 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4500 if test "${lt_cv_ld_reload_flag+set}" = set; then
4501   echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503   lt_cv_ld_reload_flag='-r'
4504 fi
4505 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4506 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4507 reload_flag=$lt_cv_ld_reload_flag
4508 case $reload_flag in
4509 "" | " "*) ;;
4510 *) reload_flag=" $reload_flag" ;;
4511 esac
4512 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4513 case $host_os in
4514   darwin*)
4515     if test "$GCC" = yes; then
4516       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4517     else
4518       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4519     fi
4520     ;;
4521 esac
4522
4523 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4524 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4525 if test "${lt_cv_path_NM+set}" = set; then
4526   echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528   if test -n "$NM"; then
4529   # Let the user override the test.
4530   lt_cv_path_NM="$NM"
4531 else
4532   lt_nm_to_check="${ac_tool_prefix}nm"
4533   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4534     lt_nm_to_check="$lt_nm_to_check nm"
4535   fi
4536   for lt_tmp_nm in $lt_nm_to_check; do
4537     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4538     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4539       IFS="$lt_save_ifs"
4540       test -z "$ac_dir" && ac_dir=.
4541       tmp_nm="$ac_dir/$lt_tmp_nm"
4542       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4543         # Check to see if the nm accepts a BSD-compat flag.
4544         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4545         #   nm: unknown option "B" ignored
4546         # Tru64's nm complains that /dev/null is an invalid object file
4547         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4548         */dev/null* | *'Invalid file or object type'*)
4549           lt_cv_path_NM="$tmp_nm -B"
4550           break
4551           ;;
4552         *)
4553           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4554           */dev/null*)
4555             lt_cv_path_NM="$tmp_nm -p"
4556             break
4557             ;;
4558           *)
4559             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4560             continue # so that we can try to find one that supports BSD flags
4561             ;;
4562           esac
4563           ;;
4564         esac
4565       fi
4566     done
4567     IFS="$lt_save_ifs"
4568   done
4569   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4570 fi
4571 fi
4572 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4573 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4574 NM="$lt_cv_path_NM"
4575
4576 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4577 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4578 LN_S=$as_ln_s
4579 if test "$LN_S" = "ln -s"; then
4580   { echo "$as_me:$LINENO: result: yes" >&5
4581 echo "${ECHO_T}yes" >&6; }
4582 else
4583   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4584 echo "${ECHO_T}no, using $LN_S" >&6; }
4585 fi
4586
4587 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4588 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4589 if test "${lt_cv_deplibs_check_method+set}" = set; then
4590   echo $ECHO_N "(cached) $ECHO_C" >&6
4591 else
4592   lt_cv_file_magic_cmd='$MAGIC_CMD'
4593 lt_cv_file_magic_test_file=
4594 lt_cv_deplibs_check_method='unknown'
4595 # Need to set the preceding variable on all platforms that support
4596 # interlibrary dependencies.
4597 # 'none' -- dependencies not supported.
4598 # `unknown' -- same as none, but documents that we really don't know.
4599 # 'pass_all' -- all dependencies passed with no checks.
4600 # 'test_compile' -- check by making test program.
4601 # 'file_magic [[regex]]' -- check by looking for files in library path
4602 # which responds to the $file_magic_cmd with a given extended regex.
4603 # If you have `file' or equivalent on your system and you're not sure
4604 # whether `pass_all' will *always* work, you probably want this one.
4605
4606 case $host_os in
4607 aix4* | aix5*)
4608   lt_cv_deplibs_check_method=pass_all
4609   ;;
4610
4611 beos*)
4612   lt_cv_deplibs_check_method=pass_all
4613   ;;
4614
4615 bsdi[45]*)
4616   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4617   lt_cv_file_magic_cmd='/usr/bin/file -L'
4618   lt_cv_file_magic_test_file=/shlib/libc.so
4619   ;;
4620
4621 cygwin*)
4622   # func_win32_libid is a shell function defined in ltmain.sh
4623   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4624   lt_cv_file_magic_cmd='func_win32_libid'
4625   ;;
4626
4627 mingw* | pw32*)
4628   # Base MSYS/MinGW do not provide the 'file' command needed by
4629   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4630   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4631   lt_cv_file_magic_cmd='$OBJDUMP -f'
4632   ;;
4633
4634 darwin* | rhapsody*)
4635   lt_cv_deplibs_check_method=pass_all
4636   ;;
4637
4638 freebsd* | dragonfly*)
4639   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4640     case $host_cpu in
4641     i*86 )
4642       # Not sure whether the presence of OpenBSD here was a mistake.
4643       # Let's accept both of them until this is cleared up.
4644       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4645       lt_cv_file_magic_cmd=/usr/bin/file
4646       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4647       ;;
4648     esac
4649   else
4650     lt_cv_deplibs_check_method=pass_all
4651   fi
4652   ;;
4653
4654 gnu*)
4655   lt_cv_deplibs_check_method=pass_all
4656   ;;
4657
4658 hpux10.20* | hpux11*)
4659   lt_cv_file_magic_cmd=/usr/bin/file
4660   case $host_cpu in
4661   ia64*)
4662     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4663     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4664     ;;
4665   hppa*64*)
4666     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]'
4667     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4668     ;;
4669   *)
4670     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4671     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4672     ;;
4673   esac
4674   ;;
4675
4676 interix3*)
4677   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4678   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4679   ;;
4680
4681 irix5* | irix6* | nonstopux*)
4682   case $LD in
4683   *-32|*"-32 ") libmagic=32-bit;;
4684   *-n32|*"-n32 ") libmagic=N32;;
4685   *-64|*"-64 ") libmagic=64-bit;;
4686   *) libmagic=never-match;;
4687   esac
4688   lt_cv_deplibs_check_method=pass_all
4689   ;;
4690
4691 # This must be Linux ELF.
4692 linux* | k*bsd*-gnu)
4693   lt_cv_deplibs_check_method=pass_all
4694   ;;
4695
4696 netbsd* | netbsdelf*-gnu)
4697   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4698     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4699   else
4700     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4701   fi
4702   ;;
4703
4704 newos6*)
4705   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4706   lt_cv_file_magic_cmd=/usr/bin/file
4707   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4708   ;;
4709
4710 nto-qnx*)
4711   lt_cv_deplibs_check_method=unknown
4712   ;;
4713
4714 openbsd*)
4715   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4716     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4717   else
4718     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4719   fi
4720   ;;
4721
4722 osf3* | osf4* | osf5*)
4723   lt_cv_deplibs_check_method=pass_all
4724   ;;
4725
4726 solaris*)
4727   lt_cv_deplibs_check_method=pass_all
4728   ;;
4729
4730 sysv4 | sysv4.3*)
4731   case $host_vendor in
4732   motorola)
4733     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]'
4734     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4735     ;;
4736   ncr)
4737     lt_cv_deplibs_check_method=pass_all
4738     ;;
4739   sequent)
4740     lt_cv_file_magic_cmd='/bin/file'
4741     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4742     ;;
4743   sni)
4744     lt_cv_file_magic_cmd='/bin/file'
4745     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4746     lt_cv_file_magic_test_file=/lib/libc.so
4747     ;;
4748   siemens)
4749     lt_cv_deplibs_check_method=pass_all
4750     ;;
4751   pc)
4752     lt_cv_deplibs_check_method=pass_all
4753     ;;
4754   esac
4755   ;;
4756
4757 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4758   lt_cv_deplibs_check_method=pass_all
4759   ;;
4760 esac
4761
4762 fi
4763 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4764 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4765 file_magic_cmd=$lt_cv_file_magic_cmd
4766 deplibs_check_method=$lt_cv_deplibs_check_method
4767 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4768
4769
4770
4771
4772 # If no C compiler was specified, use CC.
4773 LTCC=${LTCC-"$CC"}
4774
4775 # If no C compiler flags were specified, use CFLAGS.
4776 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4777
4778 # Allow CC to be a program name with arguments.
4779 compiler=$CC
4780
4781
4782 # Check whether --enable-libtool-lock was given.
4783 if test "${enable_libtool_lock+set}" = set; then
4784   enableval=$enable_libtool_lock;
4785 fi
4786
4787 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4788
4789 # Some flags need to be propagated to the compiler or linker for good
4790 # libtool support.
4791 case $host in
4792 ia64-*-hpux*)
4793   # Find out which ABI we are using.
4794   echo 'int i;' > conftest.$ac_ext
4795   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4796   (eval $ac_compile) 2>&5
4797   ac_status=$?
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); }; then
4800     case `/usr/bin/file conftest.$ac_objext` in
4801     *ELF-32*)
4802       HPUX_IA64_MODE="32"
4803       ;;
4804     *ELF-64*)
4805       HPUX_IA64_MODE="64"
4806       ;;
4807     esac
4808   fi
4809   rm -rf conftest*
4810   ;;
4811 *-*-irix6*)
4812   # Find out which ABI we are using.
4813   echo '#line 4813 "configure"' > conftest.$ac_ext
4814   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4815   (eval $ac_compile) 2>&5
4816   ac_status=$?
4817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818   (exit $ac_status); }; then
4819    if test "$lt_cv_prog_gnu_ld" = yes; then
4820     case `/usr/bin/file conftest.$ac_objext` in
4821     *32-bit*)
4822       LD="${LD-ld} -melf32bsmip"
4823       ;;
4824     *N32*)
4825       LD="${LD-ld} -melf32bmipn32"
4826       ;;
4827     *64-bit*)
4828       LD="${LD-ld} -melf64bmip"
4829       ;;
4830     esac
4831    else
4832     case `/usr/bin/file conftest.$ac_objext` in
4833     *32-bit*)
4834       LD="${LD-ld} -32"
4835       ;;
4836     *N32*)
4837       LD="${LD-ld} -n32"
4838       ;;
4839     *64-bit*)
4840       LD="${LD-ld} -64"
4841       ;;
4842     esac
4843    fi
4844   fi
4845   rm -rf conftest*
4846   ;;
4847
4848 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4849   # Find out which ABI we are using.
4850   echo 'int i;' > conftest.$ac_ext
4851   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4852   (eval $ac_compile) 2>&5
4853   ac_status=$?
4854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855   (exit $ac_status); }; then
4856     case `/usr/bin/file conftest.o` in
4857     *32-bit*)
4858       case $host in
4859         x86_64-*linux*)
4860           LD="${LD-ld} -m elf_i386"
4861           ;;
4862         ppc64-*linux*|powerpc64-*linux*)
4863           LD="${LD-ld} -m elf32ppclinux"
4864           ;;
4865         s390x-*linux*)
4866           LD="${LD-ld} -m elf_s390"
4867           ;;
4868         sparc64-*linux*)
4869           LD="${LD-ld} -m elf32_sparc"
4870           ;;
4871       esac
4872       ;;
4873     *64-bit*)
4874       case $host in
4875         x86_64-*linux*)
4876           LD="${LD-ld} -m elf_x86_64"
4877           ;;
4878         ppc*-*linux*|powerpc*-*linux*)
4879           LD="${LD-ld} -m elf64ppc"
4880           ;;
4881         s390*-*linux*)
4882           LD="${LD-ld} -m elf64_s390"
4883           ;;
4884         sparc*-*linux*)
4885           LD="${LD-ld} -m elf64_sparc"
4886           ;;
4887       esac
4888       ;;
4889     esac
4890   fi
4891   rm -rf conftest*
4892   ;;
4893
4894 *-*-sco3.2v5*)
4895   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4896   SAVE_CFLAGS="$CFLAGS"
4897   CFLAGS="$CFLAGS -belf"
4898   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4899 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4900 if test "${lt_cv_cc_needs_belf+set}" = set; then
4901   echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903   ac_ext=c
4904 ac_cpp='$CPP $CPPFLAGS'
4905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4908
4909      cat >conftest.$ac_ext <<_ACEOF
4910 /* confdefs.h.  */
4911 _ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h.  */
4915
4916 int
4917 main ()
4918 {
4919
4920   ;
4921   return 0;
4922 }
4923 _ACEOF
4924 rm -f conftest.$ac_objext conftest$ac_exeext
4925 if { (ac_try="$ac_link"
4926 case "(($ac_try" in
4927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928   *) ac_try_echo=$ac_try;;
4929 esac
4930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931   (eval "$ac_link") 2>conftest.er1
4932   ac_status=$?
4933   grep -v '^ *+' conftest.er1 >conftest.err
4934   rm -f conftest.er1
4935   cat conftest.err >&5
4936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937   (exit $ac_status); } && {
4938          test -z "$ac_c_werror_flag" ||
4939          test ! -s conftest.err
4940        } && test -s conftest$ac_exeext &&
4941        $as_test_x conftest$ac_exeext; then
4942   lt_cv_cc_needs_belf=yes
4943 else
4944   echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4946
4947         lt_cv_cc_needs_belf=no
4948 fi
4949
4950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4951       conftest$ac_exeext conftest.$ac_ext
4952      ac_ext=c
4953 ac_cpp='$CPP $CPPFLAGS'
4954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4957
4958 fi
4959 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4960 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4961   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4962     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4963     CFLAGS="$SAVE_CFLAGS"
4964   fi
4965   ;;
4966 sparc*-*solaris*)
4967   # Find out which ABI we are using.
4968   echo 'int i;' > conftest.$ac_ext
4969   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4970   (eval $ac_compile) 2>&5
4971   ac_status=$?
4972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); }; then
4974     case `/usr/bin/file conftest.o` in
4975     *64-bit*)
4976       case $lt_cv_prog_gnu_ld in
4977       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4978       *)    LD="${LD-ld} -64" ;;
4979       esac
4980       ;;
4981     esac
4982   fi
4983   rm -rf conftest*
4984   ;;
4985
4986
4987 esac
4988
4989 need_locks="$enable_libtool_lock"
4990
4991
4992 ac_ext=c
4993 ac_cpp='$CPP $CPPFLAGS'
4994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4997 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4998 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4999 # On Suns, sometimes $CPP names a directory.
5000 if test -n "$CPP" && test -d "$CPP"; then
5001   CPP=
5002 fi
5003 if test -z "$CPP"; then
5004   if test "${ac_cv_prog_CPP+set}" = set; then
5005   echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007       # Double quotes because CPP needs to be expanded
5008     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5009     do
5010       ac_preproc_ok=false
5011 for ac_c_preproc_warn_flag in '' yes
5012 do
5013   # Use a header file that comes with gcc, so configuring glibc
5014   # with a fresh cross-compiler works.
5015   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5016   # <limits.h> exists even on freestanding compilers.
5017   # On the NeXT, cc -E runs the code through the compiler's parser,
5018   # not just through cpp. "Syntax error" is here to catch this case.
5019   cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h.  */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h.  */
5025 #ifdef __STDC__
5026 # include <limits.h>
5027 #else
5028 # include <assert.h>
5029 #endif
5030                      Syntax error
5031 _ACEOF
5032 if { (ac_try="$ac_cpp conftest.$ac_ext"
5033 case "(($ac_try" in
5034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035   *) ac_try_echo=$ac_try;;
5036 esac
5037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5039   ac_status=$?
5040   grep -v '^ *+' conftest.er1 >conftest.err
5041   rm -f conftest.er1
5042   cat conftest.err >&5
5043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044   (exit $ac_status); } >/dev/null && {
5045          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5046          test ! -s conftest.err
5047        }; then
5048   :
5049 else
5050   echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5052
5053   # Broken: fails on valid input.
5054 continue
5055 fi
5056
5057 rm -f conftest.err conftest.$ac_ext
5058
5059   # OK, works on sane cases.  Now check whether nonexistent headers
5060   # can be detected and how.
5061   cat >conftest.$ac_ext <<_ACEOF
5062 /* confdefs.h.  */
5063 _ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h.  */
5067 #include <ac_nonexistent.h>
5068 _ACEOF
5069 if { (ac_try="$ac_cpp conftest.$ac_ext"
5070 case "(($ac_try" in
5071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072   *) ac_try_echo=$ac_try;;
5073 esac
5074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5075   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5076   ac_status=$?
5077   grep -v '^ *+' conftest.er1 >conftest.err
5078   rm -f conftest.er1
5079   cat conftest.err >&5
5080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081   (exit $ac_status); } >/dev/null && {
5082          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5083          test ! -s conftest.err
5084        }; then
5085   # Broken: success on invalid input.
5086 continue
5087 else
5088   echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5090
5091   # Passes both tests.
5092 ac_preproc_ok=:
5093 break
5094 fi
5095
5096 rm -f conftest.err conftest.$ac_ext
5097
5098 done
5099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5100 rm -f conftest.err conftest.$ac_ext
5101 if $ac_preproc_ok; then
5102   break
5103 fi
5104
5105     done
5106     ac_cv_prog_CPP=$CPP
5107
5108 fi
5109   CPP=$ac_cv_prog_CPP
5110 else
5111   ac_cv_prog_CPP=$CPP
5112 fi
5113 { echo "$as_me:$LINENO: result: $CPP" >&5
5114 echo "${ECHO_T}$CPP" >&6; }
5115 ac_preproc_ok=false
5116 for ac_c_preproc_warn_flag in '' yes
5117 do
5118   # Use a header file that comes with gcc, so configuring glibc
5119   # with a fresh cross-compiler works.
5120   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5121   # <limits.h> exists even on freestanding compilers.
5122   # On the NeXT, cc -E runs the code through the compiler's parser,
5123   # not just through cpp. "Syntax error" is here to catch this case.
5124   cat >conftest.$ac_ext <<_ACEOF
5125 /* confdefs.h.  */
5126 _ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h.  */
5130 #ifdef __STDC__
5131 # include <limits.h>
5132 #else
5133 # include <assert.h>
5134 #endif
5135                      Syntax error
5136 _ACEOF
5137 if { (ac_try="$ac_cpp conftest.$ac_ext"
5138 case "(($ac_try" in
5139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140   *) ac_try_echo=$ac_try;;
5141 esac
5142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5143   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5144   ac_status=$?
5145   grep -v '^ *+' conftest.er1 >conftest.err
5146   rm -f conftest.er1
5147   cat conftest.err >&5
5148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149   (exit $ac_status); } >/dev/null && {
5150          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5151          test ! -s conftest.err
5152        }; then
5153   :
5154 else
5155   echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5157
5158   # Broken: fails on valid input.
5159 continue
5160 fi
5161
5162 rm -f conftest.err conftest.$ac_ext
5163
5164   # OK, works on sane cases.  Now check whether nonexistent headers
5165   # can be detected and how.
5166   cat >conftest.$ac_ext <<_ACEOF
5167 /* confdefs.h.  */
5168 _ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h.  */
5172 #include <ac_nonexistent.h>
5173 _ACEOF
5174 if { (ac_try="$ac_cpp conftest.$ac_ext"
5175 case "(($ac_try" in
5176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177   *) ac_try_echo=$ac_try;;
5178 esac
5179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5181   ac_status=$?
5182   grep -v '^ *+' conftest.er1 >conftest.err
5183   rm -f conftest.er1
5184   cat conftest.err >&5
5185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186   (exit $ac_status); } >/dev/null && {
5187          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5188          test ! -s conftest.err
5189        }; then
5190   # Broken: success on invalid input.
5191 continue
5192 else
5193   echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5195
5196   # Passes both tests.
5197 ac_preproc_ok=:
5198 break
5199 fi
5200
5201 rm -f conftest.err conftest.$ac_ext
5202
5203 done
5204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5205 rm -f conftest.err conftest.$ac_ext
5206 if $ac_preproc_ok; then
5207   :
5208 else
5209   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5210 See \`config.log' for more details." >&5
5211 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5212 See \`config.log' for more details." >&2;}
5213    { (exit 1); exit 1; }; }
5214 fi
5215
5216 ac_ext=c
5217 ac_cpp='$CPP $CPPFLAGS'
5218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5221
5222
5223 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5224 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5225 if test "${ac_cv_header_stdc+set}" = set; then
5226   echo $ECHO_N "(cached) $ECHO_C" >&6
5227 else
5228   cat >conftest.$ac_ext <<_ACEOF
5229 /* confdefs.h.  */
5230 _ACEOF
5231 cat confdefs.h >>conftest.$ac_ext
5232 cat >>conftest.$ac_ext <<_ACEOF
5233 /* end confdefs.h.  */
5234 #include <stdlib.h>
5235 #include <stdarg.h>
5236 #include <string.h>
5237 #include <float.h>
5238
5239 int
5240 main ()
5241 {
5242
5243   ;
5244   return 0;
5245 }
5246 _ACEOF
5247 rm -f conftest.$ac_objext
5248 if { (ac_try="$ac_compile"
5249 case "(($ac_try" in
5250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251   *) ac_try_echo=$ac_try;;
5252 esac
5253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254   (eval "$ac_compile") 2>conftest.er1
5255   ac_status=$?
5256   grep -v '^ *+' conftest.er1 >conftest.err
5257   rm -f conftest.er1
5258   cat conftest.err >&5
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); } && {
5261          test -z "$ac_c_werror_flag" ||
5262          test ! -s conftest.err
5263        } && test -s conftest.$ac_objext; then
5264   ac_cv_header_stdc=yes
5265 else
5266   echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5268
5269         ac_cv_header_stdc=no
5270 fi
5271
5272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273
5274 if test $ac_cv_header_stdc = yes; then
5275   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5276   cat >conftest.$ac_ext <<_ACEOF
5277 /* confdefs.h.  */
5278 _ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h.  */
5282 #include <string.h>
5283
5284 _ACEOF
5285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5286   $EGREP "memchr" >/dev/null 2>&1; then
5287   :
5288 else
5289   ac_cv_header_stdc=no
5290 fi
5291 rm -f conftest*
5292
5293 fi
5294
5295 if test $ac_cv_header_stdc = yes; then
5296   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5297   cat >conftest.$ac_ext <<_ACEOF
5298 /* confdefs.h.  */
5299 _ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h.  */
5303 #include <stdlib.h>
5304
5305 _ACEOF
5306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5307   $EGREP "free" >/dev/null 2>&1; then
5308   :
5309 else
5310   ac_cv_header_stdc=no
5311 fi
5312 rm -f conftest*
5313
5314 fi
5315
5316 if test $ac_cv_header_stdc = yes; then
5317   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5318   if test "$cross_compiling" = yes; then
5319   :
5320 else
5321   cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h.  */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h.  */
5327 #include <ctype.h>
5328 #include <stdlib.h>
5329 #if ((' ' & 0x0FF) == 0x020)
5330 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5331 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5332 #else
5333 # define ISLOWER(c) \
5334                    (('a' <= (c) && (c) <= 'i') \
5335                      || ('j' <= (c) && (c) <= 'r') \
5336                      || ('s' <= (c) && (c) <= 'z'))
5337 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5338 #endif
5339
5340 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5341 int
5342 main ()
5343 {
5344   int i;
5345   for (i = 0; i < 256; i++)
5346     if (XOR (islower (i), ISLOWER (i))
5347         || toupper (i) != TOUPPER (i))
5348       return 2;
5349   return 0;
5350 }
5351 _ACEOF
5352 rm -f conftest$ac_exeext
5353 if { (ac_try="$ac_link"
5354 case "(($ac_try" in
5355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356   *) ac_try_echo=$ac_try;;
5357 esac
5358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359   (eval "$ac_link") 2>&5
5360   ac_status=$?
5361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5363   { (case "(($ac_try" in
5364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365   *) ac_try_echo=$ac_try;;
5366 esac
5367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5368   (eval "$ac_try") 2>&5
5369   ac_status=$?
5370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371   (exit $ac_status); }; }; then
5372   :
5373 else
5374   echo "$as_me: program exited with status $ac_status" >&5
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5377
5378 ( exit $ac_status )
5379 ac_cv_header_stdc=no
5380 fi
5381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5382 fi
5383
5384
5385 fi
5386 fi
5387 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5388 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5389 if test $ac_cv_header_stdc = yes; then
5390
5391 cat >>confdefs.h <<\_ACEOF
5392 #define STDC_HEADERS 1
5393 _ACEOF
5394
5395 fi
5396
5397 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5408                   inttypes.h stdint.h unistd.h
5409 do
5410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5414   echo $ECHO_N "(cached) $ECHO_C" >&6
5415 else
5416   cat >conftest.$ac_ext <<_ACEOF
5417 /* confdefs.h.  */
5418 _ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h.  */
5422 $ac_includes_default
5423
5424 #include <$ac_header>
5425 _ACEOF
5426 rm -f conftest.$ac_objext
5427 if { (ac_try="$ac_compile"
5428 case "(($ac_try" in
5429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430   *) ac_try_echo=$ac_try;;
5431 esac
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433   (eval "$ac_compile") 2>conftest.er1
5434   ac_status=$?
5435   grep -v '^ *+' conftest.er1 >conftest.err
5436   rm -f conftest.er1
5437   cat conftest.err >&5
5438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439   (exit $ac_status); } && {
5440          test -z "$ac_c_werror_flag" ||
5441          test ! -s conftest.err
5442        } && test -s conftest.$ac_objext; then
5443   eval "$as_ac_Header=yes"
5444 else
5445   echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5447
5448         eval "$as_ac_Header=no"
5449 fi
5450
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452 fi
5453 ac_res=`eval echo '${'$as_ac_Header'}'`
5454                { echo "$as_me:$LINENO: result: $ac_res" >&5
5455 echo "${ECHO_T}$ac_res" >&6; }
5456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5457   cat >>confdefs.h <<_ACEOF
5458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5459 _ACEOF
5460
5461 fi
5462
5463 done
5464
5465
5466
5467 for ac_header in dlfcn.h
5468 do
5469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5471   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5474   echo $ECHO_N "(cached) $ECHO_C" >&6
5475 fi
5476 ac_res=`eval echo '${'$as_ac_Header'}'`
5477                { echo "$as_me:$LINENO: result: $ac_res" >&5
5478 echo "${ECHO_T}$ac_res" >&6; }
5479 else
5480   # Is the header compilable?
5481 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5483 cat >conftest.$ac_ext <<_ACEOF
5484 /* confdefs.h.  */
5485 _ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h.  */
5489 $ac_includes_default
5490 #include <$ac_header>
5491 _ACEOF
5492 rm -f conftest.$ac_objext
5493 if { (ac_try="$ac_compile"
5494 case "(($ac_try" in
5495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496   *) ac_try_echo=$ac_try;;
5497 esac
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499   (eval "$ac_compile") 2>conftest.er1
5500   ac_status=$?
5501   grep -v '^ *+' conftest.er1 >conftest.err
5502   rm -f conftest.er1
5503   cat conftest.err >&5
5504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505   (exit $ac_status); } && {
5506          test -z "$ac_c_werror_flag" ||
5507          test ! -s conftest.err
5508        } && test -s conftest.$ac_objext; then
5509   ac_header_compiler=yes
5510 else
5511   echo "$as_me: failed program was:" >&5
5512 sed 's/^/| /' conftest.$ac_ext >&5
5513
5514         ac_header_compiler=no
5515 fi
5516
5517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5519 echo "${ECHO_T}$ac_header_compiler" >&6; }
5520
5521 # Is the header present?
5522 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5524 cat >conftest.$ac_ext <<_ACEOF
5525 /* confdefs.h.  */
5526 _ACEOF
5527 cat confdefs.h >>conftest.$ac_ext
5528 cat >>conftest.$ac_ext <<_ACEOF
5529 /* end confdefs.h.  */
5530 #include <$ac_header>
5531 _ACEOF
5532 if { (ac_try="$ac_cpp conftest.$ac_ext"
5533 case "(($ac_try" in
5534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535   *) ac_try_echo=$ac_try;;
5536 esac
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5539   ac_status=$?
5540   grep -v '^ *+' conftest.er1 >conftest.err
5541   rm -f conftest.er1
5542   cat conftest.err >&5
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); } >/dev/null && {
5545          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5546          test ! -s conftest.err
5547        }; then
5548   ac_header_preproc=yes
5549 else
5550   echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5552
5553   ac_header_preproc=no
5554 fi
5555
5556 rm -f conftest.err conftest.$ac_ext
5557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5558 echo "${ECHO_T}$ac_header_preproc" >&6; }
5559
5560 # So?  What about this header?
5561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5562   yes:no: )
5563     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5567     ac_header_preproc=yes
5568     ;;
5569   no:yes:* )
5570     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5572     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5573 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5574     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5576     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5577 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5580     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5582
5583     ;;
5584 esac
5585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5588   echo $ECHO_N "(cached) $ECHO_C" >&6
5589 else
5590   eval "$as_ac_Header=\$ac_header_preproc"
5591 fi
5592 ac_res=`eval echo '${'$as_ac_Header'}'`
5593                { echo "$as_me:$LINENO: result: $ac_res" >&5
5594 echo "${ECHO_T}$ac_res" >&6; }
5595
5596 fi
5597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5598   cat >>confdefs.h <<_ACEOF
5599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5600 _ACEOF
5601
5602 fi
5603
5604 done
5605
5606
5607
5608 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5609     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5610     (test "X$CXX" != "Xg++"))) ; then
5611   ac_ext=cpp
5612 ac_cpp='$CXXCPP $CPPFLAGS'
5613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5616 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5617 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5618 if test -z "$CXXCPP"; then
5619   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5620   echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5622       # Double quotes because CXXCPP needs to be expanded
5623     for CXXCPP in "$CXX -E" "/lib/cpp"
5624     do
5625       ac_preproc_ok=false
5626 for ac_cxx_preproc_warn_flag in '' yes
5627 do
5628   # Use a header file that comes with gcc, so configuring glibc
5629   # with a fresh cross-compiler works.
5630   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5631   # <limits.h> exists even on freestanding compilers.
5632   # On the NeXT, cc -E runs the code through the compiler's parser,
5633   # not just through cpp. "Syntax error" is here to catch this case.
5634   cat >conftest.$ac_ext <<_ACEOF
5635 /* confdefs.h.  */
5636 _ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h.  */
5640 #ifdef __STDC__
5641 # include <limits.h>
5642 #else
5643 # include <assert.h>
5644 #endif
5645                      Syntax error
5646 _ACEOF
5647 if { (ac_try="$ac_cpp conftest.$ac_ext"
5648 case "(($ac_try" in
5649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650   *) ac_try_echo=$ac_try;;
5651 esac
5652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5653   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5654   ac_status=$?
5655   grep -v '^ *+' conftest.er1 >conftest.err
5656   rm -f conftest.er1
5657   cat conftest.err >&5
5658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659   (exit $ac_status); } >/dev/null && {
5660          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5661          test ! -s conftest.err
5662        }; then
5663   :
5664 else
5665   echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5667
5668   # Broken: fails on valid input.
5669 continue
5670 fi
5671
5672 rm -f conftest.err conftest.$ac_ext
5673
5674   # OK, works on sane cases.  Now check whether nonexistent headers
5675   # can be detected and how.
5676   cat >conftest.$ac_ext <<_ACEOF
5677 /* confdefs.h.  */
5678 _ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h.  */
5682 #include <ac_nonexistent.h>
5683 _ACEOF
5684 if { (ac_try="$ac_cpp conftest.$ac_ext"
5685 case "(($ac_try" in
5686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687   *) ac_try_echo=$ac_try;;
5688 esac
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5691   ac_status=$?
5692   grep -v '^ *+' conftest.er1 >conftest.err
5693   rm -f conftest.er1
5694   cat conftest.err >&5
5695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696   (exit $ac_status); } >/dev/null && {
5697          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5698          test ! -s conftest.err
5699        }; then
5700   # Broken: success on invalid input.
5701 continue
5702 else
5703   echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5705
5706   # Passes both tests.
5707 ac_preproc_ok=:
5708 break
5709 fi
5710
5711 rm -f conftest.err conftest.$ac_ext
5712
5713 done
5714 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5715 rm -f conftest.err conftest.$ac_ext
5716 if $ac_preproc_ok; then
5717   break
5718 fi
5719
5720     done
5721     ac_cv_prog_CXXCPP=$CXXCPP
5722
5723 fi
5724   CXXCPP=$ac_cv_prog_CXXCPP
5725 else
5726   ac_cv_prog_CXXCPP=$CXXCPP
5727 fi
5728 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5729 echo "${ECHO_T}$CXXCPP" >&6; }
5730 ac_preproc_ok=false
5731 for ac_cxx_preproc_warn_flag in '' yes
5732 do
5733   # Use a header file that comes with gcc, so configuring glibc
5734   # with a fresh cross-compiler works.
5735   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5736   # <limits.h> exists even on freestanding compilers.
5737   # On the NeXT, cc -E runs the code through the compiler's parser,
5738   # not just through cpp. "Syntax error" is here to catch this case.
5739   cat >conftest.$ac_ext <<_ACEOF
5740 /* confdefs.h.  */
5741 _ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h.  */
5745 #ifdef __STDC__
5746 # include <limits.h>
5747 #else
5748 # include <assert.h>
5749 #endif
5750                      Syntax error
5751 _ACEOF
5752 if { (ac_try="$ac_cpp conftest.$ac_ext"
5753 case "(($ac_try" in
5754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755   *) ac_try_echo=$ac_try;;
5756 esac
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5759   ac_status=$?
5760   grep -v '^ *+' conftest.er1 >conftest.err
5761   rm -f conftest.er1
5762   cat conftest.err >&5
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); } >/dev/null && {
5765          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5766          test ! -s conftest.err
5767        }; then
5768   :
5769 else
5770   echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5772
5773   # Broken: fails on valid input.
5774 continue
5775 fi
5776
5777 rm -f conftest.err conftest.$ac_ext
5778
5779   # OK, works on sane cases.  Now check whether nonexistent headers
5780   # can be detected and how.
5781   cat >conftest.$ac_ext <<_ACEOF
5782 /* confdefs.h.  */
5783 _ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h.  */
5787 #include <ac_nonexistent.h>
5788 _ACEOF
5789 if { (ac_try="$ac_cpp conftest.$ac_ext"
5790 case "(($ac_try" in
5791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792   *) ac_try_echo=$ac_try;;
5793 esac
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5796   ac_status=$?
5797   grep -v '^ *+' conftest.er1 >conftest.err
5798   rm -f conftest.er1
5799   cat conftest.err >&5
5800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801   (exit $ac_status); } >/dev/null && {
5802          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5803          test ! -s conftest.err
5804        }; then
5805   # Broken: success on invalid input.
5806 continue
5807 else
5808   echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5810
5811   # Passes both tests.
5812 ac_preproc_ok=:
5813 break
5814 fi
5815
5816 rm -f conftest.err conftest.$ac_ext
5817
5818 done
5819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5820 rm -f conftest.err conftest.$ac_ext
5821 if $ac_preproc_ok; then
5822   :
5823 else
5824   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5825 See \`config.log' for more details." >&5
5826 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5827 See \`config.log' for more details." >&2;}
5828    { (exit 1); exit 1; }; }
5829 fi
5830
5831 ac_ext=cpp
5832 ac_cpp='$CXXCPP $CPPFLAGS'
5833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5836
5837 fi
5838
5839
5840 ac_ext=f
5841 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5842 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5843 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5844 if test -n "$ac_tool_prefix"; then
5845   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5846   do
5847     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5851 if test "${ac_cv_prog_F77+set}" = set; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854   if test -n "$F77"; then
5855   ac_cv_prog_F77="$F77" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860   IFS=$as_save_IFS
5861   test -z "$as_dir" && as_dir=.
5862   for ac_exec_ext in '' $ac_executable_extensions; do
5863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866     break 2
5867   fi
5868 done
5869 done
5870 IFS=$as_save_IFS
5871
5872 fi
5873 fi
5874 F77=$ac_cv_prog_F77
5875 if test -n "$F77"; then
5876   { echo "$as_me:$LINENO: result: $F77" >&5
5877 echo "${ECHO_T}$F77" >&6; }
5878 else
5879   { echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6; }
5881 fi
5882
5883
5884     test -n "$F77" && break
5885   done
5886 fi
5887 if test -z "$F77"; then
5888   ac_ct_F77=$F77
5889   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5890 do
5891   # Extract the first word of "$ac_prog", so it can be a program name with args.
5892 set dummy $ac_prog; ac_word=$2
5893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5895 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5896   echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898   if test -n "$ac_ct_F77"; then
5899   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5903 do
5904   IFS=$as_save_IFS
5905   test -z "$as_dir" && as_dir=.
5906   for ac_exec_ext in '' $ac_executable_extensions; do
5907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5908     ac_cv_prog_ac_ct_F77="$ac_prog"
5909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910     break 2
5911   fi
5912 done
5913 done
5914 IFS=$as_save_IFS
5915
5916 fi
5917 fi
5918 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5919 if test -n "$ac_ct_F77"; then
5920   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5921 echo "${ECHO_T}$ac_ct_F77" >&6; }
5922 else
5923   { echo "$as_me:$LINENO: result: no" >&5
5924 echo "${ECHO_T}no" >&6; }
5925 fi
5926
5927
5928   test -n "$ac_ct_F77" && break
5929 done
5930
5931   if test "x$ac_ct_F77" = x; then
5932     F77=""
5933   else
5934     case $cross_compiling:$ac_tool_warned in
5935 yes:)
5936 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5937 whose name does not start with the host triplet.  If you think this
5938 configuration is useful to you, please write to autoconf@gnu.org." >&5
5939 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5940 whose name does not start with the host triplet.  If you think this
5941 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5942 ac_tool_warned=yes ;;
5943 esac
5944     F77=$ac_ct_F77
5945   fi
5946 fi
5947
5948
5949 # Provide some information about the compiler.
5950 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5951 ac_compiler=`set X $ac_compile; echo $2`
5952 { (ac_try="$ac_compiler --version >&5"
5953 case "(($ac_try" in
5954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955   *) ac_try_echo=$ac_try;;
5956 esac
5957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958   (eval "$ac_compiler --version >&5") 2>&5
5959   ac_status=$?
5960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961   (exit $ac_status); }
5962 { (ac_try="$ac_compiler -v >&5"
5963 case "(($ac_try" in
5964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965   *) ac_try_echo=$ac_try;;
5966 esac
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968   (eval "$ac_compiler -v >&5") 2>&5
5969   ac_status=$?
5970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971   (exit $ac_status); }
5972 { (ac_try="$ac_compiler -V >&5"
5973 case "(($ac_try" in
5974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975   *) ac_try_echo=$ac_try;;
5976 esac
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978   (eval "$ac_compiler -V >&5") 2>&5
5979   ac_status=$?
5980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981   (exit $ac_status); }
5982 rm -f a.out
5983
5984 # If we don't use `.F' as extension, the preprocessor is not run on the
5985 # input file.  (Note that this only needs to work for GNU compilers.)
5986 ac_save_ext=$ac_ext
5987 ac_ext=F
5988 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5989 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5990 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5991   echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993   cat >conftest.$ac_ext <<_ACEOF
5994       program main
5995 #ifndef __GNUC__
5996        choke me
5997 #endif
5998
5999       end
6000 _ACEOF
6001 rm -f conftest.$ac_objext
6002 if { (ac_try="$ac_compile"
6003 case "(($ac_try" in
6004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005   *) ac_try_echo=$ac_try;;
6006 esac
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008   (eval "$ac_compile") 2>conftest.er1
6009   ac_status=$?
6010   grep -v '^ *+' conftest.er1 >conftest.err
6011   rm -f conftest.er1
6012   cat conftest.err >&5
6013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014   (exit $ac_status); } && {
6015          test -z "$ac_f77_werror_flag" ||
6016          test ! -s conftest.err
6017        } && test -s conftest.$ac_objext; then
6018   ac_compiler_gnu=yes
6019 else
6020   echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6022
6023         ac_compiler_gnu=no
6024 fi
6025
6026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6028
6029 fi
6030 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6031 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6032 ac_ext=$ac_save_ext
6033 ac_test_FFLAGS=${FFLAGS+set}
6034 ac_save_FFLAGS=$FFLAGS
6035 FFLAGS=
6036 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6037 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6038 if test "${ac_cv_prog_f77_g+set}" = set; then
6039   echo $ECHO_N "(cached) $ECHO_C" >&6
6040 else
6041   FFLAGS=-g
6042 cat >conftest.$ac_ext <<_ACEOF
6043       program main
6044
6045       end
6046 _ACEOF
6047 rm -f conftest.$ac_objext
6048 if { (ac_try="$ac_compile"
6049 case "(($ac_try" in
6050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051   *) ac_try_echo=$ac_try;;
6052 esac
6053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054   (eval "$ac_compile") 2>conftest.er1
6055   ac_status=$?
6056   grep -v '^ *+' conftest.er1 >conftest.err
6057   rm -f conftest.er1
6058   cat conftest.err >&5
6059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060   (exit $ac_status); } && {
6061          test -z "$ac_f77_werror_flag" ||
6062          test ! -s conftest.err
6063        } && test -s conftest.$ac_objext; then
6064   ac_cv_prog_f77_g=yes
6065 else
6066   echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6068
6069         ac_cv_prog_f77_g=no
6070 fi
6071
6072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6073
6074 fi
6075 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6076 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6077 if test "$ac_test_FFLAGS" = set; then
6078   FFLAGS=$ac_save_FFLAGS
6079 elif test $ac_cv_prog_f77_g = yes; then
6080   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6081     FFLAGS="-g -O2"
6082   else
6083     FFLAGS="-g"
6084   fi
6085 else
6086   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6087     FFLAGS="-O2"
6088   else
6089     FFLAGS=
6090   fi
6091 fi
6092
6093 G77=`test $ac_compiler_gnu = yes && echo yes`
6094 ac_ext=c
6095 ac_cpp='$CPP $CPPFLAGS'
6096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6099
6100
6101
6102 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6103
6104 # find the maximum length of command line arguments
6105 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6106 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6107 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6108   echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110     i=0
6111   teststring="ABCD"
6112
6113   case $build_os in
6114   msdosdjgpp*)
6115     # On DJGPP, this test can blow up pretty badly due to problems in libc
6116     # (any single argument exceeding 2000 bytes causes a buffer overrun
6117     # during glob expansion).  Even if it were fixed, the result of this
6118     # check would be larger than it should be.
6119     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6120     ;;
6121
6122   gnu*)
6123     # Under GNU Hurd, this test is not required because there is
6124     # no limit to the length of command line arguments.
6125     # Libtool will interpret -1 as no limit whatsoever
6126     lt_cv_sys_max_cmd_len=-1;
6127     ;;
6128
6129   cygwin* | mingw*)
6130     # On Win9x/ME, this test blows up -- it succeeds, but takes
6131     # about 5 minutes as the teststring grows exponentially.
6132     # Worse, since 9x/ME are not pre-emptively multitasking,
6133     # you end up with a "frozen" computer, even though with patience
6134     # the test eventually succeeds (with a max line length of 256k).
6135     # Instead, let's just punt: use the minimum linelength reported by
6136     # all of the supported platforms: 8192 (on NT/2K/XP).
6137     lt_cv_sys_max_cmd_len=8192;
6138     ;;
6139
6140   amigaos*)
6141     # On AmigaOS with pdksh, this test takes hours, literally.
6142     # So we just punt and use a minimum line length of 8192.
6143     lt_cv_sys_max_cmd_len=8192;
6144     ;;
6145
6146   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6147     # This has been around since 386BSD, at least.  Likely further.
6148     if test -x /sbin/sysctl; then
6149       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6150     elif test -x /usr/sbin/sysctl; then
6151       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6152     else
6153       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6154     fi
6155     # And add a safety zone
6156     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6157     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6158     ;;
6159
6160   interix*)
6161     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6162     lt_cv_sys_max_cmd_len=196608
6163     ;;
6164
6165   osf*)
6166     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6167     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6168     # nice to cause kernel panics so lets avoid the loop below.
6169     # First set a reasonable default.
6170     lt_cv_sys_max_cmd_len=16384
6171     #
6172     if test -x /sbin/sysconfig; then
6173       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6174         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6175       esac
6176     fi
6177     ;;
6178   sco3.2v5*)
6179     lt_cv_sys_max_cmd_len=102400
6180     ;;
6181   sysv5* | sco5v6* | sysv4.2uw2*)
6182     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6183     if test -n "$kargmax"; then
6184       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6185     else
6186       lt_cv_sys_max_cmd_len=32768
6187     fi
6188     ;;
6189   *)
6190     # If test is not a shell built-in, we'll probably end up computing a
6191     # maximum length that is only half of the actual maximum length, but
6192     # we can't tell.
6193     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6194     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6195                = "XX$teststring") >/dev/null 2>&1 &&
6196             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6197             lt_cv_sys_max_cmd_len=$new_result &&
6198             test $i != 17 # 1/2 MB should be enough
6199     do
6200       i=`expr $i + 1`
6201       teststring=$teststring$teststring
6202     done
6203     teststring=
6204     # Add a significant safety factor because C++ compilers can tack on massive
6205     # amounts of additional arguments before passing them to the linker.
6206     # It appears as though 1/2 is a usable value.
6207     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6208     ;;
6209   esac
6210
6211 fi
6212
6213 if test -n $lt_cv_sys_max_cmd_len ; then
6214   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6215 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6216 else
6217   { echo "$as_me:$LINENO: result: none" >&5
6218 echo "${ECHO_T}none" >&6; }
6219 fi
6220
6221
6222
6223
6224 # Check for command to grab the raw symbol name followed by C symbol from nm.
6225 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6226 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6227 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6228   echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230
6231 # These are sane defaults that work on at least a few old systems.
6232 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6233
6234 # Character class describing NM global symbol codes.
6235 symcode='[BCDEGRST]'
6236
6237 # Regexp to match symbols that can be accessed directly from C.
6238 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6239
6240 # Transform an extracted symbol line into a proper C declaration
6241 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6242
6243 # Transform an extracted symbol line into symbol name and symbol address
6244 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'"
6245
6246 # Define system-specific variables.
6247 case $host_os in
6248 aix*)
6249   symcode='[BCDT]'
6250   ;;
6251 cygwin* | mingw* | pw32*)
6252   symcode='[ABCDGISTW]'
6253   ;;
6254 hpux*) # Its linker distinguishes data from code symbols
6255   if test "$host_cpu" = ia64; then
6256     symcode='[ABCDEGRST]'
6257   fi
6258   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6259   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'"
6260   ;;
6261 linux* | k*bsd*-gnu)
6262   if test "$host_cpu" = ia64; then
6263     symcode='[ABCDGIRSTW]'
6264     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6265     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'"
6266   fi
6267   ;;
6268 irix* | nonstopux*)
6269   symcode='[BCDEGRST]'
6270   ;;
6271 osf*)
6272   symcode='[BCDEGQRST]'
6273   ;;
6274 solaris*)
6275   symcode='[BDRT]'
6276   ;;
6277 sco3.2v5*)
6278   symcode='[DT]'
6279   ;;
6280 sysv4.2uw2*)
6281   symcode='[DT]'
6282   ;;
6283 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6284   symcode='[ABDT]'
6285   ;;
6286 sysv4)
6287   symcode='[DFNSTU]'
6288   ;;
6289 esac
6290
6291 # Handle CRLF in mingw tool chain
6292 opt_cr=
6293 case $build_os in
6294 mingw*)
6295   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6296   ;;
6297 esac
6298
6299 # If we're using GNU nm, then use its standard symbol codes.
6300 case `$NM -V 2>&1` in
6301 *GNU* | *'with BFD'*)
6302   symcode='[ABCDGIRSTW]' ;;
6303 esac
6304
6305 # Try without a prefix undercore, then with it.
6306 for ac_symprfx in "" "_"; do
6307
6308   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6309   symxfrm="\\1 $ac_symprfx\\2 \\2"
6310
6311   # Write the raw and C identifiers.
6312   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6313
6314   # Check to see that the pipe works correctly.
6315   pipe_works=no
6316
6317   rm -f conftest*
6318   cat > conftest.$ac_ext <<EOF
6319 #ifdef __cplusplus
6320 extern "C" {
6321 #endif
6322 char nm_test_var;
6323 void nm_test_func(){}
6324 #ifdef __cplusplus
6325 }
6326 #endif
6327 int main(){nm_test_var='a';nm_test_func();return(0);}
6328 EOF
6329
6330   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6331   (eval $ac_compile) 2>&5
6332   ac_status=$?
6333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334   (exit $ac_status); }; then
6335     # Now try to grab the symbols.
6336     nlist=conftest.nm
6337     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6338   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6339   ac_status=$?
6340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341   (exit $ac_status); } && test -s "$nlist"; then
6342       # Try sorting and uniquifying the output.
6343       if sort "$nlist" | uniq > "$nlist"T; then
6344         mv -f "$nlist"T "$nlist"
6345       else
6346         rm -f "$nlist"T
6347       fi
6348
6349       # Make sure that we snagged all the symbols we need.
6350       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6351         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6352           cat <<EOF > conftest.$ac_ext
6353 #ifdef __cplusplus
6354 extern "C" {
6355 #endif
6356
6357 EOF
6358           # Now generate the symbol file.
6359           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6360
6361           cat <<EOF >> conftest.$ac_ext
6362 #if defined (__STDC__) && __STDC__
6363 # define lt_ptr_t void *
6364 #else
6365 # define lt_ptr_t char *
6366 # define const
6367 #endif
6368
6369 /* The mapping between symbol names and symbols. */
6370 const struct {
6371   const char *name;
6372   lt_ptr_t address;
6373 }
6374 lt_preloaded_symbols[] =
6375 {
6376 EOF
6377           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6378           cat <<\EOF >> conftest.$ac_ext
6379   {0, (lt_ptr_t) 0}
6380 };
6381
6382 #ifdef __cplusplus
6383 }
6384 #endif
6385 EOF
6386           # Now try linking the two files.
6387           mv conftest.$ac_objext conftstm.$ac_objext
6388           lt_save_LIBS="$LIBS"
6389           lt_save_CFLAGS="$CFLAGS"
6390           LIBS="conftstm.$ac_objext"
6391           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6392           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6393   (eval $ac_link) 2>&5
6394   ac_status=$?
6395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6397             pipe_works=yes
6398           fi
6399           LIBS="$lt_save_LIBS"
6400           CFLAGS="$lt_save_CFLAGS"
6401         else
6402           echo "cannot find nm_test_func in $nlist" >&5
6403         fi
6404       else
6405         echo "cannot find nm_test_var in $nlist" >&5
6406       fi
6407     else
6408       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6409     fi
6410   else
6411     echo "$progname: failed program was:" >&5
6412     cat conftest.$ac_ext >&5
6413   fi
6414   rm -f conftest* conftst*
6415
6416   # Do not use the global_symbol_pipe unless it works.
6417   if test "$pipe_works" = yes; then
6418     break
6419   else
6420     lt_cv_sys_global_symbol_pipe=
6421   fi
6422 done
6423
6424 fi
6425
6426 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6427   lt_cv_sys_global_symbol_to_cdecl=
6428 fi
6429 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6430   { echo "$as_me:$LINENO: result: failed" >&5
6431 echo "${ECHO_T}failed" >&6; }
6432 else
6433   { echo "$as_me:$LINENO: result: ok" >&5
6434 echo "${ECHO_T}ok" >&6; }
6435 fi
6436
6437 { echo "$as_me:$LINENO: checking for objdir" >&5
6438 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6439 if test "${lt_cv_objdir+set}" = set; then
6440   echo $ECHO_N "(cached) $ECHO_C" >&6
6441 else
6442   rm -f .libs 2>/dev/null
6443 mkdir .libs 2>/dev/null
6444 if test -d .libs; then
6445   lt_cv_objdir=.libs
6446 else
6447   # MS-DOS does not allow filenames that begin with a dot.
6448   lt_cv_objdir=_libs
6449 fi
6450 rmdir .libs 2>/dev/null
6451 fi
6452 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6453 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6454 objdir=$lt_cv_objdir
6455
6456
6457
6458
6459
6460 case $host_os in
6461 aix3*)
6462   # AIX sometimes has problems with the GCC collect2 program.  For some
6463   # reason, if we set the COLLECT_NAMES environment variable, the problems
6464   # vanish in a puff of smoke.
6465   if test "X${COLLECT_NAMES+set}" != Xset; then
6466     COLLECT_NAMES=
6467     export COLLECT_NAMES
6468   fi
6469   ;;
6470 esac
6471
6472 # Sed substitution that helps us do robust quoting.  It backslashifies
6473 # metacharacters that are still active within double-quoted strings.
6474 Xsed='sed -e 1s/^X//'
6475 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6476
6477 # Same as above, but do not quote variable references.
6478 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6479
6480 # Sed substitution to delay expansion of an escaped shell variable in a
6481 # double_quote_subst'ed string.
6482 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6483
6484 # Sed substitution to avoid accidental globbing in evaled expressions
6485 no_glob_subst='s/\*/\\\*/g'
6486
6487 # Constants:
6488 rm="rm -f"
6489
6490 # Global variables:
6491 default_ofile=libtool
6492 can_build_shared=yes
6493
6494 # All known linkers require a `.a' archive for static linking (except MSVC,
6495 # which needs '.lib').
6496 libext=a
6497 ltmain="$ac_aux_dir/ltmain.sh"
6498 ofile="$default_ofile"
6499 with_gnu_ld="$lt_cv_prog_gnu_ld"
6500
6501 if test -n "$ac_tool_prefix"; then
6502   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6503 set dummy ${ac_tool_prefix}ar; ac_word=$2
6504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6506 if test "${ac_cv_prog_AR+set}" = set; then
6507   echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509   if test -n "$AR"; then
6510   ac_cv_prog_AR="$AR" # Let the user override the test.
6511 else
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6514 do
6515   IFS=$as_save_IFS
6516   test -z "$as_dir" && as_dir=.
6517   for ac_exec_ext in '' $ac_executable_extensions; do
6518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6519     ac_cv_prog_AR="${ac_tool_prefix}ar"
6520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6521     break 2
6522   fi
6523 done
6524 done
6525 IFS=$as_save_IFS
6526
6527 fi
6528 fi
6529 AR=$ac_cv_prog_AR
6530 if test -n "$AR"; then
6531   { echo "$as_me:$LINENO: result: $AR" >&5
6532 echo "${ECHO_T}$AR" >&6; }
6533 else
6534   { echo "$as_me:$LINENO: result: no" >&5
6535 echo "${ECHO_T}no" >&6; }
6536 fi
6537
6538
6539 fi
6540 if test -z "$ac_cv_prog_AR"; then
6541   ac_ct_AR=$AR
6542   # Extract the first word of "ar", so it can be a program name with args.
6543 set dummy ar; ac_word=$2
6544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6546 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6547   echo $ECHO_N "(cached) $ECHO_C" >&6
6548 else
6549   if test -n "$ac_ct_AR"; then
6550   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6551 else
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6554 do
6555   IFS=$as_save_IFS
6556   test -z "$as_dir" && as_dir=.
6557   for ac_exec_ext in '' $ac_executable_extensions; do
6558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6559     ac_cv_prog_ac_ct_AR="ar"
6560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561     break 2
6562   fi
6563 done
6564 done
6565 IFS=$as_save_IFS
6566
6567 fi
6568 fi
6569 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6570 if test -n "$ac_ct_AR"; then
6571   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6572 echo "${ECHO_T}$ac_ct_AR" >&6; }
6573 else
6574   { echo "$as_me:$LINENO: result: no" >&5
6575 echo "${ECHO_T}no" >&6; }
6576 fi
6577
6578   if test "x$ac_ct_AR" = x; then
6579     AR="false"
6580   else
6581     case $cross_compiling:$ac_tool_warned in
6582 yes:)
6583 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6584 whose name does not start with the host triplet.  If you think this
6585 configuration is useful to you, please write to autoconf@gnu.org." >&5
6586 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6587 whose name does not start with the host triplet.  If you think this
6588 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6589 ac_tool_warned=yes ;;
6590 esac
6591     AR=$ac_ct_AR
6592   fi
6593 else
6594   AR="$ac_cv_prog_AR"
6595 fi
6596
6597 if test -n "$ac_tool_prefix"; then
6598   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6599 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6602 if test "${ac_cv_prog_RANLIB+set}" = set; then
6603   echo $ECHO_N "(cached) $ECHO_C" >&6
6604 else
6605   if test -n "$RANLIB"; then
6606   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6607 else
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 for as_dir in $PATH
6610 do
6611   IFS=$as_save_IFS
6612   test -z "$as_dir" && as_dir=.
6613   for ac_exec_ext in '' $ac_executable_extensions; do
6614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6615     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6617     break 2
6618   fi
6619 done
6620 done
6621 IFS=$as_save_IFS
6622
6623 fi
6624 fi
6625 RANLIB=$ac_cv_prog_RANLIB
6626 if test -n "$RANLIB"; then
6627   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6628 echo "${ECHO_T}$RANLIB" >&6; }
6629 else
6630   { echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6; }
6632 fi
6633
6634
6635 fi
6636 if test -z "$ac_cv_prog_RANLIB"; then
6637   ac_ct_RANLIB=$RANLIB
6638   # Extract the first word of "ranlib", so it can be a program name with args.
6639 set dummy ranlib; ac_word=$2
6640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6642 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6643   echo $ECHO_N "(cached) $ECHO_C" >&6
6644 else
6645   if test -n "$ac_ct_RANLIB"; then
6646   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6647 else
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6650 do
6651   IFS=$as_save_IFS
6652   test -z "$as_dir" && as_dir=.
6653   for ac_exec_ext in '' $ac_executable_extensions; do
6654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6655     ac_cv_prog_ac_ct_RANLIB="ranlib"
6656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6657     break 2
6658   fi
6659 done
6660 done
6661 IFS=$as_save_IFS
6662
6663 fi
6664 fi
6665 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6666 if test -n "$ac_ct_RANLIB"; then
6667   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6668 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6669 else
6670   { echo "$as_me:$LINENO: result: no" >&5
6671 echo "${ECHO_T}no" >&6; }
6672 fi
6673
6674   if test "x$ac_ct_RANLIB" = x; then
6675     RANLIB=":"
6676   else
6677     case $cross_compiling:$ac_tool_warned in
6678 yes:)
6679 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6680 whose name does not start with the host triplet.  If you think this
6681 configuration is useful to you, please write to autoconf@gnu.org." >&5
6682 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6683 whose name does not start with the host triplet.  If you think this
6684 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6685 ac_tool_warned=yes ;;
6686 esac
6687     RANLIB=$ac_ct_RANLIB
6688   fi
6689 else
6690   RANLIB="$ac_cv_prog_RANLIB"
6691 fi
6692
6693 if test -n "$ac_tool_prefix"; then
6694   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6695 set dummy ${ac_tool_prefix}strip; ac_word=$2
6696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6698 if test "${ac_cv_prog_STRIP+set}" = set; then
6699   echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701   if test -n "$STRIP"; then
6702   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6703 else
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6706 do
6707   IFS=$as_save_IFS
6708   test -z "$as_dir" && as_dir=.
6709   for ac_exec_ext in '' $ac_executable_extensions; do
6710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6711     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713     break 2
6714   fi
6715 done
6716 done
6717 IFS=$as_save_IFS
6718
6719 fi
6720 fi
6721 STRIP=$ac_cv_prog_STRIP
6722 if test -n "$STRIP"; then
6723   { echo "$as_me:$LINENO: result: $STRIP" >&5
6724 echo "${ECHO_T}$STRIP" >&6; }
6725 else
6726   { echo "$as_me:$LINENO: result: no" >&5
6727 echo "${ECHO_T}no" >&6; }
6728 fi
6729
6730
6731 fi
6732 if test -z "$ac_cv_prog_STRIP"; then
6733   ac_ct_STRIP=$STRIP
6734   # Extract the first word of "strip", so it can be a program name with args.
6735 set dummy strip; ac_word=$2
6736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6738 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6739   echo $ECHO_N "(cached) $ECHO_C" >&6
6740 else
6741   if test -n "$ac_ct_STRIP"; then
6742   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6743 else
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 for as_dir in $PATH
6746 do
6747   IFS=$as_save_IFS
6748   test -z "$as_dir" && as_dir=.
6749   for ac_exec_ext in '' $ac_executable_extensions; do
6750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6751     ac_cv_prog_ac_ct_STRIP="strip"
6752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753     break 2
6754   fi
6755 done
6756 done
6757 IFS=$as_save_IFS
6758
6759 fi
6760 fi
6761 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6762 if test -n "$ac_ct_STRIP"; then
6763   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6764 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6765 else
6766   { echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6; }
6768 fi
6769
6770   if test "x$ac_ct_STRIP" = x; then
6771     STRIP=":"
6772   else
6773     case $cross_compiling:$ac_tool_warned in
6774 yes:)
6775 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6776 whose name does not start with the host triplet.  If you think this
6777 configuration is useful to you, please write to autoconf@gnu.org." >&5
6778 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6779 whose name does not start with the host triplet.  If you think this
6780 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6781 ac_tool_warned=yes ;;
6782 esac
6783     STRIP=$ac_ct_STRIP
6784   fi
6785 else
6786   STRIP="$ac_cv_prog_STRIP"
6787 fi
6788
6789
6790 old_CC="$CC"
6791 old_CFLAGS="$CFLAGS"
6792
6793 # Set sane defaults for various variables
6794 test -z "$AR" && AR=ar
6795 test -z "$AR_FLAGS" && AR_FLAGS=cru
6796 test -z "$AS" && AS=as
6797 test -z "$CC" && CC=cc
6798 test -z "$LTCC" && LTCC=$CC
6799 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6800 test -z "$DLLTOOL" && DLLTOOL=dlltool
6801 test -z "$LD" && LD=ld
6802 test -z "$LN_S" && LN_S="ln -s"
6803 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6804 test -z "$NM" && NM=nm
6805 test -z "$SED" && SED=sed
6806 test -z "$OBJDUMP" && OBJDUMP=objdump
6807 test -z "$RANLIB" && RANLIB=:
6808 test -z "$STRIP" && STRIP=:
6809 test -z "$ac_objext" && ac_objext=o
6810
6811 # Determine commands to create old-style static archives.
6812 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6813 old_postinstall_cmds='chmod 644 $oldlib'
6814 old_postuninstall_cmds=
6815
6816 if test -n "$RANLIB"; then
6817   case $host_os in
6818   openbsd*)
6819     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6820     ;;
6821   *)
6822     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6823     ;;
6824   esac
6825   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6826 fi
6827
6828 for cc_temp in $compiler""; do
6829   case $cc_temp in
6830     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6831     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6832     \-*) ;;
6833     *) break;;
6834   esac
6835 done
6836 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6837
6838
6839 # Only perform the check for file, if the check method requires it
6840 case $deplibs_check_method in
6841 file_magic*)
6842   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6843     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6844 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6845 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6846   echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848   case $MAGIC_CMD in
6849 [\\/*] |  ?:[\\/]*)
6850   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6851   ;;
6852 *)
6853   lt_save_MAGIC_CMD="$MAGIC_CMD"
6854   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6855   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6856   for ac_dir in $ac_dummy; do
6857     IFS="$lt_save_ifs"
6858     test -z "$ac_dir" && ac_dir=.
6859     if test -f $ac_dir/${ac_tool_prefix}file; then
6860       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6861       if test -n "$file_magic_test_file"; then
6862         case $deplibs_check_method in
6863         "file_magic "*)
6864           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6865           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6866           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6867             $EGREP "$file_magic_regex" > /dev/null; then
6868             :
6869           else
6870             cat <<EOF 1>&2
6871
6872 *** Warning: the command libtool uses to detect shared libraries,
6873 *** $file_magic_cmd, produces output that libtool cannot recognize.
6874 *** The result is that libtool may fail to recognize shared libraries
6875 *** as such.  This will affect the creation of libtool libraries that
6876 *** depend on shared libraries, but programs linked with such libtool
6877 *** libraries will work regardless of this problem.  Nevertheless, you
6878 *** may want to report the problem to your system manager and/or to
6879 *** bug-libtool@gnu.org
6880
6881 EOF
6882           fi ;;
6883         esac
6884       fi
6885       break
6886     fi
6887   done
6888   IFS="$lt_save_ifs"
6889   MAGIC_CMD="$lt_save_MAGIC_CMD"
6890   ;;
6891 esac
6892 fi
6893
6894 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6895 if test -n "$MAGIC_CMD"; then
6896   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6897 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6898 else
6899   { echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6; }
6901 fi
6902
6903 if test -z "$lt_cv_path_MAGIC_CMD"; then
6904   if test -n "$ac_tool_prefix"; then
6905     { echo "$as_me:$LINENO: checking for file" >&5
6906 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6907 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6908   echo $ECHO_N "(cached) $ECHO_C" >&6
6909 else
6910   case $MAGIC_CMD in
6911 [\\/*] |  ?:[\\/]*)
6912   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6913   ;;
6914 *)
6915   lt_save_MAGIC_CMD="$MAGIC_CMD"
6916   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6917   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6918   for ac_dir in $ac_dummy; do
6919     IFS="$lt_save_ifs"
6920     test -z "$ac_dir" && ac_dir=.
6921     if test -f $ac_dir/file; then
6922       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6923       if test -n "$file_magic_test_file"; then
6924         case $deplibs_check_method in
6925         "file_magic "*)
6926           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6927           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6928           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6929             $EGREP "$file_magic_regex" > /dev/null; then
6930             :
6931           else
6932             cat <<EOF 1>&2
6933
6934 *** Warning: the command libtool uses to detect shared libraries,
6935 *** $file_magic_cmd, produces output that libtool cannot recognize.
6936 *** The result is that libtool may fail to recognize shared libraries
6937 *** as such.  This will affect the creation of libtool libraries that
6938 *** depend on shared libraries, but programs linked with such libtool
6939 *** libraries will work regardless of this problem.  Nevertheless, you
6940 *** may want to report the problem to your system manager and/or to
6941 *** bug-libtool@gnu.org
6942
6943 EOF
6944           fi ;;
6945         esac
6946       fi
6947       break
6948     fi
6949   done
6950   IFS="$lt_save_ifs"
6951   MAGIC_CMD="$lt_save_MAGIC_CMD"
6952   ;;
6953 esac
6954 fi
6955
6956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6957 if test -n "$MAGIC_CMD"; then
6958   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6959 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6960 else
6961   { echo "$as_me:$LINENO: result: no" >&5
6962 echo "${ECHO_T}no" >&6; }
6963 fi
6964
6965   else
6966     MAGIC_CMD=:
6967   fi
6968 fi
6969
6970   fi
6971   ;;
6972 esac
6973
6974 enable_dlopen=no
6975 enable_win32_dll=no
6976
6977 # Check whether --enable-libtool-lock was given.
6978 if test "${enable_libtool_lock+set}" = set; then
6979   enableval=$enable_libtool_lock;
6980 fi
6981
6982 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6983
6984
6985 # Check whether --with-pic was given.
6986 if test "${with_pic+set}" = set; then
6987   withval=$with_pic; pic_mode="$withval"
6988 else
6989   pic_mode=default
6990 fi
6991
6992 test -z "$pic_mode" && pic_mode=default
6993
6994 # Use C for the default configuration in the libtool script
6995 tagname=
6996 lt_save_CC="$CC"
6997 ac_ext=c
6998 ac_cpp='$CPP $CPPFLAGS'
6999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7002
7003
7004 # Source file extension for C test sources.
7005 ac_ext=c
7006
7007 # Object file extension for compiled C test sources.
7008 objext=o
7009 objext=$objext
7010
7011 # Code to be used in simple compile tests
7012 lt_simple_compile_test_code="int some_variable = 0;\n"
7013
7014 # Code to be used in simple link tests
7015 lt_simple_link_test_code='int main(){return(0);}\n'
7016
7017
7018 # If no C compiler was specified, use CC.
7019 LTCC=${LTCC-"$CC"}
7020
7021 # If no C compiler flags were specified, use CFLAGS.
7022 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7023
7024 # Allow CC to be a program name with arguments.
7025 compiler=$CC
7026
7027
7028 # save warnings/boilerplate of simple test code
7029 ac_outfile=conftest.$ac_objext
7030 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7031 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7032 _lt_compiler_boilerplate=`cat conftest.err`
7033 $rm conftest*
7034
7035 ac_outfile=conftest.$ac_objext
7036 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7037 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7038 _lt_linker_boilerplate=`cat conftest.err`
7039 $rm conftest*
7040
7041
7042
7043 lt_prog_compiler_no_builtin_flag=
7044
7045 if test "$GCC" = yes; then
7046   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7047
7048
7049 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7050 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7051 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7052   echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054   lt_cv_prog_compiler_rtti_exceptions=no
7055   ac_outfile=conftest.$ac_objext
7056    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7057    lt_compiler_flag="-fno-rtti -fno-exceptions"
7058    # Insert the option either (1) after the last *FLAGS variable, or
7059    # (2) before a word containing "conftest.", or (3) at the end.
7060    # Note that $ac_compile itself does not contain backslashes and begins
7061    # with a dollar sign (not a hyphen), so the echo should work correctly.
7062    # The option is referenced via a variable to avoid confusing sed.
7063    lt_compile=`echo "$ac_compile" | $SED \
7064    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7065    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7066    -e 's:$: $lt_compiler_flag:'`
7067    (eval echo "\"\$as_me:7067: $lt_compile\"" >&5)
7068    (eval "$lt_compile" 2>conftest.err)
7069    ac_status=$?
7070    cat conftest.err >&5
7071    echo "$as_me:7071: \$? = $ac_status" >&5
7072    if (exit $ac_status) && test -s "$ac_outfile"; then
7073      # The compiler can only warn and ignore the option if not recognized
7074      # So say no if there are warnings other than the usual output.
7075      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7076      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7077      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7078        lt_cv_prog_compiler_rtti_exceptions=yes
7079      fi
7080    fi
7081    $rm conftest*
7082
7083 fi
7084 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7085 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7086
7087 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7088     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7089 else
7090     :
7091 fi
7092
7093 fi
7094
7095 lt_prog_compiler_wl=
7096 lt_prog_compiler_pic=
7097 lt_prog_compiler_static=
7098
7099 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7100 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7101
7102   if test "$GCC" = yes; then
7103     lt_prog_compiler_wl='-Wl,'
7104     lt_prog_compiler_static='-static'
7105
7106     case $host_os in
7107       aix*)
7108       # All AIX code is PIC.
7109       if test "$host_cpu" = ia64; then
7110         # AIX 5 now supports IA64 processor
7111         lt_prog_compiler_static='-Bstatic'
7112       fi
7113       ;;
7114
7115     amigaos*)
7116       # FIXME: we need at least 68020 code to build shared libraries, but
7117       # adding the `-m68020' flag to GCC prevents building anything better,
7118       # like `-m68040'.
7119       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7120       ;;
7121
7122     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7123       # PIC is the default for these OSes.
7124       ;;
7125
7126     mingw* | pw32* | os2*)
7127       # This hack is so that the source file can tell whether it is being
7128       # built for inclusion in a dll (and should export symbols for example).
7129       lt_prog_compiler_pic='-DDLL_EXPORT'
7130       ;;
7131
7132     darwin* | rhapsody*)
7133       # PIC is the default on this platform
7134       # Common symbols not allowed in MH_DYLIB files
7135       lt_prog_compiler_pic='-fno-common'
7136       ;;
7137
7138     interix3*)
7139       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7140       # Instead, we relocate shared libraries at runtime.
7141       ;;
7142
7143     msdosdjgpp*)
7144       # Just because we use GCC doesn't mean we suddenly get shared libraries
7145       # on systems that don't support them.
7146       lt_prog_compiler_can_build_shared=no
7147       enable_shared=no
7148       ;;
7149
7150     sysv4*MP*)
7151       if test -d /usr/nec; then
7152         lt_prog_compiler_pic=-Kconform_pic
7153       fi
7154       ;;
7155
7156     hpux*)
7157       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7158       # not for PA HP-UX.
7159       case $host_cpu in
7160       hppa*64*|ia64*)
7161         # +Z the default
7162         ;;
7163       *)
7164         lt_prog_compiler_pic='-fPIC'
7165         ;;
7166       esac
7167       ;;
7168
7169     *)
7170       lt_prog_compiler_pic='-fPIC'
7171       ;;
7172     esac
7173   else
7174     # PORTME Check for flag to pass linker flags through the system compiler.
7175     case $host_os in
7176     aix*)
7177       lt_prog_compiler_wl='-Wl,'
7178       if test "$host_cpu" = ia64; then
7179         # AIX 5 now supports IA64 processor
7180         lt_prog_compiler_static='-Bstatic'
7181       else
7182         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7183       fi
7184       ;;
7185       darwin*)
7186         # PIC is the default on this platform
7187         # Common symbols not allowed in MH_DYLIB files
7188        case $cc_basename in
7189          xlc*)
7190          lt_prog_compiler_pic='-qnocommon'
7191          lt_prog_compiler_wl='-Wl,'
7192          ;;
7193        esac
7194        ;;
7195
7196     mingw* | pw32* | os2*)
7197       # This hack is so that the source file can tell whether it is being
7198       # built for inclusion in a dll (and should export symbols for example).
7199       lt_prog_compiler_pic='-DDLL_EXPORT'
7200       ;;
7201
7202     hpux9* | hpux10* | hpux11*)
7203       lt_prog_compiler_wl='-Wl,'
7204       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7205       # not for PA HP-UX.
7206       case $host_cpu in
7207       hppa*64*|ia64*)
7208         # +Z the default
7209         ;;
7210       *)
7211         lt_prog_compiler_pic='+Z'
7212         ;;
7213       esac
7214       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7215       lt_prog_compiler_static='${wl}-a ${wl}archive'
7216       ;;
7217
7218     irix5* | irix6* | nonstopux*)
7219       lt_prog_compiler_wl='-Wl,'
7220       # PIC (with -KPIC) is the default.
7221       lt_prog_compiler_static='-non_shared'
7222       ;;
7223
7224     newsos6)
7225       lt_prog_compiler_pic='-KPIC'
7226       lt_prog_compiler_static='-Bstatic'
7227       ;;
7228
7229     linux* | k*bsd*-gnu)
7230       case $cc_basename in
7231       icc* | ecc*)
7232         lt_prog_compiler_wl='-Wl,'
7233         lt_prog_compiler_pic='-KPIC'
7234         lt_prog_compiler_static='-static'
7235         ;;
7236       pgcc* | pgf77* | pgf90* | pgf95*)
7237         # Portland Group compilers (*not* the Pentium gcc compiler,
7238         # which looks to be a dead project)
7239         lt_prog_compiler_wl='-Wl,'
7240         lt_prog_compiler_pic='-fpic'
7241         lt_prog_compiler_static='-Bstatic'
7242         ;;
7243       ccc*)
7244         lt_prog_compiler_wl='-Wl,'
7245         # All Alpha code is PIC.
7246         lt_prog_compiler_static='-non_shared'
7247         ;;
7248       esac
7249       ;;
7250
7251     osf3* | osf4* | osf5*)
7252       lt_prog_compiler_wl='-Wl,'
7253       # All OSF/1 code is PIC.
7254       lt_prog_compiler_static='-non_shared'
7255       ;;
7256
7257     solaris*)
7258       lt_prog_compiler_pic='-KPIC'
7259       lt_prog_compiler_static='-Bstatic'
7260       case $cc_basename in
7261       f77* | f90* | f95*)
7262         lt_prog_compiler_wl='-Qoption ld ';;
7263       *)
7264         lt_prog_compiler_wl='-Wl,';;
7265       esac
7266       ;;
7267
7268     sunos4*)
7269       lt_prog_compiler_wl='-Qoption ld '
7270       lt_prog_compiler_pic='-PIC'
7271       lt_prog_compiler_static='-Bstatic'
7272       ;;
7273
7274     sysv4 | sysv4.2uw2* | sysv4.3*)
7275       lt_prog_compiler_wl='-Wl,'
7276       lt_prog_compiler_pic='-KPIC'
7277       lt_prog_compiler_static='-Bstatic'
7278       ;;
7279
7280     sysv4*MP*)
7281       if test -d /usr/nec ;then
7282         lt_prog_compiler_pic='-Kconform_pic'
7283         lt_prog_compiler_static='-Bstatic'
7284       fi
7285       ;;
7286
7287     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7288       lt_prog_compiler_wl='-Wl,'
7289       lt_prog_compiler_pic='-KPIC'
7290       lt_prog_compiler_static='-Bstatic'
7291       ;;
7292
7293     unicos*)
7294       lt_prog_compiler_wl='-Wl,'
7295       lt_prog_compiler_can_build_shared=no
7296       ;;
7297
7298     uts4*)
7299       lt_prog_compiler_pic='-pic'
7300       lt_prog_compiler_static='-Bstatic'
7301       ;;
7302
7303     *)
7304       lt_prog_compiler_can_build_shared=no
7305       ;;
7306     esac
7307   fi
7308
7309 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7310 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7311
7312 #
7313 # Check to make sure the PIC flag actually works.
7314 #
7315 if test -n "$lt_prog_compiler_pic"; then
7316
7317 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7318 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7319 if test "${lt_prog_compiler_pic_works+set}" = set; then
7320   echo $ECHO_N "(cached) $ECHO_C" >&6
7321 else
7322   lt_prog_compiler_pic_works=no
7323   ac_outfile=conftest.$ac_objext
7324    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7325    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7326    # Insert the option either (1) after the last *FLAGS variable, or
7327    # (2) before a word containing "conftest.", or (3) at the end.
7328    # Note that $ac_compile itself does not contain backslashes and begins
7329    # with a dollar sign (not a hyphen), so the echo should work correctly.
7330    # The option is referenced via a variable to avoid confusing sed.
7331    lt_compile=`echo "$ac_compile" | $SED \
7332    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7333    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7334    -e 's:$: $lt_compiler_flag:'`
7335    (eval echo "\"\$as_me:7335: $lt_compile\"" >&5)
7336    (eval "$lt_compile" 2>conftest.err)
7337    ac_status=$?
7338    cat conftest.err >&5
7339    echo "$as_me:7339: \$? = $ac_status" >&5
7340    if (exit $ac_status) && test -s "$ac_outfile"; then
7341      # The compiler can only warn and ignore the option if not recognized
7342      # So say no if there are warnings other than the usual output.
7343      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7344      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7345      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7346        lt_prog_compiler_pic_works=yes
7347      fi
7348    fi
7349    $rm conftest*
7350
7351 fi
7352 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7353 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7354
7355 if test x"$lt_prog_compiler_pic_works" = xyes; then
7356     case $lt_prog_compiler_pic in
7357      "" | " "*) ;;
7358      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7359      esac
7360 else
7361     lt_prog_compiler_pic=
7362      lt_prog_compiler_can_build_shared=no
7363 fi
7364
7365 fi
7366 case $host_os in
7367   # For platforms which do not support PIC, -DPIC is meaningless:
7368   *djgpp*)
7369     lt_prog_compiler_pic=
7370     ;;
7371   *)
7372     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7373     ;;
7374 esac
7375
7376 #
7377 # Check to make sure the static flag actually works.
7378 #
7379 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7380 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7381 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7382 if test "${lt_prog_compiler_static_works+set}" = set; then
7383   echo $ECHO_N "(cached) $ECHO_C" >&6
7384 else
7385   lt_prog_compiler_static_works=no
7386    save_LDFLAGS="$LDFLAGS"
7387    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7388    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7389    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7390      # The linker can only warn and ignore the option if not recognized
7391      # So say no if there are warnings
7392      if test -s conftest.err; then
7393        # Append any errors to the config.log.
7394        cat conftest.err 1>&5
7395        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7396        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7397        if diff conftest.exp conftest.er2 >/dev/null; then
7398          lt_prog_compiler_static_works=yes
7399        fi
7400      else
7401        lt_prog_compiler_static_works=yes
7402      fi
7403    fi
7404    $rm conftest*
7405    LDFLAGS="$save_LDFLAGS"
7406
7407 fi
7408 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7409 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7410
7411 if test x"$lt_prog_compiler_static_works" = xyes; then
7412     :
7413 else
7414     lt_prog_compiler_static=
7415 fi
7416
7417
7418 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7419 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7420 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7421   echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423   lt_cv_prog_compiler_c_o=no
7424    $rm -r conftest 2>/dev/null
7425    mkdir conftest
7426    cd conftest
7427    mkdir out
7428    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7429
7430    lt_compiler_flag="-o out/conftest2.$ac_objext"
7431    # Insert the option either (1) after the last *FLAGS variable, or
7432    # (2) before a word containing "conftest.", or (3) at the end.
7433    # Note that $ac_compile itself does not contain backslashes and begins
7434    # with a dollar sign (not a hyphen), so the echo should work correctly.
7435    lt_compile=`echo "$ac_compile" | $SED \
7436    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7437    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7438    -e 's:$: $lt_compiler_flag:'`
7439    (eval echo "\"\$as_me:7439: $lt_compile\"" >&5)
7440    (eval "$lt_compile" 2>out/conftest.err)
7441    ac_status=$?
7442    cat out/conftest.err >&5
7443    echo "$as_me:7443: \$? = $ac_status" >&5
7444    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7445    then
7446      # The compiler can only warn and ignore the option if not recognized
7447      # So say no if there are warnings
7448      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7449      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7450      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7451        lt_cv_prog_compiler_c_o=yes
7452      fi
7453    fi
7454    chmod u+w . 2>&5
7455    $rm conftest*
7456    # SGI C++ compiler will create directory out/ii_files/ for
7457    # template instantiation
7458    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7459    $rm out/* && rmdir out
7460    cd ..
7461    rmdir conftest
7462    $rm conftest*
7463
7464 fi
7465 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7466 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7467
7468
7469 hard_links="nottested"
7470 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7471   # do not overwrite the value of need_locks provided by the user
7472   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7473 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7474   hard_links=yes
7475   $rm conftest*
7476   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7477   touch conftest.a
7478   ln conftest.a conftest.b 2>&5 || hard_links=no
7479   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7480   { echo "$as_me:$LINENO: result: $hard_links" >&5
7481 echo "${ECHO_T}$hard_links" >&6; }
7482   if test "$hard_links" = no; then
7483     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7484 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7485     need_locks=warn
7486   fi
7487 else
7488   need_locks=no
7489 fi
7490
7491 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7492 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7493
7494   runpath_var=
7495   allow_undefined_flag=
7496   enable_shared_with_static_runtimes=no
7497   archive_cmds=
7498   archive_expsym_cmds=
7499   old_archive_From_new_cmds=
7500   old_archive_from_expsyms_cmds=
7501   export_dynamic_flag_spec=
7502   whole_archive_flag_spec=
7503   thread_safe_flag_spec=
7504   hardcode_libdir_flag_spec=
7505   hardcode_libdir_flag_spec_ld=
7506   hardcode_libdir_separator=
7507   hardcode_direct=no
7508   hardcode_minus_L=no
7509   hardcode_shlibpath_var=unsupported
7510   link_all_deplibs=unknown
7511   hardcode_automatic=no
7512   module_cmds=
7513   module_expsym_cmds=
7514   always_export_symbols=no
7515   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7516   # include_expsyms should be a list of space-separated symbols to be *always*
7517   # included in the symbol list
7518   include_expsyms=
7519   # exclude_expsyms can be an extended regexp of symbols to exclude
7520   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7521   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7522   # as well as any symbol that contains `d'.
7523   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7524   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7525   # platforms (ab)use it in PIC code, but their linkers get confused if
7526   # the symbol is explicitly referenced.  Since portable code cannot
7527   # rely on this symbol name, it's probably fine to never include it in
7528   # preloaded symbol tables.
7529   extract_expsyms_cmds=
7530   # Just being paranoid about ensuring that cc_basename is set.
7531   for cc_temp in $compiler""; do
7532   case $cc_temp in
7533     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7534     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7535     \-*) ;;
7536     *) break;;
7537   esac
7538 done
7539 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7540
7541   case $host_os in
7542   cygwin* | mingw* | pw32*)
7543     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7544     # When not using gcc, we currently assume that we are using
7545     # Microsoft Visual C++.
7546     if test "$GCC" != yes; then
7547       with_gnu_ld=no
7548     fi
7549     ;;
7550   interix*)
7551     # we just hope/assume this is gcc and not c89 (= MSVC++)
7552     with_gnu_ld=yes
7553     ;;
7554   openbsd*)
7555     with_gnu_ld=no
7556     ;;
7557   esac
7558
7559   ld_shlibs=yes
7560   if test "$with_gnu_ld" = yes; then
7561     # If archive_cmds runs LD, not CC, wlarc should be empty
7562     wlarc='${wl}'
7563
7564     # Set some defaults for GNU ld with shared library support. These
7565     # are reset later if shared libraries are not supported. Putting them
7566     # here allows them to be overridden if necessary.
7567     runpath_var=LD_RUN_PATH
7568     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7569     export_dynamic_flag_spec='${wl}--export-dynamic'
7570     # ancient GNU ld didn't support --whole-archive et. al.
7571     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7572         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7573       else
7574         whole_archive_flag_spec=
7575     fi
7576     supports_anon_versioning=no
7577     case `$LD -v 2>/dev/null` in
7578       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7579       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7580       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7581       *\ 2.11.*) ;; # other 2.11 versions
7582       *) supports_anon_versioning=yes ;;
7583     esac
7584
7585     # See if GNU ld supports shared libraries.
7586     case $host_os in
7587     aix3* | aix4* | aix5*)
7588       # On AIX/PPC, the GNU linker is very broken
7589       if test "$host_cpu" != ia64; then
7590         ld_shlibs=no
7591         cat <<EOF 1>&2
7592
7593 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7594 *** to be unable to reliably create shared libraries on AIX.
7595 *** Therefore, libtool is disabling shared libraries support.  If you
7596 *** really care for shared libraries, you may want to modify your PATH
7597 *** so that a non-GNU linker is found, and then restart.
7598
7599 EOF
7600       fi
7601       ;;
7602
7603     amigaos*)
7604       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)'
7605       hardcode_libdir_flag_spec='-L$libdir'
7606       hardcode_minus_L=yes
7607
7608       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7609       # that the semantics of dynamic libraries on AmigaOS, at least up
7610       # to version 4, is to share data among multiple programs linked
7611       # with the same dynamic library.  Since this doesn't match the
7612       # behavior of shared libraries on other platforms, we can't use
7613       # them.
7614       ld_shlibs=no
7615       ;;
7616
7617     beos*)
7618       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7619         allow_undefined_flag=unsupported
7620         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7621         # support --undefined.  This deserves some investigation.  FIXME
7622         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7623       else
7624         ld_shlibs=no
7625       fi
7626       ;;
7627
7628     cygwin* | mingw* | pw32*)
7629       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7630       # as there is no search path for DLLs.
7631       hardcode_libdir_flag_spec='-L$libdir'
7632       allow_undefined_flag=unsupported
7633       always_export_symbols=no
7634       enable_shared_with_static_runtimes=yes
7635       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7636
7637       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7638         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7639         # If the export-symbols file already is a .def file (1st line
7640         # is EXPORTS), use it as is; otherwise, prepend...
7641         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7642           cp $export_symbols $output_objdir/$soname.def;
7643         else
7644           echo EXPORTS > $output_objdir/$soname.def;
7645           cat $export_symbols >> $output_objdir/$soname.def;
7646         fi~
7647         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7648       else
7649         ld_shlibs=no
7650       fi
7651       ;;
7652
7653     interix3*)
7654       hardcode_direct=no
7655       hardcode_shlibpath_var=no
7656       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7657       export_dynamic_flag_spec='${wl}-E'
7658       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7659       # Instead, shared libraries are loaded at an image base (0x10000000 by
7660       # default) and relocated if they conflict, which is a slow very memory
7661       # consuming and fragmenting process.  To avoid this, we pick a random,
7662       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7663       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7664       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7665       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'
7666       ;;
7667
7668     linux* | k*bsd*-gnu)
7669       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7670         tmp_addflag=
7671         case $cc_basename,$host_cpu in
7672         pgcc*)                          # Portland Group C compiler
7673           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'
7674           tmp_addflag=' $pic_flag'
7675           ;;
7676         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7677           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'
7678           tmp_addflag=' $pic_flag -Mnomain' ;;
7679         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7680           tmp_addflag=' -i_dynamic' ;;
7681         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7682           tmp_addflag=' -i_dynamic -nofor_main' ;;
7683         ifc* | ifort*)                  # Intel Fortran compiler
7684           tmp_addflag=' -nofor_main' ;;
7685         esac
7686         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7687
7688         if test $supports_anon_versioning = yes; then
7689           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7690   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7691   $echo "local: *; };" >> $output_objdir/$libname.ver~
7692           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7693         fi
7694         link_all_deplibs=no
7695       else
7696         ld_shlibs=no
7697       fi
7698       ;;
7699
7700     netbsd* | netbsdelf*-gnu)
7701       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7702         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7703         wlarc=
7704       else
7705         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7706         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7707       fi
7708       ;;
7709
7710     solaris*)
7711       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7712         ld_shlibs=no
7713         cat <<EOF 1>&2
7714
7715 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7716 *** create shared libraries on Solaris systems.  Therefore, libtool
7717 *** is disabling shared libraries support.  We urge you to upgrade GNU
7718 *** binutils to release 2.9.1 or newer.  Another option is to modify
7719 *** your PATH or compiler configuration so that the native linker is
7720 *** used, and then restart.
7721
7722 EOF
7723       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7724         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7725         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7726       else
7727         ld_shlibs=no
7728       fi
7729       ;;
7730
7731     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7732       case `$LD -v 2>&1` in
7733         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7734         ld_shlibs=no
7735         cat <<_LT_EOF 1>&2
7736
7737 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7738 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7739 *** is disabling shared libraries support.  We urge you to upgrade GNU
7740 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7741 *** your PATH or compiler configuration so that the native linker is
7742 *** used, and then restart.
7743
7744 _LT_EOF
7745         ;;
7746         *)
7747           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7748             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7749             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7750             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7751           else
7752             ld_shlibs=no
7753           fi
7754         ;;
7755       esac
7756       ;;
7757
7758     sunos4*)
7759       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7760       wlarc=
7761       hardcode_direct=yes
7762       hardcode_shlibpath_var=no
7763       ;;
7764
7765     *)
7766       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7767         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7768         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7769       else
7770         ld_shlibs=no
7771       fi
7772       ;;
7773     esac
7774
7775     if test "$ld_shlibs" = no; then
7776       runpath_var=
7777       hardcode_libdir_flag_spec=
7778       export_dynamic_flag_spec=
7779       whole_archive_flag_spec=
7780     fi
7781   else
7782     # PORTME fill in a description of your system's linker (not GNU ld)
7783     case $host_os in
7784     aix3*)
7785       allow_undefined_flag=unsupported
7786       always_export_symbols=yes
7787       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'
7788       # Note: this linker hardcodes the directories in LIBPATH if there
7789       # are no directories specified by -L.
7790       hardcode_minus_L=yes
7791       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7792         # Neither direct hardcoding nor static linking is supported with a
7793         # broken collect2.
7794         hardcode_direct=unsupported
7795       fi
7796       ;;
7797
7798     aix4* | aix5*)
7799       if test "$host_cpu" = ia64; then
7800         # On IA64, the linker does run time linking by default, so we don't
7801         # have to do anything special.
7802         aix_use_runtimelinking=no
7803         exp_sym_flag='-Bexport'
7804         no_entry_flag=""
7805       else
7806         # If we're using GNU nm, then we don't want the "-C" option.
7807         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7808         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7809           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'
7810         else
7811           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'
7812         fi
7813         aix_use_runtimelinking=no
7814
7815         # Test if we are trying to use run time linking or normal
7816         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7817         # need to do runtime linking.
7818         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7819           for ld_flag in $LDFLAGS; do
7820           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7821             aix_use_runtimelinking=yes
7822             break
7823           fi
7824           done
7825           ;;
7826         esac
7827
7828         exp_sym_flag='-bexport'
7829         no_entry_flag='-bnoentry'
7830       fi
7831
7832       # When large executables or shared objects are built, AIX ld can
7833       # have problems creating the table of contents.  If linking a library
7834       # or program results in "error TOC overflow" add -mminimal-toc to
7835       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7836       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7837
7838       archive_cmds=''
7839       hardcode_direct=yes
7840       hardcode_libdir_separator=':'
7841       link_all_deplibs=yes
7842
7843       if test "$GCC" = yes; then
7844         case $host_os in aix4.[012]|aix4.[012].*)
7845         # We only want to do this on AIX 4.2 and lower, the check
7846         # below for broken collect2 doesn't work under 4.3+
7847           collect2name=`${CC} -print-prog-name=collect2`
7848           if test -f "$collect2name" && \
7849            strings "$collect2name" | grep resolve_lib_name >/dev/null
7850           then
7851           # We have reworked collect2
7852           hardcode_direct=yes
7853           else
7854           # We have old collect2
7855           hardcode_direct=unsupported
7856           # It fails to find uninstalled libraries when the uninstalled
7857           # path is not listed in the libpath.  Setting hardcode_minus_L
7858           # to unsupported forces relinking
7859           hardcode_minus_L=yes
7860           hardcode_libdir_flag_spec='-L$libdir'
7861           hardcode_libdir_separator=
7862           fi
7863           ;;
7864         esac
7865         shared_flag='-shared'
7866         if test "$aix_use_runtimelinking" = yes; then
7867           shared_flag="$shared_flag "'${wl}-G'
7868         fi
7869       else
7870         # not using gcc
7871         if test "$host_cpu" = ia64; then
7872         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7873         # chokes on -Wl,-G. The following line is correct:
7874           shared_flag='-G'
7875         else
7876           if test "$aix_use_runtimelinking" = yes; then
7877             shared_flag='${wl}-G'
7878           else
7879             shared_flag='${wl}-bM:SRE'
7880           fi
7881         fi
7882       fi
7883
7884       # It seems that -bexpall does not export symbols beginning with
7885       # underscore (_), so it is better to generate a list of symbols to export.
7886       always_export_symbols=yes
7887       if test "$aix_use_runtimelinking" = yes; then
7888         # Warning - without using the other runtime loading flags (-brtl),
7889         # -berok will link without error, but may produce a broken library.
7890         allow_undefined_flag='-berok'
7891        # Determine the default libpath from the value encoded in an empty executable.
7892        cat >conftest.$ac_ext <<_ACEOF
7893 /* confdefs.h.  */
7894 _ACEOF
7895 cat confdefs.h >>conftest.$ac_ext
7896 cat >>conftest.$ac_ext <<_ACEOF
7897 /* end confdefs.h.  */
7898
7899 int
7900 main ()
7901 {
7902
7903   ;
7904   return 0;
7905 }
7906 _ACEOF
7907 rm -f conftest.$ac_objext conftest$ac_exeext
7908 if { (ac_try="$ac_link"
7909 case "(($ac_try" in
7910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911   *) ac_try_echo=$ac_try;;
7912 esac
7913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914   (eval "$ac_link") 2>conftest.er1
7915   ac_status=$?
7916   grep -v '^ *+' conftest.er1 >conftest.err
7917   rm -f conftest.er1
7918   cat conftest.err >&5
7919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920   (exit $ac_status); } && {
7921          test -z "$ac_c_werror_flag" ||
7922          test ! -s conftest.err
7923        } && test -s conftest$ac_exeext &&
7924        $as_test_x conftest$ac_exeext; then
7925
7926 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7927 }'`
7928 # Check for a 64-bit object if we didn't find anything.
7929 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7930 }'`; fi
7931 else
7932   echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7934
7935
7936 fi
7937
7938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7939       conftest$ac_exeext conftest.$ac_ext
7940 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7941
7942        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7943         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"
7944        else
7945         if test "$host_cpu" = ia64; then
7946           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7947           allow_undefined_flag="-z nodefs"
7948           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"
7949         else
7950          # Determine the default libpath from the value encoded in an empty executable.
7951          cat >conftest.$ac_ext <<_ACEOF
7952 /* confdefs.h.  */
7953 _ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h.  */
7957
7958 int
7959 main ()
7960 {
7961
7962   ;
7963   return 0;
7964 }
7965 _ACEOF
7966 rm -f conftest.$ac_objext conftest$ac_exeext
7967 if { (ac_try="$ac_link"
7968 case "(($ac_try" in
7969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970   *) ac_try_echo=$ac_try;;
7971 esac
7972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973   (eval "$ac_link") 2>conftest.er1
7974   ac_status=$?
7975   grep -v '^ *+' conftest.er1 >conftest.err
7976   rm -f conftest.er1
7977   cat conftest.err >&5
7978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979   (exit $ac_status); } && {
7980          test -z "$ac_c_werror_flag" ||
7981          test ! -s conftest.err
7982        } && test -s conftest$ac_exeext &&
7983        $as_test_x conftest$ac_exeext; then
7984
7985 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7986 }'`
7987 # Check for a 64-bit object if we didn't find anything.
7988 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7989 }'`; fi
7990 else
7991   echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7993
7994
7995 fi
7996
7997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7998       conftest$ac_exeext conftest.$ac_ext
7999 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8000
8001          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8002           # Warning - without using the other run time loading flags,
8003           # -berok will link without error, but may produce a broken library.
8004           no_undefined_flag=' ${wl}-bernotok'
8005           allow_undefined_flag=' ${wl}-berok'
8006           # Exported symbols can be pulled into shared objects from archives
8007           whole_archive_flag_spec='$convenience'
8008           archive_cmds_need_lc=yes
8009           # This is similar to how AIX traditionally builds its shared libraries.
8010           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'
8011         fi
8012       fi
8013       ;;
8014
8015     amigaos*)
8016       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)'
8017       hardcode_libdir_flag_spec='-L$libdir'
8018       hardcode_minus_L=yes
8019       # see comment about different semantics on the GNU ld section
8020       ld_shlibs=no
8021       ;;
8022
8023     bsdi[45]*)
8024       export_dynamic_flag_spec=-rdynamic
8025       ;;
8026
8027     cygwin* | mingw* | pw32*)
8028       # When not using gcc, we currently assume that we are using
8029       # Microsoft Visual C++.
8030       # hardcode_libdir_flag_spec is actually meaningless, as there is
8031       # no search path for DLLs.
8032       hardcode_libdir_flag_spec=' '
8033       allow_undefined_flag=unsupported
8034       # Tell ltmain to make .lib files, not .a files.
8035       libext=lib
8036       # Tell ltmain to make .dll files, not .so files.
8037       shrext_cmds=".dll"
8038       # FIXME: Setting linknames here is a bad hack.
8039       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8040       # The linker will automatically build a .lib file if we build a DLL.
8041       old_archive_From_new_cmds='true'
8042       # FIXME: Should let the user specify the lib program.
8043       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8044       fix_srcfile_path='`cygpath -w "$srcfile"`'
8045       enable_shared_with_static_runtimes=yes
8046       ;;
8047
8048     darwin* | rhapsody*)
8049       case $host_os in
8050         rhapsody* | darwin1.[012])
8051          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8052          ;;
8053        *) # Darwin 1.3 on
8054          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8055            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8056          else
8057            case ${MACOSX_DEPLOYMENT_TARGET} in
8058              10.[012])
8059                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8060                ;;
8061              10.*)
8062                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8063                ;;
8064            esac
8065          fi
8066          ;;
8067       esac
8068       archive_cmds_need_lc=no
8069       hardcode_direct=no
8070       hardcode_automatic=yes
8071       hardcode_shlibpath_var=unsupported
8072       whole_archive_flag_spec=''
8073       link_all_deplibs=yes
8074     if test "$GCC" = yes ; then
8075         output_verbose_link_cmd='echo'
8076         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8077       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8078       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8079       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8080       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}'
8081     else
8082       case $cc_basename in
8083         xlc*)
8084          output_verbose_link_cmd='echo'
8085          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8086          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8087           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8088          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8089           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}'
8090           ;;
8091        *)
8092          ld_shlibs=no
8093           ;;
8094       esac
8095     fi
8096       ;;
8097
8098     dgux*)
8099       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8100       hardcode_libdir_flag_spec='-L$libdir'
8101       hardcode_shlibpath_var=no
8102       ;;
8103
8104     freebsd1*)
8105       ld_shlibs=no
8106       ;;
8107
8108     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8109     # support.  Future versions do this automatically, but an explicit c++rt0.o
8110     # does not break anything, and helps significantly (at the cost of a little
8111     # extra space).
8112     freebsd2.2*)
8113       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8114       hardcode_libdir_flag_spec='-R$libdir'
8115       hardcode_direct=yes
8116       hardcode_shlibpath_var=no
8117       ;;
8118
8119     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8120     freebsd2*)
8121       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8122       hardcode_direct=yes
8123       hardcode_minus_L=yes
8124       hardcode_shlibpath_var=no
8125       ;;
8126
8127     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8128     freebsd* | dragonfly*)
8129       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8130       hardcode_libdir_flag_spec='-R$libdir'
8131       hardcode_direct=yes
8132       hardcode_shlibpath_var=no
8133       ;;
8134
8135     hpux9*)
8136       if test "$GCC" = yes; then
8137         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'
8138       else
8139         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'
8140       fi
8141       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8142       hardcode_libdir_separator=:
8143       hardcode_direct=yes
8144
8145       # hardcode_minus_L: Not really in the search PATH,
8146       # but as the default location of the library.
8147       hardcode_minus_L=yes
8148       export_dynamic_flag_spec='${wl}-E'
8149       ;;
8150
8151     hpux10*)
8152       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8153         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8154       else
8155         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8156       fi
8157       if test "$with_gnu_ld" = no; then
8158         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8159         hardcode_libdir_separator=:
8160
8161         hardcode_direct=yes
8162         export_dynamic_flag_spec='${wl}-E'
8163
8164         # hardcode_minus_L: Not really in the search PATH,
8165         # but as the default location of the library.
8166         hardcode_minus_L=yes
8167       fi
8168       ;;
8169
8170     hpux11*)
8171       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8172         case $host_cpu in
8173         hppa*64*)
8174           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8175           ;;
8176         ia64*)
8177           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8178           ;;
8179         *)
8180           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8181           ;;
8182         esac
8183       else
8184         case $host_cpu in
8185         hppa*64*)
8186           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8187           ;;
8188         ia64*)
8189           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8190           ;;
8191         *)
8192           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8193           ;;
8194         esac
8195       fi
8196       if test "$with_gnu_ld" = no; then
8197         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8198         hardcode_libdir_separator=:
8199
8200         case $host_cpu in
8201         hppa*64*|ia64*)
8202           hardcode_libdir_flag_spec_ld='+b $libdir'
8203           hardcode_direct=no
8204           hardcode_shlibpath_var=no
8205           ;;
8206         *)
8207           hardcode_direct=yes
8208           export_dynamic_flag_spec='${wl}-E'
8209
8210           # hardcode_minus_L: Not really in the search PATH,
8211           # but as the default location of the library.
8212           hardcode_minus_L=yes
8213           ;;
8214         esac
8215       fi
8216       ;;
8217
8218     irix5* | irix6* | nonstopux*)
8219       if test "$GCC" = yes; then
8220         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'
8221       else
8222         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'
8223         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8224       fi
8225       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8226       hardcode_libdir_separator=:
8227       link_all_deplibs=yes
8228       ;;
8229
8230     netbsd* | netbsdelf*-gnu)
8231       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8232         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8233       else
8234         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8235       fi
8236       hardcode_libdir_flag_spec='-R$libdir'
8237       hardcode_direct=yes
8238       hardcode_shlibpath_var=no
8239       ;;
8240
8241     newsos6)
8242       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8243       hardcode_direct=yes
8244       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8245       hardcode_libdir_separator=:
8246       hardcode_shlibpath_var=no
8247       ;;
8248
8249     openbsd*)
8250       hardcode_direct=yes
8251       hardcode_shlibpath_var=no
8252       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8253         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8254         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8255         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8256         export_dynamic_flag_spec='${wl}-E'
8257       else
8258        case $host_os in
8259          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8260            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8261            hardcode_libdir_flag_spec='-R$libdir'
8262            ;;
8263          *)
8264            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8265            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8266            ;;
8267        esac
8268       fi
8269       ;;
8270
8271     os2*)
8272       hardcode_libdir_flag_spec='-L$libdir'
8273       hardcode_minus_L=yes
8274       allow_undefined_flag=unsupported
8275       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'
8276       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8277       ;;
8278
8279     osf3*)
8280       if test "$GCC" = yes; then
8281         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8282         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'
8283       else
8284         allow_undefined_flag=' -expect_unresolved \*'
8285         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'
8286       fi
8287       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8288       hardcode_libdir_separator=:
8289       ;;
8290
8291     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8292       if test "$GCC" = yes; then
8293         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8294         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'
8295         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8296       else
8297         allow_undefined_flag=' -expect_unresolved \*'
8298         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'
8299         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8300         $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'
8301
8302         # Both c and cxx compiler support -rpath directly
8303         hardcode_libdir_flag_spec='-rpath $libdir'
8304       fi
8305       hardcode_libdir_separator=:
8306       ;;
8307
8308     solaris*)
8309       no_undefined_flag=' -z text'
8310       if test "$GCC" = yes; then
8311         wlarc='${wl}'
8312         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8313         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8314           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8315       else
8316         wlarc=''
8317         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8318         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8319         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8320       fi
8321       hardcode_libdir_flag_spec='-R$libdir'
8322       hardcode_shlibpath_var=no
8323       case $host_os in
8324       solaris2.[0-5] | solaris2.[0-5].*) ;;
8325       *)
8326         # The compiler driver will combine linker options so we
8327         # cannot just pass the convience library names through
8328         # without $wl, iff we do not link with $LD.
8329         # Luckily, gcc supports the same syntax we need for Sun Studio.
8330         # Supported since Solaris 2.6 (maybe 2.5.1?)
8331         case $wlarc in
8332         '')
8333           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8334         *)
8335           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8336         esac ;;
8337       esac
8338       link_all_deplibs=yes
8339       ;;
8340
8341     sunos4*)
8342       if test "x$host_vendor" = xsequent; then
8343         # Use $CC to link under sequent, because it throws in some extra .o
8344         # files that make .init and .fini sections work.
8345         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8346       else
8347         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8348       fi
8349       hardcode_libdir_flag_spec='-L$libdir'
8350       hardcode_direct=yes
8351       hardcode_minus_L=yes
8352       hardcode_shlibpath_var=no
8353       ;;
8354
8355     sysv4)
8356       case $host_vendor in
8357         sni)
8358           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8359           hardcode_direct=yes # is this really true???
8360         ;;
8361         siemens)
8362           ## LD is ld it makes a PLAMLIB
8363           ## CC just makes a GrossModule.
8364           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8365           reload_cmds='$CC -r -o $output$reload_objs'
8366           hardcode_direct=no
8367         ;;
8368         motorola)
8369           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8370           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8371         ;;
8372       esac
8373       runpath_var='LD_RUN_PATH'
8374       hardcode_shlibpath_var=no
8375       ;;
8376
8377     sysv4.3*)
8378       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8379       hardcode_shlibpath_var=no
8380       export_dynamic_flag_spec='-Bexport'
8381       ;;
8382
8383     sysv4*MP*)
8384       if test -d /usr/nec; then
8385         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8386         hardcode_shlibpath_var=no
8387         runpath_var=LD_RUN_PATH
8388         hardcode_runpath_var=yes
8389         ld_shlibs=yes
8390       fi
8391       ;;
8392
8393     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8394       no_undefined_flag='${wl}-z,text'
8395       archive_cmds_need_lc=no
8396       hardcode_shlibpath_var=no
8397       runpath_var='LD_RUN_PATH'
8398
8399       if test "$GCC" = yes; then
8400         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8401         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8402       else
8403         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8404         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8405       fi
8406       ;;
8407
8408     sysv5* | sco3.2v5* | sco5v6*)
8409       # Note: We can NOT use -z defs as we might desire, because we do not
8410       # link with -lc, and that would cause any symbols used from libc to
8411       # always be unresolved, which means just about no library would
8412       # ever link correctly.  If we're not using GNU ld we use -z text
8413       # though, which does catch some bad symbols but isn't as heavy-handed
8414       # as -z defs.
8415       no_undefined_flag='${wl}-z,text'
8416       allow_undefined_flag='${wl}-z,nodefs'
8417       archive_cmds_need_lc=no
8418       hardcode_shlibpath_var=no
8419       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8420       hardcode_libdir_separator=':'
8421       link_all_deplibs=yes
8422       export_dynamic_flag_spec='${wl}-Bexport'
8423       runpath_var='LD_RUN_PATH'
8424
8425       if test "$GCC" = yes; then
8426         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8427         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8428       else
8429         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8430         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8431       fi
8432       ;;
8433
8434     uts4*)
8435       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8436       hardcode_libdir_flag_spec='-L$libdir'
8437       hardcode_shlibpath_var=no
8438       ;;
8439
8440     *)
8441       ld_shlibs=no
8442       ;;
8443     esac
8444   fi
8445
8446 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8447 echo "${ECHO_T}$ld_shlibs" >&6; }
8448 test "$ld_shlibs" = no && can_build_shared=no
8449
8450 #
8451 # Do we need to explicitly link libc?
8452 #
8453 case "x$archive_cmds_need_lc" in
8454 x|xyes)
8455   # Assume -lc should be added
8456   archive_cmds_need_lc=yes
8457
8458   if test "$enable_shared" = yes && test "$GCC" = yes; then
8459     case $archive_cmds in
8460     *'~'*)
8461       # FIXME: we may have to deal with multi-command sequences.
8462       ;;
8463     '$CC '*)
8464       # Test whether the compiler implicitly links with -lc since on some
8465       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8466       # to ld, don't add -lc before -lgcc.
8467       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8468 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8469       $rm conftest*
8470       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8471
8472       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8473   (eval $ac_compile) 2>&5
8474   ac_status=$?
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); } 2>conftest.err; then
8477         soname=conftest
8478         lib=conftest
8479         libobjs=conftest.$ac_objext
8480         deplibs=
8481         wl=$lt_prog_compiler_wl
8482         pic_flag=$lt_prog_compiler_pic
8483         compiler_flags=-v
8484         linker_flags=-v
8485         verstring=
8486         output_objdir=.
8487         libname=conftest
8488         lt_save_allow_undefined_flag=$allow_undefined_flag
8489         allow_undefined_flag=
8490         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8491   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8492   ac_status=$?
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); }
8495         then
8496           archive_cmds_need_lc=no
8497         else
8498           archive_cmds_need_lc=yes
8499         fi
8500         allow_undefined_flag=$lt_save_allow_undefined_flag
8501       else
8502         cat conftest.err 1>&5
8503       fi
8504       $rm conftest*
8505       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8506 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8507       ;;
8508     esac
8509   fi
8510   ;;
8511 esac
8512
8513 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8514 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8515 library_names_spec=
8516 libname_spec='lib$name'
8517 soname_spec=
8518 shrext_cmds=".so"
8519 postinstall_cmds=
8520 postuninstall_cmds=
8521 finish_cmds=
8522 finish_eval=
8523 shlibpath_var=
8524 shlibpath_overrides_runpath=unknown
8525 version_type=none
8526 dynamic_linker="$host_os ld.so"
8527 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8528 if test "$GCC" = yes; then
8529   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8530   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8531     # if the path contains ";" then we assume it to be the separator
8532     # otherwise default to the standard path separator (i.e. ":") - it is
8533     # assumed that no part of a normal pathname contains ";" but that should
8534     # okay in the real world where ";" in dirpaths is itself problematic.
8535     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8536   else
8537     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8538   fi
8539 else
8540   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8541 fi
8542 need_lib_prefix=unknown
8543 hardcode_into_libs=no
8544
8545 # when you set need_version to no, make sure it does not cause -set_version
8546 # flags to be left without arguments
8547 need_version=unknown
8548
8549 case $host_os in
8550 aix3*)
8551   version_type=linux
8552   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8553   shlibpath_var=LIBPATH
8554
8555   # AIX 3 has no versioning support, so we append a major version to the name.
8556   soname_spec='${libname}${release}${shared_ext}$major'
8557   ;;
8558
8559 aix4* | aix5*)
8560   version_type=linux
8561   need_lib_prefix=no
8562   need_version=no
8563   hardcode_into_libs=yes
8564   if test "$host_cpu" = ia64; then
8565     # AIX 5 supports IA64
8566     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8567     shlibpath_var=LD_LIBRARY_PATH
8568   else
8569     # With GCC up to 2.95.x, collect2 would create an import file
8570     # for dependence libraries.  The import file would start with
8571     # the line `#! .'.  This would cause the generated library to
8572     # depend on `.', always an invalid library.  This was fixed in
8573     # development snapshots of GCC prior to 3.0.
8574     case $host_os in
8575       aix4 | aix4.[01] | aix4.[01].*)
8576       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8577            echo ' yes '
8578            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8579         :
8580       else
8581         can_build_shared=no
8582       fi
8583       ;;
8584     esac
8585     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8586     # soname into executable. Probably we can add versioning support to
8587     # collect2, so additional links can be useful in future.
8588     if test "$aix_use_runtimelinking" = yes; then
8589       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8590       # instead of lib<name>.a to let people know that these are not
8591       # typical AIX shared libraries.
8592       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8593     else
8594       # We preserve .a as extension for shared libraries through AIX4.2
8595       # and later when we are not doing run time linking.
8596       library_names_spec='${libname}${release}.a $libname.a'
8597       soname_spec='${libname}${release}${shared_ext}$major'
8598     fi
8599     shlibpath_var=LIBPATH
8600   fi
8601   ;;
8602
8603 amigaos*)
8604   library_names_spec='$libname.ixlibrary $libname.a'
8605   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8606   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'
8607   ;;
8608
8609 beos*)
8610   library_names_spec='${libname}${shared_ext}'
8611   dynamic_linker="$host_os ld.so"
8612   shlibpath_var=LIBRARY_PATH
8613   ;;
8614
8615 bsdi[45]*)
8616   version_type=linux
8617   need_version=no
8618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8619   soname_spec='${libname}${release}${shared_ext}$major'
8620   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8621   shlibpath_var=LD_LIBRARY_PATH
8622   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8623   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8624   # the default ld.so.conf also contains /usr/contrib/lib and
8625   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8626   # libtool to hard-code these into programs
8627   ;;
8628
8629 cygwin* | mingw* | pw32*)
8630   version_type=windows
8631   shrext_cmds=".dll"
8632   need_version=no
8633   need_lib_prefix=no
8634
8635   case $GCC,$host_os in
8636   yes,cygwin* | yes,mingw* | yes,pw32*)
8637     library_names_spec='$libname.dll.a'
8638     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8639     postinstall_cmds='base_file=`basename \${file}`~
8640       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8641       dldir=$destdir/`dirname \$dlpath`~
8642       test -d \$dldir || mkdir -p \$dldir~
8643       $install_prog $dir/$dlname \$dldir/$dlname~
8644       chmod a+x \$dldir/$dlname'
8645     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8646       dlpath=$dir/\$dldll~
8647        $rm \$dlpath'
8648     shlibpath_overrides_runpath=yes
8649
8650     case $host_os in
8651     cygwin*)
8652       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8653       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8654       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8655       ;;
8656     mingw*)
8657       # MinGW DLLs use traditional 'lib' prefix
8658       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8659       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8660       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8661         # It is most probably a Windows format PATH printed by
8662         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8663         # path with ; separators, and with drive letters. We can handle the
8664         # drive letters (cygwin fileutils understands them), so leave them,
8665         # especially as we might pass files found there to a mingw objdump,
8666         # which wouldn't understand a cygwinified path. Ahh.
8667         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8668       else
8669         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8670       fi
8671       ;;
8672     pw32*)
8673       # pw32 DLLs use 'pw' prefix rather than 'lib'
8674       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8675       ;;
8676     esac
8677     ;;
8678
8679   *)
8680     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8681     ;;
8682   esac
8683   dynamic_linker='Win32 ld.exe'
8684   # FIXME: first we should search . and the directory the executable is in
8685   shlibpath_var=PATH
8686   ;;
8687
8688 darwin* | rhapsody*)
8689   dynamic_linker="$host_os dyld"
8690   version_type=darwin
8691   need_lib_prefix=no
8692   need_version=no
8693   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8694   soname_spec='${libname}${release}${major}$shared_ext'
8695   shlibpath_overrides_runpath=yes
8696   shlibpath_var=DYLD_LIBRARY_PATH
8697   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8698   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8699   if test "$GCC" = yes; then
8700     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8701   else
8702     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8703   fi
8704   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8705   ;;
8706
8707 dgux*)
8708   version_type=linux
8709   need_lib_prefix=no
8710   need_version=no
8711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8712   soname_spec='${libname}${release}${shared_ext}$major'
8713   shlibpath_var=LD_LIBRARY_PATH
8714   ;;
8715
8716 freebsd1*)
8717   dynamic_linker=no
8718   ;;
8719
8720 freebsd* | dragonfly*)
8721   # DragonFly does not have aout.  When/if they implement a new
8722   # versioning mechanism, adjust this.
8723   if test -x /usr/bin/objformat; then
8724     objformat=`/usr/bin/objformat`
8725   else
8726     case $host_os in
8727     freebsd[123]*) objformat=aout ;;
8728     *) objformat=elf ;;
8729     esac
8730   fi
8731   version_type=freebsd-$objformat
8732   case $version_type in
8733     freebsd-elf*)
8734       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8735       need_version=no
8736       need_lib_prefix=no
8737       ;;
8738     freebsd-*)
8739       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8740       need_version=yes
8741       ;;
8742   esac
8743   shlibpath_var=LD_LIBRARY_PATH
8744   case $host_os in
8745   freebsd2*)
8746     shlibpath_overrides_runpath=yes
8747     ;;
8748   freebsd3.[01]* | freebsdelf3.[01]*)
8749     shlibpath_overrides_runpath=yes
8750     hardcode_into_libs=yes
8751     ;;
8752   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8753   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8754     shlibpath_overrides_runpath=no
8755     hardcode_into_libs=yes
8756     ;;
8757   freebsd*) # from 4.6 on
8758     shlibpath_overrides_runpath=yes
8759     hardcode_into_libs=yes
8760     ;;
8761   esac
8762   ;;
8763
8764 gnu*)
8765   version_type=linux
8766   need_lib_prefix=no
8767   need_version=no
8768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8769   soname_spec='${libname}${release}${shared_ext}$major'
8770   shlibpath_var=LD_LIBRARY_PATH
8771   hardcode_into_libs=yes
8772   ;;
8773
8774 hpux9* | hpux10* | hpux11*)
8775   # Give a soname corresponding to the major version so that dld.sl refuses to
8776   # link against other versions.
8777   version_type=sunos
8778   need_lib_prefix=no
8779   need_version=no
8780   case $host_cpu in
8781   ia64*)
8782     shrext_cmds='.so'
8783     hardcode_into_libs=yes
8784     dynamic_linker="$host_os dld.so"
8785     shlibpath_var=LD_LIBRARY_PATH
8786     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8787     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8788     soname_spec='${libname}${release}${shared_ext}$major'
8789     if test "X$HPUX_IA64_MODE" = X32; then
8790       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8791     else
8792       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8793     fi
8794     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8795     ;;
8796    hppa*64*)
8797      shrext_cmds='.sl'
8798      hardcode_into_libs=yes
8799      dynamic_linker="$host_os dld.sl"
8800      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8801      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8802      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8803      soname_spec='${libname}${release}${shared_ext}$major'
8804      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8805      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8806      ;;
8807    *)
8808     shrext_cmds='.sl'
8809     dynamic_linker="$host_os dld.sl"
8810     shlibpath_var=SHLIB_PATH
8811     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8812     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8813     soname_spec='${libname}${release}${shared_ext}$major'
8814     ;;
8815   esac
8816   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8817   postinstall_cmds='chmod 555 $lib'
8818   ;;
8819
8820 interix3*)
8821   version_type=linux
8822   need_lib_prefix=no
8823   need_version=no
8824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8825   soname_spec='${libname}${release}${shared_ext}$major'
8826   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8827   shlibpath_var=LD_LIBRARY_PATH
8828   shlibpath_overrides_runpath=no
8829   hardcode_into_libs=yes
8830   ;;
8831
8832 irix5* | irix6* | nonstopux*)
8833   case $host_os in
8834     nonstopux*) version_type=nonstopux ;;
8835     *)
8836         if test "$lt_cv_prog_gnu_ld" = yes; then
8837                 version_type=linux
8838         else
8839                 version_type=irix
8840         fi ;;
8841   esac
8842   need_lib_prefix=no
8843   need_version=no
8844   soname_spec='${libname}${release}${shared_ext}$major'
8845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8846   case $host_os in
8847   irix5* | nonstopux*)
8848     libsuff= shlibsuff=
8849     ;;
8850   *)
8851     case $LD in # libtool.m4 will add one of these switches to LD
8852     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8853       libsuff= shlibsuff= libmagic=32-bit;;
8854     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8855       libsuff=32 shlibsuff=N32 libmagic=N32;;
8856     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8857       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8858     *) libsuff= shlibsuff= libmagic=never-match;;
8859     esac
8860     ;;
8861   esac
8862   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8863   shlibpath_overrides_runpath=no
8864   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8865   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8866   hardcode_into_libs=yes
8867   ;;
8868
8869 # No shared lib support for Linux oldld, aout, or coff.
8870 linux*oldld* | linux*aout* | linux*coff*)
8871   dynamic_linker=no
8872   ;;
8873
8874 # This must be Linux ELF.
8875 linux* | k*bsd*-gnu)
8876   version_type=linux
8877   need_lib_prefix=no
8878   need_version=no
8879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8880   soname_spec='${libname}${release}${shared_ext}$major'
8881   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8882   shlibpath_var=LD_LIBRARY_PATH
8883   shlibpath_overrides_runpath=no
8884   # This implies no fast_install, which is unacceptable.
8885   # Some rework will be needed to allow for fast_install
8886   # before this can be enabled.
8887   hardcode_into_libs=yes
8888
8889   # Append ld.so.conf contents to the search path
8890   if test -f /etc/ld.so.conf; then
8891     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8892     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8893   fi
8894
8895   # We used to test for /lib/ld.so.1 and disable shared libraries on
8896   # powerpc, because MkLinux only supported shared libraries with the
8897   # GNU dynamic linker.  Since this was broken with cross compilers,
8898   # most powerpc-linux boxes support dynamic linking these days and
8899   # people can always --disable-shared, the test was removed, and we
8900   # assume the GNU/Linux dynamic linker is in use.
8901   dynamic_linker='GNU/Linux ld.so'
8902   ;;
8903
8904 netbsdelf*-gnu)
8905   version_type=linux
8906   need_lib_prefix=no
8907   need_version=no
8908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8909   soname_spec='${libname}${release}${shared_ext}$major'
8910   shlibpath_var=LD_LIBRARY_PATH
8911   shlibpath_overrides_runpath=no
8912   hardcode_into_libs=yes
8913   dynamic_linker='NetBSD ld.elf_so'
8914   ;;
8915
8916 netbsd*)
8917   version_type=sunos
8918   need_lib_prefix=no
8919   need_version=no
8920   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8921     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8922     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8923     dynamic_linker='NetBSD (a.out) ld.so'
8924   else
8925     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8926     soname_spec='${libname}${release}${shared_ext}$major'
8927     dynamic_linker='NetBSD ld.elf_so'
8928   fi
8929   shlibpath_var=LD_LIBRARY_PATH
8930   shlibpath_overrides_runpath=yes
8931   hardcode_into_libs=yes
8932   ;;
8933
8934 newsos6)
8935   version_type=linux
8936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8937   shlibpath_var=LD_LIBRARY_PATH
8938   shlibpath_overrides_runpath=yes
8939   ;;
8940
8941 nto-qnx*)
8942   version_type=linux
8943   need_lib_prefix=no
8944   need_version=no
8945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8946   soname_spec='${libname}${release}${shared_ext}$major'
8947   shlibpath_var=LD_LIBRARY_PATH
8948   shlibpath_overrides_runpath=yes
8949   ;;
8950
8951 openbsd*)
8952   version_type=sunos
8953   sys_lib_dlsearch_path_spec="/usr/lib"
8954   need_lib_prefix=no
8955   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8956   case $host_os in
8957     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8958     *)                         need_version=no  ;;
8959   esac
8960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8961   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8962   shlibpath_var=LD_LIBRARY_PATH
8963   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8964     case $host_os in
8965       openbsd2.[89] | openbsd2.[89].*)
8966         shlibpath_overrides_runpath=no
8967         ;;
8968       *)
8969         shlibpath_overrides_runpath=yes
8970         ;;
8971       esac
8972   else
8973     shlibpath_overrides_runpath=yes
8974   fi
8975   ;;
8976
8977 os2*)
8978   libname_spec='$name'
8979   shrext_cmds=".dll"
8980   need_lib_prefix=no
8981   library_names_spec='$libname${shared_ext} $libname.a'
8982   dynamic_linker='OS/2 ld.exe'
8983   shlibpath_var=LIBPATH
8984   ;;
8985
8986 osf3* | osf4* | osf5*)
8987   version_type=osf
8988   need_lib_prefix=no
8989   need_version=no
8990   soname_spec='${libname}${release}${shared_ext}$major'
8991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8992   shlibpath_var=LD_LIBRARY_PATH
8993   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8994   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8995   ;;
8996
8997 solaris*)
8998   version_type=linux
8999   need_lib_prefix=no
9000   need_version=no
9001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9002   soname_spec='${libname}${release}${shared_ext}$major'
9003   shlibpath_var=LD_LIBRARY_PATH
9004   shlibpath_overrides_runpath=yes
9005   hardcode_into_libs=yes
9006   # ldd complains unless libraries are executable
9007   postinstall_cmds='chmod +x $lib'
9008   ;;
9009
9010 sunos4*)
9011   version_type=sunos
9012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9013   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9014   shlibpath_var=LD_LIBRARY_PATH
9015   shlibpath_overrides_runpath=yes
9016   if test "$with_gnu_ld" = yes; then
9017     need_lib_prefix=no
9018   fi
9019   need_version=yes
9020   ;;
9021
9022 sysv4 | sysv4.3*)
9023   version_type=linux
9024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9025   soname_spec='${libname}${release}${shared_ext}$major'
9026   shlibpath_var=LD_LIBRARY_PATH
9027   case $host_vendor in
9028     sni)
9029       shlibpath_overrides_runpath=no
9030       need_lib_prefix=no
9031       export_dynamic_flag_spec='${wl}-Blargedynsym'
9032       runpath_var=LD_RUN_PATH
9033       ;;
9034     siemens)
9035       need_lib_prefix=no
9036       ;;
9037     motorola)
9038       need_lib_prefix=no
9039       need_version=no
9040       shlibpath_overrides_runpath=no
9041       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9042       ;;
9043   esac
9044   ;;
9045
9046 sysv4*MP*)
9047   if test -d /usr/nec ;then
9048     version_type=linux
9049     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9050     soname_spec='$libname${shared_ext}.$major'
9051     shlibpath_var=LD_LIBRARY_PATH
9052   fi
9053   ;;
9054
9055 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9056   version_type=freebsd-elf
9057   need_lib_prefix=no
9058   need_version=no
9059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9060   soname_spec='${libname}${release}${shared_ext}$major'
9061   shlibpath_var=LD_LIBRARY_PATH
9062   hardcode_into_libs=yes
9063   if test "$with_gnu_ld" = yes; then
9064     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9065     shlibpath_overrides_runpath=no
9066   else
9067     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9068     shlibpath_overrides_runpath=yes
9069     case $host_os in
9070       sco3.2v5*)
9071         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9072         ;;
9073     esac
9074   fi
9075   sys_lib_dlsearch_path_spec='/usr/lib'
9076   ;;
9077
9078 uts4*)
9079   version_type=linux
9080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9081   soname_spec='${libname}${release}${shared_ext}$major'
9082   shlibpath_var=LD_LIBRARY_PATH
9083   ;;
9084
9085 *)
9086   dynamic_linker=no
9087   ;;
9088 esac
9089 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9090 echo "${ECHO_T}$dynamic_linker" >&6; }
9091 test "$dynamic_linker" = no && can_build_shared=no
9092
9093 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9094 if test "$GCC" = yes; then
9095   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9096 fi
9097
9098 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9099 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9100 hardcode_action=
9101 if test -n "$hardcode_libdir_flag_spec" || \
9102    test -n "$runpath_var" || \
9103    test "X$hardcode_automatic" = "Xyes" ; then
9104
9105   # We can hardcode non-existant directories.
9106   if test "$hardcode_direct" != no &&
9107      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9108      # have to relink, otherwise we might link with an installed library
9109      # when we should be linking with a yet-to-be-installed one
9110      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9111      test "$hardcode_minus_L" != no; then
9112     # Linking always hardcodes the temporary library directory.
9113     hardcode_action=relink
9114   else
9115     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9116     hardcode_action=immediate
9117   fi
9118 else
9119   # We cannot hardcode anything, or else we can only hardcode existing
9120   # directories.
9121   hardcode_action=unsupported
9122 fi
9123 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9124 echo "${ECHO_T}$hardcode_action" >&6; }
9125
9126 if test "$hardcode_action" = relink; then
9127   # Fast installation is not supported
9128   enable_fast_install=no
9129 elif test "$shlibpath_overrides_runpath" = yes ||
9130      test "$enable_shared" = no; then
9131   # Fast installation is not necessary
9132   enable_fast_install=needless
9133 fi
9134
9135 striplib=
9136 old_striplib=
9137 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9138 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9139 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9140   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9141   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9142   { echo "$as_me:$LINENO: result: yes" >&5
9143 echo "${ECHO_T}yes" >&6; }
9144 else
9145 # FIXME - insert some real tests, host_os isn't really good enough
9146   case $host_os in
9147    darwin*)
9148        if test -n "$STRIP" ; then
9149          striplib="$STRIP -x"
9150          { echo "$as_me:$LINENO: result: yes" >&5
9151 echo "${ECHO_T}yes" >&6; }
9152        else
9153   { echo "$as_me:$LINENO: result: no" >&5
9154 echo "${ECHO_T}no" >&6; }
9155 fi
9156        ;;
9157    *)
9158   { echo "$as_me:$LINENO: result: no" >&5
9159 echo "${ECHO_T}no" >&6; }
9160     ;;
9161   esac
9162 fi
9163
9164 if test "x$enable_dlopen" != xyes; then
9165   enable_dlopen=unknown
9166   enable_dlopen_self=unknown
9167   enable_dlopen_self_static=unknown
9168 else
9169   lt_cv_dlopen=no
9170   lt_cv_dlopen_libs=
9171
9172   case $host_os in
9173   beos*)
9174     lt_cv_dlopen="load_add_on"
9175     lt_cv_dlopen_libs=
9176     lt_cv_dlopen_self=yes
9177     ;;
9178
9179   mingw* | pw32*)
9180     lt_cv_dlopen="LoadLibrary"
9181     lt_cv_dlopen_libs=
9182    ;;
9183
9184   cygwin*)
9185     lt_cv_dlopen="dlopen"
9186     lt_cv_dlopen_libs=
9187    ;;
9188
9189   darwin*)
9190   # if libdl is installed we need to link against it
9191     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9192 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9193 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9194   echo $ECHO_N "(cached) $ECHO_C" >&6
9195 else
9196   ac_check_lib_save_LIBS=$LIBS
9197 LIBS="-ldl  $LIBS"
9198 cat >conftest.$ac_ext <<_ACEOF
9199 /* confdefs.h.  */
9200 _ACEOF
9201 cat confdefs.h >>conftest.$ac_ext
9202 cat >>conftest.$ac_ext <<_ACEOF
9203 /* end confdefs.h.  */
9204
9205 /* Override any GCC internal prototype to avoid an error.
9206    Use char because int might match the return type of a GCC
9207    builtin and then its argument prototype would still apply.  */
9208 #ifdef __cplusplus
9209 extern "C"
9210 #endif
9211 char dlopen ();
9212 int
9213 main ()
9214 {
9215 return dlopen ();
9216   ;
9217   return 0;
9218 }
9219 _ACEOF
9220 rm -f conftest.$ac_objext conftest$ac_exeext
9221 if { (ac_try="$ac_link"
9222 case "(($ac_try" in
9223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9224   *) ac_try_echo=$ac_try;;
9225 esac
9226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9227   (eval "$ac_link") 2>conftest.er1
9228   ac_status=$?
9229   grep -v '^ *+' conftest.er1 >conftest.err
9230   rm -f conftest.er1
9231   cat conftest.err >&5
9232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233   (exit $ac_status); } && {
9234          test -z "$ac_c_werror_flag" ||
9235          test ! -s conftest.err
9236        } && test -s conftest$ac_exeext &&
9237        $as_test_x conftest$ac_exeext; then
9238   ac_cv_lib_dl_dlopen=yes
9239 else
9240   echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9242
9243         ac_cv_lib_dl_dlopen=no
9244 fi
9245
9246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9247       conftest$ac_exeext conftest.$ac_ext
9248 LIBS=$ac_check_lib_save_LIBS
9249 fi
9250 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9251 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9252 if test $ac_cv_lib_dl_dlopen = yes; then
9253   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9254 else
9255
9256     lt_cv_dlopen="dyld"
9257     lt_cv_dlopen_libs=
9258     lt_cv_dlopen_self=yes
9259
9260 fi
9261
9262    ;;
9263
9264   *)
9265     { echo "$as_me:$LINENO: checking for shl_load" >&5
9266 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9267 if test "${ac_cv_func_shl_load+set}" = set; then
9268   echo $ECHO_N "(cached) $ECHO_C" >&6
9269 else
9270   cat >conftest.$ac_ext <<_ACEOF
9271 /* confdefs.h.  */
9272 _ACEOF
9273 cat confdefs.h >>conftest.$ac_ext
9274 cat >>conftest.$ac_ext <<_ACEOF
9275 /* end confdefs.h.  */
9276 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9277    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9278 #define shl_load innocuous_shl_load
9279
9280 /* System header to define __stub macros and hopefully few prototypes,
9281     which can conflict with char shl_load (); below.
9282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9283     <limits.h> exists even on freestanding compilers.  */
9284
9285 #ifdef __STDC__
9286 # include <limits.h>
9287 #else
9288 # include <assert.h>
9289 #endif
9290
9291 #undef shl_load
9292
9293 /* Override any GCC internal prototype to avoid an error.
9294    Use char because int might match the return type of a GCC
9295    builtin and then its argument prototype would still apply.  */
9296 #ifdef __cplusplus
9297 extern "C"
9298 #endif
9299 char shl_load ();
9300 /* The GNU C library defines this for functions which it implements
9301     to always fail with ENOSYS.  Some functions are actually named
9302     something starting with __ and the normal name is an alias.  */
9303 #if defined __stub_shl_load || defined __stub___shl_load
9304 choke me
9305 #endif
9306
9307 int
9308 main ()
9309 {
9310 return shl_load ();
9311   ;
9312   return 0;
9313 }
9314 _ACEOF
9315 rm -f conftest.$ac_objext conftest$ac_exeext
9316 if { (ac_try="$ac_link"
9317 case "(($ac_try" in
9318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9319   *) ac_try_echo=$ac_try;;
9320 esac
9321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9322   (eval "$ac_link") 2>conftest.er1
9323   ac_status=$?
9324   grep -v '^ *+' conftest.er1 >conftest.err
9325   rm -f conftest.er1
9326   cat conftest.err >&5
9327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328   (exit $ac_status); } && {
9329          test -z "$ac_c_werror_flag" ||
9330          test ! -s conftest.err
9331        } && test -s conftest$ac_exeext &&
9332        $as_test_x conftest$ac_exeext; then
9333   ac_cv_func_shl_load=yes
9334 else
9335   echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9337
9338         ac_cv_func_shl_load=no
9339 fi
9340
9341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9342       conftest$ac_exeext conftest.$ac_ext
9343 fi
9344 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9345 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9346 if test $ac_cv_func_shl_load = yes; then
9347   lt_cv_dlopen="shl_load"
9348 else
9349   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9350 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9351 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9352   echo $ECHO_N "(cached) $ECHO_C" >&6
9353 else
9354   ac_check_lib_save_LIBS=$LIBS
9355 LIBS="-ldld  $LIBS"
9356 cat >conftest.$ac_ext <<_ACEOF
9357 /* confdefs.h.  */
9358 _ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h.  */
9362
9363 /* Override any GCC internal prototype to avoid an error.
9364    Use char because int might match the return type of a GCC
9365    builtin and then its argument prototype would still apply.  */
9366 #ifdef __cplusplus
9367 extern "C"
9368 #endif
9369 char shl_load ();
9370 int
9371 main ()
9372 {
9373 return shl_load ();
9374   ;
9375   return 0;
9376 }
9377 _ACEOF
9378 rm -f conftest.$ac_objext conftest$ac_exeext
9379 if { (ac_try="$ac_link"
9380 case "(($ac_try" in
9381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9382   *) ac_try_echo=$ac_try;;
9383 esac
9384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9385   (eval "$ac_link") 2>conftest.er1
9386   ac_status=$?
9387   grep -v '^ *+' conftest.er1 >conftest.err
9388   rm -f conftest.er1
9389   cat conftest.err >&5
9390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391   (exit $ac_status); } && {
9392          test -z "$ac_c_werror_flag" ||
9393          test ! -s conftest.err
9394        } && test -s conftest$ac_exeext &&
9395        $as_test_x conftest$ac_exeext; then
9396   ac_cv_lib_dld_shl_load=yes
9397 else
9398   echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9400
9401         ac_cv_lib_dld_shl_load=no
9402 fi
9403
9404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9405       conftest$ac_exeext conftest.$ac_ext
9406 LIBS=$ac_check_lib_save_LIBS
9407 fi
9408 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9409 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9410 if test $ac_cv_lib_dld_shl_load = yes; then
9411   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9412 else
9413   { echo "$as_me:$LINENO: checking for dlopen" >&5
9414 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9415 if test "${ac_cv_func_dlopen+set}" = set; then
9416   echo $ECHO_N "(cached) $ECHO_C" >&6
9417 else
9418   cat >conftest.$ac_ext <<_ACEOF
9419 /* confdefs.h.  */
9420 _ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h.  */
9424 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9425    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9426 #define dlopen innocuous_dlopen
9427
9428 /* System header to define __stub macros and hopefully few prototypes,
9429     which can conflict with char dlopen (); below.
9430     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9431     <limits.h> exists even on freestanding compilers.  */
9432
9433 #ifdef __STDC__
9434 # include <limits.h>
9435 #else
9436 # include <assert.h>
9437 #endif
9438
9439 #undef dlopen
9440
9441 /* Override any GCC internal prototype to avoid an error.
9442    Use char because int might match the return type of a GCC
9443    builtin and then its argument prototype would still apply.  */
9444 #ifdef __cplusplus
9445 extern "C"
9446 #endif
9447 char dlopen ();
9448 /* The GNU C library defines this for functions which it implements
9449     to always fail with ENOSYS.  Some functions are actually named
9450     something starting with __ and the normal name is an alias.  */
9451 #if defined __stub_dlopen || defined __stub___dlopen
9452 choke me
9453 #endif
9454
9455 int
9456 main ()
9457 {
9458 return dlopen ();
9459   ;
9460   return 0;
9461 }
9462 _ACEOF
9463 rm -f conftest.$ac_objext conftest$ac_exeext
9464 if { (ac_try="$ac_link"
9465 case "(($ac_try" in
9466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9467   *) ac_try_echo=$ac_try;;
9468 esac
9469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9470   (eval "$ac_link") 2>conftest.er1
9471   ac_status=$?
9472   grep -v '^ *+' conftest.er1 >conftest.err
9473   rm -f conftest.er1
9474   cat conftest.err >&5
9475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476   (exit $ac_status); } && {
9477          test -z "$ac_c_werror_flag" ||
9478          test ! -s conftest.err
9479        } && test -s conftest$ac_exeext &&
9480        $as_test_x conftest$ac_exeext; then
9481   ac_cv_func_dlopen=yes
9482 else
9483   echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9485
9486         ac_cv_func_dlopen=no
9487 fi
9488
9489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9490       conftest$ac_exeext conftest.$ac_ext
9491 fi
9492 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9493 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9494 if test $ac_cv_func_dlopen = yes; then
9495   lt_cv_dlopen="dlopen"
9496 else
9497   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9498 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9499 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9500   echo $ECHO_N "(cached) $ECHO_C" >&6
9501 else
9502   ac_check_lib_save_LIBS=$LIBS
9503 LIBS="-ldl  $LIBS"
9504 cat >conftest.$ac_ext <<_ACEOF
9505 /* confdefs.h.  */
9506 _ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h.  */
9510
9511 /* Override any GCC internal prototype to avoid an error.
9512    Use char because int might match the return type of a GCC
9513    builtin and then its argument prototype would still apply.  */
9514 #ifdef __cplusplus
9515 extern "C"
9516 #endif
9517 char dlopen ();
9518 int
9519 main ()
9520 {
9521 return dlopen ();
9522   ;
9523   return 0;
9524 }
9525 _ACEOF
9526 rm -f conftest.$ac_objext conftest$ac_exeext
9527 if { (ac_try="$ac_link"
9528 case "(($ac_try" in
9529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530   *) ac_try_echo=$ac_try;;
9531 esac
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533   (eval "$ac_link") 2>conftest.er1
9534   ac_status=$?
9535   grep -v '^ *+' conftest.er1 >conftest.err
9536   rm -f conftest.er1
9537   cat conftest.err >&5
9538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539   (exit $ac_status); } && {
9540          test -z "$ac_c_werror_flag" ||
9541          test ! -s conftest.err
9542        } && test -s conftest$ac_exeext &&
9543        $as_test_x conftest$ac_exeext; then
9544   ac_cv_lib_dl_dlopen=yes
9545 else
9546   echo "$as_me: failed program was:" >&5
9547 sed 's/^/| /' conftest.$ac_ext >&5
9548
9549         ac_cv_lib_dl_dlopen=no
9550 fi
9551
9552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9553       conftest$ac_exeext conftest.$ac_ext
9554 LIBS=$ac_check_lib_save_LIBS
9555 fi
9556 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9557 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9558 if test $ac_cv_lib_dl_dlopen = yes; then
9559   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9560 else
9561   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9562 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9563 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9564   echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566   ac_check_lib_save_LIBS=$LIBS
9567 LIBS="-lsvld  $LIBS"
9568 cat >conftest.$ac_ext <<_ACEOF
9569 /* confdefs.h.  */
9570 _ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h.  */
9574
9575 /* Override any GCC internal prototype to avoid an error.
9576    Use char because int might match the return type of a GCC
9577    builtin and then its argument prototype would still apply.  */
9578 #ifdef __cplusplus
9579 extern "C"
9580 #endif
9581 char dlopen ();
9582 int
9583 main ()
9584 {
9585 return dlopen ();
9586   ;
9587   return 0;
9588 }
9589 _ACEOF
9590 rm -f conftest.$ac_objext conftest$ac_exeext
9591 if { (ac_try="$ac_link"
9592 case "(($ac_try" in
9593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594   *) ac_try_echo=$ac_try;;
9595 esac
9596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9597   (eval "$ac_link") 2>conftest.er1
9598   ac_status=$?
9599   grep -v '^ *+' conftest.er1 >conftest.err
9600   rm -f conftest.er1
9601   cat conftest.err >&5
9602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603   (exit $ac_status); } && {
9604          test -z "$ac_c_werror_flag" ||
9605          test ! -s conftest.err
9606        } && test -s conftest$ac_exeext &&
9607        $as_test_x conftest$ac_exeext; then
9608   ac_cv_lib_svld_dlopen=yes
9609 else
9610   echo "$as_me: failed program was:" >&5
9611 sed 's/^/| /' conftest.$ac_ext >&5
9612
9613         ac_cv_lib_svld_dlopen=no
9614 fi
9615
9616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9617       conftest$ac_exeext conftest.$ac_ext
9618 LIBS=$ac_check_lib_save_LIBS
9619 fi
9620 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9621 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9622 if test $ac_cv_lib_svld_dlopen = yes; then
9623   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9624 else
9625   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9626 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9627 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9628   echo $ECHO_N "(cached) $ECHO_C" >&6
9629 else
9630   ac_check_lib_save_LIBS=$LIBS
9631 LIBS="-ldld  $LIBS"
9632 cat >conftest.$ac_ext <<_ACEOF
9633 /* confdefs.h.  */
9634 _ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h.  */
9638
9639 /* Override any GCC internal prototype to avoid an error.
9640    Use char because int might match the return type of a GCC
9641    builtin and then its argument prototype would still apply.  */
9642 #ifdef __cplusplus
9643 extern "C"
9644 #endif
9645 char dld_link ();
9646 int
9647 main ()
9648 {
9649 return dld_link ();
9650   ;
9651   return 0;
9652 }
9653 _ACEOF
9654 rm -f conftest.$ac_objext conftest$ac_exeext
9655 if { (ac_try="$ac_link"
9656 case "(($ac_try" in
9657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658   *) ac_try_echo=$ac_try;;
9659 esac
9660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661   (eval "$ac_link") 2>conftest.er1
9662   ac_status=$?
9663   grep -v '^ *+' conftest.er1 >conftest.err
9664   rm -f conftest.er1
9665   cat conftest.err >&5
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); } && {
9668          test -z "$ac_c_werror_flag" ||
9669          test ! -s conftest.err
9670        } && test -s conftest$ac_exeext &&
9671        $as_test_x conftest$ac_exeext; then
9672   ac_cv_lib_dld_dld_link=yes
9673 else
9674   echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9676
9677         ac_cv_lib_dld_dld_link=no
9678 fi
9679
9680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9681       conftest$ac_exeext conftest.$ac_ext
9682 LIBS=$ac_check_lib_save_LIBS
9683 fi
9684 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9685 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9686 if test $ac_cv_lib_dld_dld_link = yes; then
9687   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9688 fi
9689
9690
9691 fi
9692
9693
9694 fi
9695
9696
9697 fi
9698
9699
9700 fi
9701
9702
9703 fi
9704
9705     ;;
9706   esac
9707
9708   if test "x$lt_cv_dlopen" != xno; then
9709     enable_dlopen=yes
9710   else
9711     enable_dlopen=no
9712   fi
9713
9714   case $lt_cv_dlopen in
9715   dlopen)
9716     save_CPPFLAGS="$CPPFLAGS"
9717     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9718
9719     save_LDFLAGS="$LDFLAGS"
9720     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9721
9722     save_LIBS="$LIBS"
9723     LIBS="$lt_cv_dlopen_libs $LIBS"
9724
9725     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9726 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9727 if test "${lt_cv_dlopen_self+set}" = set; then
9728   echo $ECHO_N "(cached) $ECHO_C" >&6
9729 else
9730           if test "$cross_compiling" = yes; then :
9731   lt_cv_dlopen_self=cross
9732 else
9733   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9734   lt_status=$lt_dlunknown
9735   cat > conftest.$ac_ext <<EOF
9736 #line 9736 "configure"
9737 #include "confdefs.h"
9738
9739 #if HAVE_DLFCN_H
9740 #include <dlfcn.h>
9741 #endif
9742
9743 #include <stdio.h>
9744
9745 #ifdef RTLD_GLOBAL
9746 #  define LT_DLGLOBAL           RTLD_GLOBAL
9747 #else
9748 #  ifdef DL_GLOBAL
9749 #    define LT_DLGLOBAL         DL_GLOBAL
9750 #  else
9751 #    define LT_DLGLOBAL         0
9752 #  endif
9753 #endif
9754
9755 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9756    find out it does not work in some platform. */
9757 #ifndef LT_DLLAZY_OR_NOW
9758 #  ifdef RTLD_LAZY
9759 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9760 #  else
9761 #    ifdef DL_LAZY
9762 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9763 #    else
9764 #      ifdef RTLD_NOW
9765 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9766 #      else
9767 #        ifdef DL_NOW
9768 #          define LT_DLLAZY_OR_NOW      DL_NOW
9769 #        else
9770 #          define LT_DLLAZY_OR_NOW      0
9771 #        endif
9772 #      endif
9773 #    endif
9774 #  endif
9775 #endif
9776
9777 #ifdef __cplusplus
9778 extern "C" void exit (int);
9779 #endif
9780
9781 void fnord() { int i=42;}
9782 int main ()
9783 {
9784   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9785   int status = $lt_dlunknown;
9786
9787   if (self)
9788     {
9789       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9790       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9791       /* dlclose (self); */
9792     }
9793   else
9794     puts (dlerror ());
9795
9796     exit (status);
9797 }
9798 EOF
9799   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9800   (eval $ac_link) 2>&5
9801   ac_status=$?
9802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9804     (./conftest; exit; ) >&5 2>/dev/null
9805     lt_status=$?
9806     case x$lt_status in
9807       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9808       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9809       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9810     esac
9811   else :
9812     # compilation failed
9813     lt_cv_dlopen_self=no
9814   fi
9815 fi
9816 rm -fr conftest*
9817
9818
9819 fi
9820 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9821 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9822
9823     if test "x$lt_cv_dlopen_self" = xyes; then
9824       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9825       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9826 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9827 if test "${lt_cv_dlopen_self_static+set}" = set; then
9828   echo $ECHO_N "(cached) $ECHO_C" >&6
9829 else
9830           if test "$cross_compiling" = yes; then :
9831   lt_cv_dlopen_self_static=cross
9832 else
9833   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9834   lt_status=$lt_dlunknown
9835   cat > conftest.$ac_ext <<EOF
9836 #line 9836 "configure"
9837 #include "confdefs.h"
9838
9839 #if HAVE_DLFCN_H
9840 #include <dlfcn.h>
9841 #endif
9842
9843 #include <stdio.h>
9844
9845 #ifdef RTLD_GLOBAL
9846 #  define LT_DLGLOBAL           RTLD_GLOBAL
9847 #else
9848 #  ifdef DL_GLOBAL
9849 #    define LT_DLGLOBAL         DL_GLOBAL
9850 #  else
9851 #    define LT_DLGLOBAL         0
9852 #  endif
9853 #endif
9854
9855 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9856    find out it does not work in some platform. */
9857 #ifndef LT_DLLAZY_OR_NOW
9858 #  ifdef RTLD_LAZY
9859 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9860 #  else
9861 #    ifdef DL_LAZY
9862 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9863 #    else
9864 #      ifdef RTLD_NOW
9865 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9866 #      else
9867 #        ifdef DL_NOW
9868 #          define LT_DLLAZY_OR_NOW      DL_NOW
9869 #        else
9870 #          define LT_DLLAZY_OR_NOW      0
9871 #        endif
9872 #      endif
9873 #    endif
9874 #  endif
9875 #endif
9876
9877 #ifdef __cplusplus
9878 extern "C" void exit (int);
9879 #endif
9880
9881 void fnord() { int i=42;}
9882 int main ()
9883 {
9884   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9885   int status = $lt_dlunknown;
9886
9887   if (self)
9888     {
9889       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9890       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9891       /* dlclose (self); */
9892     }
9893   else
9894     puts (dlerror ());
9895
9896     exit (status);
9897 }
9898 EOF
9899   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9900   (eval $ac_link) 2>&5
9901   ac_status=$?
9902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9904     (./conftest; exit; ) >&5 2>/dev/null
9905     lt_status=$?
9906     case x$lt_status in
9907       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9908       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9909       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9910     esac
9911   else :
9912     # compilation failed
9913     lt_cv_dlopen_self_static=no
9914   fi
9915 fi
9916 rm -fr conftest*
9917
9918
9919 fi
9920 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9921 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9922     fi
9923
9924     CPPFLAGS="$save_CPPFLAGS"
9925     LDFLAGS="$save_LDFLAGS"
9926     LIBS="$save_LIBS"
9927     ;;
9928   esac
9929
9930   case $lt_cv_dlopen_self in
9931   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9932   *) enable_dlopen_self=unknown ;;
9933   esac
9934
9935   case $lt_cv_dlopen_self_static in
9936   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9937   *) enable_dlopen_self_static=unknown ;;
9938   esac
9939 fi
9940
9941
9942 # Report which library types will actually be built
9943 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9944 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9945 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9946 echo "${ECHO_T}$can_build_shared" >&6; }
9947
9948 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9949 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9950 test "$can_build_shared" = "no" && enable_shared=no
9951
9952 # On AIX, shared libraries and static libraries use the same namespace, and
9953 # are all built from PIC.
9954 case $host_os in
9955 aix3*)
9956   test "$enable_shared" = yes && enable_static=no
9957   if test -n "$RANLIB"; then
9958     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9959     postinstall_cmds='$RANLIB $lib'
9960   fi
9961   ;;
9962
9963 aix4* | aix5*)
9964   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9965     test "$enable_shared" = yes && enable_static=no
9966   fi
9967     ;;
9968 esac
9969 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9970 echo "${ECHO_T}$enable_shared" >&6; }
9971
9972 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9973 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9974 # Make sure either enable_shared or enable_static is yes.
9975 test "$enable_shared" = yes || enable_static=yes
9976 { echo "$as_me:$LINENO: result: $enable_static" >&5
9977 echo "${ECHO_T}$enable_static" >&6; }
9978
9979 # The else clause should only fire when bootstrapping the
9980 # libtool distribution, otherwise you forgot to ship ltmain.sh
9981 # with your package, and you will get complaints that there are
9982 # no rules to generate ltmain.sh.
9983 if test -f "$ltmain"; then
9984   # See if we are running on zsh, and set the options which allow our commands through
9985   # without removal of \ escapes.
9986   if test -n "${ZSH_VERSION+set}" ; then
9987     setopt NO_GLOB_SUBST
9988   fi
9989   # Now quote all the things that may contain metacharacters while being
9990   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9991   # variables and quote the copies for generation of the libtool script.
9992   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9993     SED SHELL STRIP \
9994     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9995     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9996     deplibs_check_method reload_flag reload_cmds need_locks \
9997     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9998     lt_cv_sys_global_symbol_to_c_name_address \
9999     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10000     old_postinstall_cmds old_postuninstall_cmds \
10001     compiler \
10002     CC \
10003     LD \
10004     lt_prog_compiler_wl \
10005     lt_prog_compiler_pic \
10006     lt_prog_compiler_static \
10007     lt_prog_compiler_no_builtin_flag \
10008     export_dynamic_flag_spec \
10009     thread_safe_flag_spec \
10010     whole_archive_flag_spec \
10011     enable_shared_with_static_runtimes \
10012     old_archive_cmds \
10013     old_archive_from_new_cmds \
10014     predep_objects \
10015     postdep_objects \
10016     predeps \
10017     postdeps \
10018     compiler_lib_search_path \
10019     archive_cmds \
10020     archive_expsym_cmds \
10021     postinstall_cmds \
10022     postuninstall_cmds \
10023     old_archive_from_expsyms_cmds \
10024     allow_undefined_flag \
10025     no_undefined_flag \
10026     export_symbols_cmds \
10027     hardcode_libdir_flag_spec \
10028     hardcode_libdir_flag_spec_ld \
10029     hardcode_libdir_separator \
10030     hardcode_automatic \
10031     module_cmds \
10032     module_expsym_cmds \
10033     lt_cv_prog_compiler_c_o \
10034     exclude_expsyms \
10035     include_expsyms; do
10036
10037     case $var in
10038     old_archive_cmds | \
10039     old_archive_from_new_cmds | \
10040     archive_cmds | \
10041     archive_expsym_cmds | \
10042     module_cmds | \
10043     module_expsym_cmds | \
10044     old_archive_from_expsyms_cmds | \
10045     export_symbols_cmds | \
10046     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10047     postinstall_cmds | postuninstall_cmds | \
10048     old_postinstall_cmds | old_postuninstall_cmds | \
10049     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10050       # Double-quote double-evaled strings.
10051       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10052       ;;
10053     *)
10054       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10055       ;;
10056     esac
10057   done
10058
10059   case $lt_echo in
10060   *'\$0 --fallback-echo"')
10061     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10062     ;;
10063   esac
10064
10065 cfgfile="${ofile}T"
10066   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10067   $rm -f "$cfgfile"
10068   { echo "$as_me:$LINENO: creating $ofile" >&5
10069 echo "$as_me: creating $ofile" >&6;}
10070
10071   cat <<__EOF__ >> "$cfgfile"
10072 #! $SHELL
10073
10074 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10075 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10076 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10077 #
10078 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10079 # Free Software Foundation, Inc.
10080 #
10081 # This file is part of GNU Libtool:
10082 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10083 #
10084 # This program is free software; you can redistribute it and/or modify
10085 # it under the terms of the GNU General Public License as published by
10086 # the Free Software Foundation; either version 2 of the License, or
10087 # (at your option) any later version.
10088 #
10089 # This program is distributed in the hope that it will be useful, but
10090 # WITHOUT ANY WARRANTY; without even the implied warranty of
10091 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10092 # General Public License for more details.
10093 #
10094 # You should have received a copy of the GNU General Public License
10095 # along with this program; if not, write to the Free Software
10096 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10097 #
10098 # As a special exception to the GNU General Public License, if you
10099 # distribute this file as part of a program that contains a
10100 # configuration script generated by Autoconf, you may include it under
10101 # the same distribution terms that you use for the rest of that program.
10102
10103 # A sed program that does not truncate output.
10104 SED=$lt_SED
10105
10106 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10107 Xsed="$SED -e 1s/^X//"
10108
10109 # The HP-UX ksh and POSIX shell print the target directory to stdout
10110 # if CDPATH is set.
10111 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10112
10113 # The names of the tagged configurations supported by this script.
10114 available_tags=
10115
10116 # ### BEGIN LIBTOOL CONFIG
10117
10118 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10119
10120 # Shell to use when invoking shell scripts.
10121 SHELL=$lt_SHELL
10122
10123 # Whether or not to build shared libraries.
10124 build_libtool_libs=$enable_shared
10125
10126 # Whether or not to build static libraries.
10127 build_old_libs=$enable_static
10128
10129 # Whether or not to add -lc for building shared libraries.
10130 build_libtool_need_lc=$archive_cmds_need_lc
10131
10132 # Whether or not to disallow shared libs when runtime libs are static
10133 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10134
10135 # Whether or not to optimize for fast installation.
10136 fast_install=$enable_fast_install
10137
10138 # The host system.
10139 host_alias=$host_alias
10140 host=$host
10141 host_os=$host_os
10142
10143 # The build system.
10144 build_alias=$build_alias
10145 build=$build
10146 build_os=$build_os
10147
10148 # An echo program that does not interpret backslashes.
10149 echo=$lt_echo
10150
10151 # The archiver.
10152 AR=$lt_AR
10153 AR_FLAGS=$lt_AR_FLAGS
10154
10155 # A C compiler.
10156 LTCC=$lt_LTCC
10157
10158 # LTCC compiler flags.
10159 LTCFLAGS=$lt_LTCFLAGS
10160
10161 # A language-specific compiler.
10162 CC=$lt_compiler
10163
10164 # Is the compiler the GNU C compiler?
10165 with_gcc=$GCC
10166
10167 # An ERE matcher.
10168 EGREP=$lt_EGREP
10169
10170 # The linker used to build libraries.
10171 LD=$lt_LD
10172
10173 # Whether we need hard or soft links.
10174 LN_S=$lt_LN_S
10175
10176 # A BSD-compatible nm program.
10177 NM=$lt_NM
10178
10179 # A symbol stripping program
10180 STRIP=$lt_STRIP
10181
10182 # Used to examine libraries when file_magic_cmd begins "file"
10183 MAGIC_CMD=$MAGIC_CMD
10184
10185 # Used on cygwin: DLL creation program.
10186 DLLTOOL="$DLLTOOL"
10187
10188 # Used on cygwin: object dumper.
10189 OBJDUMP="$OBJDUMP"
10190
10191 # Used on cygwin: assembler.
10192 AS="$AS"
10193
10194 # The name of the directory that contains temporary libtool files.
10195 objdir=$objdir
10196
10197 # How to create reloadable object files.
10198 reload_flag=$lt_reload_flag
10199 reload_cmds=$lt_reload_cmds
10200
10201 # How to pass a linker flag through the compiler.
10202 wl=$lt_lt_prog_compiler_wl
10203
10204 # Object file suffix (normally "o").
10205 objext="$ac_objext"
10206
10207 # Old archive suffix (normally "a").
10208 libext="$libext"
10209
10210 # Shared library suffix (normally ".so").
10211 shrext_cmds='$shrext_cmds'
10212
10213 # Executable file suffix (normally "").
10214 exeext="$exeext"
10215
10216 # Additional compiler flags for building library objects.
10217 pic_flag=$lt_lt_prog_compiler_pic
10218 pic_mode=$pic_mode
10219
10220 # What is the maximum length of a command?
10221 max_cmd_len=$lt_cv_sys_max_cmd_len
10222
10223 # Does compiler simultaneously support -c and -o options?
10224 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10225
10226 # Must we lock files when doing compilation?
10227 need_locks=$lt_need_locks
10228
10229 # Do we need the lib prefix for modules?
10230 need_lib_prefix=$need_lib_prefix
10231
10232 # Do we need a version for libraries?
10233 need_version=$need_version
10234
10235 # Whether dlopen is supported.
10236 dlopen_support=$enable_dlopen
10237
10238 # Whether dlopen of programs is supported.
10239 dlopen_self=$enable_dlopen_self
10240
10241 # Whether dlopen of statically linked programs is supported.
10242 dlopen_self_static=$enable_dlopen_self_static
10243
10244 # Compiler flag to prevent dynamic linking.
10245 link_static_flag=$lt_lt_prog_compiler_static
10246
10247 # Compiler flag to turn off builtin functions.
10248 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10249
10250 # Compiler flag to allow reflexive dlopens.
10251 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10252
10253 # Compiler flag to generate shared objects directly from archives.
10254 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10255
10256 # Compiler flag to generate thread-safe objects.
10257 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10258
10259 # Library versioning type.
10260 version_type=$version_type
10261
10262 # Format of library name prefix.
10263 libname_spec=$lt_libname_spec
10264
10265 # List of archive names.  First name is the real one, the rest are links.
10266 # The last name is the one that the linker finds with -lNAME.
10267 library_names_spec=$lt_library_names_spec
10268
10269 # The coded name of the library, if different from the real name.
10270 soname_spec=$lt_soname_spec
10271
10272 # Commands used to build and install an old-style archive.
10273 RANLIB=$lt_RANLIB
10274 old_archive_cmds=$lt_old_archive_cmds
10275 old_postinstall_cmds=$lt_old_postinstall_cmds
10276 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10277
10278 # Create an old-style archive from a shared archive.
10279 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10280
10281 # Create a temporary old-style archive to link instead of a shared archive.
10282 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10283
10284 # Commands used to build and install a shared archive.
10285 archive_cmds=$lt_archive_cmds
10286 archive_expsym_cmds=$lt_archive_expsym_cmds
10287 postinstall_cmds=$lt_postinstall_cmds
10288 postuninstall_cmds=$lt_postuninstall_cmds
10289
10290 # Commands used to build a loadable module (assumed same as above if empty)
10291 module_cmds=$lt_module_cmds
10292 module_expsym_cmds=$lt_module_expsym_cmds
10293
10294 # Commands to strip libraries.
10295 old_striplib=$lt_old_striplib
10296 striplib=$lt_striplib
10297
10298 # Dependencies to place before the objects being linked to create a
10299 # shared library.
10300 predep_objects=$lt_predep_objects
10301
10302 # Dependencies to place after the objects being linked to create a
10303 # shared library.
10304 postdep_objects=$lt_postdep_objects
10305
10306 # Dependencies to place before the objects being linked to create a
10307 # shared library.
10308 predeps=$lt_predeps
10309
10310 # Dependencies to place after the objects being linked to create a
10311 # shared library.
10312 postdeps=$lt_postdeps
10313
10314 # The library search path used internally by the compiler when linking
10315 # a shared library.
10316 compiler_lib_search_path=$lt_compiler_lib_search_path
10317
10318 # Method to check whether dependent libraries are shared objects.
10319 deplibs_check_method=$lt_deplibs_check_method
10320
10321 # Command to use when deplibs_check_method == file_magic.
10322 file_magic_cmd=$lt_file_magic_cmd
10323
10324 # Flag that allows shared libraries with undefined symbols to be built.
10325 allow_undefined_flag=$lt_allow_undefined_flag
10326
10327 # Flag that forces no undefined symbols.
10328 no_undefined_flag=$lt_no_undefined_flag
10329
10330 # Commands used to finish a libtool library installation in a directory.
10331 finish_cmds=$lt_finish_cmds
10332
10333 # Same as above, but a single script fragment to be evaled but not shown.
10334 finish_eval=$lt_finish_eval
10335
10336 # Take the output of nm and produce a listing of raw symbols and C names.
10337 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10338
10339 # Transform the output of nm in a proper C declaration
10340 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10341
10342 # Transform the output of nm in a C name address pair
10343 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10344
10345 # This is the shared library runtime path variable.
10346 runpath_var=$runpath_var
10347
10348 # This is the shared library path variable.
10349 shlibpath_var=$shlibpath_var
10350
10351 # Is shlibpath searched before the hard-coded library search path?
10352 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10353
10354 # How to hardcode a shared library path into an executable.
10355 hardcode_action=$hardcode_action
10356
10357 # Whether we should hardcode library paths into libraries.
10358 hardcode_into_libs=$hardcode_into_libs
10359
10360 # Flag to hardcode \$libdir into a binary during linking.
10361 # This must work even if \$libdir does not exist.
10362 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10363
10364 # If ld is used when linking, flag to hardcode \$libdir into
10365 # a binary during linking. This must work even if \$libdir does
10366 # not exist.
10367 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10368
10369 # Whether we need a single -rpath flag with a separated argument.
10370 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10371
10372 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10373 # resulting binary.
10374 hardcode_direct=$hardcode_direct
10375
10376 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10377 # resulting binary.
10378 hardcode_minus_L=$hardcode_minus_L
10379
10380 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10381 # the resulting binary.
10382 hardcode_shlibpath_var=$hardcode_shlibpath_var
10383
10384 # Set to yes if building a shared library automatically hardcodes DIR into the library
10385 # and all subsequent libraries and executables linked against it.
10386 hardcode_automatic=$hardcode_automatic
10387
10388 # Variables whose values should be saved in libtool wrapper scripts and
10389 # restored at relink time.
10390 variables_saved_for_relink="$variables_saved_for_relink"
10391
10392 # Whether libtool must link a program against all its dependency libraries.
10393 link_all_deplibs=$link_all_deplibs
10394
10395 # Compile-time system search path for libraries
10396 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10397
10398 # Run-time system search path for libraries
10399 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10400
10401 # Fix the shell variable \$srcfile for the compiler.
10402 fix_srcfile_path="$fix_srcfile_path"
10403
10404 # Set to yes if exported symbols are required.
10405 always_export_symbols=$always_export_symbols
10406
10407 # The commands to list exported symbols.
10408 export_symbols_cmds=$lt_export_symbols_cmds
10409
10410 # The commands to extract the exported symbol list from a shared archive.
10411 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10412
10413 # Symbols that should not be listed in the preloaded symbols.
10414 exclude_expsyms=$lt_exclude_expsyms
10415
10416 # Symbols that must always be exported.
10417 include_expsyms=$lt_include_expsyms
10418
10419 # ### END LIBTOOL CONFIG
10420
10421 __EOF__
10422
10423
10424   case $host_os in
10425   aix3*)
10426     cat <<\EOF >> "$cfgfile"
10427
10428 # AIX sometimes has problems with the GCC collect2 program.  For some
10429 # reason, if we set the COLLECT_NAMES environment variable, the problems
10430 # vanish in a puff of smoke.
10431 if test "X${COLLECT_NAMES+set}" != Xset; then
10432   COLLECT_NAMES=
10433   export COLLECT_NAMES
10434 fi
10435 EOF
10436     ;;
10437   esac
10438
10439   # We use sed instead of cat because bash on DJGPP gets confused if
10440   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10441   # text mode, it properly converts lines to CR/LF.  This bash problem
10442   # is reportedly fixed, but why not run on old versions too?
10443   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10444
10445   mv -f "$cfgfile" "$ofile" || \
10446     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10447   chmod +x "$ofile"
10448
10449 else
10450   # If there is no Makefile yet, we rely on a make rule to execute
10451   # `config.status --recheck' to rerun these tests and create the
10452   # libtool script then.
10453   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10454   if test -f "$ltmain_in"; then
10455     test -f Makefile && make "$ltmain"
10456   fi
10457 fi
10458
10459
10460 ac_ext=c
10461 ac_cpp='$CPP $CPPFLAGS'
10462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10465
10466 CC="$lt_save_CC"
10467
10468
10469 # Check whether --with-tags was given.
10470 if test "${with_tags+set}" = set; then
10471   withval=$with_tags; tagnames="$withval"
10472 fi
10473
10474
10475 if test -f "$ltmain" && test -n "$tagnames"; then
10476   if test ! -f "${ofile}"; then
10477     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10478 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10479   fi
10480
10481   if test -z "$LTCC"; then
10482     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10483     if test -z "$LTCC"; then
10484       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10485 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10486     else
10487       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10488 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10489     fi
10490   fi
10491   if test -z "$LTCFLAGS"; then
10492     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10493   fi
10494
10495   # Extract list of available tagged configurations in $ofile.
10496   # Note that this assumes the entire list is on one line.
10497   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10498
10499   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10500   for tagname in $tagnames; do
10501     IFS="$lt_save_ifs"
10502     # Check whether tagname contains only valid characters
10503     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10504     "") ;;
10505     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10506 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10507    { (exit 1); exit 1; }; }
10508         ;;
10509     esac
10510
10511     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10512     then
10513       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10514 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10515    { (exit 1); exit 1; }; }
10516     fi
10517
10518     # Update the list of available tags.
10519     if test -n "$tagname"; then
10520       echo appending configuration tag \"$tagname\" to $ofile
10521
10522       case $tagname in
10523       CXX)
10524         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10525             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10526             (test "X$CXX" != "Xg++"))) ; then
10527           ac_ext=cpp
10528 ac_cpp='$CXXCPP $CPPFLAGS'
10529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10532
10533
10534
10535
10536 archive_cmds_need_lc_CXX=no
10537 allow_undefined_flag_CXX=
10538 always_export_symbols_CXX=no
10539 archive_expsym_cmds_CXX=
10540 export_dynamic_flag_spec_CXX=
10541 hardcode_direct_CXX=no
10542 hardcode_libdir_flag_spec_CXX=
10543 hardcode_libdir_flag_spec_ld_CXX=
10544 hardcode_libdir_separator_CXX=
10545 hardcode_minus_L_CXX=no
10546 hardcode_shlibpath_var_CXX=unsupported
10547 hardcode_automatic_CXX=no
10548 module_cmds_CXX=
10549 module_expsym_cmds_CXX=
10550 link_all_deplibs_CXX=unknown
10551 old_archive_cmds_CXX=$old_archive_cmds
10552 no_undefined_flag_CXX=
10553 whole_archive_flag_spec_CXX=
10554 enable_shared_with_static_runtimes_CXX=no
10555
10556 # Dependencies to place before and after the object being linked:
10557 predep_objects_CXX=
10558 postdep_objects_CXX=
10559 predeps_CXX=
10560 postdeps_CXX=
10561 compiler_lib_search_path_CXX=
10562
10563 # Source file extension for C++ test sources.
10564 ac_ext=cpp
10565
10566 # Object file extension for compiled C++ test sources.
10567 objext=o
10568 objext_CXX=$objext
10569
10570 # Code to be used in simple compile tests
10571 lt_simple_compile_test_code="int some_variable = 0;\n"
10572
10573 # Code to be used in simple link tests
10574 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10575
10576 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10577
10578 # If no C compiler was specified, use CC.
10579 LTCC=${LTCC-"$CC"}
10580
10581 # If no C compiler flags were specified, use CFLAGS.
10582 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10583
10584 # Allow CC to be a program name with arguments.
10585 compiler=$CC
10586
10587
10588 # save warnings/boilerplate of simple test code
10589 ac_outfile=conftest.$ac_objext
10590 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10591 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10592 _lt_compiler_boilerplate=`cat conftest.err`
10593 $rm conftest*
10594
10595 ac_outfile=conftest.$ac_objext
10596 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10597 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10598 _lt_linker_boilerplate=`cat conftest.err`
10599 $rm conftest*
10600
10601
10602 # Allow CC to be a program name with arguments.
10603 lt_save_CC=$CC
10604 lt_save_LD=$LD
10605 lt_save_GCC=$GCC
10606 GCC=$GXX
10607 lt_save_with_gnu_ld=$with_gnu_ld
10608 lt_save_path_LD=$lt_cv_path_LD
10609 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10610   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10611 else
10612   $as_unset lt_cv_prog_gnu_ld
10613 fi
10614 if test -n "${lt_cv_path_LDCXX+set}"; then
10615   lt_cv_path_LD=$lt_cv_path_LDCXX
10616 else
10617   $as_unset lt_cv_path_LD
10618 fi
10619 test -z "${LDCXX+set}" || LD=$LDCXX
10620 CC=${CXX-"c++"}
10621 compiler=$CC
10622 compiler_CXX=$CC
10623 for cc_temp in $compiler""; do
10624   case $cc_temp in
10625     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10626     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10627     \-*) ;;
10628     *) break;;
10629   esac
10630 done
10631 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10632
10633
10634 # We don't want -fno-exception wen compiling C++ code, so set the
10635 # no_builtin_flag separately
10636 if test "$GXX" = yes; then
10637   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10638 else
10639   lt_prog_compiler_no_builtin_flag_CXX=
10640 fi
10641
10642 if test "$GXX" = yes; then
10643   # Set up default GNU C++ configuration
10644
10645
10646 # Check whether --with-gnu-ld was given.
10647 if test "${with_gnu_ld+set}" = set; then
10648   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10649 else
10650   with_gnu_ld=no
10651 fi
10652
10653 ac_prog=ld
10654 if test "$GCC" = yes; then
10655   # Check if gcc -print-prog-name=ld gives a path.
10656   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10657 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10658   case $host in
10659   *-*-mingw*)
10660     # gcc leaves a trailing carriage return which upsets mingw
10661     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10662   *)
10663     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10664   esac
10665   case $ac_prog in
10666     # Accept absolute paths.
10667     [\\/]* | ?:[\\/]*)
10668       re_direlt='/[^/][^/]*/\.\./'
10669       # Canonicalize the pathname of ld
10670       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10671       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10672         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10673       done
10674       test -z "$LD" && LD="$ac_prog"
10675       ;;
10676   "")
10677     # If it fails, then pretend we aren't using GCC.
10678     ac_prog=ld
10679     ;;
10680   *)
10681     # If it is relative, then search for the first ld in PATH.
10682     with_gnu_ld=unknown
10683     ;;
10684   esac
10685 elif test "$with_gnu_ld" = yes; then
10686   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10687 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10688 else
10689   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10690 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10691 fi
10692 if test "${lt_cv_path_LD+set}" = set; then
10693   echo $ECHO_N "(cached) $ECHO_C" >&6
10694 else
10695   if test -z "$LD"; then
10696   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10697   for ac_dir in $PATH; do
10698     IFS="$lt_save_ifs"
10699     test -z "$ac_dir" && ac_dir=.
10700     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10701       lt_cv_path_LD="$ac_dir/$ac_prog"
10702       # Check to see if the program is GNU ld.  I'd rather use --version,
10703       # but apparently some variants of GNU ld only accept -v.
10704       # Break only if it was the GNU/non-GNU ld that we prefer.
10705       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10706       *GNU* | *'with BFD'*)
10707         test "$with_gnu_ld" != no && break
10708         ;;
10709       *)
10710         test "$with_gnu_ld" != yes && break
10711         ;;
10712       esac
10713     fi
10714   done
10715   IFS="$lt_save_ifs"
10716 else
10717   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10718 fi
10719 fi
10720
10721 LD="$lt_cv_path_LD"
10722 if test -n "$LD"; then
10723   { echo "$as_me:$LINENO: result: $LD" >&5
10724 echo "${ECHO_T}$LD" >&6; }
10725 else
10726   { echo "$as_me:$LINENO: result: no" >&5
10727 echo "${ECHO_T}no" >&6; }
10728 fi
10729 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10730 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10731    { (exit 1); exit 1; }; }
10732 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10733 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10734 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10735   echo $ECHO_N "(cached) $ECHO_C" >&6
10736 else
10737   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10738 case `$LD -v 2>&1 </dev/null` in
10739 *GNU* | *'with BFD'*)
10740   lt_cv_prog_gnu_ld=yes
10741   ;;
10742 *)
10743   lt_cv_prog_gnu_ld=no
10744   ;;
10745 esac
10746 fi
10747 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10748 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10749 with_gnu_ld=$lt_cv_prog_gnu_ld
10750
10751
10752
10753   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10754   # archiving commands below assume that GNU ld is being used.
10755   if test "$with_gnu_ld" = yes; then
10756     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10757     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'
10758
10759     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10760     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10761
10762     # If archive_cmds runs LD, not CC, wlarc should be empty
10763     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10764     #     investigate it a little bit more. (MM)
10765     wlarc='${wl}'
10766
10767     # ancient GNU ld didn't support --whole-archive et. al.
10768     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10769         grep 'no-whole-archive' > /dev/null; then
10770       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10771     else
10772       whole_archive_flag_spec_CXX=
10773     fi
10774   else
10775     with_gnu_ld=no
10776     wlarc=
10777
10778     # A generic and very simple default shared library creation
10779     # command for GNU C++ for the case where it uses the native
10780     # linker, instead of GNU ld.  If possible, this setting should
10781     # overridden to take advantage of the native linker features on
10782     # the platform it is being used on.
10783     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10784   fi
10785
10786   # Commands to make compiler produce verbose output that lists
10787   # what "hidden" libraries, object files and flags are used when
10788   # linking a shared library.
10789   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10790
10791 else
10792   GXX=no
10793   with_gnu_ld=no
10794   wlarc=
10795 fi
10796
10797 # PORTME: fill in a description of your system's C++ link characteristics
10798 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10799 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10800 ld_shlibs_CXX=yes
10801 case $host_os in
10802   aix3*)
10803     # FIXME: insert proper C++ library support
10804     ld_shlibs_CXX=no
10805     ;;
10806   aix4* | aix5*)
10807     if test "$host_cpu" = ia64; then
10808       # On IA64, the linker does run time linking by default, so we don't
10809       # have to do anything special.
10810       aix_use_runtimelinking=no
10811       exp_sym_flag='-Bexport'
10812       no_entry_flag=""
10813     else
10814       aix_use_runtimelinking=no
10815
10816       # Test if we are trying to use run time linking or normal
10817       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10818       # need to do runtime linking.
10819       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10820         for ld_flag in $LDFLAGS; do
10821           case $ld_flag in
10822           *-brtl*)
10823             aix_use_runtimelinking=yes
10824             break
10825             ;;
10826           esac
10827         done
10828         ;;
10829       esac
10830
10831       exp_sym_flag='-bexport'
10832       no_entry_flag='-bnoentry'
10833     fi
10834
10835     # When large executables or shared objects are built, AIX ld can
10836     # have problems creating the table of contents.  If linking a library
10837     # or program results in "error TOC overflow" add -mminimal-toc to
10838     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10839     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10840
10841     archive_cmds_CXX=''
10842     hardcode_direct_CXX=yes
10843     hardcode_libdir_separator_CXX=':'
10844     link_all_deplibs_CXX=yes
10845
10846     if test "$GXX" = yes; then
10847       case $host_os in aix4.[012]|aix4.[012].*)
10848       # We only want to do this on AIX 4.2 and lower, the check
10849       # below for broken collect2 doesn't work under 4.3+
10850         collect2name=`${CC} -print-prog-name=collect2`
10851         if test -f "$collect2name" && \
10852            strings "$collect2name" | grep resolve_lib_name >/dev/null
10853         then
10854           # We have reworked collect2
10855           hardcode_direct_CXX=yes
10856         else
10857           # We have old collect2
10858           hardcode_direct_CXX=unsupported
10859           # It fails to find uninstalled libraries when the uninstalled
10860           # path is not listed in the libpath.  Setting hardcode_minus_L
10861           # to unsupported forces relinking
10862           hardcode_minus_L_CXX=yes
10863           hardcode_libdir_flag_spec_CXX='-L$libdir'
10864           hardcode_libdir_separator_CXX=
10865         fi
10866         ;;
10867       esac
10868       shared_flag='-shared'
10869       if test "$aix_use_runtimelinking" = yes; then
10870         shared_flag="$shared_flag "'${wl}-G'
10871       fi
10872     else
10873       # not using gcc
10874       if test "$host_cpu" = ia64; then
10875         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10876         # chokes on -Wl,-G. The following line is correct:
10877         shared_flag='-G'
10878       else
10879         if test "$aix_use_runtimelinking" = yes; then
10880           shared_flag='${wl}-G'
10881         else
10882           shared_flag='${wl}-bM:SRE'
10883         fi
10884       fi
10885     fi
10886
10887     # It seems that -bexpall does not export symbols beginning with
10888     # underscore (_), so it is better to generate a list of symbols to export.
10889     always_export_symbols_CXX=yes
10890     if test "$aix_use_runtimelinking" = yes; then
10891       # Warning - without using the other runtime loading flags (-brtl),
10892       # -berok will link without error, but may produce a broken library.
10893       allow_undefined_flag_CXX='-berok'
10894       # Determine the default libpath from the value encoded in an empty executable.
10895       cat >conftest.$ac_ext <<_ACEOF
10896 /* confdefs.h.  */
10897 _ACEOF
10898 cat confdefs.h >>conftest.$ac_ext
10899 cat >>conftest.$ac_ext <<_ACEOF
10900 /* end confdefs.h.  */
10901
10902 int
10903 main ()
10904 {
10905
10906   ;
10907   return 0;
10908 }
10909 _ACEOF
10910 rm -f conftest.$ac_objext conftest$ac_exeext
10911 if { (ac_try="$ac_link"
10912 case "(($ac_try" in
10913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914   *) ac_try_echo=$ac_try;;
10915 esac
10916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917   (eval "$ac_link") 2>conftest.er1
10918   ac_status=$?
10919   grep -v '^ *+' conftest.er1 >conftest.err
10920   rm -f conftest.er1
10921   cat conftest.err >&5
10922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923   (exit $ac_status); } && {
10924          test -z "$ac_cxx_werror_flag" ||
10925          test ! -s conftest.err
10926        } && test -s conftest$ac_exeext &&
10927        $as_test_x conftest$ac_exeext; then
10928
10929 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10930 }'`
10931 # Check for a 64-bit object if we didn't find anything.
10932 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10933 }'`; fi
10934 else
10935   echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.$ac_ext >&5
10937
10938
10939 fi
10940
10941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10942       conftest$ac_exeext conftest.$ac_ext
10943 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10944
10945       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10946
10947       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"
10948      else
10949       if test "$host_cpu" = ia64; then
10950         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10951         allow_undefined_flag_CXX="-z nodefs"
10952         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"
10953       else
10954         # Determine the default libpath from the value encoded in an empty executable.
10955         cat >conftest.$ac_ext <<_ACEOF
10956 /* confdefs.h.  */
10957 _ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h.  */
10961
10962 int
10963 main ()
10964 {
10965
10966   ;
10967   return 0;
10968 }
10969 _ACEOF
10970 rm -f conftest.$ac_objext conftest$ac_exeext
10971 if { (ac_try="$ac_link"
10972 case "(($ac_try" in
10973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974   *) ac_try_echo=$ac_try;;
10975 esac
10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977   (eval "$ac_link") 2>conftest.er1
10978   ac_status=$?
10979   grep -v '^ *+' conftest.er1 >conftest.err
10980   rm -f conftest.er1
10981   cat conftest.err >&5
10982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983   (exit $ac_status); } && {
10984          test -z "$ac_cxx_werror_flag" ||
10985          test ! -s conftest.err
10986        } && test -s conftest$ac_exeext &&
10987        $as_test_x conftest$ac_exeext; then
10988
10989 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10990 }'`
10991 # Check for a 64-bit object if we didn't find anything.
10992 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10993 }'`; fi
10994 else
10995   echo "$as_me: failed program was:" >&5
10996 sed 's/^/| /' conftest.$ac_ext >&5
10997
10998
10999 fi
11000
11001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11002       conftest$ac_exeext conftest.$ac_ext
11003 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11004
11005         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11006         # Warning - without using the other run time loading flags,
11007         # -berok will link without error, but may produce a broken library.
11008         no_undefined_flag_CXX=' ${wl}-bernotok'
11009         allow_undefined_flag_CXX=' ${wl}-berok'
11010         # Exported symbols can be pulled into shared objects from archives
11011         whole_archive_flag_spec_CXX='$convenience'
11012         archive_cmds_need_lc_CXX=yes
11013         # This is similar to how AIX traditionally builds its shared libraries.
11014         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'
11015       fi
11016     fi
11017     ;;
11018
11019   beos*)
11020     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11021       allow_undefined_flag_CXX=unsupported
11022       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11023       # support --undefined.  This deserves some investigation.  FIXME
11024       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11025     else
11026       ld_shlibs_CXX=no
11027     fi
11028     ;;
11029
11030   chorus*)
11031     case $cc_basename in
11032       *)
11033         # FIXME: insert proper C++ library support
11034         ld_shlibs_CXX=no
11035         ;;
11036     esac
11037     ;;
11038
11039   cygwin* | mingw* | pw32*)
11040     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11041     # as there is no search path for DLLs.
11042     hardcode_libdir_flag_spec_CXX='-L$libdir'
11043     allow_undefined_flag_CXX=unsupported
11044     always_export_symbols_CXX=no
11045     enable_shared_with_static_runtimes_CXX=yes
11046
11047     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11048       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'
11049       # If the export-symbols file already is a .def file (1st line
11050       # is EXPORTS), use it as is; otherwise, prepend...
11051       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11052         cp $export_symbols $output_objdir/$soname.def;
11053       else
11054         echo EXPORTS > $output_objdir/$soname.def;
11055         cat $export_symbols >> $output_objdir/$soname.def;
11056       fi~
11057       $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'
11058     else
11059       ld_shlibs_CXX=no
11060     fi
11061   ;;
11062       darwin* | rhapsody*)
11063         case $host_os in
11064         rhapsody* | darwin1.[012])
11065          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11066          ;;
11067        *) # Darwin 1.3 on
11068          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11069            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11070          else
11071            case ${MACOSX_DEPLOYMENT_TARGET} in
11072              10.[012])
11073                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11074                ;;
11075              10.*)
11076                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11077                ;;
11078            esac
11079          fi
11080          ;;
11081         esac
11082       archive_cmds_need_lc_CXX=no
11083       hardcode_direct_CXX=no
11084       hardcode_automatic_CXX=yes
11085       hardcode_shlibpath_var_CXX=unsupported
11086       whole_archive_flag_spec_CXX=''
11087       link_all_deplibs_CXX=yes
11088
11089     if test "$GXX" = yes ; then
11090       lt_int_apple_cc_single_mod=no
11091       output_verbose_link_cmd='echo'
11092       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11093        lt_int_apple_cc_single_mod=yes
11094       fi
11095       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11096        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11097       else
11098           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'
11099         fi
11100         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11101         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11102           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11103             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11104           else
11105             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11106           fi
11107             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}'
11108       else
11109       case $cc_basename in
11110         xlc*)
11111          output_verbose_link_cmd='echo'
11112           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11113           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11114           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11115           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11116           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}'
11117           ;;
11118        *)
11119          ld_shlibs_CXX=no
11120           ;;
11121       esac
11122       fi
11123         ;;
11124
11125   dgux*)
11126     case $cc_basename in
11127       ec++*)
11128         # FIXME: insert proper C++ library support
11129         ld_shlibs_CXX=no
11130         ;;
11131       ghcx*)
11132         # Green Hills C++ Compiler
11133         # FIXME: insert proper C++ library support
11134         ld_shlibs_CXX=no
11135         ;;
11136       *)
11137         # FIXME: insert proper C++ library support
11138         ld_shlibs_CXX=no
11139         ;;
11140     esac
11141     ;;
11142   freebsd[12]*)
11143     # C++ shared libraries reported to be fairly broken before switch to ELF
11144     ld_shlibs_CXX=no
11145     ;;
11146   freebsd-elf*)
11147     archive_cmds_need_lc_CXX=no
11148     ;;
11149   freebsd* | dragonfly*)
11150     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11151     # conventions
11152     ld_shlibs_CXX=yes
11153     ;;
11154   gnu*)
11155     ;;
11156   hpux9*)
11157     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11158     hardcode_libdir_separator_CXX=:
11159     export_dynamic_flag_spec_CXX='${wl}-E'
11160     hardcode_direct_CXX=yes
11161     hardcode_minus_L_CXX=yes # Not in the search PATH,
11162                                 # but as the default
11163                                 # location of the library.
11164
11165     case $cc_basename in
11166     CC*)
11167       # FIXME: insert proper C++ library support
11168       ld_shlibs_CXX=no
11169       ;;
11170     aCC*)
11171       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'
11172       # Commands to make compiler produce verbose output that lists
11173       # what "hidden" libraries, object files and flags are used when
11174       # linking a shared library.
11175       #
11176       # There doesn't appear to be a way to prevent this compiler from
11177       # explicitly linking system object files so we need to strip them
11178       # from the output so that they don't get included in the library
11179       # dependencies.
11180       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'
11181       ;;
11182     *)
11183       if test "$GXX" = yes; then
11184         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'
11185       else
11186         # FIXME: insert proper C++ library support
11187         ld_shlibs_CXX=no
11188       fi
11189       ;;
11190     esac
11191     ;;
11192   hpux10*|hpux11*)
11193     if test $with_gnu_ld = no; then
11194       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11195       hardcode_libdir_separator_CXX=:
11196
11197       case $host_cpu in
11198       hppa*64*|ia64*)
11199         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11200         ;;
11201       *)
11202         export_dynamic_flag_spec_CXX='${wl}-E'
11203         ;;
11204       esac
11205     fi
11206     case $host_cpu in
11207     hppa*64*|ia64*)
11208       hardcode_direct_CXX=no
11209       hardcode_shlibpath_var_CXX=no
11210       ;;
11211     *)
11212       hardcode_direct_CXX=yes
11213       hardcode_minus_L_CXX=yes # Not in the search PATH,
11214                                               # but as the default
11215                                               # location of the library.
11216       ;;
11217     esac
11218
11219     case $cc_basename in
11220       CC*)
11221         # FIXME: insert proper C++ library support
11222         ld_shlibs_CXX=no
11223         ;;
11224       aCC*)
11225         case $host_cpu in
11226         hppa*64*)
11227           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11228           ;;
11229         ia64*)
11230           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11231           ;;
11232         *)
11233           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11234           ;;
11235         esac
11236         # Commands to make compiler produce verbose output that lists
11237         # what "hidden" libraries, object files and flags are used when
11238         # linking a shared library.
11239         #
11240         # There doesn't appear to be a way to prevent this compiler from
11241         # explicitly linking system object files so we need to strip them
11242         # from the output so that they don't get included in the library
11243         # dependencies.
11244         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'
11245         ;;
11246       *)
11247         if test "$GXX" = yes; then
11248           if test $with_gnu_ld = no; then
11249             case $host_cpu in
11250             hppa*64*)
11251               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11252               ;;
11253             ia64*)
11254               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11255               ;;
11256             *)
11257               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'
11258               ;;
11259             esac
11260           fi
11261         else
11262           # FIXME: insert proper C++ library support
11263           ld_shlibs_CXX=no
11264         fi
11265         ;;
11266     esac
11267     ;;
11268   interix3*)
11269     hardcode_direct_CXX=no
11270     hardcode_shlibpath_var_CXX=no
11271     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11272     export_dynamic_flag_spec_CXX='${wl}-E'
11273     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11274     # Instead, shared libraries are loaded at an image base (0x10000000 by
11275     # default) and relocated if they conflict, which is a slow very memory
11276     # consuming and fragmenting process.  To avoid this, we pick a random,
11277     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11278     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11279     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'
11280     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'
11281     ;;
11282   irix5* | irix6*)
11283     case $cc_basename in
11284       CC*)
11285         # SGI C++
11286         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'
11287
11288         # Archives containing C++ object files must be created using
11289         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11290         # necessary to make sure instantiated templates are included
11291         # in the archive.
11292         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11293         ;;
11294       *)
11295         if test "$GXX" = yes; then
11296           if test "$with_gnu_ld" = no; then
11297             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'
11298           else
11299             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'
11300           fi
11301         fi
11302         link_all_deplibs_CXX=yes
11303         ;;
11304     esac
11305     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11306     hardcode_libdir_separator_CXX=:
11307     ;;
11308   linux* | k*bsd*-gnu)
11309     case $cc_basename in
11310       KCC*)
11311         # Kuck and Associates, Inc. (KAI) C++ Compiler
11312
11313         # KCC will only create a shared library if the output file
11314         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11315         # to its proper name (with version) after linking.
11316         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'
11317         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'
11318         # Commands to make compiler produce verbose output that lists
11319         # what "hidden" libraries, object files and flags are used when
11320         # linking a shared library.
11321         #
11322         # There doesn't appear to be a way to prevent this compiler from
11323         # explicitly linking system object files so we need to strip them
11324         # from the output so that they don't get included in the library
11325         # dependencies.
11326         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'
11327
11328         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11329         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11330
11331         # Archives containing C++ object files must be created using
11332         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11333         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11334         ;;
11335       icpc*)
11336         # Intel C++
11337         with_gnu_ld=yes
11338         # version 8.0 and above of icpc choke on multiply defined symbols
11339         # if we add $predep_objects and $postdep_objects, however 7.1 and
11340         # earlier do not add the objects themselves.
11341         case `$CC -V 2>&1` in
11342         *"Version 7."*)
11343           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11344           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'
11345           ;;
11346         *)  # Version 8.0 or newer
11347           tmp_idyn=
11348           case $host_cpu in
11349             ia64*) tmp_idyn=' -i_dynamic';;
11350           esac
11351           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11352           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'
11353           ;;
11354         esac
11355         archive_cmds_need_lc_CXX=no
11356         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11357         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11358         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11359         ;;
11360       pgCC*)
11361         # Portland Group C++ compiler
11362         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11363         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'
11364
11365         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11366         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11367         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'
11368         ;;
11369       cxx*)
11370         # Compaq C++
11371         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11372         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'
11373
11374         runpath_var=LD_RUN_PATH
11375         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11376         hardcode_libdir_separator_CXX=:
11377
11378         # Commands to make compiler produce verbose output that lists
11379         # what "hidden" libraries, object files and flags are used when
11380         # linking a shared library.
11381         #
11382         # There doesn't appear to be a way to prevent this compiler from
11383         # explicitly linking system object files so we need to strip them
11384         # from the output so that they don't get included in the library
11385         # dependencies.
11386         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'
11387         ;;
11388     esac
11389     ;;
11390   lynxos*)
11391     # FIXME: insert proper C++ library support
11392     ld_shlibs_CXX=no
11393     ;;
11394   m88k*)
11395     # FIXME: insert proper C++ library support
11396     ld_shlibs_CXX=no
11397     ;;
11398   mvs*)
11399     case $cc_basename in
11400       cxx*)
11401         # FIXME: insert proper C++ library support
11402         ld_shlibs_CXX=no
11403         ;;
11404       *)
11405         # FIXME: insert proper C++ library support
11406         ld_shlibs_CXX=no
11407         ;;
11408     esac
11409     ;;
11410   netbsd* | netbsdelf*-gnu)
11411     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11412       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11413       wlarc=
11414       hardcode_libdir_flag_spec_CXX='-R$libdir'
11415       hardcode_direct_CXX=yes
11416       hardcode_shlibpath_var_CXX=no
11417     fi
11418     # Workaround some broken pre-1.5 toolchains
11419     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11420     ;;
11421   openbsd2*)
11422     # C++ shared libraries are fairly broken
11423     ld_shlibs_CXX=no
11424     ;;
11425   openbsd*)
11426     hardcode_direct_CXX=yes
11427     hardcode_shlibpath_var_CXX=no
11428     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11429     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11430     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11431       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11432       export_dynamic_flag_spec_CXX='${wl}-E'
11433       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11434     fi
11435     output_verbose_link_cmd='echo'
11436     ;;
11437   osf3*)
11438     case $cc_basename in
11439       KCC*)
11440         # Kuck and Associates, Inc. (KAI) C++ Compiler
11441
11442         # KCC will only create a shared library if the output file
11443         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11444         # to its proper name (with version) after linking.
11445         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'
11446
11447         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11448         hardcode_libdir_separator_CXX=:
11449
11450         # Archives containing C++ object files must be created using
11451         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11452         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11453
11454         ;;
11455       RCC*)
11456         # Rational C++ 2.4.1
11457         # FIXME: insert proper C++ library support
11458         ld_shlibs_CXX=no
11459         ;;
11460       cxx*)
11461         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11462         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'
11463
11464         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11465         hardcode_libdir_separator_CXX=:
11466
11467         # Commands to make compiler produce verbose output that lists
11468         # what "hidden" libraries, object files and flags are used when
11469         # linking a shared library.
11470         #
11471         # There doesn't appear to be a way to prevent this compiler from
11472         # explicitly linking system object files so we need to strip them
11473         # from the output so that they don't get included in the library
11474         # dependencies.
11475         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'
11476         ;;
11477       *)
11478         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11479           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11480           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'
11481
11482           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11483           hardcode_libdir_separator_CXX=:
11484
11485           # Commands to make compiler produce verbose output that lists
11486           # what "hidden" libraries, object files and flags are used when
11487           # linking a shared library.
11488           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11489
11490         else
11491           # FIXME: insert proper C++ library support
11492           ld_shlibs_CXX=no
11493         fi
11494         ;;
11495     esac
11496     ;;
11497   osf4* | osf5*)
11498     case $cc_basename in
11499       KCC*)
11500         # Kuck and Associates, Inc. (KAI) C++ Compiler
11501
11502         # KCC will only create a shared library if the output file
11503         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11504         # to its proper name (with version) after linking.
11505         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'
11506
11507         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11508         hardcode_libdir_separator_CXX=:
11509
11510         # Archives containing C++ object files must be created using
11511         # the KAI C++ compiler.
11512         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11513         ;;
11514       RCC*)
11515         # Rational C++ 2.4.1
11516         # FIXME: insert proper C++ library support
11517         ld_shlibs_CXX=no
11518         ;;
11519       cxx*)
11520         allow_undefined_flag_CXX=' -expect_unresolved \*'
11521         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'
11522         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11523           echo "-hidden">> $lib.exp~
11524           $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~
11525           $rm $lib.exp'
11526
11527         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11528         hardcode_libdir_separator_CXX=:
11529
11530         # Commands to make compiler produce verbose output that lists
11531         # what "hidden" libraries, object files and flags are used when
11532         # linking a shared library.
11533         #
11534         # There doesn't appear to be a way to prevent this compiler from
11535         # explicitly linking system object files so we need to strip them
11536         # from the output so that they don't get included in the library
11537         # dependencies.
11538         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'
11539         ;;
11540       *)
11541         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11542           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11543          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'
11544
11545           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11546           hardcode_libdir_separator_CXX=:
11547
11548           # Commands to make compiler produce verbose output that lists
11549           # what "hidden" libraries, object files and flags are used when
11550           # linking a shared library.
11551           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11552
11553         else
11554           # FIXME: insert proper C++ library support
11555           ld_shlibs_CXX=no
11556         fi
11557         ;;
11558     esac
11559     ;;
11560   psos*)
11561     # FIXME: insert proper C++ library support
11562     ld_shlibs_CXX=no
11563     ;;
11564   sunos4*)
11565     case $cc_basename in
11566       CC*)
11567         # Sun C++ 4.x
11568         # FIXME: insert proper C++ library support
11569         ld_shlibs_CXX=no
11570         ;;
11571       lcc*)
11572         # Lucid
11573         # FIXME: insert proper C++ library support
11574         ld_shlibs_CXX=no
11575         ;;
11576       *)
11577         # FIXME: insert proper C++ library support
11578         ld_shlibs_CXX=no
11579         ;;
11580     esac
11581     ;;
11582   solaris*)
11583     case $cc_basename in
11584       CC*)
11585         # Sun C++ 4.2, 5.x and Centerline C++
11586         archive_cmds_need_lc_CXX=yes
11587         no_undefined_flag_CXX=' -zdefs'
11588         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11589         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11590         $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'
11591
11592         hardcode_libdir_flag_spec_CXX='-R$libdir'
11593         hardcode_shlibpath_var_CXX=no
11594         case $host_os in
11595           solaris2.[0-5] | solaris2.[0-5].*) ;;
11596           *)
11597             # The C++ compiler is used as linker so we must use $wl
11598             # flag to pass the commands to the underlying system
11599             # linker. We must also pass each convience library through
11600             # to the system linker between allextract/defaultextract.
11601             # The C++ compiler will combine linker options so we
11602             # cannot just pass the convience library names through
11603             # without $wl.
11604             # Supported since Solaris 2.6 (maybe 2.5.1?)
11605             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11606             ;;
11607         esac
11608         link_all_deplibs_CXX=yes
11609
11610         output_verbose_link_cmd='echo'
11611
11612         # Archives containing C++ object files must be created using
11613         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11614         # necessary to make sure instantiated templates are included
11615         # in the archive.
11616         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11617         ;;
11618       gcx*)
11619         # Green Hills C++ Compiler
11620         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11621
11622         # The C++ compiler must be used to create the archive.
11623         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11624         ;;
11625       *)
11626         # GNU C++ compiler with Solaris linker
11627         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11628           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11629           if $CC --version | grep -v '^2\.7' > /dev/null; then
11630             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11631             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11632                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11633
11634             # Commands to make compiler produce verbose output that lists
11635             # what "hidden" libraries, object files and flags are used when
11636             # linking a shared library.
11637             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11638           else
11639             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11640             # platform.
11641             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11642             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11643                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11644
11645             # Commands to make compiler produce verbose output that lists
11646             # what "hidden" libraries, object files and flags are used when
11647             # linking a shared library.
11648             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11649           fi
11650
11651           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11652         fi
11653         ;;
11654     esac
11655     ;;
11656   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11657     no_undefined_flag_CXX='${wl}-z,text'
11658     archive_cmds_need_lc_CXX=no
11659     hardcode_shlibpath_var_CXX=no
11660     runpath_var='LD_RUN_PATH'
11661
11662     case $cc_basename in
11663       CC*)
11664         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11665         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11666         ;;
11667       *)
11668         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11669         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11670         ;;
11671     esac
11672     ;;
11673   sysv5* | sco3.2v5* | sco5v6*)
11674     # Note: We can NOT use -z defs as we might desire, because we do not
11675     # link with -lc, and that would cause any symbols used from libc to
11676     # always be unresolved, which means just about no library would
11677     # ever link correctly.  If we're not using GNU ld we use -z text
11678     # though, which does catch some bad symbols but isn't as heavy-handed
11679     # as -z defs.
11680     # For security reasons, it is highly recommended that you always
11681     # use absolute paths for naming shared libraries, and exclude the
11682     # DT_RUNPATH tag from executables and libraries.  But doing so
11683     # requires that you compile everything twice, which is a pain.
11684     # So that behaviour is only enabled if SCOABSPATH is set to a
11685     # non-empty value in the environment.  Most likely only useful for
11686     # creating official distributions of packages.
11687     # This is a hack until libtool officially supports absolute path
11688     # names for shared libraries.
11689     no_undefined_flag_CXX='${wl}-z,text'
11690     allow_undefined_flag_CXX='${wl}-z,nodefs'
11691     archive_cmds_need_lc_CXX=no
11692     hardcode_shlibpath_var_CXX=no
11693     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11694     hardcode_libdir_separator_CXX=':'
11695     link_all_deplibs_CXX=yes
11696     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11697     runpath_var='LD_RUN_PATH'
11698
11699     case $cc_basename in
11700       CC*)
11701         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11702         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11703         ;;
11704       *)
11705         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11706         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11707         ;;
11708     esac
11709     ;;
11710   tandem*)
11711     case $cc_basename in
11712       NCC*)
11713         # NonStop-UX NCC 3.20
11714         # FIXME: insert proper C++ library support
11715         ld_shlibs_CXX=no
11716         ;;
11717       *)
11718         # FIXME: insert proper C++ library support
11719         ld_shlibs_CXX=no
11720         ;;
11721     esac
11722     ;;
11723   vxworks*)
11724     # FIXME: insert proper C++ library support
11725     ld_shlibs_CXX=no
11726     ;;
11727   *)
11728     # FIXME: insert proper C++ library support
11729     ld_shlibs_CXX=no
11730     ;;
11731 esac
11732 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11733 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11734 test "$ld_shlibs_CXX" = no && can_build_shared=no
11735
11736 GCC_CXX="$GXX"
11737 LD_CXX="$LD"
11738
11739
11740 cat > conftest.$ac_ext <<EOF
11741 class Foo
11742 {
11743 public:
11744   Foo (void) { a = 0; }
11745 private:
11746   int a;
11747 };
11748 EOF
11749
11750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11751   (eval $ac_compile) 2>&5
11752   ac_status=$?
11753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754   (exit $ac_status); }; then
11755   # Parse the compiler output and extract the necessary
11756   # objects, libraries and library flags.
11757
11758   # Sentinel used to keep track of whether or not we are before
11759   # the conftest object file.
11760   pre_test_object_deps_done=no
11761
11762   # The `*' in the case matches for architectures that use `case' in
11763   # $output_verbose_cmd can trigger glob expansion during the loop
11764   # eval without this substitution.
11765   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11766
11767   for p in `eval $output_verbose_link_cmd`; do
11768     case $p in
11769
11770     -L* | -R* | -l*)
11771        # Some compilers place space between "-{L,R}" and the path.
11772        # Remove the space.
11773        if test $p = "-L" \
11774           || test $p = "-R"; then
11775          prev=$p
11776          continue
11777        else
11778          prev=
11779        fi
11780
11781        if test "$pre_test_object_deps_done" = no; then
11782          case $p in
11783          -L* | -R*)
11784            # Internal compiler library paths should come after those
11785            # provided the user.  The postdeps already come after the
11786            # user supplied libs so there is no need to process them.
11787            if test -z "$compiler_lib_search_path_CXX"; then
11788              compiler_lib_search_path_CXX="${prev}${p}"
11789            else
11790              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11791            fi
11792            ;;
11793          # The "-l" case would never come before the object being
11794          # linked, so don't bother handling this case.
11795          esac
11796        else
11797          if test -z "$postdeps_CXX"; then
11798            postdeps_CXX="${prev}${p}"
11799          else
11800            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11801          fi
11802        fi
11803        ;;
11804
11805     *.$objext)
11806        # This assumes that the test object file only shows up
11807        # once in the compiler output.
11808        if test "$p" = "conftest.$objext"; then
11809          pre_test_object_deps_done=yes
11810          continue
11811        fi
11812
11813        if test "$pre_test_object_deps_done" = no; then
11814          if test -z "$predep_objects_CXX"; then
11815            predep_objects_CXX="$p"
11816          else
11817            predep_objects_CXX="$predep_objects_CXX $p"
11818          fi
11819        else
11820          if test -z "$postdep_objects_CXX"; then
11821            postdep_objects_CXX="$p"
11822          else
11823            postdep_objects_CXX="$postdep_objects_CXX $p"
11824          fi
11825        fi
11826        ;;
11827
11828     *) ;; # Ignore the rest.
11829
11830     esac
11831   done
11832
11833   # Clean up.
11834   rm -f a.out a.exe
11835 else
11836   echo "libtool.m4: error: problem compiling CXX test program"
11837 fi
11838
11839 $rm -f confest.$objext
11840
11841 # PORTME: override above test on systems where it is broken
11842 case $host_os in
11843 interix3*)
11844   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11845   # hack all around it, let's just trust "g++" to DTRT.
11846   predep_objects_CXX=
11847   postdep_objects_CXX=
11848   postdeps_CXX=
11849   ;;
11850
11851 solaris*)
11852   case $cc_basename in
11853   CC*)
11854     # Adding this requires a known-good setup of shared libraries for
11855     # Sun compiler versions before 5.6, else PIC objects from an old
11856     # archive will be linked into the output, leading to subtle bugs.
11857     postdeps_CXX='-lCstd -lCrun'
11858     ;;
11859   esac
11860   ;;
11861 esac
11862
11863
11864 case " $postdeps_CXX " in
11865 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11866 esac
11867
11868 lt_prog_compiler_wl_CXX=
11869 lt_prog_compiler_pic_CXX=
11870 lt_prog_compiler_static_CXX=
11871
11872 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11873 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11874
11875   # C++ specific cases for pic, static, wl, etc.
11876   if test "$GXX" = yes; then
11877     lt_prog_compiler_wl_CXX='-Wl,'
11878     lt_prog_compiler_static_CXX='-static'
11879
11880     case $host_os in
11881     aix*)
11882       # All AIX code is PIC.
11883       if test "$host_cpu" = ia64; then
11884         # AIX 5 now supports IA64 processor
11885         lt_prog_compiler_static_CXX='-Bstatic'
11886       fi
11887       ;;
11888     amigaos*)
11889       # FIXME: we need at least 68020 code to build shared libraries, but
11890       # adding the `-m68020' flag to GCC prevents building anything better,
11891       # like `-m68040'.
11892       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11893       ;;
11894     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11895       # PIC is the default for these OSes.
11896       ;;
11897     mingw* | os2* | pw32*)
11898       # This hack is so that the source file can tell whether it is being
11899       # built for inclusion in a dll (and should export symbols for example).
11900       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11901       ;;
11902     darwin* | rhapsody*)
11903       # PIC is the default on this platform
11904       # Common symbols not allowed in MH_DYLIB files
11905       lt_prog_compiler_pic_CXX='-fno-common'
11906       ;;
11907     *djgpp*)
11908       # DJGPP does not support shared libraries at all
11909       lt_prog_compiler_pic_CXX=
11910       ;;
11911     interix3*)
11912       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11913       # Instead, we relocate shared libraries at runtime.
11914       ;;
11915     sysv4*MP*)
11916       if test -d /usr/nec; then
11917         lt_prog_compiler_pic_CXX=-Kconform_pic
11918       fi
11919       ;;
11920     hpux*)
11921       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11922       # not for PA HP-UX.
11923       case $host_cpu in
11924       hppa*64*|ia64*)
11925         ;;
11926       *)
11927         lt_prog_compiler_pic_CXX='-fPIC'
11928         ;;
11929       esac
11930       ;;
11931     *)
11932       lt_prog_compiler_pic_CXX='-fPIC'
11933       ;;
11934     esac
11935   else
11936     case $host_os in
11937       aix4* | aix5*)
11938         # All AIX code is PIC.
11939         if test "$host_cpu" = ia64; then
11940           # AIX 5 now supports IA64 processor
11941           lt_prog_compiler_static_CXX='-Bstatic'
11942         else
11943           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11944         fi
11945         ;;
11946       chorus*)
11947         case $cc_basename in
11948         cxch68*)
11949           # Green Hills C++ Compiler
11950           # _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"
11951           ;;
11952         esac
11953         ;;
11954        darwin*)
11955          # PIC is the default on this platform
11956          # Common symbols not allowed in MH_DYLIB files
11957          case $cc_basename in
11958            xlc*)
11959            lt_prog_compiler_pic_CXX='-qnocommon'
11960            lt_prog_compiler_wl_CXX='-Wl,'
11961            ;;
11962          esac
11963        ;;
11964       dgux*)
11965         case $cc_basename in
11966           ec++*)
11967             lt_prog_compiler_pic_CXX='-KPIC'
11968             ;;
11969           ghcx*)
11970             # Green Hills C++ Compiler
11971             lt_prog_compiler_pic_CXX='-pic'
11972             ;;
11973           *)
11974             ;;
11975         esac
11976         ;;
11977       freebsd* | dragonfly*)
11978         # FreeBSD uses GNU C++
11979         ;;
11980       hpux9* | hpux10* | hpux11*)
11981         case $cc_basename in
11982           CC*)
11983             lt_prog_compiler_wl_CXX='-Wl,'
11984             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11985             if test "$host_cpu" != ia64; then
11986               lt_prog_compiler_pic_CXX='+Z'
11987             fi
11988             ;;
11989           aCC*)
11990             lt_prog_compiler_wl_CXX='-Wl,'
11991             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11992             case $host_cpu in
11993             hppa*64*|ia64*)
11994               # +Z the default
11995               ;;
11996             *)
11997               lt_prog_compiler_pic_CXX='+Z'
11998               ;;
11999             esac
12000             ;;
12001           *)
12002             ;;
12003         esac
12004         ;;
12005       interix*)
12006         # This is c89, which is MS Visual C++ (no shared libs)
12007         # Anyone wants to do a port?
12008         ;;
12009       irix5* | irix6* | nonstopux*)
12010         case $cc_basename in
12011           CC*)
12012             lt_prog_compiler_wl_CXX='-Wl,'
12013             lt_prog_compiler_static_CXX='-non_shared'
12014             # CC pic flag -KPIC is the default.
12015             ;;
12016           *)
12017             ;;
12018         esac
12019         ;;
12020       linux* | k*bsd*-gnu)
12021         case $cc_basename in
12022           KCC*)
12023             # KAI C++ Compiler
12024             lt_prog_compiler_wl_CXX='--backend -Wl,'
12025             lt_prog_compiler_pic_CXX='-fPIC'
12026             ;;
12027           icpc* | ecpc*)
12028             # Intel C++
12029             lt_prog_compiler_wl_CXX='-Wl,'
12030             lt_prog_compiler_pic_CXX='-KPIC'
12031             lt_prog_compiler_static_CXX='-static'
12032             ;;
12033           pgCC*)
12034             # Portland Group C++ compiler.
12035             lt_prog_compiler_wl_CXX='-Wl,'
12036             lt_prog_compiler_pic_CXX='-fpic'
12037             lt_prog_compiler_static_CXX='-Bstatic'
12038             ;;
12039           cxx*)
12040             # Compaq C++
12041             # Make sure the PIC flag is empty.  It appears that all Alpha
12042             # Linux and Compaq Tru64 Unix objects are PIC.
12043             lt_prog_compiler_pic_CXX=
12044             lt_prog_compiler_static_CXX='-non_shared'
12045             ;;
12046           *)
12047             ;;
12048         esac
12049         ;;
12050       lynxos*)
12051         ;;
12052       m88k*)
12053         ;;
12054       mvs*)
12055         case $cc_basename in
12056           cxx*)
12057             lt_prog_compiler_pic_CXX='-W c,exportall'
12058             ;;
12059           *)
12060             ;;
12061         esac
12062         ;;
12063       netbsd* | netbsdelf*-gnu)
12064         ;;
12065       osf3* | osf4* | osf5*)
12066         case $cc_basename in
12067           KCC*)
12068             lt_prog_compiler_wl_CXX='--backend -Wl,'
12069             ;;
12070           RCC*)
12071             # Rational C++ 2.4.1
12072             lt_prog_compiler_pic_CXX='-pic'
12073             ;;
12074           cxx*)
12075             # Digital/Compaq C++
12076             lt_prog_compiler_wl_CXX='-Wl,'
12077             # Make sure the PIC flag is empty.  It appears that all Alpha
12078             # Linux and Compaq Tru64 Unix objects are PIC.
12079             lt_prog_compiler_pic_CXX=
12080             lt_prog_compiler_static_CXX='-non_shared'
12081             ;;
12082           *)
12083             ;;
12084         esac
12085         ;;
12086       psos*)
12087         ;;
12088       solaris*)
12089         case $cc_basename in
12090           CC*)
12091             # Sun C++ 4.2, 5.x and Centerline C++
12092             lt_prog_compiler_pic_CXX='-KPIC'
12093             lt_prog_compiler_static_CXX='-Bstatic'
12094             lt_prog_compiler_wl_CXX='-Qoption ld '
12095             ;;
12096           gcx*)
12097             # Green Hills C++ Compiler
12098             lt_prog_compiler_pic_CXX='-PIC'
12099             ;;
12100           *)
12101             ;;
12102         esac
12103         ;;
12104       sunos4*)
12105         case $cc_basename in
12106           CC*)
12107             # Sun C++ 4.x
12108             lt_prog_compiler_pic_CXX='-pic'
12109             lt_prog_compiler_static_CXX='-Bstatic'
12110             ;;
12111           lcc*)
12112             # Lucid
12113             lt_prog_compiler_pic_CXX='-pic'
12114             ;;
12115           *)
12116             ;;
12117         esac
12118         ;;
12119       tandem*)
12120         case $cc_basename in
12121           NCC*)
12122             # NonStop-UX NCC 3.20
12123             lt_prog_compiler_pic_CXX='-KPIC'
12124             ;;
12125           *)
12126             ;;
12127         esac
12128         ;;
12129       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12130         case $cc_basename in
12131           CC*)
12132             lt_prog_compiler_wl_CXX='-Wl,'
12133             lt_prog_compiler_pic_CXX='-KPIC'
12134             lt_prog_compiler_static_CXX='-Bstatic'
12135             ;;
12136         esac
12137         ;;
12138       vxworks*)
12139         ;;
12140       *)
12141         lt_prog_compiler_can_build_shared_CXX=no
12142         ;;
12143     esac
12144   fi
12145
12146 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12147 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12148
12149 #
12150 # Check to make sure the PIC flag actually works.
12151 #
12152 if test -n "$lt_prog_compiler_pic_CXX"; then
12153
12154 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12155 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12156 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12157   echo $ECHO_N "(cached) $ECHO_C" >&6
12158 else
12159   lt_prog_compiler_pic_works_CXX=no
12160   ac_outfile=conftest.$ac_objext
12161    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12162    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12163    # Insert the option either (1) after the last *FLAGS variable, or
12164    # (2) before a word containing "conftest.", or (3) at the end.
12165    # Note that $ac_compile itself does not contain backslashes and begins
12166    # with a dollar sign (not a hyphen), so the echo should work correctly.
12167    # The option is referenced via a variable to avoid confusing sed.
12168    lt_compile=`echo "$ac_compile" | $SED \
12169    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12170    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12171    -e 's:$: $lt_compiler_flag:'`
12172    (eval echo "\"\$as_me:12172: $lt_compile\"" >&5)
12173    (eval "$lt_compile" 2>conftest.err)
12174    ac_status=$?
12175    cat conftest.err >&5
12176    echo "$as_me:12176: \$? = $ac_status" >&5
12177    if (exit $ac_status) && test -s "$ac_outfile"; then
12178      # The compiler can only warn and ignore the option if not recognized
12179      # So say no if there are warnings other than the usual output.
12180      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12181      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12182      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12183        lt_prog_compiler_pic_works_CXX=yes
12184      fi
12185    fi
12186    $rm conftest*
12187
12188 fi
12189 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12190 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12191
12192 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12193     case $lt_prog_compiler_pic_CXX in
12194      "" | " "*) ;;
12195      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12196      esac
12197 else
12198     lt_prog_compiler_pic_CXX=
12199      lt_prog_compiler_can_build_shared_CXX=no
12200 fi
12201
12202 fi
12203 case $host_os in
12204   # For platforms which do not support PIC, -DPIC is meaningless:
12205   *djgpp*)
12206     lt_prog_compiler_pic_CXX=
12207     ;;
12208   *)
12209     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12210     ;;
12211 esac
12212
12213 #
12214 # Check to make sure the static flag actually works.
12215 #
12216 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12217 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12218 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12219 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12220   echo $ECHO_N "(cached) $ECHO_C" >&6
12221 else
12222   lt_prog_compiler_static_works_CXX=no
12223    save_LDFLAGS="$LDFLAGS"
12224    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12225    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12226    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12227      # The linker can only warn and ignore the option if not recognized
12228      # So say no if there are warnings
12229      if test -s conftest.err; then
12230        # Append any errors to the config.log.
12231        cat conftest.err 1>&5
12232        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12233        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12234        if diff conftest.exp conftest.er2 >/dev/null; then
12235          lt_prog_compiler_static_works_CXX=yes
12236        fi
12237      else
12238        lt_prog_compiler_static_works_CXX=yes
12239      fi
12240    fi
12241    $rm conftest*
12242    LDFLAGS="$save_LDFLAGS"
12243
12244 fi
12245 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12246 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12247
12248 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12249     :
12250 else
12251     lt_prog_compiler_static_CXX=
12252 fi
12253
12254
12255 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12256 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12257 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12258   echo $ECHO_N "(cached) $ECHO_C" >&6
12259 else
12260   lt_cv_prog_compiler_c_o_CXX=no
12261    $rm -r conftest 2>/dev/null
12262    mkdir conftest
12263    cd conftest
12264    mkdir out
12265    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12266
12267    lt_compiler_flag="-o out/conftest2.$ac_objext"
12268    # Insert the option either (1) after the last *FLAGS variable, or
12269    # (2) before a word containing "conftest.", or (3) at the end.
12270    # Note that $ac_compile itself does not contain backslashes and begins
12271    # with a dollar sign (not a hyphen), so the echo should work correctly.
12272    lt_compile=`echo "$ac_compile" | $SED \
12273    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12274    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12275    -e 's:$: $lt_compiler_flag:'`
12276    (eval echo "\"\$as_me:12276: $lt_compile\"" >&5)
12277    (eval "$lt_compile" 2>out/conftest.err)
12278    ac_status=$?
12279    cat out/conftest.err >&5
12280    echo "$as_me:12280: \$? = $ac_status" >&5
12281    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12282    then
12283      # The compiler can only warn and ignore the option if not recognized
12284      # So say no if there are warnings
12285      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12286      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12287      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12288        lt_cv_prog_compiler_c_o_CXX=yes
12289      fi
12290    fi
12291    chmod u+w . 2>&5
12292    $rm conftest*
12293    # SGI C++ compiler will create directory out/ii_files/ for
12294    # template instantiation
12295    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12296    $rm out/* && rmdir out
12297    cd ..
12298    rmdir conftest
12299    $rm conftest*
12300
12301 fi
12302 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12303 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12304
12305
12306 hard_links="nottested"
12307 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12308   # do not overwrite the value of need_locks provided by the user
12309   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12310 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12311   hard_links=yes
12312   $rm conftest*
12313   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12314   touch conftest.a
12315   ln conftest.a conftest.b 2>&5 || hard_links=no
12316   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12317   { echo "$as_me:$LINENO: result: $hard_links" >&5
12318 echo "${ECHO_T}$hard_links" >&6; }
12319   if test "$hard_links" = no; then
12320     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12321 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12322     need_locks=warn
12323   fi
12324 else
12325   need_locks=no
12326 fi
12327
12328 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12329 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12330
12331   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12332   case $host_os in
12333   aix4* | aix5*)
12334     # If we're using GNU nm, then we don't want the "-C" option.
12335     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12336     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12337       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'
12338     else
12339       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'
12340     fi
12341     ;;
12342   pw32*)
12343     export_symbols_cmds_CXX="$ltdll_cmds"
12344   ;;
12345   cygwin* | mingw*)
12346     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'
12347   ;;
12348   linux* | k*bsd*-gnu)
12349     link_all_deplibs_CXX=no
12350   ;;
12351   *)
12352     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12353   ;;
12354   esac
12355
12356 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12357 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12358 test "$ld_shlibs_CXX" = no && can_build_shared=no
12359
12360 #
12361 # Do we need to explicitly link libc?
12362 #
12363 case "x$archive_cmds_need_lc_CXX" in
12364 x|xyes)
12365   # Assume -lc should be added
12366   archive_cmds_need_lc_CXX=yes
12367
12368   if test "$enable_shared" = yes && test "$GCC" = yes; then
12369     case $archive_cmds_CXX in
12370     *'~'*)
12371       # FIXME: we may have to deal with multi-command sequences.
12372       ;;
12373     '$CC '*)
12374       # Test whether the compiler implicitly links with -lc since on some
12375       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12376       # to ld, don't add -lc before -lgcc.
12377       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12378 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12379       $rm conftest*
12380       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12381
12382       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12383   (eval $ac_compile) 2>&5
12384   ac_status=$?
12385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386   (exit $ac_status); } 2>conftest.err; then
12387         soname=conftest
12388         lib=conftest
12389         libobjs=conftest.$ac_objext
12390         deplibs=
12391         wl=$lt_prog_compiler_wl_CXX
12392         pic_flag=$lt_prog_compiler_pic_CXX
12393         compiler_flags=-v
12394         linker_flags=-v
12395         verstring=
12396         output_objdir=.
12397         libname=conftest
12398         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12399         allow_undefined_flag_CXX=
12400         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12401   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12402   ac_status=$?
12403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404   (exit $ac_status); }
12405         then
12406           archive_cmds_need_lc_CXX=no
12407         else
12408           archive_cmds_need_lc_CXX=yes
12409         fi
12410         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12411       else
12412         cat conftest.err 1>&5
12413       fi
12414       $rm conftest*
12415       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12416 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12417       ;;
12418     esac
12419   fi
12420   ;;
12421 esac
12422
12423 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12424 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12425 library_names_spec=
12426 libname_spec='lib$name'
12427 soname_spec=
12428 shrext_cmds=".so"
12429 postinstall_cmds=
12430 postuninstall_cmds=
12431 finish_cmds=
12432 finish_eval=
12433 shlibpath_var=
12434 shlibpath_overrides_runpath=unknown
12435 version_type=none
12436 dynamic_linker="$host_os ld.so"
12437 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12438 if test "$GCC" = yes; then
12439   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12440   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12441     # if the path contains ";" then we assume it to be the separator
12442     # otherwise default to the standard path separator (i.e. ":") - it is
12443     # assumed that no part of a normal pathname contains ";" but that should
12444     # okay in the real world where ";" in dirpaths is itself problematic.
12445     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12446   else
12447     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12448   fi
12449 else
12450   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12451 fi
12452 need_lib_prefix=unknown
12453 hardcode_into_libs=no
12454
12455 # when you set need_version to no, make sure it does not cause -set_version
12456 # flags to be left without arguments
12457 need_version=unknown
12458
12459 case $host_os in
12460 aix3*)
12461   version_type=linux
12462   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12463   shlibpath_var=LIBPATH
12464
12465   # AIX 3 has no versioning support, so we append a major version to the name.
12466   soname_spec='${libname}${release}${shared_ext}$major'
12467   ;;
12468
12469 aix4* | aix5*)
12470   version_type=linux
12471   need_lib_prefix=no
12472   need_version=no
12473   hardcode_into_libs=yes
12474   if test "$host_cpu" = ia64; then
12475     # AIX 5 supports IA64
12476     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12477     shlibpath_var=LD_LIBRARY_PATH
12478   else
12479     # With GCC up to 2.95.x, collect2 would create an import file
12480     # for dependence libraries.  The import file would start with
12481     # the line `#! .'.  This would cause the generated library to
12482     # depend on `.', always an invalid library.  This was fixed in
12483     # development snapshots of GCC prior to 3.0.
12484     case $host_os in
12485       aix4 | aix4.[01] | aix4.[01].*)
12486       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12487            echo ' yes '
12488            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12489         :
12490       else
12491         can_build_shared=no
12492       fi
12493       ;;
12494     esac
12495     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12496     # soname into executable. Probably we can add versioning support to
12497     # collect2, so additional links can be useful in future.
12498     if test "$aix_use_runtimelinking" = yes; then
12499       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12500       # instead of lib<name>.a to let people know that these are not
12501       # typical AIX shared libraries.
12502       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12503     else
12504       # We preserve .a as extension for shared libraries through AIX4.2
12505       # and later when we are not doing run time linking.
12506       library_names_spec='${libname}${release}.a $libname.a'
12507       soname_spec='${libname}${release}${shared_ext}$major'
12508     fi
12509     shlibpath_var=LIBPATH
12510   fi
12511   ;;
12512
12513 amigaos*)
12514   library_names_spec='$libname.ixlibrary $libname.a'
12515   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12516   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'
12517   ;;
12518
12519 beos*)
12520   library_names_spec='${libname}${shared_ext}'
12521   dynamic_linker="$host_os ld.so"
12522   shlibpath_var=LIBRARY_PATH
12523   ;;
12524
12525 bsdi[45]*)
12526   version_type=linux
12527   need_version=no
12528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12529   soname_spec='${libname}${release}${shared_ext}$major'
12530   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12531   shlibpath_var=LD_LIBRARY_PATH
12532   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12533   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12534   # the default ld.so.conf also contains /usr/contrib/lib and
12535   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12536   # libtool to hard-code these into programs
12537   ;;
12538
12539 cygwin* | mingw* | pw32*)
12540   version_type=windows
12541   shrext_cmds=".dll"
12542   need_version=no
12543   need_lib_prefix=no
12544
12545   case $GCC,$host_os in
12546   yes,cygwin* | yes,mingw* | yes,pw32*)
12547     library_names_spec='$libname.dll.a'
12548     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12549     postinstall_cmds='base_file=`basename \${file}`~
12550       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12551       dldir=$destdir/`dirname \$dlpath`~
12552       test -d \$dldir || mkdir -p \$dldir~
12553       $install_prog $dir/$dlname \$dldir/$dlname~
12554       chmod a+x \$dldir/$dlname'
12555     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12556       dlpath=$dir/\$dldll~
12557        $rm \$dlpath'
12558     shlibpath_overrides_runpath=yes
12559
12560     case $host_os in
12561     cygwin*)
12562       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12563       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12564       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12565       ;;
12566     mingw*)
12567       # MinGW DLLs use traditional 'lib' prefix
12568       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12569       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12570       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12571         # It is most probably a Windows format PATH printed by
12572         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12573         # path with ; separators, and with drive letters. We can handle the
12574         # drive letters (cygwin fileutils understands them), so leave them,
12575         # especially as we might pass files found there to a mingw objdump,
12576         # which wouldn't understand a cygwinified path. Ahh.
12577         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12578       else
12579         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12580       fi
12581       ;;
12582     pw32*)
12583       # pw32 DLLs use 'pw' prefix rather than 'lib'
12584       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12585       ;;
12586     esac
12587     ;;
12588
12589   *)
12590     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12591     ;;
12592   esac
12593   dynamic_linker='Win32 ld.exe'
12594   # FIXME: first we should search . and the directory the executable is in
12595   shlibpath_var=PATH
12596   ;;
12597
12598 darwin* | rhapsody*)
12599   dynamic_linker="$host_os dyld"
12600   version_type=darwin
12601   need_lib_prefix=no
12602   need_version=no
12603   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12604   soname_spec='${libname}${release}${major}$shared_ext'
12605   shlibpath_overrides_runpath=yes
12606   shlibpath_var=DYLD_LIBRARY_PATH
12607   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12608   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12609   if test "$GCC" = yes; then
12610     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12611   else
12612     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12613   fi
12614   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12615   ;;
12616
12617 dgux*)
12618   version_type=linux
12619   need_lib_prefix=no
12620   need_version=no
12621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12622   soname_spec='${libname}${release}${shared_ext}$major'
12623   shlibpath_var=LD_LIBRARY_PATH
12624   ;;
12625
12626 freebsd1*)
12627   dynamic_linker=no
12628   ;;
12629
12630 freebsd* | dragonfly*)
12631   # DragonFly does not have aout.  When/if they implement a new
12632   # versioning mechanism, adjust this.
12633   if test -x /usr/bin/objformat; then
12634     objformat=`/usr/bin/objformat`
12635   else
12636     case $host_os in
12637     freebsd[123]*) objformat=aout ;;
12638     *) objformat=elf ;;
12639     esac
12640   fi
12641   version_type=freebsd-$objformat
12642   case $version_type in
12643     freebsd-elf*)
12644       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12645       need_version=no
12646       need_lib_prefix=no
12647       ;;
12648     freebsd-*)
12649       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12650       need_version=yes
12651       ;;
12652   esac
12653   shlibpath_var=LD_LIBRARY_PATH
12654   case $host_os in
12655   freebsd2*)
12656     shlibpath_overrides_runpath=yes
12657     ;;
12658   freebsd3.[01]* | freebsdelf3.[01]*)
12659     shlibpath_overrides_runpath=yes
12660     hardcode_into_libs=yes
12661     ;;
12662   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12663   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12664     shlibpath_overrides_runpath=no
12665     hardcode_into_libs=yes
12666     ;;
12667   freebsd*) # from 4.6 on
12668     shlibpath_overrides_runpath=yes
12669     hardcode_into_libs=yes
12670     ;;
12671   esac
12672   ;;
12673
12674 gnu*)
12675   version_type=linux
12676   need_lib_prefix=no
12677   need_version=no
12678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12679   soname_spec='${libname}${release}${shared_ext}$major'
12680   shlibpath_var=LD_LIBRARY_PATH
12681   hardcode_into_libs=yes
12682   ;;
12683
12684 hpux9* | hpux10* | hpux11*)
12685   # Give a soname corresponding to the major version so that dld.sl refuses to
12686   # link against other versions.
12687   version_type=sunos
12688   need_lib_prefix=no
12689   need_version=no
12690   case $host_cpu in
12691   ia64*)
12692     shrext_cmds='.so'
12693     hardcode_into_libs=yes
12694     dynamic_linker="$host_os dld.so"
12695     shlibpath_var=LD_LIBRARY_PATH
12696     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12697     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12698     soname_spec='${libname}${release}${shared_ext}$major'
12699     if test "X$HPUX_IA64_MODE" = X32; then
12700       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12701     else
12702       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12703     fi
12704     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12705     ;;
12706    hppa*64*)
12707      shrext_cmds='.sl'
12708      hardcode_into_libs=yes
12709      dynamic_linker="$host_os dld.sl"
12710      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12711      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12712      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12713      soname_spec='${libname}${release}${shared_ext}$major'
12714      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12715      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12716      ;;
12717    *)
12718     shrext_cmds='.sl'
12719     dynamic_linker="$host_os dld.sl"
12720     shlibpath_var=SHLIB_PATH
12721     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12722     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12723     soname_spec='${libname}${release}${shared_ext}$major'
12724     ;;
12725   esac
12726   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12727   postinstall_cmds='chmod 555 $lib'
12728   ;;
12729
12730 interix3*)
12731   version_type=linux
12732   need_lib_prefix=no
12733   need_version=no
12734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12735   soname_spec='${libname}${release}${shared_ext}$major'
12736   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12737   shlibpath_var=LD_LIBRARY_PATH
12738   shlibpath_overrides_runpath=no
12739   hardcode_into_libs=yes
12740   ;;
12741
12742 irix5* | irix6* | nonstopux*)
12743   case $host_os in
12744     nonstopux*) version_type=nonstopux ;;
12745     *)
12746         if test "$lt_cv_prog_gnu_ld" = yes; then
12747                 version_type=linux
12748         else
12749                 version_type=irix
12750         fi ;;
12751   esac
12752   need_lib_prefix=no
12753   need_version=no
12754   soname_spec='${libname}${release}${shared_ext}$major'
12755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12756   case $host_os in
12757   irix5* | nonstopux*)
12758     libsuff= shlibsuff=
12759     ;;
12760   *)
12761     case $LD in # libtool.m4 will add one of these switches to LD
12762     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12763       libsuff= shlibsuff= libmagic=32-bit;;
12764     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12765       libsuff=32 shlibsuff=N32 libmagic=N32;;
12766     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12767       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12768     *) libsuff= shlibsuff= libmagic=never-match;;
12769     esac
12770     ;;
12771   esac
12772   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12773   shlibpath_overrides_runpath=no
12774   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12775   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12776   hardcode_into_libs=yes
12777   ;;
12778
12779 # No shared lib support for Linux oldld, aout, or coff.
12780 linux*oldld* | linux*aout* | linux*coff*)
12781   dynamic_linker=no
12782   ;;
12783
12784 # This must be Linux ELF.
12785 linux* | k*bsd*-gnu)
12786   version_type=linux
12787   need_lib_prefix=no
12788   need_version=no
12789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12790   soname_spec='${libname}${release}${shared_ext}$major'
12791   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12792   shlibpath_var=LD_LIBRARY_PATH
12793   shlibpath_overrides_runpath=no
12794   # This implies no fast_install, which is unacceptable.
12795   # Some rework will be needed to allow for fast_install
12796   # before this can be enabled.
12797   hardcode_into_libs=yes
12798
12799   # Append ld.so.conf contents to the search path
12800   if test -f /etc/ld.so.conf; then
12801     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12802     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12803   fi
12804
12805   # We used to test for /lib/ld.so.1 and disable shared libraries on
12806   # powerpc, because MkLinux only supported shared libraries with the
12807   # GNU dynamic linker.  Since this was broken with cross compilers,
12808   # most powerpc-linux boxes support dynamic linking these days and
12809   # people can always --disable-shared, the test was removed, and we
12810   # assume the GNU/Linux dynamic linker is in use.
12811   dynamic_linker='GNU/Linux ld.so'
12812   ;;
12813
12814 netbsdelf*-gnu)
12815   version_type=linux
12816   need_lib_prefix=no
12817   need_version=no
12818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12819   soname_spec='${libname}${release}${shared_ext}$major'
12820   shlibpath_var=LD_LIBRARY_PATH
12821   shlibpath_overrides_runpath=no
12822   hardcode_into_libs=yes
12823   dynamic_linker='NetBSD ld.elf_so'
12824   ;;
12825
12826 netbsd*)
12827   version_type=sunos
12828   need_lib_prefix=no
12829   need_version=no
12830   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12831     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12832     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12833     dynamic_linker='NetBSD (a.out) ld.so'
12834   else
12835     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12836     soname_spec='${libname}${release}${shared_ext}$major'
12837     dynamic_linker='NetBSD ld.elf_so'
12838   fi
12839   shlibpath_var=LD_LIBRARY_PATH
12840   shlibpath_overrides_runpath=yes
12841   hardcode_into_libs=yes
12842   ;;
12843
12844 newsos6)
12845   version_type=linux
12846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12847   shlibpath_var=LD_LIBRARY_PATH
12848   shlibpath_overrides_runpath=yes
12849   ;;
12850
12851 nto-qnx*)
12852   version_type=linux
12853   need_lib_prefix=no
12854   need_version=no
12855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12856   soname_spec='${libname}${release}${shared_ext}$major'
12857   shlibpath_var=LD_LIBRARY_PATH
12858   shlibpath_overrides_runpath=yes
12859   ;;
12860
12861 openbsd*)
12862   version_type=sunos
12863   sys_lib_dlsearch_path_spec="/usr/lib"
12864   need_lib_prefix=no
12865   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12866   case $host_os in
12867     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12868     *)                         need_version=no  ;;
12869   esac
12870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12871   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12872   shlibpath_var=LD_LIBRARY_PATH
12873   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12874     case $host_os in
12875       openbsd2.[89] | openbsd2.[89].*)
12876         shlibpath_overrides_runpath=no
12877         ;;
12878       *)
12879         shlibpath_overrides_runpath=yes
12880         ;;
12881       esac
12882   else
12883     shlibpath_overrides_runpath=yes
12884   fi
12885   ;;
12886
12887 os2*)
12888   libname_spec='$name'
12889   shrext_cmds=".dll"
12890   need_lib_prefix=no
12891   library_names_spec='$libname${shared_ext} $libname.a'
12892   dynamic_linker='OS/2 ld.exe'
12893   shlibpath_var=LIBPATH
12894   ;;
12895
12896 osf3* | osf4* | osf5*)
12897   version_type=osf
12898   need_lib_prefix=no
12899   need_version=no
12900   soname_spec='${libname}${release}${shared_ext}$major'
12901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12902   shlibpath_var=LD_LIBRARY_PATH
12903   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12904   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12905   ;;
12906
12907 solaris*)
12908   version_type=linux
12909   need_lib_prefix=no
12910   need_version=no
12911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12912   soname_spec='${libname}${release}${shared_ext}$major'
12913   shlibpath_var=LD_LIBRARY_PATH
12914   shlibpath_overrides_runpath=yes
12915   hardcode_into_libs=yes
12916   # ldd complains unless libraries are executable
12917   postinstall_cmds='chmod +x $lib'
12918   ;;
12919
12920 sunos4*)
12921   version_type=sunos
12922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12923   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12924   shlibpath_var=LD_LIBRARY_PATH
12925   shlibpath_overrides_runpath=yes
12926   if test "$with_gnu_ld" = yes; then
12927     need_lib_prefix=no
12928   fi
12929   need_version=yes
12930   ;;
12931
12932 sysv4 | sysv4.3*)
12933   version_type=linux
12934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12935   soname_spec='${libname}${release}${shared_ext}$major'
12936   shlibpath_var=LD_LIBRARY_PATH
12937   case $host_vendor in
12938     sni)
12939       shlibpath_overrides_runpath=no
12940       need_lib_prefix=no
12941       export_dynamic_flag_spec='${wl}-Blargedynsym'
12942       runpath_var=LD_RUN_PATH
12943       ;;
12944     siemens)
12945       need_lib_prefix=no
12946       ;;
12947     motorola)
12948       need_lib_prefix=no
12949       need_version=no
12950       shlibpath_overrides_runpath=no
12951       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12952       ;;
12953   esac
12954   ;;
12955
12956 sysv4*MP*)
12957   if test -d /usr/nec ;then
12958     version_type=linux
12959     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12960     soname_spec='$libname${shared_ext}.$major'
12961     shlibpath_var=LD_LIBRARY_PATH
12962   fi
12963   ;;
12964
12965 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12966   version_type=freebsd-elf
12967   need_lib_prefix=no
12968   need_version=no
12969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12970   soname_spec='${libname}${release}${shared_ext}$major'
12971   shlibpath_var=LD_LIBRARY_PATH
12972   hardcode_into_libs=yes
12973   if test "$with_gnu_ld" = yes; then
12974     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12975     shlibpath_overrides_runpath=no
12976   else
12977     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12978     shlibpath_overrides_runpath=yes
12979     case $host_os in
12980       sco3.2v5*)
12981         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12982         ;;
12983     esac
12984   fi
12985   sys_lib_dlsearch_path_spec='/usr/lib'
12986   ;;
12987
12988 uts4*)
12989   version_type=linux
12990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12991   soname_spec='${libname}${release}${shared_ext}$major'
12992   shlibpath_var=LD_LIBRARY_PATH
12993   ;;
12994
12995 *)
12996   dynamic_linker=no
12997   ;;
12998 esac
12999 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13000 echo "${ECHO_T}$dynamic_linker" >&6; }
13001 test "$dynamic_linker" = no && can_build_shared=no
13002
13003 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13004 if test "$GCC" = yes; then
13005   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13006 fi
13007
13008 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13009 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13010 hardcode_action_CXX=
13011 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13012    test -n "$runpath_var_CXX" || \
13013    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13014
13015   # We can hardcode non-existant directories.
13016   if test "$hardcode_direct_CXX" != no &&
13017      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13018      # have to relink, otherwise we might link with an installed library
13019      # when we should be linking with a yet-to-be-installed one
13020      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13021      test "$hardcode_minus_L_CXX" != no; then
13022     # Linking always hardcodes the temporary library directory.
13023     hardcode_action_CXX=relink
13024   else
13025     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13026     hardcode_action_CXX=immediate
13027   fi
13028 else
13029   # We cannot hardcode anything, or else we can only hardcode existing
13030   # directories.
13031   hardcode_action_CXX=unsupported
13032 fi
13033 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13034 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13035
13036 if test "$hardcode_action_CXX" = relink; then
13037   # Fast installation is not supported
13038   enable_fast_install=no
13039 elif test "$shlibpath_overrides_runpath" = yes ||
13040      test "$enable_shared" = no; then
13041   # Fast installation is not necessary
13042   enable_fast_install=needless
13043 fi
13044
13045
13046 # The else clause should only fire when bootstrapping the
13047 # libtool distribution, otherwise you forgot to ship ltmain.sh
13048 # with your package, and you will get complaints that there are
13049 # no rules to generate ltmain.sh.
13050 if test -f "$ltmain"; then
13051   # See if we are running on zsh, and set the options which allow our commands through
13052   # without removal of \ escapes.
13053   if test -n "${ZSH_VERSION+set}" ; then
13054     setopt NO_GLOB_SUBST
13055   fi
13056   # Now quote all the things that may contain metacharacters while being
13057   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13058   # variables and quote the copies for generation of the libtool script.
13059   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13060     SED SHELL STRIP \
13061     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13062     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13063     deplibs_check_method reload_flag reload_cmds need_locks \
13064     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13065     lt_cv_sys_global_symbol_to_c_name_address \
13066     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13067     old_postinstall_cmds old_postuninstall_cmds \
13068     compiler_CXX \
13069     CC_CXX \
13070     LD_CXX \
13071     lt_prog_compiler_wl_CXX \
13072     lt_prog_compiler_pic_CXX \
13073     lt_prog_compiler_static_CXX \
13074     lt_prog_compiler_no_builtin_flag_CXX \
13075     export_dynamic_flag_spec_CXX \
13076     thread_safe_flag_spec_CXX \
13077     whole_archive_flag_spec_CXX \
13078     enable_shared_with_static_runtimes_CXX \
13079     old_archive_cmds_CXX \
13080     old_archive_from_new_cmds_CXX \
13081     predep_objects_CXX \
13082     postdep_objects_CXX \
13083     predeps_CXX \
13084     postdeps_CXX \
13085     compiler_lib_search_path_CXX \
13086     archive_cmds_CXX \
13087     archive_expsym_cmds_CXX \
13088     postinstall_cmds_CXX \
13089     postuninstall_cmds_CXX \
13090     old_archive_from_expsyms_cmds_CXX \
13091     allow_undefined_flag_CXX \
13092     no_undefined_flag_CXX \
13093     export_symbols_cmds_CXX \
13094     hardcode_libdir_flag_spec_CXX \
13095     hardcode_libdir_flag_spec_ld_CXX \
13096     hardcode_libdir_separator_CXX \
13097     hardcode_automatic_CXX \
13098     module_cmds_CXX \
13099     module_expsym_cmds_CXX \
13100     lt_cv_prog_compiler_c_o_CXX \
13101     exclude_expsyms_CXX \
13102     include_expsyms_CXX; do
13103
13104     case $var in
13105     old_archive_cmds_CXX | \
13106     old_archive_from_new_cmds_CXX | \
13107     archive_cmds_CXX | \
13108     archive_expsym_cmds_CXX | \
13109     module_cmds_CXX | \
13110     module_expsym_cmds_CXX | \
13111     old_archive_from_expsyms_cmds_CXX | \
13112     export_symbols_cmds_CXX | \
13113     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13114     postinstall_cmds | postuninstall_cmds | \
13115     old_postinstall_cmds | old_postuninstall_cmds | \
13116     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13117       # Double-quote double-evaled strings.
13118       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13119       ;;
13120     *)
13121       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13122       ;;
13123     esac
13124   done
13125
13126   case $lt_echo in
13127   *'\$0 --fallback-echo"')
13128     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13129     ;;
13130   esac
13131
13132 cfgfile="$ofile"
13133
13134   cat <<__EOF__ >> "$cfgfile"
13135 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13136
13137 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13138
13139 # Shell to use when invoking shell scripts.
13140 SHELL=$lt_SHELL
13141
13142 # Whether or not to build shared libraries.
13143 build_libtool_libs=$enable_shared
13144
13145 # Whether or not to build static libraries.
13146 build_old_libs=$enable_static
13147
13148 # Whether or not to add -lc for building shared libraries.
13149 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13150
13151 # Whether or not to disallow shared libs when runtime libs are static
13152 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13153
13154 # Whether or not to optimize for fast installation.
13155 fast_install=$enable_fast_install
13156
13157 # The host system.
13158 host_alias=$host_alias
13159 host=$host
13160 host_os=$host_os
13161
13162 # The build system.
13163 build_alias=$build_alias
13164 build=$build
13165 build_os=$build_os
13166
13167 # An echo program that does not interpret backslashes.
13168 echo=$lt_echo
13169
13170 # The archiver.
13171 AR=$lt_AR
13172 AR_FLAGS=$lt_AR_FLAGS
13173
13174 # A C compiler.
13175 LTCC=$lt_LTCC
13176
13177 # LTCC compiler flags.
13178 LTCFLAGS=$lt_LTCFLAGS
13179
13180 # A language-specific compiler.
13181 CC=$lt_compiler_CXX
13182
13183 # Is the compiler the GNU C compiler?
13184 with_gcc=$GCC_CXX
13185
13186 # An ERE matcher.
13187 EGREP=$lt_EGREP
13188
13189 # The linker used to build libraries.
13190 LD=$lt_LD_CXX
13191
13192 # Whether we need hard or soft links.
13193 LN_S=$lt_LN_S
13194
13195 # A BSD-compatible nm program.
13196 NM=$lt_NM
13197
13198 # A symbol stripping program
13199 STRIP=$lt_STRIP
13200
13201 # Used to examine libraries when file_magic_cmd begins "file"
13202 MAGIC_CMD=$MAGIC_CMD
13203
13204 # Used on cygwin: DLL creation program.
13205 DLLTOOL="$DLLTOOL"
13206
13207 # Used on cygwin: object dumper.
13208 OBJDUMP="$OBJDUMP"
13209
13210 # Used on cygwin: assembler.
13211 AS="$AS"
13212
13213 # The name of the directory that contains temporary libtool files.
13214 objdir=$objdir
13215
13216 # How to create reloadable object files.
13217 reload_flag=$lt_reload_flag
13218 reload_cmds=$lt_reload_cmds
13219
13220 # How to pass a linker flag through the compiler.
13221 wl=$lt_lt_prog_compiler_wl_CXX
13222
13223 # Object file suffix (normally "o").
13224 objext="$ac_objext"
13225
13226 # Old archive suffix (normally "a").
13227 libext="$libext"
13228
13229 # Shared library suffix (normally ".so").
13230 shrext_cmds='$shrext_cmds'
13231
13232 # Executable file suffix (normally "").
13233 exeext="$exeext"
13234
13235 # Additional compiler flags for building library objects.
13236 pic_flag=$lt_lt_prog_compiler_pic_CXX
13237 pic_mode=$pic_mode
13238
13239 # What is the maximum length of a command?
13240 max_cmd_len=$lt_cv_sys_max_cmd_len
13241
13242 # Does compiler simultaneously support -c and -o options?
13243 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13244
13245 # Must we lock files when doing compilation?
13246 need_locks=$lt_need_locks
13247
13248 # Do we need the lib prefix for modules?
13249 need_lib_prefix=$need_lib_prefix
13250
13251 # Do we need a version for libraries?
13252 need_version=$need_version
13253
13254 # Whether dlopen is supported.
13255 dlopen_support=$enable_dlopen
13256
13257 # Whether dlopen of programs is supported.
13258 dlopen_self=$enable_dlopen_self
13259
13260 # Whether dlopen of statically linked programs is supported.
13261 dlopen_self_static=$enable_dlopen_self_static
13262
13263 # Compiler flag to prevent dynamic linking.
13264 link_static_flag=$lt_lt_prog_compiler_static_CXX
13265
13266 # Compiler flag to turn off builtin functions.
13267 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13268
13269 # Compiler flag to allow reflexive dlopens.
13270 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13271
13272 # Compiler flag to generate shared objects directly from archives.
13273 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13274
13275 # Compiler flag to generate thread-safe objects.
13276 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13277
13278 # Library versioning type.
13279 version_type=$version_type
13280
13281 # Format of library name prefix.
13282 libname_spec=$lt_libname_spec
13283
13284 # List of archive names.  First name is the real one, the rest are links.
13285 # The last name is the one that the linker finds with -lNAME.
13286 library_names_spec=$lt_library_names_spec
13287
13288 # The coded name of the library, if different from the real name.
13289 soname_spec=$lt_soname_spec
13290
13291 # Commands used to build and install an old-style archive.
13292 RANLIB=$lt_RANLIB
13293 old_archive_cmds=$lt_old_archive_cmds_CXX
13294 old_postinstall_cmds=$lt_old_postinstall_cmds
13295 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13296
13297 # Create an old-style archive from a shared archive.
13298 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13299
13300 # Create a temporary old-style archive to link instead of a shared archive.
13301 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13302
13303 # Commands used to build and install a shared archive.
13304 archive_cmds=$lt_archive_cmds_CXX
13305 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13306 postinstall_cmds=$lt_postinstall_cmds
13307 postuninstall_cmds=$lt_postuninstall_cmds
13308
13309 # Commands used to build a loadable module (assumed same as above if empty)
13310 module_cmds=$lt_module_cmds_CXX
13311 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13312
13313 # Commands to strip libraries.
13314 old_striplib=$lt_old_striplib
13315 striplib=$lt_striplib
13316
13317 # Dependencies to place before the objects being linked to create a
13318 # shared library.
13319 predep_objects=$lt_predep_objects_CXX
13320
13321 # Dependencies to place after the objects being linked to create a
13322 # shared library.
13323 postdep_objects=$lt_postdep_objects_CXX
13324
13325 # Dependencies to place before the objects being linked to create a
13326 # shared library.
13327 predeps=$lt_predeps_CXX
13328
13329 # Dependencies to place after the objects being linked to create a
13330 # shared library.
13331 postdeps=$lt_postdeps_CXX
13332
13333 # The library search path used internally by the compiler when linking
13334 # a shared library.
13335 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13336
13337 # Method to check whether dependent libraries are shared objects.
13338 deplibs_check_method=$lt_deplibs_check_method
13339
13340 # Command to use when deplibs_check_method == file_magic.
13341 file_magic_cmd=$lt_file_magic_cmd
13342
13343 # Flag that allows shared libraries with undefined symbols to be built.
13344 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13345
13346 # Flag that forces no undefined symbols.
13347 no_undefined_flag=$lt_no_undefined_flag_CXX
13348
13349 # Commands used to finish a libtool library installation in a directory.
13350 finish_cmds=$lt_finish_cmds
13351
13352 # Same as above, but a single script fragment to be evaled but not shown.
13353 finish_eval=$lt_finish_eval
13354
13355 # Take the output of nm and produce a listing of raw symbols and C names.
13356 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13357
13358 # Transform the output of nm in a proper C declaration
13359 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13360
13361 # Transform the output of nm in a C name address pair
13362 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13363
13364 # This is the shared library runtime path variable.
13365 runpath_var=$runpath_var
13366
13367 # This is the shared library path variable.
13368 shlibpath_var=$shlibpath_var
13369
13370 # Is shlibpath searched before the hard-coded library search path?
13371 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13372
13373 # How to hardcode a shared library path into an executable.
13374 hardcode_action=$hardcode_action_CXX
13375
13376 # Whether we should hardcode library paths into libraries.
13377 hardcode_into_libs=$hardcode_into_libs
13378
13379 # Flag to hardcode \$libdir into a binary during linking.
13380 # This must work even if \$libdir does not exist.
13381 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13382
13383 # If ld is used when linking, flag to hardcode \$libdir into
13384 # a binary during linking. This must work even if \$libdir does
13385 # not exist.
13386 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13387
13388 # Whether we need a single -rpath flag with a separated argument.
13389 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13390
13391 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13392 # resulting binary.
13393 hardcode_direct=$hardcode_direct_CXX
13394
13395 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13396 # resulting binary.
13397 hardcode_minus_L=$hardcode_minus_L_CXX
13398
13399 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13400 # the resulting binary.
13401 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13402
13403 # Set to yes if building a shared library automatically hardcodes DIR into the library
13404 # and all subsequent libraries and executables linked against it.
13405 hardcode_automatic=$hardcode_automatic_CXX
13406
13407 # Variables whose values should be saved in libtool wrapper scripts and
13408 # restored at relink time.
13409 variables_saved_for_relink="$variables_saved_for_relink"
13410
13411 # Whether libtool must link a program against all its dependency libraries.
13412 link_all_deplibs=$link_all_deplibs_CXX
13413
13414 # Compile-time system search path for libraries
13415 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13416
13417 # Run-time system search path for libraries
13418 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13419
13420 # Fix the shell variable \$srcfile for the compiler.
13421 fix_srcfile_path="$fix_srcfile_path_CXX"
13422
13423 # Set to yes if exported symbols are required.
13424 always_export_symbols=$always_export_symbols_CXX
13425
13426 # The commands to list exported symbols.
13427 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13428
13429 # The commands to extract the exported symbol list from a shared archive.
13430 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13431
13432 # Symbols that should not be listed in the preloaded symbols.
13433 exclude_expsyms=$lt_exclude_expsyms_CXX
13434
13435 # Symbols that must always be exported.
13436 include_expsyms=$lt_include_expsyms_CXX
13437
13438 # ### END LIBTOOL TAG CONFIG: $tagname
13439
13440 __EOF__
13441
13442
13443 else
13444   # If there is no Makefile yet, we rely on a make rule to execute
13445   # `config.status --recheck' to rerun these tests and create the
13446   # libtool script then.
13447   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13448   if test -f "$ltmain_in"; then
13449     test -f Makefile && make "$ltmain"
13450   fi
13451 fi
13452
13453
13454 ac_ext=c
13455 ac_cpp='$CPP $CPPFLAGS'
13456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13459
13460 CC=$lt_save_CC
13461 LDCXX=$LD
13462 LD=$lt_save_LD
13463 GCC=$lt_save_GCC
13464 with_gnu_ldcxx=$with_gnu_ld
13465 with_gnu_ld=$lt_save_with_gnu_ld
13466 lt_cv_path_LDCXX=$lt_cv_path_LD
13467 lt_cv_path_LD=$lt_save_path_LD
13468 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13469 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13470
13471         else
13472           tagname=""
13473         fi
13474         ;;
13475
13476       F77)
13477         if test -n "$F77" && test "X$F77" != "Xno"; then
13478
13479 ac_ext=f
13480 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13481 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13482 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13483
13484
13485 archive_cmds_need_lc_F77=no
13486 allow_undefined_flag_F77=
13487 always_export_symbols_F77=no
13488 archive_expsym_cmds_F77=
13489 export_dynamic_flag_spec_F77=
13490 hardcode_direct_F77=no
13491 hardcode_libdir_flag_spec_F77=
13492 hardcode_libdir_flag_spec_ld_F77=
13493 hardcode_libdir_separator_F77=
13494 hardcode_minus_L_F77=no
13495 hardcode_automatic_F77=no
13496 module_cmds_F77=
13497 module_expsym_cmds_F77=
13498 link_all_deplibs_F77=unknown
13499 old_archive_cmds_F77=$old_archive_cmds
13500 no_undefined_flag_F77=
13501 whole_archive_flag_spec_F77=
13502 enable_shared_with_static_runtimes_F77=no
13503
13504 # Source file extension for f77 test sources.
13505 ac_ext=f
13506
13507 # Object file extension for compiled f77 test sources.
13508 objext=o
13509 objext_F77=$objext
13510
13511 # Code to be used in simple compile tests
13512 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13513
13514 # Code to be used in simple link tests
13515 lt_simple_link_test_code="      program t\n      end\n"
13516
13517 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13518
13519 # If no C compiler was specified, use CC.
13520 LTCC=${LTCC-"$CC"}
13521
13522 # If no C compiler flags were specified, use CFLAGS.
13523 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13524
13525 # Allow CC to be a program name with arguments.
13526 compiler=$CC
13527
13528
13529 # save warnings/boilerplate of simple test code
13530 ac_outfile=conftest.$ac_objext
13531 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13532 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13533 _lt_compiler_boilerplate=`cat conftest.err`
13534 $rm conftest*
13535
13536 ac_outfile=conftest.$ac_objext
13537 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13538 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13539 _lt_linker_boilerplate=`cat conftest.err`
13540 $rm conftest*
13541
13542
13543 # Allow CC to be a program name with arguments.
13544 lt_save_CC="$CC"
13545 CC=${F77-"f77"}
13546 compiler=$CC
13547 compiler_F77=$CC
13548 for cc_temp in $compiler""; do
13549   case $cc_temp in
13550     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13551     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13552     \-*) ;;
13553     *) break;;
13554   esac
13555 done
13556 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13557
13558
13559 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13560 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13561 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13562 echo "${ECHO_T}$can_build_shared" >&6; }
13563
13564 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13565 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13566 test "$can_build_shared" = "no" && enable_shared=no
13567
13568 # On AIX, shared libraries and static libraries use the same namespace, and
13569 # are all built from PIC.
13570 case $host_os in
13571 aix3*)
13572   test "$enable_shared" = yes && enable_static=no
13573   if test -n "$RANLIB"; then
13574     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13575     postinstall_cmds='$RANLIB $lib'
13576   fi
13577   ;;
13578 aix4* | aix5*)
13579   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13580     test "$enable_shared" = yes && enable_static=no
13581   fi
13582   ;;
13583 esac
13584 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13585 echo "${ECHO_T}$enable_shared" >&6; }
13586
13587 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13588 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13589 # Make sure either enable_shared or enable_static is yes.
13590 test "$enable_shared" = yes || enable_static=yes
13591 { echo "$as_me:$LINENO: result: $enable_static" >&5
13592 echo "${ECHO_T}$enable_static" >&6; }
13593
13594 GCC_F77="$G77"
13595 LD_F77="$LD"
13596
13597 lt_prog_compiler_wl_F77=
13598 lt_prog_compiler_pic_F77=
13599 lt_prog_compiler_static_F77=
13600
13601 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13602 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13603
13604   if test "$GCC" = yes; then
13605     lt_prog_compiler_wl_F77='-Wl,'
13606     lt_prog_compiler_static_F77='-static'
13607
13608     case $host_os in
13609       aix*)
13610       # All AIX code is PIC.
13611       if test "$host_cpu" = ia64; then
13612         # AIX 5 now supports IA64 processor
13613         lt_prog_compiler_static_F77='-Bstatic'
13614       fi
13615       ;;
13616
13617     amigaos*)
13618       # FIXME: we need at least 68020 code to build shared libraries, but
13619       # adding the `-m68020' flag to GCC prevents building anything better,
13620       # like `-m68040'.
13621       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13622       ;;
13623
13624     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13625       # PIC is the default for these OSes.
13626       ;;
13627
13628     mingw* | pw32* | os2*)
13629       # This hack is so that the source file can tell whether it is being
13630       # built for inclusion in a dll (and should export symbols for example).
13631       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13632       ;;
13633
13634     darwin* | rhapsody*)
13635       # PIC is the default on this platform
13636       # Common symbols not allowed in MH_DYLIB files
13637       lt_prog_compiler_pic_F77='-fno-common'
13638       ;;
13639
13640     interix3*)
13641       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13642       # Instead, we relocate shared libraries at runtime.
13643       ;;
13644
13645     msdosdjgpp*)
13646       # Just because we use GCC doesn't mean we suddenly get shared libraries
13647       # on systems that don't support them.
13648       lt_prog_compiler_can_build_shared_F77=no
13649       enable_shared=no
13650       ;;
13651
13652     sysv4*MP*)
13653       if test -d /usr/nec; then
13654         lt_prog_compiler_pic_F77=-Kconform_pic
13655       fi
13656       ;;
13657
13658     hpux*)
13659       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13660       # not for PA HP-UX.
13661       case $host_cpu in
13662       hppa*64*|ia64*)
13663         # +Z the default
13664         ;;
13665       *)
13666         lt_prog_compiler_pic_F77='-fPIC'
13667         ;;
13668       esac
13669       ;;
13670
13671     *)
13672       lt_prog_compiler_pic_F77='-fPIC'
13673       ;;
13674     esac
13675   else
13676     # PORTME Check for flag to pass linker flags through the system compiler.
13677     case $host_os in
13678     aix*)
13679       lt_prog_compiler_wl_F77='-Wl,'
13680       if test "$host_cpu" = ia64; then
13681         # AIX 5 now supports IA64 processor
13682         lt_prog_compiler_static_F77='-Bstatic'
13683       else
13684         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13685       fi
13686       ;;
13687       darwin*)
13688         # PIC is the default on this platform
13689         # Common symbols not allowed in MH_DYLIB files
13690        case $cc_basename in
13691          xlc*)
13692          lt_prog_compiler_pic_F77='-qnocommon'
13693          lt_prog_compiler_wl_F77='-Wl,'
13694          ;;
13695        esac
13696        ;;
13697
13698     mingw* | pw32* | os2*)
13699       # This hack is so that the source file can tell whether it is being
13700       # built for inclusion in a dll (and should export symbols for example).
13701       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13702       ;;
13703
13704     hpux9* | hpux10* | hpux11*)
13705       lt_prog_compiler_wl_F77='-Wl,'
13706       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13707       # not for PA HP-UX.
13708       case $host_cpu in
13709       hppa*64*|ia64*)
13710         # +Z the default
13711         ;;
13712       *)
13713         lt_prog_compiler_pic_F77='+Z'
13714         ;;
13715       esac
13716       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13717       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13718       ;;
13719
13720     irix5* | irix6* | nonstopux*)
13721       lt_prog_compiler_wl_F77='-Wl,'
13722       # PIC (with -KPIC) is the default.
13723       lt_prog_compiler_static_F77='-non_shared'
13724       ;;
13725
13726     newsos6)
13727       lt_prog_compiler_pic_F77='-KPIC'
13728       lt_prog_compiler_static_F77='-Bstatic'
13729       ;;
13730
13731     linux* | k*bsd*-gnu)
13732       case $cc_basename in
13733       icc* | ecc*)
13734         lt_prog_compiler_wl_F77='-Wl,'
13735         lt_prog_compiler_pic_F77='-KPIC'
13736         lt_prog_compiler_static_F77='-static'
13737         ;;
13738       pgcc* | pgf77* | pgf90* | pgf95*)
13739         # Portland Group compilers (*not* the Pentium gcc compiler,
13740         # which looks to be a dead project)
13741         lt_prog_compiler_wl_F77='-Wl,'
13742         lt_prog_compiler_pic_F77='-fpic'
13743         lt_prog_compiler_static_F77='-Bstatic'
13744         ;;
13745       ccc*)
13746         lt_prog_compiler_wl_F77='-Wl,'
13747         # All Alpha code is PIC.
13748         lt_prog_compiler_static_F77='-non_shared'
13749         ;;
13750       esac
13751       ;;
13752
13753     osf3* | osf4* | osf5*)
13754       lt_prog_compiler_wl_F77='-Wl,'
13755       # All OSF/1 code is PIC.
13756       lt_prog_compiler_static_F77='-non_shared'
13757       ;;
13758
13759     solaris*)
13760       lt_prog_compiler_pic_F77='-KPIC'
13761       lt_prog_compiler_static_F77='-Bstatic'
13762       case $cc_basename in
13763       f77* | f90* | f95*)
13764         lt_prog_compiler_wl_F77='-Qoption ld ';;
13765       *)
13766         lt_prog_compiler_wl_F77='-Wl,';;
13767       esac
13768       ;;
13769
13770     sunos4*)
13771       lt_prog_compiler_wl_F77='-Qoption ld '
13772       lt_prog_compiler_pic_F77='-PIC'
13773       lt_prog_compiler_static_F77='-Bstatic'
13774       ;;
13775
13776     sysv4 | sysv4.2uw2* | sysv4.3*)
13777       lt_prog_compiler_wl_F77='-Wl,'
13778       lt_prog_compiler_pic_F77='-KPIC'
13779       lt_prog_compiler_static_F77='-Bstatic'
13780       ;;
13781
13782     sysv4*MP*)
13783       if test -d /usr/nec ;then
13784         lt_prog_compiler_pic_F77='-Kconform_pic'
13785         lt_prog_compiler_static_F77='-Bstatic'
13786       fi
13787       ;;
13788
13789     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13790       lt_prog_compiler_wl_F77='-Wl,'
13791       lt_prog_compiler_pic_F77='-KPIC'
13792       lt_prog_compiler_static_F77='-Bstatic'
13793       ;;
13794
13795     unicos*)
13796       lt_prog_compiler_wl_F77='-Wl,'
13797       lt_prog_compiler_can_build_shared_F77=no
13798       ;;
13799
13800     uts4*)
13801       lt_prog_compiler_pic_F77='-pic'
13802       lt_prog_compiler_static_F77='-Bstatic'
13803       ;;
13804
13805     *)
13806       lt_prog_compiler_can_build_shared_F77=no
13807       ;;
13808     esac
13809   fi
13810
13811 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13812 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13813
13814 #
13815 # Check to make sure the PIC flag actually works.
13816 #
13817 if test -n "$lt_prog_compiler_pic_F77"; then
13818
13819 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13820 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13821 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13822   echo $ECHO_N "(cached) $ECHO_C" >&6
13823 else
13824   lt_prog_compiler_pic_works_F77=no
13825   ac_outfile=conftest.$ac_objext
13826    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13827    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13828    # Insert the option either (1) after the last *FLAGS variable, or
13829    # (2) before a word containing "conftest.", or (3) at the end.
13830    # Note that $ac_compile itself does not contain backslashes and begins
13831    # with a dollar sign (not a hyphen), so the echo should work correctly.
13832    # The option is referenced via a variable to avoid confusing sed.
13833    lt_compile=`echo "$ac_compile" | $SED \
13834    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13835    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13836    -e 's:$: $lt_compiler_flag:'`
13837    (eval echo "\"\$as_me:13837: $lt_compile\"" >&5)
13838    (eval "$lt_compile" 2>conftest.err)
13839    ac_status=$?
13840    cat conftest.err >&5
13841    echo "$as_me:13841: \$? = $ac_status" >&5
13842    if (exit $ac_status) && test -s "$ac_outfile"; then
13843      # The compiler can only warn and ignore the option if not recognized
13844      # So say no if there are warnings other than the usual output.
13845      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13846      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13847      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13848        lt_prog_compiler_pic_works_F77=yes
13849      fi
13850    fi
13851    $rm conftest*
13852
13853 fi
13854 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13855 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13856
13857 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13858     case $lt_prog_compiler_pic_F77 in
13859      "" | " "*) ;;
13860      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13861      esac
13862 else
13863     lt_prog_compiler_pic_F77=
13864      lt_prog_compiler_can_build_shared_F77=no
13865 fi
13866
13867 fi
13868 case $host_os in
13869   # For platforms which do not support PIC, -DPIC is meaningless:
13870   *djgpp*)
13871     lt_prog_compiler_pic_F77=
13872     ;;
13873   *)
13874     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13875     ;;
13876 esac
13877
13878 #
13879 # Check to make sure the static flag actually works.
13880 #
13881 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13882 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13883 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13884 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13885   echo $ECHO_N "(cached) $ECHO_C" >&6
13886 else
13887   lt_prog_compiler_static_works_F77=no
13888    save_LDFLAGS="$LDFLAGS"
13889    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13890    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13891    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13892      # The linker can only warn and ignore the option if not recognized
13893      # So say no if there are warnings
13894      if test -s conftest.err; then
13895        # Append any errors to the config.log.
13896        cat conftest.err 1>&5
13897        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13898        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13899        if diff conftest.exp conftest.er2 >/dev/null; then
13900          lt_prog_compiler_static_works_F77=yes
13901        fi
13902      else
13903        lt_prog_compiler_static_works_F77=yes
13904      fi
13905    fi
13906    $rm conftest*
13907    LDFLAGS="$save_LDFLAGS"
13908
13909 fi
13910 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13911 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13912
13913 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13914     :
13915 else
13916     lt_prog_compiler_static_F77=
13917 fi
13918
13919
13920 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13921 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13922 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13923   echo $ECHO_N "(cached) $ECHO_C" >&6
13924 else
13925   lt_cv_prog_compiler_c_o_F77=no
13926    $rm -r conftest 2>/dev/null
13927    mkdir conftest
13928    cd conftest
13929    mkdir out
13930    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13931
13932    lt_compiler_flag="-o out/conftest2.$ac_objext"
13933    # Insert the option either (1) after the last *FLAGS variable, or
13934    # (2) before a word containing "conftest.", or (3) at the end.
13935    # Note that $ac_compile itself does not contain backslashes and begins
13936    # with a dollar sign (not a hyphen), so the echo should work correctly.
13937    lt_compile=`echo "$ac_compile" | $SED \
13938    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13939    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13940    -e 's:$: $lt_compiler_flag:'`
13941    (eval echo "\"\$as_me:13941: $lt_compile\"" >&5)
13942    (eval "$lt_compile" 2>out/conftest.err)
13943    ac_status=$?
13944    cat out/conftest.err >&5
13945    echo "$as_me:13945: \$? = $ac_status" >&5
13946    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13947    then
13948      # The compiler can only warn and ignore the option if not recognized
13949      # So say no if there are warnings
13950      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13951      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13952      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13953        lt_cv_prog_compiler_c_o_F77=yes
13954      fi
13955    fi
13956    chmod u+w . 2>&5
13957    $rm conftest*
13958    # SGI C++ compiler will create directory out/ii_files/ for
13959    # template instantiation
13960    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13961    $rm out/* && rmdir out
13962    cd ..
13963    rmdir conftest
13964    $rm conftest*
13965
13966 fi
13967 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13968 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13969
13970
13971 hard_links="nottested"
13972 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13973   # do not overwrite the value of need_locks provided by the user
13974   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13975 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13976   hard_links=yes
13977   $rm conftest*
13978   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13979   touch conftest.a
13980   ln conftest.a conftest.b 2>&5 || hard_links=no
13981   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13982   { echo "$as_me:$LINENO: result: $hard_links" >&5
13983 echo "${ECHO_T}$hard_links" >&6; }
13984   if test "$hard_links" = no; then
13985     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13986 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13987     need_locks=warn
13988   fi
13989 else
13990   need_locks=no
13991 fi
13992
13993 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13994 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13995
13996   runpath_var=
13997   allow_undefined_flag_F77=
13998   enable_shared_with_static_runtimes_F77=no
13999   archive_cmds_F77=
14000   archive_expsym_cmds_F77=
14001   old_archive_From_new_cmds_F77=
14002   old_archive_from_expsyms_cmds_F77=
14003   export_dynamic_flag_spec_F77=
14004   whole_archive_flag_spec_F77=
14005   thread_safe_flag_spec_F77=
14006   hardcode_libdir_flag_spec_F77=
14007   hardcode_libdir_flag_spec_ld_F77=
14008   hardcode_libdir_separator_F77=
14009   hardcode_direct_F77=no
14010   hardcode_minus_L_F77=no
14011   hardcode_shlibpath_var_F77=unsupported
14012   link_all_deplibs_F77=unknown
14013   hardcode_automatic_F77=no
14014   module_cmds_F77=
14015   module_expsym_cmds_F77=
14016   always_export_symbols_F77=no
14017   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14018   # include_expsyms should be a list of space-separated symbols to be *always*
14019   # included in the symbol list
14020   include_expsyms_F77=
14021   # exclude_expsyms can be an extended regexp of symbols to exclude
14022   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14023   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14024   # as well as any symbol that contains `d'.
14025   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14026   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14027   # platforms (ab)use it in PIC code, but their linkers get confused if
14028   # the symbol is explicitly referenced.  Since portable code cannot
14029   # rely on this symbol name, it's probably fine to never include it in
14030   # preloaded symbol tables.
14031   extract_expsyms_cmds=
14032   # Just being paranoid about ensuring that cc_basename is set.
14033   for cc_temp in $compiler""; do
14034   case $cc_temp in
14035     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14036     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14037     \-*) ;;
14038     *) break;;
14039   esac
14040 done
14041 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14042
14043   case $host_os in
14044   cygwin* | mingw* | pw32*)
14045     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14046     # When not using gcc, we currently assume that we are using
14047     # Microsoft Visual C++.
14048     if test "$GCC" != yes; then
14049       with_gnu_ld=no
14050     fi
14051     ;;
14052   interix*)
14053     # we just hope/assume this is gcc and not c89 (= MSVC++)
14054     with_gnu_ld=yes
14055     ;;
14056   openbsd*)
14057     with_gnu_ld=no
14058     ;;
14059   esac
14060
14061   ld_shlibs_F77=yes
14062   if test "$with_gnu_ld" = yes; then
14063     # If archive_cmds runs LD, not CC, wlarc should be empty
14064     wlarc='${wl}'
14065
14066     # Set some defaults for GNU ld with shared library support. These
14067     # are reset later if shared libraries are not supported. Putting them
14068     # here allows them to be overridden if necessary.
14069     runpath_var=LD_RUN_PATH
14070     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14071     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14072     # ancient GNU ld didn't support --whole-archive et. al.
14073     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14074         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14075       else
14076         whole_archive_flag_spec_F77=
14077     fi
14078     supports_anon_versioning=no
14079     case `$LD -v 2>/dev/null` in
14080       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14081       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14082       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14083       *\ 2.11.*) ;; # other 2.11 versions
14084       *) supports_anon_versioning=yes ;;
14085     esac
14086
14087     # See if GNU ld supports shared libraries.
14088     case $host_os in
14089     aix3* | aix4* | aix5*)
14090       # On AIX/PPC, the GNU linker is very broken
14091       if test "$host_cpu" != ia64; then
14092         ld_shlibs_F77=no
14093         cat <<EOF 1>&2
14094
14095 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14096 *** to be unable to reliably create shared libraries on AIX.
14097 *** Therefore, libtool is disabling shared libraries support.  If you
14098 *** really care for shared libraries, you may want to modify your PATH
14099 *** so that a non-GNU linker is found, and then restart.
14100
14101 EOF
14102       fi
14103       ;;
14104
14105     amigaos*)
14106       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)'
14107       hardcode_libdir_flag_spec_F77='-L$libdir'
14108       hardcode_minus_L_F77=yes
14109
14110       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14111       # that the semantics of dynamic libraries on AmigaOS, at least up
14112       # to version 4, is to share data among multiple programs linked
14113       # with the same dynamic library.  Since this doesn't match the
14114       # behavior of shared libraries on other platforms, we can't use
14115       # them.
14116       ld_shlibs_F77=no
14117       ;;
14118
14119     beos*)
14120       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14121         allow_undefined_flag_F77=unsupported
14122         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14123         # support --undefined.  This deserves some investigation.  FIXME
14124         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14125       else
14126         ld_shlibs_F77=no
14127       fi
14128       ;;
14129
14130     cygwin* | mingw* | pw32*)
14131       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14132       # as there is no search path for DLLs.
14133       hardcode_libdir_flag_spec_F77='-L$libdir'
14134       allow_undefined_flag_F77=unsupported
14135       always_export_symbols_F77=no
14136       enable_shared_with_static_runtimes_F77=yes
14137       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14138
14139       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14140         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14141         # If the export-symbols file already is a .def file (1st line
14142         # is EXPORTS), use it as is; otherwise, prepend...
14143         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14144           cp $export_symbols $output_objdir/$soname.def;
14145         else
14146           echo EXPORTS > $output_objdir/$soname.def;
14147           cat $export_symbols >> $output_objdir/$soname.def;
14148         fi~
14149         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14150       else
14151         ld_shlibs_F77=no
14152       fi
14153       ;;
14154
14155     interix3*)
14156       hardcode_direct_F77=no
14157       hardcode_shlibpath_var_F77=no
14158       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14159       export_dynamic_flag_spec_F77='${wl}-E'
14160       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14161       # Instead, shared libraries are loaded at an image base (0x10000000 by
14162       # default) and relocated if they conflict, which is a slow very memory
14163       # consuming and fragmenting process.  To avoid this, we pick a random,
14164       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14165       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14166       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'
14167       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'
14168       ;;
14169
14170     linux* | k*bsd*-gnu)
14171       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14172         tmp_addflag=
14173         case $cc_basename,$host_cpu in
14174         pgcc*)                          # Portland Group C compiler
14175           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'
14176           tmp_addflag=' $pic_flag'
14177           ;;
14178         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14179           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'
14180           tmp_addflag=' $pic_flag -Mnomain' ;;
14181         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14182           tmp_addflag=' -i_dynamic' ;;
14183         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14184           tmp_addflag=' -i_dynamic -nofor_main' ;;
14185         ifc* | ifort*)                  # Intel Fortran compiler
14186           tmp_addflag=' -nofor_main' ;;
14187         esac
14188         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14189
14190         if test $supports_anon_versioning = yes; then
14191           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14192   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14193   $echo "local: *; };" >> $output_objdir/$libname.ver~
14194           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14195         fi
14196         link_all_deplibs_F77=no
14197       else
14198         ld_shlibs_F77=no
14199       fi
14200       ;;
14201
14202     netbsd* | netbsdelf*-gnu)
14203       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14204         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14205         wlarc=
14206       else
14207         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14208         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14209       fi
14210       ;;
14211
14212     solaris*)
14213       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14214         ld_shlibs_F77=no
14215         cat <<EOF 1>&2
14216
14217 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14218 *** create shared libraries on Solaris systems.  Therefore, libtool
14219 *** is disabling shared libraries support.  We urge you to upgrade GNU
14220 *** binutils to release 2.9.1 or newer.  Another option is to modify
14221 *** your PATH or compiler configuration so that the native linker is
14222 *** used, and then restart.
14223
14224 EOF
14225       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14226         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14227         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14228       else
14229         ld_shlibs_F77=no
14230       fi
14231       ;;
14232
14233     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14234       case `$LD -v 2>&1` in
14235         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14236         ld_shlibs_F77=no
14237         cat <<_LT_EOF 1>&2
14238
14239 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14240 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14241 *** is disabling shared libraries support.  We urge you to upgrade GNU
14242 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14243 *** your PATH or compiler configuration so that the native linker is
14244 *** used, and then restart.
14245
14246 _LT_EOF
14247         ;;
14248         *)
14249           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14250             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14251             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14252             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14253           else
14254             ld_shlibs_F77=no
14255           fi
14256         ;;
14257       esac
14258       ;;
14259
14260     sunos4*)
14261       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14262       wlarc=
14263       hardcode_direct_F77=yes
14264       hardcode_shlibpath_var_F77=no
14265       ;;
14266
14267     *)
14268       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14269         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14270         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14271       else
14272         ld_shlibs_F77=no
14273       fi
14274       ;;
14275     esac
14276
14277     if test "$ld_shlibs_F77" = no; then
14278       runpath_var=
14279       hardcode_libdir_flag_spec_F77=
14280       export_dynamic_flag_spec_F77=
14281       whole_archive_flag_spec_F77=
14282     fi
14283   else
14284     # PORTME fill in a description of your system's linker (not GNU ld)
14285     case $host_os in
14286     aix3*)
14287       allow_undefined_flag_F77=unsupported
14288       always_export_symbols_F77=yes
14289       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'
14290       # Note: this linker hardcodes the directories in LIBPATH if there
14291       # are no directories specified by -L.
14292       hardcode_minus_L_F77=yes
14293       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14294         # Neither direct hardcoding nor static linking is supported with a
14295         # broken collect2.
14296         hardcode_direct_F77=unsupported
14297       fi
14298       ;;
14299
14300     aix4* | aix5*)
14301       if test "$host_cpu" = ia64; then
14302         # On IA64, the linker does run time linking by default, so we don't
14303         # have to do anything special.
14304         aix_use_runtimelinking=no
14305         exp_sym_flag='-Bexport'
14306         no_entry_flag=""
14307       else
14308         # If we're using GNU nm, then we don't want the "-C" option.
14309         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14310         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14311           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'
14312         else
14313           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'
14314         fi
14315         aix_use_runtimelinking=no
14316
14317         # Test if we are trying to use run time linking or normal
14318         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14319         # need to do runtime linking.
14320         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14321           for ld_flag in $LDFLAGS; do
14322           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14323             aix_use_runtimelinking=yes
14324             break
14325           fi
14326           done
14327           ;;
14328         esac
14329
14330         exp_sym_flag='-bexport'
14331         no_entry_flag='-bnoentry'
14332       fi
14333
14334       # When large executables or shared objects are built, AIX ld can
14335       # have problems creating the table of contents.  If linking a library
14336       # or program results in "error TOC overflow" add -mminimal-toc to
14337       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14338       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14339
14340       archive_cmds_F77=''
14341       hardcode_direct_F77=yes
14342       hardcode_libdir_separator_F77=':'
14343       link_all_deplibs_F77=yes
14344
14345       if test "$GCC" = yes; then
14346         case $host_os in aix4.[012]|aix4.[012].*)
14347         # We only want to do this on AIX 4.2 and lower, the check
14348         # below for broken collect2 doesn't work under 4.3+
14349           collect2name=`${CC} -print-prog-name=collect2`
14350           if test -f "$collect2name" && \
14351            strings "$collect2name" | grep resolve_lib_name >/dev/null
14352           then
14353           # We have reworked collect2
14354           hardcode_direct_F77=yes
14355           else
14356           # We have old collect2
14357           hardcode_direct_F77=unsupported
14358           # It fails to find uninstalled libraries when the uninstalled
14359           # path is not listed in the libpath.  Setting hardcode_minus_L
14360           # to unsupported forces relinking
14361           hardcode_minus_L_F77=yes
14362           hardcode_libdir_flag_spec_F77='-L$libdir'
14363           hardcode_libdir_separator_F77=
14364           fi
14365           ;;
14366         esac
14367         shared_flag='-shared'
14368         if test "$aix_use_runtimelinking" = yes; then
14369           shared_flag="$shared_flag "'${wl}-G'
14370         fi
14371       else
14372         # not using gcc
14373         if test "$host_cpu" = ia64; then
14374         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14375         # chokes on -Wl,-G. The following line is correct:
14376           shared_flag='-G'
14377         else
14378           if test "$aix_use_runtimelinking" = yes; then
14379             shared_flag='${wl}-G'
14380           else
14381             shared_flag='${wl}-bM:SRE'
14382           fi
14383         fi
14384       fi
14385
14386       # It seems that -bexpall does not export symbols beginning with
14387       # underscore (_), so it is better to generate a list of symbols to export.
14388       always_export_symbols_F77=yes
14389       if test "$aix_use_runtimelinking" = yes; then
14390         # Warning - without using the other runtime loading flags (-brtl),
14391         # -berok will link without error, but may produce a broken library.
14392         allow_undefined_flag_F77='-berok'
14393        # Determine the default libpath from the value encoded in an empty executable.
14394        cat >conftest.$ac_ext <<_ACEOF
14395       program main
14396
14397       end
14398 _ACEOF
14399 rm -f conftest.$ac_objext conftest$ac_exeext
14400 if { (ac_try="$ac_link"
14401 case "(($ac_try" in
14402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403   *) ac_try_echo=$ac_try;;
14404 esac
14405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14406   (eval "$ac_link") 2>conftest.er1
14407   ac_status=$?
14408   grep -v '^ *+' conftest.er1 >conftest.err
14409   rm -f conftest.er1
14410   cat conftest.err >&5
14411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412   (exit $ac_status); } && {
14413          test -z "$ac_f77_werror_flag" ||
14414          test ! -s conftest.err
14415        } && test -s conftest$ac_exeext &&
14416        $as_test_x conftest$ac_exeext; then
14417
14418 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14419 }'`
14420 # Check for a 64-bit object if we didn't find anything.
14421 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14422 }'`; fi
14423 else
14424   echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14426
14427
14428 fi
14429
14430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14431       conftest$ac_exeext conftest.$ac_ext
14432 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14433
14434        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14435         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"
14436        else
14437         if test "$host_cpu" = ia64; then
14438           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14439           allow_undefined_flag_F77="-z nodefs"
14440           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"
14441         else
14442          # Determine the default libpath from the value encoded in an empty executable.
14443          cat >conftest.$ac_ext <<_ACEOF
14444       program main
14445
14446       end
14447 _ACEOF
14448 rm -f conftest.$ac_objext conftest$ac_exeext
14449 if { (ac_try="$ac_link"
14450 case "(($ac_try" in
14451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14452   *) ac_try_echo=$ac_try;;
14453 esac
14454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14455   (eval "$ac_link") 2>conftest.er1
14456   ac_status=$?
14457   grep -v '^ *+' conftest.er1 >conftest.err
14458   rm -f conftest.er1
14459   cat conftest.err >&5
14460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461   (exit $ac_status); } && {
14462          test -z "$ac_f77_werror_flag" ||
14463          test ! -s conftest.err
14464        } && test -s conftest$ac_exeext &&
14465        $as_test_x conftest$ac_exeext; then
14466
14467 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14468 }'`
14469 # Check for a 64-bit object if we didn't find anything.
14470 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14471 }'`; fi
14472 else
14473   echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14475
14476
14477 fi
14478
14479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14480       conftest$ac_exeext conftest.$ac_ext
14481 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14482
14483          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14484           # Warning - without using the other run time loading flags,
14485           # -berok will link without error, but may produce a broken library.
14486           no_undefined_flag_F77=' ${wl}-bernotok'
14487           allow_undefined_flag_F77=' ${wl}-berok'
14488           # Exported symbols can be pulled into shared objects from archives
14489           whole_archive_flag_spec_F77='$convenience'
14490           archive_cmds_need_lc_F77=yes
14491           # This is similar to how AIX traditionally builds its shared libraries.
14492           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'
14493         fi
14494       fi
14495       ;;
14496
14497     amigaos*)
14498       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)'
14499       hardcode_libdir_flag_spec_F77='-L$libdir'
14500       hardcode_minus_L_F77=yes
14501       # see comment about different semantics on the GNU ld section
14502       ld_shlibs_F77=no
14503       ;;
14504
14505     bsdi[45]*)
14506       export_dynamic_flag_spec_F77=-rdynamic
14507       ;;
14508
14509     cygwin* | mingw* | pw32*)
14510       # When not using gcc, we currently assume that we are using
14511       # Microsoft Visual C++.
14512       # hardcode_libdir_flag_spec is actually meaningless, as there is
14513       # no search path for DLLs.
14514       hardcode_libdir_flag_spec_F77=' '
14515       allow_undefined_flag_F77=unsupported
14516       # Tell ltmain to make .lib files, not .a files.
14517       libext=lib
14518       # Tell ltmain to make .dll files, not .so files.
14519       shrext_cmds=".dll"
14520       # FIXME: Setting linknames here is a bad hack.
14521       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14522       # The linker will automatically build a .lib file if we build a DLL.
14523       old_archive_From_new_cmds_F77='true'
14524       # FIXME: Should let the user specify the lib program.
14525       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14526       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14527       enable_shared_with_static_runtimes_F77=yes
14528       ;;
14529
14530     darwin* | rhapsody*)
14531       case $host_os in
14532         rhapsody* | darwin1.[012])
14533          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14534          ;;
14535        *) # Darwin 1.3 on
14536          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14537            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14538          else
14539            case ${MACOSX_DEPLOYMENT_TARGET} in
14540              10.[012])
14541                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14542                ;;
14543              10.*)
14544                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14545                ;;
14546            esac
14547          fi
14548          ;;
14549       esac
14550       archive_cmds_need_lc_F77=no
14551       hardcode_direct_F77=no
14552       hardcode_automatic_F77=yes
14553       hardcode_shlibpath_var_F77=unsupported
14554       whole_archive_flag_spec_F77=''
14555       link_all_deplibs_F77=yes
14556     if test "$GCC" = yes ; then
14557         output_verbose_link_cmd='echo'
14558         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14559       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14560       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14561       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14562       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}'
14563     else
14564       case $cc_basename in
14565         xlc*)
14566          output_verbose_link_cmd='echo'
14567          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14568          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14569           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14570          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14571           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}'
14572           ;;
14573        *)
14574          ld_shlibs_F77=no
14575           ;;
14576       esac
14577     fi
14578       ;;
14579
14580     dgux*)
14581       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14582       hardcode_libdir_flag_spec_F77='-L$libdir'
14583       hardcode_shlibpath_var_F77=no
14584       ;;
14585
14586     freebsd1*)
14587       ld_shlibs_F77=no
14588       ;;
14589
14590     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14591     # support.  Future versions do this automatically, but an explicit c++rt0.o
14592     # does not break anything, and helps significantly (at the cost of a little
14593     # extra space).
14594     freebsd2.2*)
14595       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14596       hardcode_libdir_flag_spec_F77='-R$libdir'
14597       hardcode_direct_F77=yes
14598       hardcode_shlibpath_var_F77=no
14599       ;;
14600
14601     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14602     freebsd2*)
14603       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14604       hardcode_direct_F77=yes
14605       hardcode_minus_L_F77=yes
14606       hardcode_shlibpath_var_F77=no
14607       ;;
14608
14609     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14610     freebsd* | dragonfly*)
14611       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14612       hardcode_libdir_flag_spec_F77='-R$libdir'
14613       hardcode_direct_F77=yes
14614       hardcode_shlibpath_var_F77=no
14615       ;;
14616
14617     hpux9*)
14618       if test "$GCC" = yes; then
14619         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'
14620       else
14621         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'
14622       fi
14623       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14624       hardcode_libdir_separator_F77=:
14625       hardcode_direct_F77=yes
14626
14627       # hardcode_minus_L: Not really in the search PATH,
14628       # but as the default location of the library.
14629       hardcode_minus_L_F77=yes
14630       export_dynamic_flag_spec_F77='${wl}-E'
14631       ;;
14632
14633     hpux10*)
14634       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14635         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14636       else
14637         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14638       fi
14639       if test "$with_gnu_ld" = no; then
14640         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14641         hardcode_libdir_separator_F77=:
14642
14643         hardcode_direct_F77=yes
14644         export_dynamic_flag_spec_F77='${wl}-E'
14645
14646         # hardcode_minus_L: Not really in the search PATH,
14647         # but as the default location of the library.
14648         hardcode_minus_L_F77=yes
14649       fi
14650       ;;
14651
14652     hpux11*)
14653       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14654         case $host_cpu in
14655         hppa*64*)
14656           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14657           ;;
14658         ia64*)
14659           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14660           ;;
14661         *)
14662           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14663           ;;
14664         esac
14665       else
14666         case $host_cpu in
14667         hppa*64*)
14668           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14669           ;;
14670         ia64*)
14671           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14672           ;;
14673         *)
14674           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14675           ;;
14676         esac
14677       fi
14678       if test "$with_gnu_ld" = no; then
14679         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14680         hardcode_libdir_separator_F77=:
14681
14682         case $host_cpu in
14683         hppa*64*|ia64*)
14684           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14685           hardcode_direct_F77=no
14686           hardcode_shlibpath_var_F77=no
14687           ;;
14688         *)
14689           hardcode_direct_F77=yes
14690           export_dynamic_flag_spec_F77='${wl}-E'
14691
14692           # hardcode_minus_L: Not really in the search PATH,
14693           # but as the default location of the library.
14694           hardcode_minus_L_F77=yes
14695           ;;
14696         esac
14697       fi
14698       ;;
14699
14700     irix5* | irix6* | nonstopux*)
14701       if test "$GCC" = yes; then
14702         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'
14703       else
14704         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'
14705         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14706       fi
14707       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14708       hardcode_libdir_separator_F77=:
14709       link_all_deplibs_F77=yes
14710       ;;
14711
14712     netbsd* | netbsdelf*-gnu)
14713       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14714         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14715       else
14716         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14717       fi
14718       hardcode_libdir_flag_spec_F77='-R$libdir'
14719       hardcode_direct_F77=yes
14720       hardcode_shlibpath_var_F77=no
14721       ;;
14722
14723     newsos6)
14724       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14725       hardcode_direct_F77=yes
14726       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14727       hardcode_libdir_separator_F77=:
14728       hardcode_shlibpath_var_F77=no
14729       ;;
14730
14731     openbsd*)
14732       hardcode_direct_F77=yes
14733       hardcode_shlibpath_var_F77=no
14734       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14735         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14736         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14737         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14738         export_dynamic_flag_spec_F77='${wl}-E'
14739       else
14740        case $host_os in
14741          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14742            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14743            hardcode_libdir_flag_spec_F77='-R$libdir'
14744            ;;
14745          *)
14746            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14747            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14748            ;;
14749        esac
14750       fi
14751       ;;
14752
14753     os2*)
14754       hardcode_libdir_flag_spec_F77='-L$libdir'
14755       hardcode_minus_L_F77=yes
14756       allow_undefined_flag_F77=unsupported
14757       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'
14758       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14759       ;;
14760
14761     osf3*)
14762       if test "$GCC" = yes; then
14763         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14764         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'
14765       else
14766         allow_undefined_flag_F77=' -expect_unresolved \*'
14767         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'
14768       fi
14769       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14770       hardcode_libdir_separator_F77=:
14771       ;;
14772
14773     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14774       if test "$GCC" = yes; then
14775         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14776         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'
14777         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14778       else
14779         allow_undefined_flag_F77=' -expect_unresolved \*'
14780         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'
14781         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~
14782         $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'
14783
14784         # Both c and cxx compiler support -rpath directly
14785         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14786       fi
14787       hardcode_libdir_separator_F77=:
14788       ;;
14789
14790     solaris*)
14791       no_undefined_flag_F77=' -z text'
14792       if test "$GCC" = yes; then
14793         wlarc='${wl}'
14794         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14795         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14796           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14797       else
14798         wlarc=''
14799         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14800         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14801         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14802       fi
14803       hardcode_libdir_flag_spec_F77='-R$libdir'
14804       hardcode_shlibpath_var_F77=no
14805       case $host_os in
14806       solaris2.[0-5] | solaris2.[0-5].*) ;;
14807       *)
14808         # The compiler driver will combine linker options so we
14809         # cannot just pass the convience library names through
14810         # without $wl, iff we do not link with $LD.
14811         # Luckily, gcc supports the same syntax we need for Sun Studio.
14812         # Supported since Solaris 2.6 (maybe 2.5.1?)
14813         case $wlarc in
14814         '')
14815           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14816         *)
14817           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14818         esac ;;
14819       esac
14820       link_all_deplibs_F77=yes
14821       ;;
14822
14823     sunos4*)
14824       if test "x$host_vendor" = xsequent; then
14825         # Use $CC to link under sequent, because it throws in some extra .o
14826         # files that make .init and .fini sections work.
14827         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14828       else
14829         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14830       fi
14831       hardcode_libdir_flag_spec_F77='-L$libdir'
14832       hardcode_direct_F77=yes
14833       hardcode_minus_L_F77=yes
14834       hardcode_shlibpath_var_F77=no
14835       ;;
14836
14837     sysv4)
14838       case $host_vendor in
14839         sni)
14840           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14841           hardcode_direct_F77=yes # is this really true???
14842         ;;
14843         siemens)
14844           ## LD is ld it makes a PLAMLIB
14845           ## CC just makes a GrossModule.
14846           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14847           reload_cmds_F77='$CC -r -o $output$reload_objs'
14848           hardcode_direct_F77=no
14849         ;;
14850         motorola)
14851           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14852           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14853         ;;
14854       esac
14855       runpath_var='LD_RUN_PATH'
14856       hardcode_shlibpath_var_F77=no
14857       ;;
14858
14859     sysv4.3*)
14860       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14861       hardcode_shlibpath_var_F77=no
14862       export_dynamic_flag_spec_F77='-Bexport'
14863       ;;
14864
14865     sysv4*MP*)
14866       if test -d /usr/nec; then
14867         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14868         hardcode_shlibpath_var_F77=no
14869         runpath_var=LD_RUN_PATH
14870         hardcode_runpath_var=yes
14871         ld_shlibs_F77=yes
14872       fi
14873       ;;
14874
14875     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14876       no_undefined_flag_F77='${wl}-z,text'
14877       archive_cmds_need_lc_F77=no
14878       hardcode_shlibpath_var_F77=no
14879       runpath_var='LD_RUN_PATH'
14880
14881       if test "$GCC" = yes; then
14882         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14883         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14884       else
14885         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14886         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14887       fi
14888       ;;
14889
14890     sysv5* | sco3.2v5* | sco5v6*)
14891       # Note: We can NOT use -z defs as we might desire, because we do not
14892       # link with -lc, and that would cause any symbols used from libc to
14893       # always be unresolved, which means just about no library would
14894       # ever link correctly.  If we're not using GNU ld we use -z text
14895       # though, which does catch some bad symbols but isn't as heavy-handed
14896       # as -z defs.
14897       no_undefined_flag_F77='${wl}-z,text'
14898       allow_undefined_flag_F77='${wl}-z,nodefs'
14899       archive_cmds_need_lc_F77=no
14900       hardcode_shlibpath_var_F77=no
14901       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14902       hardcode_libdir_separator_F77=':'
14903       link_all_deplibs_F77=yes
14904       export_dynamic_flag_spec_F77='${wl}-Bexport'
14905       runpath_var='LD_RUN_PATH'
14906
14907       if test "$GCC" = yes; then
14908         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14909         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14910       else
14911         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14912         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14913       fi
14914       ;;
14915
14916     uts4*)
14917       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14918       hardcode_libdir_flag_spec_F77='-L$libdir'
14919       hardcode_shlibpath_var_F77=no
14920       ;;
14921
14922     *)
14923       ld_shlibs_F77=no
14924       ;;
14925     esac
14926   fi
14927
14928 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14929 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14930 test "$ld_shlibs_F77" = no && can_build_shared=no
14931
14932 #
14933 # Do we need to explicitly link libc?
14934 #
14935 case "x$archive_cmds_need_lc_F77" in
14936 x|xyes)
14937   # Assume -lc should be added
14938   archive_cmds_need_lc_F77=yes
14939
14940   if test "$enable_shared" = yes && test "$GCC" = yes; then
14941     case $archive_cmds_F77 in
14942     *'~'*)
14943       # FIXME: we may have to deal with multi-command sequences.
14944       ;;
14945     '$CC '*)
14946       # Test whether the compiler implicitly links with -lc since on some
14947       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14948       # to ld, don't add -lc before -lgcc.
14949       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14950 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14951       $rm conftest*
14952       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14953
14954       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14955   (eval $ac_compile) 2>&5
14956   ac_status=$?
14957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958   (exit $ac_status); } 2>conftest.err; then
14959         soname=conftest
14960         lib=conftest
14961         libobjs=conftest.$ac_objext
14962         deplibs=
14963         wl=$lt_prog_compiler_wl_F77
14964         pic_flag=$lt_prog_compiler_pic_F77
14965         compiler_flags=-v
14966         linker_flags=-v
14967         verstring=
14968         output_objdir=.
14969         libname=conftest
14970         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14971         allow_undefined_flag_F77=
14972         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14973   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14974   ac_status=$?
14975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976   (exit $ac_status); }
14977         then
14978           archive_cmds_need_lc_F77=no
14979         else
14980           archive_cmds_need_lc_F77=yes
14981         fi
14982         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14983       else
14984         cat conftest.err 1>&5
14985       fi
14986       $rm conftest*
14987       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14988 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14989       ;;
14990     esac
14991   fi
14992   ;;
14993 esac
14994
14995 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14996 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14997 library_names_spec=
14998 libname_spec='lib$name'
14999 soname_spec=
15000 shrext_cmds=".so"
15001 postinstall_cmds=
15002 postuninstall_cmds=
15003 finish_cmds=
15004 finish_eval=
15005 shlibpath_var=
15006 shlibpath_overrides_runpath=unknown
15007 version_type=none
15008 dynamic_linker="$host_os ld.so"
15009 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15010 if test "$GCC" = yes; then
15011   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15012   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15013     # if the path contains ";" then we assume it to be the separator
15014     # otherwise default to the standard path separator (i.e. ":") - it is
15015     # assumed that no part of a normal pathname contains ";" but that should
15016     # okay in the real world where ";" in dirpaths is itself problematic.
15017     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15018   else
15019     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15020   fi
15021 else
15022   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15023 fi
15024 need_lib_prefix=unknown
15025 hardcode_into_libs=no
15026
15027 # when you set need_version to no, make sure it does not cause -set_version
15028 # flags to be left without arguments
15029 need_version=unknown
15030
15031 case $host_os in
15032 aix3*)
15033   version_type=linux
15034   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15035   shlibpath_var=LIBPATH
15036
15037   # AIX 3 has no versioning support, so we append a major version to the name.
15038   soname_spec='${libname}${release}${shared_ext}$major'
15039   ;;
15040
15041 aix4* | aix5*)
15042   version_type=linux
15043   need_lib_prefix=no
15044   need_version=no
15045   hardcode_into_libs=yes
15046   if test "$host_cpu" = ia64; then
15047     # AIX 5 supports IA64
15048     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15049     shlibpath_var=LD_LIBRARY_PATH
15050   else
15051     # With GCC up to 2.95.x, collect2 would create an import file
15052     # for dependence libraries.  The import file would start with
15053     # the line `#! .'.  This would cause the generated library to
15054     # depend on `.', always an invalid library.  This was fixed in
15055     # development snapshots of GCC prior to 3.0.
15056     case $host_os in
15057       aix4 | aix4.[01] | aix4.[01].*)
15058       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15059            echo ' yes '
15060            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15061         :
15062       else
15063         can_build_shared=no
15064       fi
15065       ;;
15066     esac
15067     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15068     # soname into executable. Probably we can add versioning support to
15069     # collect2, so additional links can be useful in future.
15070     if test "$aix_use_runtimelinking" = yes; then
15071       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15072       # instead of lib<name>.a to let people know that these are not
15073       # typical AIX shared libraries.
15074       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15075     else
15076       # We preserve .a as extension for shared libraries through AIX4.2
15077       # and later when we are not doing run time linking.
15078       library_names_spec='${libname}${release}.a $libname.a'
15079       soname_spec='${libname}${release}${shared_ext}$major'
15080     fi
15081     shlibpath_var=LIBPATH
15082   fi
15083   ;;
15084
15085 amigaos*)
15086   library_names_spec='$libname.ixlibrary $libname.a'
15087   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15088   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'
15089   ;;
15090
15091 beos*)
15092   library_names_spec='${libname}${shared_ext}'
15093   dynamic_linker="$host_os ld.so"
15094   shlibpath_var=LIBRARY_PATH
15095   ;;
15096
15097 bsdi[45]*)
15098   version_type=linux
15099   need_version=no
15100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15101   soname_spec='${libname}${release}${shared_ext}$major'
15102   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15103   shlibpath_var=LD_LIBRARY_PATH
15104   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15105   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15106   # the default ld.so.conf also contains /usr/contrib/lib and
15107   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15108   # libtool to hard-code these into programs
15109   ;;
15110
15111 cygwin* | mingw* | pw32*)
15112   version_type=windows
15113   shrext_cmds=".dll"
15114   need_version=no
15115   need_lib_prefix=no
15116
15117   case $GCC,$host_os in
15118   yes,cygwin* | yes,mingw* | yes,pw32*)
15119     library_names_spec='$libname.dll.a'
15120     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15121     postinstall_cmds='base_file=`basename \${file}`~
15122       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15123       dldir=$destdir/`dirname \$dlpath`~
15124       test -d \$dldir || mkdir -p \$dldir~
15125       $install_prog $dir/$dlname \$dldir/$dlname~
15126       chmod a+x \$dldir/$dlname'
15127     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15128       dlpath=$dir/\$dldll~
15129        $rm \$dlpath'
15130     shlibpath_overrides_runpath=yes
15131
15132     case $host_os in
15133     cygwin*)
15134       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15135       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15136       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15137       ;;
15138     mingw*)
15139       # MinGW DLLs use traditional 'lib' prefix
15140       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15141       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15142       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15143         # It is most probably a Windows format PATH printed by
15144         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15145         # path with ; separators, and with drive letters. We can handle the
15146         # drive letters (cygwin fileutils understands them), so leave them,
15147         # especially as we might pass files found there to a mingw objdump,
15148         # which wouldn't understand a cygwinified path. Ahh.
15149         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15150       else
15151         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15152       fi
15153       ;;
15154     pw32*)
15155       # pw32 DLLs use 'pw' prefix rather than 'lib'
15156       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15157       ;;
15158     esac
15159     ;;
15160
15161   *)
15162     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15163     ;;
15164   esac
15165   dynamic_linker='Win32 ld.exe'
15166   # FIXME: first we should search . and the directory the executable is in
15167   shlibpath_var=PATH
15168   ;;
15169
15170 darwin* | rhapsody*)
15171   dynamic_linker="$host_os dyld"
15172   version_type=darwin
15173   need_lib_prefix=no
15174   need_version=no
15175   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15176   soname_spec='${libname}${release}${major}$shared_ext'
15177   shlibpath_overrides_runpath=yes
15178   shlibpath_var=DYLD_LIBRARY_PATH
15179   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15180   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15181   if test "$GCC" = yes; then
15182     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15183   else
15184     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15185   fi
15186   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15187   ;;
15188
15189 dgux*)
15190   version_type=linux
15191   need_lib_prefix=no
15192   need_version=no
15193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15194   soname_spec='${libname}${release}${shared_ext}$major'
15195   shlibpath_var=LD_LIBRARY_PATH
15196   ;;
15197
15198 freebsd1*)
15199   dynamic_linker=no
15200   ;;
15201
15202 freebsd* | dragonfly*)
15203   # DragonFly does not have aout.  When/if they implement a new
15204   # versioning mechanism, adjust this.
15205   if test -x /usr/bin/objformat; then
15206     objformat=`/usr/bin/objformat`
15207   else
15208     case $host_os in
15209     freebsd[123]*) objformat=aout ;;
15210     *) objformat=elf ;;
15211     esac
15212   fi
15213   version_type=freebsd-$objformat
15214   case $version_type in
15215     freebsd-elf*)
15216       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15217       need_version=no
15218       need_lib_prefix=no
15219       ;;
15220     freebsd-*)
15221       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15222       need_version=yes
15223       ;;
15224   esac
15225   shlibpath_var=LD_LIBRARY_PATH
15226   case $host_os in
15227   freebsd2*)
15228     shlibpath_overrides_runpath=yes
15229     ;;
15230   freebsd3.[01]* | freebsdelf3.[01]*)
15231     shlibpath_overrides_runpath=yes
15232     hardcode_into_libs=yes
15233     ;;
15234   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15235   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15236     shlibpath_overrides_runpath=no
15237     hardcode_into_libs=yes
15238     ;;
15239   freebsd*) # from 4.6 on
15240     shlibpath_overrides_runpath=yes
15241     hardcode_into_libs=yes
15242     ;;
15243   esac
15244   ;;
15245
15246 gnu*)
15247   version_type=linux
15248   need_lib_prefix=no
15249   need_version=no
15250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15251   soname_spec='${libname}${release}${shared_ext}$major'
15252   shlibpath_var=LD_LIBRARY_PATH
15253   hardcode_into_libs=yes
15254   ;;
15255
15256 hpux9* | hpux10* | hpux11*)
15257   # Give a soname corresponding to the major version so that dld.sl refuses to
15258   # link against other versions.
15259   version_type=sunos
15260   need_lib_prefix=no
15261   need_version=no
15262   case $host_cpu in
15263   ia64*)
15264     shrext_cmds='.so'
15265     hardcode_into_libs=yes
15266     dynamic_linker="$host_os dld.so"
15267     shlibpath_var=LD_LIBRARY_PATH
15268     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15269     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15270     soname_spec='${libname}${release}${shared_ext}$major'
15271     if test "X$HPUX_IA64_MODE" = X32; then
15272       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15273     else
15274       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15275     fi
15276     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15277     ;;
15278    hppa*64*)
15279      shrext_cmds='.sl'
15280      hardcode_into_libs=yes
15281      dynamic_linker="$host_os dld.sl"
15282      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15283      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15284      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15285      soname_spec='${libname}${release}${shared_ext}$major'
15286      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15287      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15288      ;;
15289    *)
15290     shrext_cmds='.sl'
15291     dynamic_linker="$host_os dld.sl"
15292     shlibpath_var=SHLIB_PATH
15293     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15294     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15295     soname_spec='${libname}${release}${shared_ext}$major'
15296     ;;
15297   esac
15298   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15299   postinstall_cmds='chmod 555 $lib'
15300   ;;
15301
15302 interix3*)
15303   version_type=linux
15304   need_lib_prefix=no
15305   need_version=no
15306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15307   soname_spec='${libname}${release}${shared_ext}$major'
15308   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15309   shlibpath_var=LD_LIBRARY_PATH
15310   shlibpath_overrides_runpath=no
15311   hardcode_into_libs=yes
15312   ;;
15313
15314 irix5* | irix6* | nonstopux*)
15315   case $host_os in
15316     nonstopux*) version_type=nonstopux ;;
15317     *)
15318         if test "$lt_cv_prog_gnu_ld" = yes; then
15319                 version_type=linux
15320         else
15321                 version_type=irix
15322         fi ;;
15323   esac
15324   need_lib_prefix=no
15325   need_version=no
15326   soname_spec='${libname}${release}${shared_ext}$major'
15327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15328   case $host_os in
15329   irix5* | nonstopux*)
15330     libsuff= shlibsuff=
15331     ;;
15332   *)
15333     case $LD in # libtool.m4 will add one of these switches to LD
15334     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15335       libsuff= shlibsuff= libmagic=32-bit;;
15336     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15337       libsuff=32 shlibsuff=N32 libmagic=N32;;
15338     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15339       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15340     *) libsuff= shlibsuff= libmagic=never-match;;
15341     esac
15342     ;;
15343   esac
15344   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15345   shlibpath_overrides_runpath=no
15346   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15347   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15348   hardcode_into_libs=yes
15349   ;;
15350
15351 # No shared lib support for Linux oldld, aout, or coff.
15352 linux*oldld* | linux*aout* | linux*coff*)
15353   dynamic_linker=no
15354   ;;
15355
15356 # This must be Linux ELF.
15357 linux* | k*bsd*-gnu)
15358   version_type=linux
15359   need_lib_prefix=no
15360   need_version=no
15361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15362   soname_spec='${libname}${release}${shared_ext}$major'
15363   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15364   shlibpath_var=LD_LIBRARY_PATH
15365   shlibpath_overrides_runpath=no
15366   # This implies no fast_install, which is unacceptable.
15367   # Some rework will be needed to allow for fast_install
15368   # before this can be enabled.
15369   hardcode_into_libs=yes
15370
15371   # Append ld.so.conf contents to the search path
15372   if test -f /etc/ld.so.conf; then
15373     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15374     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15375   fi
15376
15377   # We used to test for /lib/ld.so.1 and disable shared libraries on
15378   # powerpc, because MkLinux only supported shared libraries with the
15379   # GNU dynamic linker.  Since this was broken with cross compilers,
15380   # most powerpc-linux boxes support dynamic linking these days and
15381   # people can always --disable-shared, the test was removed, and we
15382   # assume the GNU/Linux dynamic linker is in use.
15383   dynamic_linker='GNU/Linux ld.so'
15384   ;;
15385
15386 netbsdelf*-gnu)
15387   version_type=linux
15388   need_lib_prefix=no
15389   need_version=no
15390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15391   soname_spec='${libname}${release}${shared_ext}$major'
15392   shlibpath_var=LD_LIBRARY_PATH
15393   shlibpath_overrides_runpath=no
15394   hardcode_into_libs=yes
15395   dynamic_linker='NetBSD ld.elf_so'
15396   ;;
15397
15398 netbsd*)
15399   version_type=sunos
15400   need_lib_prefix=no
15401   need_version=no
15402   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15403     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15404     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15405     dynamic_linker='NetBSD (a.out) ld.so'
15406   else
15407     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15408     soname_spec='${libname}${release}${shared_ext}$major'
15409     dynamic_linker='NetBSD ld.elf_so'
15410   fi
15411   shlibpath_var=LD_LIBRARY_PATH
15412   shlibpath_overrides_runpath=yes
15413   hardcode_into_libs=yes
15414   ;;
15415
15416 newsos6)
15417   version_type=linux
15418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15419   shlibpath_var=LD_LIBRARY_PATH
15420   shlibpath_overrides_runpath=yes
15421   ;;
15422
15423 nto-qnx*)
15424   version_type=linux
15425   need_lib_prefix=no
15426   need_version=no
15427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15428   soname_spec='${libname}${release}${shared_ext}$major'
15429   shlibpath_var=LD_LIBRARY_PATH
15430   shlibpath_overrides_runpath=yes
15431   ;;
15432
15433 openbsd*)
15434   version_type=sunos
15435   sys_lib_dlsearch_path_spec="/usr/lib"
15436   need_lib_prefix=no
15437   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15438   case $host_os in
15439     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15440     *)                         need_version=no  ;;
15441   esac
15442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15443   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15444   shlibpath_var=LD_LIBRARY_PATH
15445   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15446     case $host_os in
15447       openbsd2.[89] | openbsd2.[89].*)
15448         shlibpath_overrides_runpath=no
15449         ;;
15450       *)
15451         shlibpath_overrides_runpath=yes
15452         ;;
15453       esac
15454   else
15455     shlibpath_overrides_runpath=yes
15456   fi
15457   ;;
15458
15459 os2*)
15460   libname_spec='$name'
15461   shrext_cmds=".dll"
15462   need_lib_prefix=no
15463   library_names_spec='$libname${shared_ext} $libname.a'
15464   dynamic_linker='OS/2 ld.exe'
15465   shlibpath_var=LIBPATH
15466   ;;
15467
15468 osf3* | osf4* | osf5*)
15469   version_type=osf
15470   need_lib_prefix=no
15471   need_version=no
15472   soname_spec='${libname}${release}${shared_ext}$major'
15473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15474   shlibpath_var=LD_LIBRARY_PATH
15475   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15476   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15477   ;;
15478
15479 solaris*)
15480   version_type=linux
15481   need_lib_prefix=no
15482   need_version=no
15483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15484   soname_spec='${libname}${release}${shared_ext}$major'
15485   shlibpath_var=LD_LIBRARY_PATH
15486   shlibpath_overrides_runpath=yes
15487   hardcode_into_libs=yes
15488   # ldd complains unless libraries are executable
15489   postinstall_cmds='chmod +x $lib'
15490   ;;
15491
15492 sunos4*)
15493   version_type=sunos
15494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15495   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15496   shlibpath_var=LD_LIBRARY_PATH
15497   shlibpath_overrides_runpath=yes
15498   if test "$with_gnu_ld" = yes; then
15499     need_lib_prefix=no
15500   fi
15501   need_version=yes
15502   ;;
15503
15504 sysv4 | sysv4.3*)
15505   version_type=linux
15506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15507   soname_spec='${libname}${release}${shared_ext}$major'
15508   shlibpath_var=LD_LIBRARY_PATH
15509   case $host_vendor in
15510     sni)
15511       shlibpath_overrides_runpath=no
15512       need_lib_prefix=no
15513       export_dynamic_flag_spec='${wl}-Blargedynsym'
15514       runpath_var=LD_RUN_PATH
15515       ;;
15516     siemens)
15517       need_lib_prefix=no
15518       ;;
15519     motorola)
15520       need_lib_prefix=no
15521       need_version=no
15522       shlibpath_overrides_runpath=no
15523       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15524       ;;
15525   esac
15526   ;;
15527
15528 sysv4*MP*)
15529   if test -d /usr/nec ;then
15530     version_type=linux
15531     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15532     soname_spec='$libname${shared_ext}.$major'
15533     shlibpath_var=LD_LIBRARY_PATH
15534   fi
15535   ;;
15536
15537 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15538   version_type=freebsd-elf
15539   need_lib_prefix=no
15540   need_version=no
15541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15542   soname_spec='${libname}${release}${shared_ext}$major'
15543   shlibpath_var=LD_LIBRARY_PATH
15544   hardcode_into_libs=yes
15545   if test "$with_gnu_ld" = yes; then
15546     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15547     shlibpath_overrides_runpath=no
15548   else
15549     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15550     shlibpath_overrides_runpath=yes
15551     case $host_os in
15552       sco3.2v5*)
15553         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15554         ;;
15555     esac
15556   fi
15557   sys_lib_dlsearch_path_spec='/usr/lib'
15558   ;;
15559
15560 uts4*)
15561   version_type=linux
15562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15563   soname_spec='${libname}${release}${shared_ext}$major'
15564   shlibpath_var=LD_LIBRARY_PATH
15565   ;;
15566
15567 *)
15568   dynamic_linker=no
15569   ;;
15570 esac
15571 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15572 echo "${ECHO_T}$dynamic_linker" >&6; }
15573 test "$dynamic_linker" = no && can_build_shared=no
15574
15575 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15576 if test "$GCC" = yes; then
15577   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15578 fi
15579
15580 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15581 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15582 hardcode_action_F77=
15583 if test -n "$hardcode_libdir_flag_spec_F77" || \
15584    test -n "$runpath_var_F77" || \
15585    test "X$hardcode_automatic_F77" = "Xyes" ; then
15586
15587   # We can hardcode non-existant directories.
15588   if test "$hardcode_direct_F77" != no &&
15589      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15590      # have to relink, otherwise we might link with an installed library
15591      # when we should be linking with a yet-to-be-installed one
15592      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15593      test "$hardcode_minus_L_F77" != no; then
15594     # Linking always hardcodes the temporary library directory.
15595     hardcode_action_F77=relink
15596   else
15597     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15598     hardcode_action_F77=immediate
15599   fi
15600 else
15601   # We cannot hardcode anything, or else we can only hardcode existing
15602   # directories.
15603   hardcode_action_F77=unsupported
15604 fi
15605 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15606 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15607
15608 if test "$hardcode_action_F77" = relink; then
15609   # Fast installation is not supported
15610   enable_fast_install=no
15611 elif test "$shlibpath_overrides_runpath" = yes ||
15612      test "$enable_shared" = no; then
15613   # Fast installation is not necessary
15614   enable_fast_install=needless
15615 fi
15616
15617
15618 # The else clause should only fire when bootstrapping the
15619 # libtool distribution, otherwise you forgot to ship ltmain.sh
15620 # with your package, and you will get complaints that there are
15621 # no rules to generate ltmain.sh.
15622 if test -f "$ltmain"; then
15623   # See if we are running on zsh, and set the options which allow our commands through
15624   # without removal of \ escapes.
15625   if test -n "${ZSH_VERSION+set}" ; then
15626     setopt NO_GLOB_SUBST
15627   fi
15628   # Now quote all the things that may contain metacharacters while being
15629   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15630   # variables and quote the copies for generation of the libtool script.
15631   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15632     SED SHELL STRIP \
15633     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15634     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15635     deplibs_check_method reload_flag reload_cmds need_locks \
15636     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15637     lt_cv_sys_global_symbol_to_c_name_address \
15638     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15639     old_postinstall_cmds old_postuninstall_cmds \
15640     compiler_F77 \
15641     CC_F77 \
15642     LD_F77 \
15643     lt_prog_compiler_wl_F77 \
15644     lt_prog_compiler_pic_F77 \
15645     lt_prog_compiler_static_F77 \
15646     lt_prog_compiler_no_builtin_flag_F77 \
15647     export_dynamic_flag_spec_F77 \
15648     thread_safe_flag_spec_F77 \
15649     whole_archive_flag_spec_F77 \
15650     enable_shared_with_static_runtimes_F77 \
15651     old_archive_cmds_F77 \
15652     old_archive_from_new_cmds_F77 \
15653     predep_objects_F77 \
15654     postdep_objects_F77 \
15655     predeps_F77 \
15656     postdeps_F77 \
15657     compiler_lib_search_path_F77 \
15658     archive_cmds_F77 \
15659     archive_expsym_cmds_F77 \
15660     postinstall_cmds_F77 \
15661     postuninstall_cmds_F77 \
15662     old_archive_from_expsyms_cmds_F77 \
15663     allow_undefined_flag_F77 \
15664     no_undefined_flag_F77 \
15665     export_symbols_cmds_F77 \
15666     hardcode_libdir_flag_spec_F77 \
15667     hardcode_libdir_flag_spec_ld_F77 \
15668     hardcode_libdir_separator_F77 \
15669     hardcode_automatic_F77 \
15670     module_cmds_F77 \
15671     module_expsym_cmds_F77 \
15672     lt_cv_prog_compiler_c_o_F77 \
15673     exclude_expsyms_F77 \
15674     include_expsyms_F77; do
15675
15676     case $var in
15677     old_archive_cmds_F77 | \
15678     old_archive_from_new_cmds_F77 | \
15679     archive_cmds_F77 | \
15680     archive_expsym_cmds_F77 | \
15681     module_cmds_F77 | \
15682     module_expsym_cmds_F77 | \
15683     old_archive_from_expsyms_cmds_F77 | \
15684     export_symbols_cmds_F77 | \
15685     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15686     postinstall_cmds | postuninstall_cmds | \
15687     old_postinstall_cmds | old_postuninstall_cmds | \
15688     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15689       # Double-quote double-evaled strings.
15690       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15691       ;;
15692     *)
15693       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15694       ;;
15695     esac
15696   done
15697
15698   case $lt_echo in
15699   *'\$0 --fallback-echo"')
15700     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15701     ;;
15702   esac
15703
15704 cfgfile="$ofile"
15705
15706   cat <<__EOF__ >> "$cfgfile"
15707 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15708
15709 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15710
15711 # Shell to use when invoking shell scripts.
15712 SHELL=$lt_SHELL
15713
15714 # Whether or not to build shared libraries.
15715 build_libtool_libs=$enable_shared
15716
15717 # Whether or not to build static libraries.
15718 build_old_libs=$enable_static
15719
15720 # Whether or not to add -lc for building shared libraries.
15721 build_libtool_need_lc=$archive_cmds_need_lc_F77
15722
15723 # Whether or not to disallow shared libs when runtime libs are static
15724 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15725
15726 # Whether or not to optimize for fast installation.
15727 fast_install=$enable_fast_install
15728
15729 # The host system.
15730 host_alias=$host_alias
15731 host=$host
15732 host_os=$host_os
15733
15734 # The build system.
15735 build_alias=$build_alias
15736 build=$build
15737 build_os=$build_os
15738
15739 # An echo program that does not interpret backslashes.
15740 echo=$lt_echo
15741
15742 # The archiver.
15743 AR=$lt_AR
15744 AR_FLAGS=$lt_AR_FLAGS
15745
15746 # A C compiler.
15747 LTCC=$lt_LTCC
15748
15749 # LTCC compiler flags.
15750 LTCFLAGS=$lt_LTCFLAGS
15751
15752 # A language-specific compiler.
15753 CC=$lt_compiler_F77
15754
15755 # Is the compiler the GNU C compiler?
15756 with_gcc=$GCC_F77
15757
15758 # An ERE matcher.
15759 EGREP=$lt_EGREP
15760
15761 # The linker used to build libraries.
15762 LD=$lt_LD_F77
15763
15764 # Whether we need hard or soft links.
15765 LN_S=$lt_LN_S
15766
15767 # A BSD-compatible nm program.
15768 NM=$lt_NM
15769
15770 # A symbol stripping program
15771 STRIP=$lt_STRIP
15772
15773 # Used to examine libraries when file_magic_cmd begins "file"
15774 MAGIC_CMD=$MAGIC_CMD
15775
15776 # Used on cygwin: DLL creation program.
15777 DLLTOOL="$DLLTOOL"
15778
15779 # Used on cygwin: object dumper.
15780 OBJDUMP="$OBJDUMP"
15781
15782 # Used on cygwin: assembler.
15783 AS="$AS"
15784
15785 # The name of the directory that contains temporary libtool files.
15786 objdir=$objdir
15787
15788 # How to create reloadable object files.
15789 reload_flag=$lt_reload_flag
15790 reload_cmds=$lt_reload_cmds
15791
15792 # How to pass a linker flag through the compiler.
15793 wl=$lt_lt_prog_compiler_wl_F77
15794
15795 # Object file suffix (normally "o").
15796 objext="$ac_objext"
15797
15798 # Old archive suffix (normally "a").
15799 libext="$libext"
15800
15801 # Shared library suffix (normally ".so").
15802 shrext_cmds='$shrext_cmds'
15803
15804 # Executable file suffix (normally "").
15805 exeext="$exeext"
15806
15807 # Additional compiler flags for building library objects.
15808 pic_flag=$lt_lt_prog_compiler_pic_F77
15809 pic_mode=$pic_mode
15810
15811 # What is the maximum length of a command?
15812 max_cmd_len=$lt_cv_sys_max_cmd_len
15813
15814 # Does compiler simultaneously support -c and -o options?
15815 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15816
15817 # Must we lock files when doing compilation?
15818 need_locks=$lt_need_locks
15819
15820 # Do we need the lib prefix for modules?
15821 need_lib_prefix=$need_lib_prefix
15822
15823 # Do we need a version for libraries?
15824 need_version=$need_version
15825
15826 # Whether dlopen is supported.
15827 dlopen_support=$enable_dlopen
15828
15829 # Whether dlopen of programs is supported.
15830 dlopen_self=$enable_dlopen_self
15831
15832 # Whether dlopen of statically linked programs is supported.
15833 dlopen_self_static=$enable_dlopen_self_static
15834
15835 # Compiler flag to prevent dynamic linking.
15836 link_static_flag=$lt_lt_prog_compiler_static_F77
15837
15838 # Compiler flag to turn off builtin functions.
15839 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15840
15841 # Compiler flag to allow reflexive dlopens.
15842 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15843
15844 # Compiler flag to generate shared objects directly from archives.
15845 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15846
15847 # Compiler flag to generate thread-safe objects.
15848 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15849
15850 # Library versioning type.
15851 version_type=$version_type
15852
15853 # Format of library name prefix.
15854 libname_spec=$lt_libname_spec
15855
15856 # List of archive names.  First name is the real one, the rest are links.
15857 # The last name is the one that the linker finds with -lNAME.
15858 library_names_spec=$lt_library_names_spec
15859
15860 # The coded name of the library, if different from the real name.
15861 soname_spec=$lt_soname_spec
15862
15863 # Commands used to build and install an old-style archive.
15864 RANLIB=$lt_RANLIB
15865 old_archive_cmds=$lt_old_archive_cmds_F77
15866 old_postinstall_cmds=$lt_old_postinstall_cmds
15867 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15868
15869 # Create an old-style archive from a shared archive.
15870 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15871
15872 # Create a temporary old-style archive to link instead of a shared archive.
15873 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15874
15875 # Commands used to build and install a shared archive.
15876 archive_cmds=$lt_archive_cmds_F77
15877 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15878 postinstall_cmds=$lt_postinstall_cmds
15879 postuninstall_cmds=$lt_postuninstall_cmds
15880
15881 # Commands used to build a loadable module (assumed same as above if empty)
15882 module_cmds=$lt_module_cmds_F77
15883 module_expsym_cmds=$lt_module_expsym_cmds_F77
15884
15885 # Commands to strip libraries.
15886 old_striplib=$lt_old_striplib
15887 striplib=$lt_striplib
15888
15889 # Dependencies to place before the objects being linked to create a
15890 # shared library.
15891 predep_objects=$lt_predep_objects_F77
15892
15893 # Dependencies to place after the objects being linked to create a
15894 # shared library.
15895 postdep_objects=$lt_postdep_objects_F77
15896
15897 # Dependencies to place before the objects being linked to create a
15898 # shared library.
15899 predeps=$lt_predeps_F77
15900
15901 # Dependencies to place after the objects being linked to create a
15902 # shared library.
15903 postdeps=$lt_postdeps_F77
15904
15905 # The library search path used internally by the compiler when linking
15906 # a shared library.
15907 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15908
15909 # Method to check whether dependent libraries are shared objects.
15910 deplibs_check_method=$lt_deplibs_check_method
15911
15912 # Command to use when deplibs_check_method == file_magic.
15913 file_magic_cmd=$lt_file_magic_cmd
15914
15915 # Flag that allows shared libraries with undefined symbols to be built.
15916 allow_undefined_flag=$lt_allow_undefined_flag_F77
15917
15918 # Flag that forces no undefined symbols.
15919 no_undefined_flag=$lt_no_undefined_flag_F77
15920
15921 # Commands used to finish a libtool library installation in a directory.
15922 finish_cmds=$lt_finish_cmds
15923
15924 # Same as above, but a single script fragment to be evaled but not shown.
15925 finish_eval=$lt_finish_eval
15926
15927 # Take the output of nm and produce a listing of raw symbols and C names.
15928 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15929
15930 # Transform the output of nm in a proper C declaration
15931 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15932
15933 # Transform the output of nm in a C name address pair
15934 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15935
15936 # This is the shared library runtime path variable.
15937 runpath_var=$runpath_var
15938
15939 # This is the shared library path variable.
15940 shlibpath_var=$shlibpath_var
15941
15942 # Is shlibpath searched before the hard-coded library search path?
15943 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15944
15945 # How to hardcode a shared library path into an executable.
15946 hardcode_action=$hardcode_action_F77
15947
15948 # Whether we should hardcode library paths into libraries.
15949 hardcode_into_libs=$hardcode_into_libs
15950
15951 # Flag to hardcode \$libdir into a binary during linking.
15952 # This must work even if \$libdir does not exist.
15953 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15954
15955 # If ld is used when linking, flag to hardcode \$libdir into
15956 # a binary during linking. This must work even if \$libdir does
15957 # not exist.
15958 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15959
15960 # Whether we need a single -rpath flag with a separated argument.
15961 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15962
15963 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15964 # resulting binary.
15965 hardcode_direct=$hardcode_direct_F77
15966
15967 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15968 # resulting binary.
15969 hardcode_minus_L=$hardcode_minus_L_F77
15970
15971 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15972 # the resulting binary.
15973 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15974
15975 # Set to yes if building a shared library automatically hardcodes DIR into the library
15976 # and all subsequent libraries and executables linked against it.
15977 hardcode_automatic=$hardcode_automatic_F77
15978
15979 # Variables whose values should be saved in libtool wrapper scripts and
15980 # restored at relink time.
15981 variables_saved_for_relink="$variables_saved_for_relink"
15982
15983 # Whether libtool must link a program against all its dependency libraries.
15984 link_all_deplibs=$link_all_deplibs_F77
15985
15986 # Compile-time system search path for libraries
15987 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15988
15989 # Run-time system search path for libraries
15990 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15991
15992 # Fix the shell variable \$srcfile for the compiler.
15993 fix_srcfile_path="$fix_srcfile_path_F77"
15994
15995 # Set to yes if exported symbols are required.
15996 always_export_symbols=$always_export_symbols_F77
15997
15998 # The commands to list exported symbols.
15999 export_symbols_cmds=$lt_export_symbols_cmds_F77
16000
16001 # The commands to extract the exported symbol list from a shared archive.
16002 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16003
16004 # Symbols that should not be listed in the preloaded symbols.
16005 exclude_expsyms=$lt_exclude_expsyms_F77
16006
16007 # Symbols that must always be exported.
16008 include_expsyms=$lt_include_expsyms_F77
16009
16010 # ### END LIBTOOL TAG CONFIG: $tagname
16011
16012 __EOF__
16013
16014
16015 else
16016   # If there is no Makefile yet, we rely on a make rule to execute
16017   # `config.status --recheck' to rerun these tests and create the
16018   # libtool script then.
16019   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16020   if test -f "$ltmain_in"; then
16021     test -f Makefile && make "$ltmain"
16022   fi
16023 fi
16024
16025
16026 ac_ext=c
16027 ac_cpp='$CPP $CPPFLAGS'
16028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16031
16032 CC="$lt_save_CC"
16033
16034         else
16035           tagname=""
16036         fi
16037         ;;
16038
16039       GCJ)
16040         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16041
16042
16043 # Source file extension for Java test sources.
16044 ac_ext=java
16045
16046 # Object file extension for compiled Java test sources.
16047 objext=o
16048 objext_GCJ=$objext
16049
16050 # Code to be used in simple compile tests
16051 lt_simple_compile_test_code="class foo {}\n"
16052
16053 # Code to be used in simple link tests
16054 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16055
16056 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16057
16058 # If no C compiler was specified, use CC.
16059 LTCC=${LTCC-"$CC"}
16060
16061 # If no C compiler flags were specified, use CFLAGS.
16062 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16063
16064 # Allow CC to be a program name with arguments.
16065 compiler=$CC
16066
16067
16068 # save warnings/boilerplate of simple test code
16069 ac_outfile=conftest.$ac_objext
16070 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16071 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16072 _lt_compiler_boilerplate=`cat conftest.err`
16073 $rm conftest*
16074
16075 ac_outfile=conftest.$ac_objext
16076 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16077 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16078 _lt_linker_boilerplate=`cat conftest.err`
16079 $rm conftest*
16080
16081
16082 # Allow CC to be a program name with arguments.
16083 lt_save_CC="$CC"
16084 CC=${GCJ-"gcj"}
16085 compiler=$CC
16086 compiler_GCJ=$CC
16087 for cc_temp in $compiler""; do
16088   case $cc_temp in
16089     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16090     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16091     \-*) ;;
16092     *) break;;
16093   esac
16094 done
16095 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16096
16097
16098 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16099 archive_cmds_need_lc_GCJ=no
16100
16101 old_archive_cmds_GCJ=$old_archive_cmds
16102
16103
16104 lt_prog_compiler_no_builtin_flag_GCJ=
16105
16106 if test "$GCC" = yes; then
16107   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16108
16109
16110 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16111 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16112 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16113   echo $ECHO_N "(cached) $ECHO_C" >&6
16114 else
16115   lt_cv_prog_compiler_rtti_exceptions=no
16116   ac_outfile=conftest.$ac_objext
16117    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16118    lt_compiler_flag="-fno-rtti -fno-exceptions"
16119    # Insert the option either (1) after the last *FLAGS variable, or
16120    # (2) before a word containing "conftest.", or (3) at the end.
16121    # Note that $ac_compile itself does not contain backslashes and begins
16122    # with a dollar sign (not a hyphen), so the echo should work correctly.
16123    # The option is referenced via a variable to avoid confusing sed.
16124    lt_compile=`echo "$ac_compile" | $SED \
16125    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16126    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16127    -e 's:$: $lt_compiler_flag:'`
16128    (eval echo "\"\$as_me:16128: $lt_compile\"" >&5)
16129    (eval "$lt_compile" 2>conftest.err)
16130    ac_status=$?
16131    cat conftest.err >&5
16132    echo "$as_me:16132: \$? = $ac_status" >&5
16133    if (exit $ac_status) && test -s "$ac_outfile"; then
16134      # The compiler can only warn and ignore the option if not recognized
16135      # So say no if there are warnings other than the usual output.
16136      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16137      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16138      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16139        lt_cv_prog_compiler_rtti_exceptions=yes
16140      fi
16141    fi
16142    $rm conftest*
16143
16144 fi
16145 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16146 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16147
16148 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16149     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16150 else
16151     :
16152 fi
16153
16154 fi
16155
16156 lt_prog_compiler_wl_GCJ=
16157 lt_prog_compiler_pic_GCJ=
16158 lt_prog_compiler_static_GCJ=
16159
16160 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16161 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16162
16163   if test "$GCC" = yes; then
16164     lt_prog_compiler_wl_GCJ='-Wl,'
16165     lt_prog_compiler_static_GCJ='-static'
16166
16167     case $host_os in
16168       aix*)
16169       # All AIX code is PIC.
16170       if test "$host_cpu" = ia64; then
16171         # AIX 5 now supports IA64 processor
16172         lt_prog_compiler_static_GCJ='-Bstatic'
16173       fi
16174       ;;
16175
16176     amigaos*)
16177       # FIXME: we need at least 68020 code to build shared libraries, but
16178       # adding the `-m68020' flag to GCC prevents building anything better,
16179       # like `-m68040'.
16180       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16181       ;;
16182
16183     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16184       # PIC is the default for these OSes.
16185       ;;
16186
16187     mingw* | pw32* | os2*)
16188       # This hack is so that the source file can tell whether it is being
16189       # built for inclusion in a dll (and should export symbols for example).
16190       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16191       ;;
16192
16193     darwin* | rhapsody*)
16194       # PIC is the default on this platform
16195       # Common symbols not allowed in MH_DYLIB files
16196       lt_prog_compiler_pic_GCJ='-fno-common'
16197       ;;
16198
16199     interix3*)
16200       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16201       # Instead, we relocate shared libraries at runtime.
16202       ;;
16203
16204     msdosdjgpp*)
16205       # Just because we use GCC doesn't mean we suddenly get shared libraries
16206       # on systems that don't support them.
16207       lt_prog_compiler_can_build_shared_GCJ=no
16208       enable_shared=no
16209       ;;
16210
16211     sysv4*MP*)
16212       if test -d /usr/nec; then
16213         lt_prog_compiler_pic_GCJ=-Kconform_pic
16214       fi
16215       ;;
16216
16217     hpux*)
16218       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16219       # not for PA HP-UX.
16220       case $host_cpu in
16221       hppa*64*|ia64*)
16222         # +Z the default
16223         ;;
16224       *)
16225         lt_prog_compiler_pic_GCJ='-fPIC'
16226         ;;
16227       esac
16228       ;;
16229
16230     *)
16231       lt_prog_compiler_pic_GCJ='-fPIC'
16232       ;;
16233     esac
16234   else
16235     # PORTME Check for flag to pass linker flags through the system compiler.
16236     case $host_os in
16237     aix*)
16238       lt_prog_compiler_wl_GCJ='-Wl,'
16239       if test "$host_cpu" = ia64; then
16240         # AIX 5 now supports IA64 processor
16241         lt_prog_compiler_static_GCJ='-Bstatic'
16242       else
16243         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16244       fi
16245       ;;
16246       darwin*)
16247         # PIC is the default on this platform
16248         # Common symbols not allowed in MH_DYLIB files
16249        case $cc_basename in
16250          xlc*)
16251          lt_prog_compiler_pic_GCJ='-qnocommon'
16252          lt_prog_compiler_wl_GCJ='-Wl,'
16253          ;;
16254        esac
16255        ;;
16256
16257     mingw* | pw32* | os2*)
16258       # This hack is so that the source file can tell whether it is being
16259       # built for inclusion in a dll (and should export symbols for example).
16260       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16261       ;;
16262
16263     hpux9* | hpux10* | hpux11*)
16264       lt_prog_compiler_wl_GCJ='-Wl,'
16265       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16266       # not for PA HP-UX.
16267       case $host_cpu in
16268       hppa*64*|ia64*)
16269         # +Z the default
16270         ;;
16271       *)
16272         lt_prog_compiler_pic_GCJ='+Z'
16273         ;;
16274       esac
16275       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16276       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16277       ;;
16278
16279     irix5* | irix6* | nonstopux*)
16280       lt_prog_compiler_wl_GCJ='-Wl,'
16281       # PIC (with -KPIC) is the default.
16282       lt_prog_compiler_static_GCJ='-non_shared'
16283       ;;
16284
16285     newsos6)
16286       lt_prog_compiler_pic_GCJ='-KPIC'
16287       lt_prog_compiler_static_GCJ='-Bstatic'
16288       ;;
16289
16290     linux* | k*bsd*-gnu)
16291       case $cc_basename in
16292       icc* | ecc*)
16293         lt_prog_compiler_wl_GCJ='-Wl,'
16294         lt_prog_compiler_pic_GCJ='-KPIC'
16295         lt_prog_compiler_static_GCJ='-static'
16296         ;;
16297       pgcc* | pgf77* | pgf90* | pgf95*)
16298         # Portland Group compilers (*not* the Pentium gcc compiler,
16299         # which looks to be a dead project)
16300         lt_prog_compiler_wl_GCJ='-Wl,'
16301         lt_prog_compiler_pic_GCJ='-fpic'
16302         lt_prog_compiler_static_GCJ='-Bstatic'
16303         ;;
16304       ccc*)
16305         lt_prog_compiler_wl_GCJ='-Wl,'
16306         # All Alpha code is PIC.
16307         lt_prog_compiler_static_GCJ='-non_shared'
16308         ;;
16309       esac
16310       ;;
16311
16312     osf3* | osf4* | osf5*)
16313       lt_prog_compiler_wl_GCJ='-Wl,'
16314       # All OSF/1 code is PIC.
16315       lt_prog_compiler_static_GCJ='-non_shared'
16316       ;;
16317
16318     solaris*)
16319       lt_prog_compiler_pic_GCJ='-KPIC'
16320       lt_prog_compiler_static_GCJ='-Bstatic'
16321       case $cc_basename in
16322       f77* | f90* | f95*)
16323         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16324       *)
16325         lt_prog_compiler_wl_GCJ='-Wl,';;
16326       esac
16327       ;;
16328
16329     sunos4*)
16330       lt_prog_compiler_wl_GCJ='-Qoption ld '
16331       lt_prog_compiler_pic_GCJ='-PIC'
16332       lt_prog_compiler_static_GCJ='-Bstatic'
16333       ;;
16334
16335     sysv4 | sysv4.2uw2* | sysv4.3*)
16336       lt_prog_compiler_wl_GCJ='-Wl,'
16337       lt_prog_compiler_pic_GCJ='-KPIC'
16338       lt_prog_compiler_static_GCJ='-Bstatic'
16339       ;;
16340
16341     sysv4*MP*)
16342       if test -d /usr/nec ;then
16343         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16344         lt_prog_compiler_static_GCJ='-Bstatic'
16345       fi
16346       ;;
16347
16348     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16349       lt_prog_compiler_wl_GCJ='-Wl,'
16350       lt_prog_compiler_pic_GCJ='-KPIC'
16351       lt_prog_compiler_static_GCJ='-Bstatic'
16352       ;;
16353
16354     unicos*)
16355       lt_prog_compiler_wl_GCJ='-Wl,'
16356       lt_prog_compiler_can_build_shared_GCJ=no
16357       ;;
16358
16359     uts4*)
16360       lt_prog_compiler_pic_GCJ='-pic'
16361       lt_prog_compiler_static_GCJ='-Bstatic'
16362       ;;
16363
16364     *)
16365       lt_prog_compiler_can_build_shared_GCJ=no
16366       ;;
16367     esac
16368   fi
16369
16370 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16371 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16372
16373 #
16374 # Check to make sure the PIC flag actually works.
16375 #
16376 if test -n "$lt_prog_compiler_pic_GCJ"; then
16377
16378 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16379 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16380 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16381   echo $ECHO_N "(cached) $ECHO_C" >&6
16382 else
16383   lt_prog_compiler_pic_works_GCJ=no
16384   ac_outfile=conftest.$ac_objext
16385    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16386    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16387    # Insert the option either (1) after the last *FLAGS variable, or
16388    # (2) before a word containing "conftest.", or (3) at the end.
16389    # Note that $ac_compile itself does not contain backslashes and begins
16390    # with a dollar sign (not a hyphen), so the echo should work correctly.
16391    # The option is referenced via a variable to avoid confusing sed.
16392    lt_compile=`echo "$ac_compile" | $SED \
16393    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16394    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16395    -e 's:$: $lt_compiler_flag:'`
16396    (eval echo "\"\$as_me:16396: $lt_compile\"" >&5)
16397    (eval "$lt_compile" 2>conftest.err)
16398    ac_status=$?
16399    cat conftest.err >&5
16400    echo "$as_me:16400: \$? = $ac_status" >&5
16401    if (exit $ac_status) && test -s "$ac_outfile"; then
16402      # The compiler can only warn and ignore the option if not recognized
16403      # So say no if there are warnings other than the usual output.
16404      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16405      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16406      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16407        lt_prog_compiler_pic_works_GCJ=yes
16408      fi
16409    fi
16410    $rm conftest*
16411
16412 fi
16413 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16414 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16415
16416 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16417     case $lt_prog_compiler_pic_GCJ in
16418      "" | " "*) ;;
16419      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16420      esac
16421 else
16422     lt_prog_compiler_pic_GCJ=
16423      lt_prog_compiler_can_build_shared_GCJ=no
16424 fi
16425
16426 fi
16427 case $host_os in
16428   # For platforms which do not support PIC, -DPIC is meaningless:
16429   *djgpp*)
16430     lt_prog_compiler_pic_GCJ=
16431     ;;
16432   *)
16433     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16434     ;;
16435 esac
16436
16437 #
16438 # Check to make sure the static flag actually works.
16439 #
16440 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16441 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16442 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16443 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16444   echo $ECHO_N "(cached) $ECHO_C" >&6
16445 else
16446   lt_prog_compiler_static_works_GCJ=no
16447    save_LDFLAGS="$LDFLAGS"
16448    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16449    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16450    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16451      # The linker can only warn and ignore the option if not recognized
16452      # So say no if there are warnings
16453      if test -s conftest.err; then
16454        # Append any errors to the config.log.
16455        cat conftest.err 1>&5
16456        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16457        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16458        if diff conftest.exp conftest.er2 >/dev/null; then
16459          lt_prog_compiler_static_works_GCJ=yes
16460        fi
16461      else
16462        lt_prog_compiler_static_works_GCJ=yes
16463      fi
16464    fi
16465    $rm conftest*
16466    LDFLAGS="$save_LDFLAGS"
16467
16468 fi
16469 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16470 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16471
16472 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16473     :
16474 else
16475     lt_prog_compiler_static_GCJ=
16476 fi
16477
16478
16479 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16480 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16481 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16482   echo $ECHO_N "(cached) $ECHO_C" >&6
16483 else
16484   lt_cv_prog_compiler_c_o_GCJ=no
16485    $rm -r conftest 2>/dev/null
16486    mkdir conftest
16487    cd conftest
16488    mkdir out
16489    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16490
16491    lt_compiler_flag="-o out/conftest2.$ac_objext"
16492    # Insert the option either (1) after the last *FLAGS variable, or
16493    # (2) before a word containing "conftest.", or (3) at the end.
16494    # Note that $ac_compile itself does not contain backslashes and begins
16495    # with a dollar sign (not a hyphen), so the echo should work correctly.
16496    lt_compile=`echo "$ac_compile" | $SED \
16497    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16498    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16499    -e 's:$: $lt_compiler_flag:'`
16500    (eval echo "\"\$as_me:16500: $lt_compile\"" >&5)
16501    (eval "$lt_compile" 2>out/conftest.err)
16502    ac_status=$?
16503    cat out/conftest.err >&5
16504    echo "$as_me:16504: \$? = $ac_status" >&5
16505    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16506    then
16507      # The compiler can only warn and ignore the option if not recognized
16508      # So say no if there are warnings
16509      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16510      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16511      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16512        lt_cv_prog_compiler_c_o_GCJ=yes
16513      fi
16514    fi
16515    chmod u+w . 2>&5
16516    $rm conftest*
16517    # SGI C++ compiler will create directory out/ii_files/ for
16518    # template instantiation
16519    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16520    $rm out/* && rmdir out
16521    cd ..
16522    rmdir conftest
16523    $rm conftest*
16524
16525 fi
16526 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16527 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16528
16529
16530 hard_links="nottested"
16531 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16532   # do not overwrite the value of need_locks provided by the user
16533   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16534 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16535   hard_links=yes
16536   $rm conftest*
16537   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16538   touch conftest.a
16539   ln conftest.a conftest.b 2>&5 || hard_links=no
16540   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16541   { echo "$as_me:$LINENO: result: $hard_links" >&5
16542 echo "${ECHO_T}$hard_links" >&6; }
16543   if test "$hard_links" = no; then
16544     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16545 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16546     need_locks=warn
16547   fi
16548 else
16549   need_locks=no
16550 fi
16551
16552 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16553 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16554
16555   runpath_var=
16556   allow_undefined_flag_GCJ=
16557   enable_shared_with_static_runtimes_GCJ=no
16558   archive_cmds_GCJ=
16559   archive_expsym_cmds_GCJ=
16560   old_archive_From_new_cmds_GCJ=
16561   old_archive_from_expsyms_cmds_GCJ=
16562   export_dynamic_flag_spec_GCJ=
16563   whole_archive_flag_spec_GCJ=
16564   thread_safe_flag_spec_GCJ=
16565   hardcode_libdir_flag_spec_GCJ=
16566   hardcode_libdir_flag_spec_ld_GCJ=
16567   hardcode_libdir_separator_GCJ=
16568   hardcode_direct_GCJ=no
16569   hardcode_minus_L_GCJ=no
16570   hardcode_shlibpath_var_GCJ=unsupported
16571   link_all_deplibs_GCJ=unknown
16572   hardcode_automatic_GCJ=no
16573   module_cmds_GCJ=
16574   module_expsym_cmds_GCJ=
16575   always_export_symbols_GCJ=no
16576   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16577   # include_expsyms should be a list of space-separated symbols to be *always*
16578   # included in the symbol list
16579   include_expsyms_GCJ=
16580   # exclude_expsyms can be an extended regexp of symbols to exclude
16581   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16582   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16583   # as well as any symbol that contains `d'.
16584   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16585   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16586   # platforms (ab)use it in PIC code, but their linkers get confused if
16587   # the symbol is explicitly referenced.  Since portable code cannot
16588   # rely on this symbol name, it's probably fine to never include it in
16589   # preloaded symbol tables.
16590   extract_expsyms_cmds=
16591   # Just being paranoid about ensuring that cc_basename is set.
16592   for cc_temp in $compiler""; do
16593   case $cc_temp in
16594     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16595     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16596     \-*) ;;
16597     *) break;;
16598   esac
16599 done
16600 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16601
16602   case $host_os in
16603   cygwin* | mingw* | pw32*)
16604     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16605     # When not using gcc, we currently assume that we are using
16606     # Microsoft Visual C++.
16607     if test "$GCC" != yes; then
16608       with_gnu_ld=no
16609     fi
16610     ;;
16611   interix*)
16612     # we just hope/assume this is gcc and not c89 (= MSVC++)
16613     with_gnu_ld=yes
16614     ;;
16615   openbsd*)
16616     with_gnu_ld=no
16617     ;;
16618   esac
16619
16620   ld_shlibs_GCJ=yes
16621   if test "$with_gnu_ld" = yes; then
16622     # If archive_cmds runs LD, not CC, wlarc should be empty
16623     wlarc='${wl}'
16624
16625     # Set some defaults for GNU ld with shared library support. These
16626     # are reset later if shared libraries are not supported. Putting them
16627     # here allows them to be overridden if necessary.
16628     runpath_var=LD_RUN_PATH
16629     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16630     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16631     # ancient GNU ld didn't support --whole-archive et. al.
16632     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16633         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16634       else
16635         whole_archive_flag_spec_GCJ=
16636     fi
16637     supports_anon_versioning=no
16638     case `$LD -v 2>/dev/null` in
16639       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16640       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16641       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16642       *\ 2.11.*) ;; # other 2.11 versions
16643       *) supports_anon_versioning=yes ;;
16644     esac
16645
16646     # See if GNU ld supports shared libraries.
16647     case $host_os in
16648     aix3* | aix4* | aix5*)
16649       # On AIX/PPC, the GNU linker is very broken
16650       if test "$host_cpu" != ia64; then
16651         ld_shlibs_GCJ=no
16652         cat <<EOF 1>&2
16653
16654 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16655 *** to be unable to reliably create shared libraries on AIX.
16656 *** Therefore, libtool is disabling shared libraries support.  If you
16657 *** really care for shared libraries, you may want to modify your PATH
16658 *** so that a non-GNU linker is found, and then restart.
16659
16660 EOF
16661       fi
16662       ;;
16663
16664     amigaos*)
16665       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)'
16666       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16667       hardcode_minus_L_GCJ=yes
16668
16669       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16670       # that the semantics of dynamic libraries on AmigaOS, at least up
16671       # to version 4, is to share data among multiple programs linked
16672       # with the same dynamic library.  Since this doesn't match the
16673       # behavior of shared libraries on other platforms, we can't use
16674       # them.
16675       ld_shlibs_GCJ=no
16676       ;;
16677
16678     beos*)
16679       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16680         allow_undefined_flag_GCJ=unsupported
16681         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16682         # support --undefined.  This deserves some investigation.  FIXME
16683         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16684       else
16685         ld_shlibs_GCJ=no
16686       fi
16687       ;;
16688
16689     cygwin* | mingw* | pw32*)
16690       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16691       # as there is no search path for DLLs.
16692       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16693       allow_undefined_flag_GCJ=unsupported
16694       always_export_symbols_GCJ=no
16695       enable_shared_with_static_runtimes_GCJ=yes
16696       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16697
16698       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16699         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16700         # If the export-symbols file already is a .def file (1st line
16701         # is EXPORTS), use it as is; otherwise, prepend...
16702         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16703           cp $export_symbols $output_objdir/$soname.def;
16704         else
16705           echo EXPORTS > $output_objdir/$soname.def;
16706           cat $export_symbols >> $output_objdir/$soname.def;
16707         fi~
16708         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16709       else
16710         ld_shlibs_GCJ=no
16711       fi
16712       ;;
16713
16714     interix3*)
16715       hardcode_direct_GCJ=no
16716       hardcode_shlibpath_var_GCJ=no
16717       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16718       export_dynamic_flag_spec_GCJ='${wl}-E'
16719       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16720       # Instead, shared libraries are loaded at an image base (0x10000000 by
16721       # default) and relocated if they conflict, which is a slow very memory
16722       # consuming and fragmenting process.  To avoid this, we pick a random,
16723       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16724       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16725       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'
16726       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'
16727       ;;
16728
16729     linux* | k*bsd*-gnu)
16730       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16731         tmp_addflag=
16732         case $cc_basename,$host_cpu in
16733         pgcc*)                          # Portland Group C compiler
16734           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'
16735           tmp_addflag=' $pic_flag'
16736           ;;
16737         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16738           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'
16739           tmp_addflag=' $pic_flag -Mnomain' ;;
16740         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16741           tmp_addflag=' -i_dynamic' ;;
16742         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16743           tmp_addflag=' -i_dynamic -nofor_main' ;;
16744         ifc* | ifort*)                  # Intel Fortran compiler
16745           tmp_addflag=' -nofor_main' ;;
16746         esac
16747         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16748
16749         if test $supports_anon_versioning = yes; then
16750           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16751   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16752   $echo "local: *; };" >> $output_objdir/$libname.ver~
16753           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16754         fi
16755         link_all_deplibs_GCJ=no
16756       else
16757         ld_shlibs_GCJ=no
16758       fi
16759       ;;
16760
16761     netbsd* | netbsdelf*-gnu)
16762       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16763         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16764         wlarc=
16765       else
16766         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16767         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16768       fi
16769       ;;
16770
16771     solaris*)
16772       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16773         ld_shlibs_GCJ=no
16774         cat <<EOF 1>&2
16775
16776 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16777 *** create shared libraries on Solaris systems.  Therefore, libtool
16778 *** is disabling shared libraries support.  We urge you to upgrade GNU
16779 *** binutils to release 2.9.1 or newer.  Another option is to modify
16780 *** your PATH or compiler configuration so that the native linker is
16781 *** used, and then restart.
16782
16783 EOF
16784       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16785         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16786         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16787       else
16788         ld_shlibs_GCJ=no
16789       fi
16790       ;;
16791
16792     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16793       case `$LD -v 2>&1` in
16794         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16795         ld_shlibs_GCJ=no
16796         cat <<_LT_EOF 1>&2
16797
16798 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16799 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16800 *** is disabling shared libraries support.  We urge you to upgrade GNU
16801 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16802 *** your PATH or compiler configuration so that the native linker is
16803 *** used, and then restart.
16804
16805 _LT_EOF
16806         ;;
16807         *)
16808           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16809             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16810             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16811             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16812           else
16813             ld_shlibs_GCJ=no
16814           fi
16815         ;;
16816       esac
16817       ;;
16818
16819     sunos4*)
16820       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16821       wlarc=
16822       hardcode_direct_GCJ=yes
16823       hardcode_shlibpath_var_GCJ=no
16824       ;;
16825
16826     *)
16827       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16828         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16829         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16830       else
16831         ld_shlibs_GCJ=no
16832       fi
16833       ;;
16834     esac
16835
16836     if test "$ld_shlibs_GCJ" = no; then
16837       runpath_var=
16838       hardcode_libdir_flag_spec_GCJ=
16839       export_dynamic_flag_spec_GCJ=
16840       whole_archive_flag_spec_GCJ=
16841     fi
16842   else
16843     # PORTME fill in a description of your system's linker (not GNU ld)
16844     case $host_os in
16845     aix3*)
16846       allow_undefined_flag_GCJ=unsupported
16847       always_export_symbols_GCJ=yes
16848       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'
16849       # Note: this linker hardcodes the directories in LIBPATH if there
16850       # are no directories specified by -L.
16851       hardcode_minus_L_GCJ=yes
16852       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16853         # Neither direct hardcoding nor static linking is supported with a
16854         # broken collect2.
16855         hardcode_direct_GCJ=unsupported
16856       fi
16857       ;;
16858
16859     aix4* | aix5*)
16860       if test "$host_cpu" = ia64; then
16861         # On IA64, the linker does run time linking by default, so we don't
16862         # have to do anything special.
16863         aix_use_runtimelinking=no
16864         exp_sym_flag='-Bexport'
16865         no_entry_flag=""
16866       else
16867         # If we're using GNU nm, then we don't want the "-C" option.
16868         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16869         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16870           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'
16871         else
16872           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'
16873         fi
16874         aix_use_runtimelinking=no
16875
16876         # Test if we are trying to use run time linking or normal
16877         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16878         # need to do runtime linking.
16879         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16880           for ld_flag in $LDFLAGS; do
16881           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16882             aix_use_runtimelinking=yes
16883             break
16884           fi
16885           done
16886           ;;
16887         esac
16888
16889         exp_sym_flag='-bexport'
16890         no_entry_flag='-bnoentry'
16891       fi
16892
16893       # When large executables or shared objects are built, AIX ld can
16894       # have problems creating the table of contents.  If linking a library
16895       # or program results in "error TOC overflow" add -mminimal-toc to
16896       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16897       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16898
16899       archive_cmds_GCJ=''
16900       hardcode_direct_GCJ=yes
16901       hardcode_libdir_separator_GCJ=':'
16902       link_all_deplibs_GCJ=yes
16903
16904       if test "$GCC" = yes; then
16905         case $host_os in aix4.[012]|aix4.[012].*)
16906         # We only want to do this on AIX 4.2 and lower, the check
16907         # below for broken collect2 doesn't work under 4.3+
16908           collect2name=`${CC} -print-prog-name=collect2`
16909           if test -f "$collect2name" && \
16910            strings "$collect2name" | grep resolve_lib_name >/dev/null
16911           then
16912           # We have reworked collect2
16913           hardcode_direct_GCJ=yes
16914           else
16915           # We have old collect2
16916           hardcode_direct_GCJ=unsupported
16917           # It fails to find uninstalled libraries when the uninstalled
16918           # path is not listed in the libpath.  Setting hardcode_minus_L
16919           # to unsupported forces relinking
16920           hardcode_minus_L_GCJ=yes
16921           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16922           hardcode_libdir_separator_GCJ=
16923           fi
16924           ;;
16925         esac
16926         shared_flag='-shared'
16927         if test "$aix_use_runtimelinking" = yes; then
16928           shared_flag="$shared_flag "'${wl}-G'
16929         fi
16930       else
16931         # not using gcc
16932         if test "$host_cpu" = ia64; then
16933         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16934         # chokes on -Wl,-G. The following line is correct:
16935           shared_flag='-G'
16936         else
16937           if test "$aix_use_runtimelinking" = yes; then
16938             shared_flag='${wl}-G'
16939           else
16940             shared_flag='${wl}-bM:SRE'
16941           fi
16942         fi
16943       fi
16944
16945       # It seems that -bexpall does not export symbols beginning with
16946       # underscore (_), so it is better to generate a list of symbols to export.
16947       always_export_symbols_GCJ=yes
16948       if test "$aix_use_runtimelinking" = yes; then
16949         # Warning - without using the other runtime loading flags (-brtl),
16950         # -berok will link without error, but may produce a broken library.
16951         allow_undefined_flag_GCJ='-berok'
16952        # Determine the default libpath from the value encoded in an empty executable.
16953        cat >conftest.$ac_ext <<_ACEOF
16954 /* confdefs.h.  */
16955 _ACEOF
16956 cat confdefs.h >>conftest.$ac_ext
16957 cat >>conftest.$ac_ext <<_ACEOF
16958 /* end confdefs.h.  */
16959
16960 int
16961 main ()
16962 {
16963
16964   ;
16965   return 0;
16966 }
16967 _ACEOF
16968 rm -f conftest.$ac_objext conftest$ac_exeext
16969 if { (ac_try="$ac_link"
16970 case "(($ac_try" in
16971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16972   *) ac_try_echo=$ac_try;;
16973 esac
16974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16975   (eval "$ac_link") 2>conftest.er1
16976   ac_status=$?
16977   grep -v '^ *+' conftest.er1 >conftest.err
16978   rm -f conftest.er1
16979   cat conftest.err >&5
16980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981   (exit $ac_status); } && {
16982          test -z "$ac_c_werror_flag" ||
16983          test ! -s conftest.err
16984        } && test -s conftest$ac_exeext &&
16985        $as_test_x conftest$ac_exeext; then
16986
16987 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16988 }'`
16989 # Check for a 64-bit object if we didn't find anything.
16990 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16991 }'`; fi
16992 else
16993   echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16995
16996
16997 fi
16998
16999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17000       conftest$ac_exeext conftest.$ac_ext
17001 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17002
17003        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17004         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"
17005        else
17006         if test "$host_cpu" = ia64; then
17007           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17008           allow_undefined_flag_GCJ="-z nodefs"
17009           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"
17010         else
17011          # Determine the default libpath from the value encoded in an empty executable.
17012          cat >conftest.$ac_ext <<_ACEOF
17013 /* confdefs.h.  */
17014 _ACEOF
17015 cat confdefs.h >>conftest.$ac_ext
17016 cat >>conftest.$ac_ext <<_ACEOF
17017 /* end confdefs.h.  */
17018
17019 int
17020 main ()
17021 {
17022
17023   ;
17024   return 0;
17025 }
17026 _ACEOF
17027 rm -f conftest.$ac_objext conftest$ac_exeext
17028 if { (ac_try="$ac_link"
17029 case "(($ac_try" in
17030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031   *) ac_try_echo=$ac_try;;
17032 esac
17033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034   (eval "$ac_link") 2>conftest.er1
17035   ac_status=$?
17036   grep -v '^ *+' conftest.er1 >conftest.err
17037   rm -f conftest.er1
17038   cat conftest.err >&5
17039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040   (exit $ac_status); } && {
17041          test -z "$ac_c_werror_flag" ||
17042          test ! -s conftest.err
17043        } && test -s conftest$ac_exeext &&
17044        $as_test_x conftest$ac_exeext; then
17045
17046 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17047 }'`
17048 # Check for a 64-bit object if we didn't find anything.
17049 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17050 }'`; fi
17051 else
17052   echo "$as_me: failed program was:" >&5
17053 sed 's/^/| /' conftest.$ac_ext >&5
17054
17055
17056 fi
17057
17058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17059       conftest$ac_exeext conftest.$ac_ext
17060 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17061
17062          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17063           # Warning - without using the other run time loading flags,
17064           # -berok will link without error, but may produce a broken library.
17065           no_undefined_flag_GCJ=' ${wl}-bernotok'
17066           allow_undefined_flag_GCJ=' ${wl}-berok'
17067           # Exported symbols can be pulled into shared objects from archives
17068           whole_archive_flag_spec_GCJ='$convenience'
17069           archive_cmds_need_lc_GCJ=yes
17070           # This is similar to how AIX traditionally builds its shared libraries.
17071           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'
17072         fi
17073       fi
17074       ;;
17075
17076     amigaos*)
17077       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)'
17078       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17079       hardcode_minus_L_GCJ=yes
17080       # see comment about different semantics on the GNU ld section
17081       ld_shlibs_GCJ=no
17082       ;;
17083
17084     bsdi[45]*)
17085       export_dynamic_flag_spec_GCJ=-rdynamic
17086       ;;
17087
17088     cygwin* | mingw* | pw32*)
17089       # When not using gcc, we currently assume that we are using
17090       # Microsoft Visual C++.
17091       # hardcode_libdir_flag_spec is actually meaningless, as there is
17092       # no search path for DLLs.
17093       hardcode_libdir_flag_spec_GCJ=' '
17094       allow_undefined_flag_GCJ=unsupported
17095       # Tell ltmain to make .lib files, not .a files.
17096       libext=lib
17097       # Tell ltmain to make .dll files, not .so files.
17098       shrext_cmds=".dll"
17099       # FIXME: Setting linknames here is a bad hack.
17100       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17101       # The linker will automatically build a .lib file if we build a DLL.
17102       old_archive_From_new_cmds_GCJ='true'
17103       # FIXME: Should let the user specify the lib program.
17104       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17105       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17106       enable_shared_with_static_runtimes_GCJ=yes
17107       ;;
17108
17109     darwin* | rhapsody*)
17110       case $host_os in
17111         rhapsody* | darwin1.[012])
17112          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17113          ;;
17114        *) # Darwin 1.3 on
17115          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17116            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17117          else
17118            case ${MACOSX_DEPLOYMENT_TARGET} in
17119              10.[012])
17120                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17121                ;;
17122              10.*)
17123                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17124                ;;
17125            esac
17126          fi
17127          ;;
17128       esac
17129       archive_cmds_need_lc_GCJ=no
17130       hardcode_direct_GCJ=no
17131       hardcode_automatic_GCJ=yes
17132       hardcode_shlibpath_var_GCJ=unsupported
17133       whole_archive_flag_spec_GCJ=''
17134       link_all_deplibs_GCJ=yes
17135     if test "$GCC" = yes ; then
17136         output_verbose_link_cmd='echo'
17137         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17138       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17139       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17140       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17141       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}'
17142     else
17143       case $cc_basename in
17144         xlc*)
17145          output_verbose_link_cmd='echo'
17146          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17147          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17148           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17149          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17150           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}'
17151           ;;
17152        *)
17153          ld_shlibs_GCJ=no
17154           ;;
17155       esac
17156     fi
17157       ;;
17158
17159     dgux*)
17160       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17161       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17162       hardcode_shlibpath_var_GCJ=no
17163       ;;
17164
17165     freebsd1*)
17166       ld_shlibs_GCJ=no
17167       ;;
17168
17169     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17170     # support.  Future versions do this automatically, but an explicit c++rt0.o
17171     # does not break anything, and helps significantly (at the cost of a little
17172     # extra space).
17173     freebsd2.2*)
17174       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17175       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17176       hardcode_direct_GCJ=yes
17177       hardcode_shlibpath_var_GCJ=no
17178       ;;
17179
17180     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17181     freebsd2*)
17182       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17183       hardcode_direct_GCJ=yes
17184       hardcode_minus_L_GCJ=yes
17185       hardcode_shlibpath_var_GCJ=no
17186       ;;
17187
17188     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17189     freebsd* | dragonfly*)
17190       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17191       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17192       hardcode_direct_GCJ=yes
17193       hardcode_shlibpath_var_GCJ=no
17194       ;;
17195
17196     hpux9*)
17197       if test "$GCC" = yes; then
17198         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'
17199       else
17200         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'
17201       fi
17202       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17203       hardcode_libdir_separator_GCJ=:
17204       hardcode_direct_GCJ=yes
17205
17206       # hardcode_minus_L: Not really in the search PATH,
17207       # but as the default location of the library.
17208       hardcode_minus_L_GCJ=yes
17209       export_dynamic_flag_spec_GCJ='${wl}-E'
17210       ;;
17211
17212     hpux10*)
17213       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17214         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17215       else
17216         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17217       fi
17218       if test "$with_gnu_ld" = no; then
17219         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17220         hardcode_libdir_separator_GCJ=:
17221
17222         hardcode_direct_GCJ=yes
17223         export_dynamic_flag_spec_GCJ='${wl}-E'
17224
17225         # hardcode_minus_L: Not really in the search PATH,
17226         # but as the default location of the library.
17227         hardcode_minus_L_GCJ=yes
17228       fi
17229       ;;
17230
17231     hpux11*)
17232       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17233         case $host_cpu in
17234         hppa*64*)
17235           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17236           ;;
17237         ia64*)
17238           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17239           ;;
17240         *)
17241           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17242           ;;
17243         esac
17244       else
17245         case $host_cpu in
17246         hppa*64*)
17247           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17248           ;;
17249         ia64*)
17250           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17251           ;;
17252         *)
17253           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17254           ;;
17255         esac
17256       fi
17257       if test "$with_gnu_ld" = no; then
17258         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17259         hardcode_libdir_separator_GCJ=:
17260
17261         case $host_cpu in
17262         hppa*64*|ia64*)
17263           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17264           hardcode_direct_GCJ=no
17265           hardcode_shlibpath_var_GCJ=no
17266           ;;
17267         *)
17268           hardcode_direct_GCJ=yes
17269           export_dynamic_flag_spec_GCJ='${wl}-E'
17270
17271           # hardcode_minus_L: Not really in the search PATH,
17272           # but as the default location of the library.
17273           hardcode_minus_L_GCJ=yes
17274           ;;
17275         esac
17276       fi
17277       ;;
17278
17279     irix5* | irix6* | nonstopux*)
17280       if test "$GCC" = yes; then
17281         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'
17282       else
17283         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'
17284         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17285       fi
17286       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17287       hardcode_libdir_separator_GCJ=:
17288       link_all_deplibs_GCJ=yes
17289       ;;
17290
17291     netbsd* | netbsdelf*-gnu)
17292       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17293         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17294       else
17295         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17296       fi
17297       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17298       hardcode_direct_GCJ=yes
17299       hardcode_shlibpath_var_GCJ=no
17300       ;;
17301
17302     newsos6)
17303       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17304       hardcode_direct_GCJ=yes
17305       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17306       hardcode_libdir_separator_GCJ=:
17307       hardcode_shlibpath_var_GCJ=no
17308       ;;
17309
17310     openbsd*)
17311       hardcode_direct_GCJ=yes
17312       hardcode_shlibpath_var_GCJ=no
17313       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17314         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17315         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17316         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17317         export_dynamic_flag_spec_GCJ='${wl}-E'
17318       else
17319        case $host_os in
17320          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17321            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17322            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17323            ;;
17324          *)
17325            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17326            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17327            ;;
17328        esac
17329       fi
17330       ;;
17331
17332     os2*)
17333       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17334       hardcode_minus_L_GCJ=yes
17335       allow_undefined_flag_GCJ=unsupported
17336       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'
17337       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17338       ;;
17339
17340     osf3*)
17341       if test "$GCC" = yes; then
17342         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17343         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'
17344       else
17345         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17346         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'
17347       fi
17348       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17349       hardcode_libdir_separator_GCJ=:
17350       ;;
17351
17352     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17353       if test "$GCC" = yes; then
17354         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17355         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'
17356         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17357       else
17358         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17359         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'
17360         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~
17361         $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'
17362
17363         # Both c and cxx compiler support -rpath directly
17364         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17365       fi
17366       hardcode_libdir_separator_GCJ=:
17367       ;;
17368
17369     solaris*)
17370       no_undefined_flag_GCJ=' -z text'
17371       if test "$GCC" = yes; then
17372         wlarc='${wl}'
17373         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17374         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17375           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17376       else
17377         wlarc=''
17378         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17379         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17380         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17381       fi
17382       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17383       hardcode_shlibpath_var_GCJ=no
17384       case $host_os in
17385       solaris2.[0-5] | solaris2.[0-5].*) ;;
17386       *)
17387         # The compiler driver will combine linker options so we
17388         # cannot just pass the convience library names through
17389         # without $wl, iff we do not link with $LD.
17390         # Luckily, gcc supports the same syntax we need for Sun Studio.
17391         # Supported since Solaris 2.6 (maybe 2.5.1?)
17392         case $wlarc in
17393         '')
17394           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17395         *)
17396           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17397         esac ;;
17398       esac
17399       link_all_deplibs_GCJ=yes
17400       ;;
17401
17402     sunos4*)
17403       if test "x$host_vendor" = xsequent; then
17404         # Use $CC to link under sequent, because it throws in some extra .o
17405         # files that make .init and .fini sections work.
17406         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17407       else
17408         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17409       fi
17410       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17411       hardcode_direct_GCJ=yes
17412       hardcode_minus_L_GCJ=yes
17413       hardcode_shlibpath_var_GCJ=no
17414       ;;
17415
17416     sysv4)
17417       case $host_vendor in
17418         sni)
17419           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17420           hardcode_direct_GCJ=yes # is this really true???
17421         ;;
17422         siemens)
17423           ## LD is ld it makes a PLAMLIB
17424           ## CC just makes a GrossModule.
17425           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17426           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17427           hardcode_direct_GCJ=no
17428         ;;
17429         motorola)
17430           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17431           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17432         ;;
17433       esac
17434       runpath_var='LD_RUN_PATH'
17435       hardcode_shlibpath_var_GCJ=no
17436       ;;
17437
17438     sysv4.3*)
17439       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17440       hardcode_shlibpath_var_GCJ=no
17441       export_dynamic_flag_spec_GCJ='-Bexport'
17442       ;;
17443
17444     sysv4*MP*)
17445       if test -d /usr/nec; then
17446         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17447         hardcode_shlibpath_var_GCJ=no
17448         runpath_var=LD_RUN_PATH
17449         hardcode_runpath_var=yes
17450         ld_shlibs_GCJ=yes
17451       fi
17452       ;;
17453
17454     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17455       no_undefined_flag_GCJ='${wl}-z,text'
17456       archive_cmds_need_lc_GCJ=no
17457       hardcode_shlibpath_var_GCJ=no
17458       runpath_var='LD_RUN_PATH'
17459
17460       if test "$GCC" = yes; then
17461         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17462         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17463       else
17464         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17465         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17466       fi
17467       ;;
17468
17469     sysv5* | sco3.2v5* | sco5v6*)
17470       # Note: We can NOT use -z defs as we might desire, because we do not
17471       # link with -lc, and that would cause any symbols used from libc to
17472       # always be unresolved, which means just about no library would
17473       # ever link correctly.  If we're not using GNU ld we use -z text
17474       # though, which does catch some bad symbols but isn't as heavy-handed
17475       # as -z defs.
17476       no_undefined_flag_GCJ='${wl}-z,text'
17477       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17478       archive_cmds_need_lc_GCJ=no
17479       hardcode_shlibpath_var_GCJ=no
17480       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17481       hardcode_libdir_separator_GCJ=':'
17482       link_all_deplibs_GCJ=yes
17483       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17484       runpath_var='LD_RUN_PATH'
17485
17486       if test "$GCC" = yes; then
17487         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17488         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17489       else
17490         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17491         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17492       fi
17493       ;;
17494
17495     uts4*)
17496       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17497       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17498       hardcode_shlibpath_var_GCJ=no
17499       ;;
17500
17501     *)
17502       ld_shlibs_GCJ=no
17503       ;;
17504     esac
17505   fi
17506
17507 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17508 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17509 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17510
17511 #
17512 # Do we need to explicitly link libc?
17513 #
17514 case "x$archive_cmds_need_lc_GCJ" in
17515 x|xyes)
17516   # Assume -lc should be added
17517   archive_cmds_need_lc_GCJ=yes
17518
17519   if test "$enable_shared" = yes && test "$GCC" = yes; then
17520     case $archive_cmds_GCJ in
17521     *'~'*)
17522       # FIXME: we may have to deal with multi-command sequences.
17523       ;;
17524     '$CC '*)
17525       # Test whether the compiler implicitly links with -lc since on some
17526       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17527       # to ld, don't add -lc before -lgcc.
17528       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17529 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17530       $rm conftest*
17531       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17532
17533       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17534   (eval $ac_compile) 2>&5
17535   ac_status=$?
17536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537   (exit $ac_status); } 2>conftest.err; then
17538         soname=conftest
17539         lib=conftest
17540         libobjs=conftest.$ac_objext
17541         deplibs=
17542         wl=$lt_prog_compiler_wl_GCJ
17543         pic_flag=$lt_prog_compiler_pic_GCJ
17544         compiler_flags=-v
17545         linker_flags=-v
17546         verstring=
17547         output_objdir=.
17548         libname=conftest
17549         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17550         allow_undefined_flag_GCJ=
17551         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17552   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17553   ac_status=$?
17554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555   (exit $ac_status); }
17556         then
17557           archive_cmds_need_lc_GCJ=no
17558         else
17559           archive_cmds_need_lc_GCJ=yes
17560         fi
17561         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17562       else
17563         cat conftest.err 1>&5
17564       fi
17565       $rm conftest*
17566       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17567 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17568       ;;
17569     esac
17570   fi
17571   ;;
17572 esac
17573
17574 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17575 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17576 library_names_spec=
17577 libname_spec='lib$name'
17578 soname_spec=
17579 shrext_cmds=".so"
17580 postinstall_cmds=
17581 postuninstall_cmds=
17582 finish_cmds=
17583 finish_eval=
17584 shlibpath_var=
17585 shlibpath_overrides_runpath=unknown
17586 version_type=none
17587 dynamic_linker="$host_os ld.so"
17588 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17589 if test "$GCC" = yes; then
17590   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17591   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17592     # if the path contains ";" then we assume it to be the separator
17593     # otherwise default to the standard path separator (i.e. ":") - it is
17594     # assumed that no part of a normal pathname contains ";" but that should
17595     # okay in the real world where ";" in dirpaths is itself problematic.
17596     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17597   else
17598     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17599   fi
17600 else
17601   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17602 fi
17603 need_lib_prefix=unknown
17604 hardcode_into_libs=no
17605
17606 # when you set need_version to no, make sure it does not cause -set_version
17607 # flags to be left without arguments
17608 need_version=unknown
17609
17610 case $host_os in
17611 aix3*)
17612   version_type=linux
17613   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17614   shlibpath_var=LIBPATH
17615
17616   # AIX 3 has no versioning support, so we append a major version to the name.
17617   soname_spec='${libname}${release}${shared_ext}$major'
17618   ;;
17619
17620 aix4* | aix5*)
17621   version_type=linux
17622   need_lib_prefix=no
17623   need_version=no
17624   hardcode_into_libs=yes
17625   if test "$host_cpu" = ia64; then
17626     # AIX 5 supports IA64
17627     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17628     shlibpath_var=LD_LIBRARY_PATH
17629   else
17630     # With GCC up to 2.95.x, collect2 would create an import file
17631     # for dependence libraries.  The import file would start with
17632     # the line `#! .'.  This would cause the generated library to
17633     # depend on `.', always an invalid library.  This was fixed in
17634     # development snapshots of GCC prior to 3.0.
17635     case $host_os in
17636       aix4 | aix4.[01] | aix4.[01].*)
17637       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17638            echo ' yes '
17639            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17640         :
17641       else
17642         can_build_shared=no
17643       fi
17644       ;;
17645     esac
17646     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17647     # soname into executable. Probably we can add versioning support to
17648     # collect2, so additional links can be useful in future.
17649     if test "$aix_use_runtimelinking" = yes; then
17650       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17651       # instead of lib<name>.a to let people know that these are not
17652       # typical AIX shared libraries.
17653       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17654     else
17655       # We preserve .a as extension for shared libraries through AIX4.2
17656       # and later when we are not doing run time linking.
17657       library_names_spec='${libname}${release}.a $libname.a'
17658       soname_spec='${libname}${release}${shared_ext}$major'
17659     fi
17660     shlibpath_var=LIBPATH
17661   fi
17662   ;;
17663
17664 amigaos*)
17665   library_names_spec='$libname.ixlibrary $libname.a'
17666   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17667   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'
17668   ;;
17669
17670 beos*)
17671   library_names_spec='${libname}${shared_ext}'
17672   dynamic_linker="$host_os ld.so"
17673   shlibpath_var=LIBRARY_PATH
17674   ;;
17675
17676 bsdi[45]*)
17677   version_type=linux
17678   need_version=no
17679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17680   soname_spec='${libname}${release}${shared_ext}$major'
17681   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17682   shlibpath_var=LD_LIBRARY_PATH
17683   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17684   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17685   # the default ld.so.conf also contains /usr/contrib/lib and
17686   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17687   # libtool to hard-code these into programs
17688   ;;
17689
17690 cygwin* | mingw* | pw32*)
17691   version_type=windows
17692   shrext_cmds=".dll"
17693   need_version=no
17694   need_lib_prefix=no
17695
17696   case $GCC,$host_os in
17697   yes,cygwin* | yes,mingw* | yes,pw32*)
17698     library_names_spec='$libname.dll.a'
17699     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17700     postinstall_cmds='base_file=`basename \${file}`~
17701       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17702       dldir=$destdir/`dirname \$dlpath`~
17703       test -d \$dldir || mkdir -p \$dldir~
17704       $install_prog $dir/$dlname \$dldir/$dlname~
17705       chmod a+x \$dldir/$dlname'
17706     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17707       dlpath=$dir/\$dldll~
17708        $rm \$dlpath'
17709     shlibpath_overrides_runpath=yes
17710
17711     case $host_os in
17712     cygwin*)
17713       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17714       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17715       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17716       ;;
17717     mingw*)
17718       # MinGW DLLs use traditional 'lib' prefix
17719       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17720       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17721       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17722         # It is most probably a Windows format PATH printed by
17723         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17724         # path with ; separators, and with drive letters. We can handle the
17725         # drive letters (cygwin fileutils understands them), so leave them,
17726         # especially as we might pass files found there to a mingw objdump,
17727         # which wouldn't understand a cygwinified path. Ahh.
17728         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17729       else
17730         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17731       fi
17732       ;;
17733     pw32*)
17734       # pw32 DLLs use 'pw' prefix rather than 'lib'
17735       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17736       ;;
17737     esac
17738     ;;
17739
17740   *)
17741     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17742     ;;
17743   esac
17744   dynamic_linker='Win32 ld.exe'
17745   # FIXME: first we should search . and the directory the executable is in
17746   shlibpath_var=PATH
17747   ;;
17748
17749 darwin* | rhapsody*)
17750   dynamic_linker="$host_os dyld"
17751   version_type=darwin
17752   need_lib_prefix=no
17753   need_version=no
17754   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17755   soname_spec='${libname}${release}${major}$shared_ext'
17756   shlibpath_overrides_runpath=yes
17757   shlibpath_var=DYLD_LIBRARY_PATH
17758   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17759   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17760   if test "$GCC" = yes; then
17761     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17762   else
17763     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17764   fi
17765   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17766   ;;
17767
17768 dgux*)
17769   version_type=linux
17770   need_lib_prefix=no
17771   need_version=no
17772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17773   soname_spec='${libname}${release}${shared_ext}$major'
17774   shlibpath_var=LD_LIBRARY_PATH
17775   ;;
17776
17777 freebsd1*)
17778   dynamic_linker=no
17779   ;;
17780
17781 freebsd* | dragonfly*)
17782   # DragonFly does not have aout.  When/if they implement a new
17783   # versioning mechanism, adjust this.
17784   if test -x /usr/bin/objformat; then
17785     objformat=`/usr/bin/objformat`
17786   else
17787     case $host_os in
17788     freebsd[123]*) objformat=aout ;;
17789     *) objformat=elf ;;
17790     esac
17791   fi
17792   version_type=freebsd-$objformat
17793   case $version_type in
17794     freebsd-elf*)
17795       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17796       need_version=no
17797       need_lib_prefix=no
17798       ;;
17799     freebsd-*)
17800       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17801       need_version=yes
17802       ;;
17803   esac
17804   shlibpath_var=LD_LIBRARY_PATH
17805   case $host_os in
17806   freebsd2*)
17807     shlibpath_overrides_runpath=yes
17808     ;;
17809   freebsd3.[01]* | freebsdelf3.[01]*)
17810     shlibpath_overrides_runpath=yes
17811     hardcode_into_libs=yes
17812     ;;
17813   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17814   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17815     shlibpath_overrides_runpath=no
17816     hardcode_into_libs=yes
17817     ;;
17818   freebsd*) # from 4.6 on
17819     shlibpath_overrides_runpath=yes
17820     hardcode_into_libs=yes
17821     ;;
17822   esac
17823   ;;
17824
17825 gnu*)
17826   version_type=linux
17827   need_lib_prefix=no
17828   need_version=no
17829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17830   soname_spec='${libname}${release}${shared_ext}$major'
17831   shlibpath_var=LD_LIBRARY_PATH
17832   hardcode_into_libs=yes
17833   ;;
17834
17835 hpux9* | hpux10* | hpux11*)
17836   # Give a soname corresponding to the major version so that dld.sl refuses to
17837   # link against other versions.
17838   version_type=sunos
17839   need_lib_prefix=no
17840   need_version=no
17841   case $host_cpu in
17842   ia64*)
17843     shrext_cmds='.so'
17844     hardcode_into_libs=yes
17845     dynamic_linker="$host_os dld.so"
17846     shlibpath_var=LD_LIBRARY_PATH
17847     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17848     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17849     soname_spec='${libname}${release}${shared_ext}$major'
17850     if test "X$HPUX_IA64_MODE" = X32; then
17851       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17852     else
17853       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17854     fi
17855     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17856     ;;
17857    hppa*64*)
17858      shrext_cmds='.sl'
17859      hardcode_into_libs=yes
17860      dynamic_linker="$host_os dld.sl"
17861      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17862      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17863      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17864      soname_spec='${libname}${release}${shared_ext}$major'
17865      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17866      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17867      ;;
17868    *)
17869     shrext_cmds='.sl'
17870     dynamic_linker="$host_os dld.sl"
17871     shlibpath_var=SHLIB_PATH
17872     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17873     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17874     soname_spec='${libname}${release}${shared_ext}$major'
17875     ;;
17876   esac
17877   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17878   postinstall_cmds='chmod 555 $lib'
17879   ;;
17880
17881 interix3*)
17882   version_type=linux
17883   need_lib_prefix=no
17884   need_version=no
17885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17886   soname_spec='${libname}${release}${shared_ext}$major'
17887   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17888   shlibpath_var=LD_LIBRARY_PATH
17889   shlibpath_overrides_runpath=no
17890   hardcode_into_libs=yes
17891   ;;
17892
17893 irix5* | irix6* | nonstopux*)
17894   case $host_os in
17895     nonstopux*) version_type=nonstopux ;;
17896     *)
17897         if test "$lt_cv_prog_gnu_ld" = yes; then
17898                 version_type=linux
17899         else
17900                 version_type=irix
17901         fi ;;
17902   esac
17903   need_lib_prefix=no
17904   need_version=no
17905   soname_spec='${libname}${release}${shared_ext}$major'
17906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17907   case $host_os in
17908   irix5* | nonstopux*)
17909     libsuff= shlibsuff=
17910     ;;
17911   *)
17912     case $LD in # libtool.m4 will add one of these switches to LD
17913     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17914       libsuff= shlibsuff= libmagic=32-bit;;
17915     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17916       libsuff=32 shlibsuff=N32 libmagic=N32;;
17917     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17918       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17919     *) libsuff= shlibsuff= libmagic=never-match;;
17920     esac
17921     ;;
17922   esac
17923   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17924   shlibpath_overrides_runpath=no
17925   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17926   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17927   hardcode_into_libs=yes
17928   ;;
17929
17930 # No shared lib support for Linux oldld, aout, or coff.
17931 linux*oldld* | linux*aout* | linux*coff*)
17932   dynamic_linker=no
17933   ;;
17934
17935 # This must be Linux ELF.
17936 linux* | k*bsd*-gnu)
17937   version_type=linux
17938   need_lib_prefix=no
17939   need_version=no
17940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17941   soname_spec='${libname}${release}${shared_ext}$major'
17942   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17943   shlibpath_var=LD_LIBRARY_PATH
17944   shlibpath_overrides_runpath=no
17945   # This implies no fast_install, which is unacceptable.
17946   # Some rework will be needed to allow for fast_install
17947   # before this can be enabled.
17948   hardcode_into_libs=yes
17949
17950   # Append ld.so.conf contents to the search path
17951   if test -f /etc/ld.so.conf; then
17952     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17953     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17954   fi
17955
17956   # We used to test for /lib/ld.so.1 and disable shared libraries on
17957   # powerpc, because MkLinux only supported shared libraries with the
17958   # GNU dynamic linker.  Since this was broken with cross compilers,
17959   # most powerpc-linux boxes support dynamic linking these days and
17960   # people can always --disable-shared, the test was removed, and we
17961   # assume the GNU/Linux dynamic linker is in use.
17962   dynamic_linker='GNU/Linux ld.so'
17963   ;;
17964
17965 netbsdelf*-gnu)
17966   version_type=linux
17967   need_lib_prefix=no
17968   need_version=no
17969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17970   soname_spec='${libname}${release}${shared_ext}$major'
17971   shlibpath_var=LD_LIBRARY_PATH
17972   shlibpath_overrides_runpath=no
17973   hardcode_into_libs=yes
17974   dynamic_linker='NetBSD ld.elf_so'
17975   ;;
17976
17977 netbsd*)
17978   version_type=sunos
17979   need_lib_prefix=no
17980   need_version=no
17981   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17982     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17983     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17984     dynamic_linker='NetBSD (a.out) ld.so'
17985   else
17986     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17987     soname_spec='${libname}${release}${shared_ext}$major'
17988     dynamic_linker='NetBSD ld.elf_so'
17989   fi
17990   shlibpath_var=LD_LIBRARY_PATH
17991   shlibpath_overrides_runpath=yes
17992   hardcode_into_libs=yes
17993   ;;
17994
17995 newsos6)
17996   version_type=linux
17997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17998   shlibpath_var=LD_LIBRARY_PATH
17999   shlibpath_overrides_runpath=yes
18000   ;;
18001
18002 nto-qnx*)
18003   version_type=linux
18004   need_lib_prefix=no
18005   need_version=no
18006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18007   soname_spec='${libname}${release}${shared_ext}$major'
18008   shlibpath_var=LD_LIBRARY_PATH
18009   shlibpath_overrides_runpath=yes
18010   ;;
18011
18012 openbsd*)
18013   version_type=sunos
18014   sys_lib_dlsearch_path_spec="/usr/lib"
18015   need_lib_prefix=no
18016   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18017   case $host_os in
18018     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18019     *)                         need_version=no  ;;
18020   esac
18021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18022   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18023   shlibpath_var=LD_LIBRARY_PATH
18024   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18025     case $host_os in
18026       openbsd2.[89] | openbsd2.[89].*)
18027         shlibpath_overrides_runpath=no
18028         ;;
18029       *)
18030         shlibpath_overrides_runpath=yes
18031         ;;
18032       esac
18033   else
18034     shlibpath_overrides_runpath=yes
18035   fi
18036   ;;
18037
18038 os2*)
18039   libname_spec='$name'
18040   shrext_cmds=".dll"
18041   need_lib_prefix=no
18042   library_names_spec='$libname${shared_ext} $libname.a'
18043   dynamic_linker='OS/2 ld.exe'
18044   shlibpath_var=LIBPATH
18045   ;;
18046
18047 osf3* | osf4* | osf5*)
18048   version_type=osf
18049   need_lib_prefix=no
18050   need_version=no
18051   soname_spec='${libname}${release}${shared_ext}$major'
18052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18053   shlibpath_var=LD_LIBRARY_PATH
18054   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18055   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18056   ;;
18057
18058 solaris*)
18059   version_type=linux
18060   need_lib_prefix=no
18061   need_version=no
18062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18063   soname_spec='${libname}${release}${shared_ext}$major'
18064   shlibpath_var=LD_LIBRARY_PATH
18065   shlibpath_overrides_runpath=yes
18066   hardcode_into_libs=yes
18067   # ldd complains unless libraries are executable
18068   postinstall_cmds='chmod +x $lib'
18069   ;;
18070
18071 sunos4*)
18072   version_type=sunos
18073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18074   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18075   shlibpath_var=LD_LIBRARY_PATH
18076   shlibpath_overrides_runpath=yes
18077   if test "$with_gnu_ld" = yes; then
18078     need_lib_prefix=no
18079   fi
18080   need_version=yes
18081   ;;
18082
18083 sysv4 | sysv4.3*)
18084   version_type=linux
18085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18086   soname_spec='${libname}${release}${shared_ext}$major'
18087   shlibpath_var=LD_LIBRARY_PATH
18088   case $host_vendor in
18089     sni)
18090       shlibpath_overrides_runpath=no
18091       need_lib_prefix=no
18092       export_dynamic_flag_spec='${wl}-Blargedynsym'
18093       runpath_var=LD_RUN_PATH
18094       ;;
18095     siemens)
18096       need_lib_prefix=no
18097       ;;
18098     motorola)
18099       need_lib_prefix=no
18100       need_version=no
18101       shlibpath_overrides_runpath=no
18102       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18103       ;;
18104   esac
18105   ;;
18106
18107 sysv4*MP*)
18108   if test -d /usr/nec ;then
18109     version_type=linux
18110     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18111     soname_spec='$libname${shared_ext}.$major'
18112     shlibpath_var=LD_LIBRARY_PATH
18113   fi
18114   ;;
18115
18116 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18117   version_type=freebsd-elf
18118   need_lib_prefix=no
18119   need_version=no
18120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18121   soname_spec='${libname}${release}${shared_ext}$major'
18122   shlibpath_var=LD_LIBRARY_PATH
18123   hardcode_into_libs=yes
18124   if test "$with_gnu_ld" = yes; then
18125     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18126     shlibpath_overrides_runpath=no
18127   else
18128     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18129     shlibpath_overrides_runpath=yes
18130     case $host_os in
18131       sco3.2v5*)
18132         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18133         ;;
18134     esac
18135   fi
18136   sys_lib_dlsearch_path_spec='/usr/lib'
18137   ;;
18138
18139 uts4*)
18140   version_type=linux
18141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18142   soname_spec='${libname}${release}${shared_ext}$major'
18143   shlibpath_var=LD_LIBRARY_PATH
18144   ;;
18145
18146 *)
18147   dynamic_linker=no
18148   ;;
18149 esac
18150 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18151 echo "${ECHO_T}$dynamic_linker" >&6; }
18152 test "$dynamic_linker" = no && can_build_shared=no
18153
18154 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18155 if test "$GCC" = yes; then
18156   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18157 fi
18158
18159 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18160 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18161 hardcode_action_GCJ=
18162 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18163    test -n "$runpath_var_GCJ" || \
18164    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18165
18166   # We can hardcode non-existant directories.
18167   if test "$hardcode_direct_GCJ" != no &&
18168      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18169      # have to relink, otherwise we might link with an installed library
18170      # when we should be linking with a yet-to-be-installed one
18171      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18172      test "$hardcode_minus_L_GCJ" != no; then
18173     # Linking always hardcodes the temporary library directory.
18174     hardcode_action_GCJ=relink
18175   else
18176     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18177     hardcode_action_GCJ=immediate
18178   fi
18179 else
18180   # We cannot hardcode anything, or else we can only hardcode existing
18181   # directories.
18182   hardcode_action_GCJ=unsupported
18183 fi
18184 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18185 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18186
18187 if test "$hardcode_action_GCJ" = relink; then
18188   # Fast installation is not supported
18189   enable_fast_install=no
18190 elif test "$shlibpath_overrides_runpath" = yes ||
18191      test "$enable_shared" = no; then
18192   # Fast installation is not necessary
18193   enable_fast_install=needless
18194 fi
18195
18196
18197 # The else clause should only fire when bootstrapping the
18198 # libtool distribution, otherwise you forgot to ship ltmain.sh
18199 # with your package, and you will get complaints that there are
18200 # no rules to generate ltmain.sh.
18201 if test -f "$ltmain"; then
18202   # See if we are running on zsh, and set the options which allow our commands through
18203   # without removal of \ escapes.
18204   if test -n "${ZSH_VERSION+set}" ; then
18205     setopt NO_GLOB_SUBST
18206   fi
18207   # Now quote all the things that may contain metacharacters while being
18208   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18209   # variables and quote the copies for generation of the libtool script.
18210   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18211     SED SHELL STRIP \
18212     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18213     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18214     deplibs_check_method reload_flag reload_cmds need_locks \
18215     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18216     lt_cv_sys_global_symbol_to_c_name_address \
18217     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18218     old_postinstall_cmds old_postuninstall_cmds \
18219     compiler_GCJ \
18220     CC_GCJ \
18221     LD_GCJ \
18222     lt_prog_compiler_wl_GCJ \
18223     lt_prog_compiler_pic_GCJ \
18224     lt_prog_compiler_static_GCJ \
18225     lt_prog_compiler_no_builtin_flag_GCJ \
18226     export_dynamic_flag_spec_GCJ \
18227     thread_safe_flag_spec_GCJ \
18228     whole_archive_flag_spec_GCJ \
18229     enable_shared_with_static_runtimes_GCJ \
18230     old_archive_cmds_GCJ \
18231     old_archive_from_new_cmds_GCJ \
18232     predep_objects_GCJ \
18233     postdep_objects_GCJ \
18234     predeps_GCJ \
18235     postdeps_GCJ \
18236     compiler_lib_search_path_GCJ \
18237     archive_cmds_GCJ \
18238     archive_expsym_cmds_GCJ \
18239     postinstall_cmds_GCJ \
18240     postuninstall_cmds_GCJ \
18241     old_archive_from_expsyms_cmds_GCJ \
18242     allow_undefined_flag_GCJ \
18243     no_undefined_flag_GCJ \
18244     export_symbols_cmds_GCJ \
18245     hardcode_libdir_flag_spec_GCJ \
18246     hardcode_libdir_flag_spec_ld_GCJ \
18247     hardcode_libdir_separator_GCJ \
18248     hardcode_automatic_GCJ \
18249     module_cmds_GCJ \
18250     module_expsym_cmds_GCJ \
18251     lt_cv_prog_compiler_c_o_GCJ \
18252     exclude_expsyms_GCJ \
18253     include_expsyms_GCJ; do
18254
18255     case $var in
18256     old_archive_cmds_GCJ | \
18257     old_archive_from_new_cmds_GCJ | \
18258     archive_cmds_GCJ | \
18259     archive_expsym_cmds_GCJ | \
18260     module_cmds_GCJ | \
18261     module_expsym_cmds_GCJ | \
18262     old_archive_from_expsyms_cmds_GCJ | \
18263     export_symbols_cmds_GCJ | \
18264     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18265     postinstall_cmds | postuninstall_cmds | \
18266     old_postinstall_cmds | old_postuninstall_cmds | \
18267     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18268       # Double-quote double-evaled strings.
18269       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18270       ;;
18271     *)
18272       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18273       ;;
18274     esac
18275   done
18276
18277   case $lt_echo in
18278   *'\$0 --fallback-echo"')
18279     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18280     ;;
18281   esac
18282
18283 cfgfile="$ofile"
18284
18285   cat <<__EOF__ >> "$cfgfile"
18286 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18287
18288 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18289
18290 # Shell to use when invoking shell scripts.
18291 SHELL=$lt_SHELL
18292
18293 # Whether or not to build shared libraries.
18294 build_libtool_libs=$enable_shared
18295
18296 # Whether or not to build static libraries.
18297 build_old_libs=$enable_static
18298
18299 # Whether or not to add -lc for building shared libraries.
18300 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18301
18302 # Whether or not to disallow shared libs when runtime libs are static
18303 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18304
18305 # Whether or not to optimize for fast installation.
18306 fast_install=$enable_fast_install
18307
18308 # The host system.
18309 host_alias=$host_alias
18310 host=$host
18311 host_os=$host_os
18312
18313 # The build system.
18314 build_alias=$build_alias
18315 build=$build
18316 build_os=$build_os
18317
18318 # An echo program that does not interpret backslashes.
18319 echo=$lt_echo
18320
18321 # The archiver.
18322 AR=$lt_AR
18323 AR_FLAGS=$lt_AR_FLAGS
18324
18325 # A C compiler.
18326 LTCC=$lt_LTCC
18327
18328 # LTCC compiler flags.
18329 LTCFLAGS=$lt_LTCFLAGS
18330
18331 # A language-specific compiler.
18332 CC=$lt_compiler_GCJ
18333
18334 # Is the compiler the GNU C compiler?
18335 with_gcc=$GCC_GCJ
18336
18337 # An ERE matcher.
18338 EGREP=$lt_EGREP
18339
18340 # The linker used to build libraries.
18341 LD=$lt_LD_GCJ
18342
18343 # Whether we need hard or soft links.
18344 LN_S=$lt_LN_S
18345
18346 # A BSD-compatible nm program.
18347 NM=$lt_NM
18348
18349 # A symbol stripping program
18350 STRIP=$lt_STRIP
18351
18352 # Used to examine libraries when file_magic_cmd begins "file"
18353 MAGIC_CMD=$MAGIC_CMD
18354
18355 # Used on cygwin: DLL creation program.
18356 DLLTOOL="$DLLTOOL"
18357
18358 # Used on cygwin: object dumper.
18359 OBJDUMP="$OBJDUMP"
18360
18361 # Used on cygwin: assembler.
18362 AS="$AS"
18363
18364 # The name of the directory that contains temporary libtool files.
18365 objdir=$objdir
18366
18367 # How to create reloadable object files.
18368 reload_flag=$lt_reload_flag
18369 reload_cmds=$lt_reload_cmds
18370
18371 # How to pass a linker flag through the compiler.
18372 wl=$lt_lt_prog_compiler_wl_GCJ
18373
18374 # Object file suffix (normally "o").
18375 objext="$ac_objext"
18376
18377 # Old archive suffix (normally "a").
18378 libext="$libext"
18379
18380 # Shared library suffix (normally ".so").
18381 shrext_cmds='$shrext_cmds'
18382
18383 # Executable file suffix (normally "").
18384 exeext="$exeext"
18385
18386 # Additional compiler flags for building library objects.
18387 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18388 pic_mode=$pic_mode
18389
18390 # What is the maximum length of a command?
18391 max_cmd_len=$lt_cv_sys_max_cmd_len
18392
18393 # Does compiler simultaneously support -c and -o options?
18394 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18395
18396 # Must we lock files when doing compilation?
18397 need_locks=$lt_need_locks
18398
18399 # Do we need the lib prefix for modules?
18400 need_lib_prefix=$need_lib_prefix
18401
18402 # Do we need a version for libraries?
18403 need_version=$need_version
18404
18405 # Whether dlopen is supported.
18406 dlopen_support=$enable_dlopen
18407
18408 # Whether dlopen of programs is supported.
18409 dlopen_self=$enable_dlopen_self
18410
18411 # Whether dlopen of statically linked programs is supported.
18412 dlopen_self_static=$enable_dlopen_self_static
18413
18414 # Compiler flag to prevent dynamic linking.
18415 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18416
18417 # Compiler flag to turn off builtin functions.
18418 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18419
18420 # Compiler flag to allow reflexive dlopens.
18421 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18422
18423 # Compiler flag to generate shared objects directly from archives.
18424 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18425
18426 # Compiler flag to generate thread-safe objects.
18427 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18428
18429 # Library versioning type.
18430 version_type=$version_type
18431
18432 # Format of library name prefix.
18433 libname_spec=$lt_libname_spec
18434
18435 # List of archive names.  First name is the real one, the rest are links.
18436 # The last name is the one that the linker finds with -lNAME.
18437 library_names_spec=$lt_library_names_spec
18438
18439 # The coded name of the library, if different from the real name.
18440 soname_spec=$lt_soname_spec
18441
18442 # Commands used to build and install an old-style archive.
18443 RANLIB=$lt_RANLIB
18444 old_archive_cmds=$lt_old_archive_cmds_GCJ
18445 old_postinstall_cmds=$lt_old_postinstall_cmds
18446 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18447
18448 # Create an old-style archive from a shared archive.
18449 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18450
18451 # Create a temporary old-style archive to link instead of a shared archive.
18452 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18453
18454 # Commands used to build and install a shared archive.
18455 archive_cmds=$lt_archive_cmds_GCJ
18456 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18457 postinstall_cmds=$lt_postinstall_cmds
18458 postuninstall_cmds=$lt_postuninstall_cmds
18459
18460 # Commands used to build a loadable module (assumed same as above if empty)
18461 module_cmds=$lt_module_cmds_GCJ
18462 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18463
18464 # Commands to strip libraries.
18465 old_striplib=$lt_old_striplib
18466 striplib=$lt_striplib
18467
18468 # Dependencies to place before the objects being linked to create a
18469 # shared library.
18470 predep_objects=$lt_predep_objects_GCJ
18471
18472 # Dependencies to place after the objects being linked to create a
18473 # shared library.
18474 postdep_objects=$lt_postdep_objects_GCJ
18475
18476 # Dependencies to place before the objects being linked to create a
18477 # shared library.
18478 predeps=$lt_predeps_GCJ
18479
18480 # Dependencies to place after the objects being linked to create a
18481 # shared library.
18482 postdeps=$lt_postdeps_GCJ
18483
18484 # The library search path used internally by the compiler when linking
18485 # a shared library.
18486 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18487
18488 # Method to check whether dependent libraries are shared objects.
18489 deplibs_check_method=$lt_deplibs_check_method
18490
18491 # Command to use when deplibs_check_method == file_magic.
18492 file_magic_cmd=$lt_file_magic_cmd
18493
18494 # Flag that allows shared libraries with undefined symbols to be built.
18495 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18496
18497 # Flag that forces no undefined symbols.
18498 no_undefined_flag=$lt_no_undefined_flag_GCJ
18499
18500 # Commands used to finish a libtool library installation in a directory.
18501 finish_cmds=$lt_finish_cmds
18502
18503 # Same as above, but a single script fragment to be evaled but not shown.
18504 finish_eval=$lt_finish_eval
18505
18506 # Take the output of nm and produce a listing of raw symbols and C names.
18507 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18508
18509 # Transform the output of nm in a proper C declaration
18510 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18511
18512 # Transform the output of nm in a C name address pair
18513 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18514
18515 # This is the shared library runtime path variable.
18516 runpath_var=$runpath_var
18517
18518 # This is the shared library path variable.
18519 shlibpath_var=$shlibpath_var
18520
18521 # Is shlibpath searched before the hard-coded library search path?
18522 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18523
18524 # How to hardcode a shared library path into an executable.
18525 hardcode_action=$hardcode_action_GCJ
18526
18527 # Whether we should hardcode library paths into libraries.
18528 hardcode_into_libs=$hardcode_into_libs
18529
18530 # Flag to hardcode \$libdir into a binary during linking.
18531 # This must work even if \$libdir does not exist.
18532 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18533
18534 # If ld is used when linking, flag to hardcode \$libdir into
18535 # a binary during linking. This must work even if \$libdir does
18536 # not exist.
18537 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18538
18539 # Whether we need a single -rpath flag with a separated argument.
18540 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18541
18542 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18543 # resulting binary.
18544 hardcode_direct=$hardcode_direct_GCJ
18545
18546 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18547 # resulting binary.
18548 hardcode_minus_L=$hardcode_minus_L_GCJ
18549
18550 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18551 # the resulting binary.
18552 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18553
18554 # Set to yes if building a shared library automatically hardcodes DIR into the library
18555 # and all subsequent libraries and executables linked against it.
18556 hardcode_automatic=$hardcode_automatic_GCJ
18557
18558 # Variables whose values should be saved in libtool wrapper scripts and
18559 # restored at relink time.
18560 variables_saved_for_relink="$variables_saved_for_relink"
18561
18562 # Whether libtool must link a program against all its dependency libraries.
18563 link_all_deplibs=$link_all_deplibs_GCJ
18564
18565 # Compile-time system search path for libraries
18566 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18567
18568 # Run-time system search path for libraries
18569 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18570
18571 # Fix the shell variable \$srcfile for the compiler.
18572 fix_srcfile_path="$fix_srcfile_path_GCJ"
18573
18574 # Set to yes if exported symbols are required.
18575 always_export_symbols=$always_export_symbols_GCJ
18576
18577 # The commands to list exported symbols.
18578 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18579
18580 # The commands to extract the exported symbol list from a shared archive.
18581 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18582
18583 # Symbols that should not be listed in the preloaded symbols.
18584 exclude_expsyms=$lt_exclude_expsyms_GCJ
18585
18586 # Symbols that must always be exported.
18587 include_expsyms=$lt_include_expsyms_GCJ
18588
18589 # ### END LIBTOOL TAG CONFIG: $tagname
18590
18591 __EOF__
18592
18593
18594 else
18595   # If there is no Makefile yet, we rely on a make rule to execute
18596   # `config.status --recheck' to rerun these tests and create the
18597   # libtool script then.
18598   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18599   if test -f "$ltmain_in"; then
18600     test -f Makefile && make "$ltmain"
18601   fi
18602 fi
18603
18604
18605 ac_ext=c
18606 ac_cpp='$CPP $CPPFLAGS'
18607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18610
18611 CC="$lt_save_CC"
18612
18613         else
18614           tagname=""
18615         fi
18616         ;;
18617
18618       RC)
18619
18620
18621 # Source file extension for RC test sources.
18622 ac_ext=rc
18623
18624 # Object file extension for compiled RC test sources.
18625 objext=o
18626 objext_RC=$objext
18627
18628 # Code to be used in simple compile tests
18629 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18630
18631 # Code to be used in simple link tests
18632 lt_simple_link_test_code="$lt_simple_compile_test_code"
18633
18634 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18635
18636 # If no C compiler was specified, use CC.
18637 LTCC=${LTCC-"$CC"}
18638
18639 # If no C compiler flags were specified, use CFLAGS.
18640 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18641
18642 # Allow CC to be a program name with arguments.
18643 compiler=$CC
18644
18645
18646 # save warnings/boilerplate of simple test code
18647 ac_outfile=conftest.$ac_objext
18648 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18649 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18650 _lt_compiler_boilerplate=`cat conftest.err`
18651 $rm conftest*
18652
18653 ac_outfile=conftest.$ac_objext
18654 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18655 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18656 _lt_linker_boilerplate=`cat conftest.err`
18657 $rm conftest*
18658
18659
18660 # Allow CC to be a program name with arguments.
18661 lt_save_CC="$CC"
18662 CC=${RC-"windres"}
18663 compiler=$CC
18664 compiler_RC=$CC
18665 for cc_temp in $compiler""; do
18666   case $cc_temp in
18667     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18668     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18669     \-*) ;;
18670     *) break;;
18671   esac
18672 done
18673 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18674
18675 lt_cv_prog_compiler_c_o_RC=yes
18676
18677 # The else clause should only fire when bootstrapping the
18678 # libtool distribution, otherwise you forgot to ship ltmain.sh
18679 # with your package, and you will get complaints that there are
18680 # no rules to generate ltmain.sh.
18681 if test -f "$ltmain"; then
18682   # See if we are running on zsh, and set the options which allow our commands through
18683   # without removal of \ escapes.
18684   if test -n "${ZSH_VERSION+set}" ; then
18685     setopt NO_GLOB_SUBST
18686   fi
18687   # Now quote all the things that may contain metacharacters while being
18688   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18689   # variables and quote the copies for generation of the libtool script.
18690   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18691     SED SHELL STRIP \
18692     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18693     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18694     deplibs_check_method reload_flag reload_cmds need_locks \
18695     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18696     lt_cv_sys_global_symbol_to_c_name_address \
18697     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18698     old_postinstall_cmds old_postuninstall_cmds \
18699     compiler_RC \
18700     CC_RC \
18701     LD_RC \
18702     lt_prog_compiler_wl_RC \
18703     lt_prog_compiler_pic_RC \
18704     lt_prog_compiler_static_RC \
18705     lt_prog_compiler_no_builtin_flag_RC \
18706     export_dynamic_flag_spec_RC \
18707     thread_safe_flag_spec_RC \
18708     whole_archive_flag_spec_RC \
18709     enable_shared_with_static_runtimes_RC \
18710     old_archive_cmds_RC \
18711     old_archive_from_new_cmds_RC \
18712     predep_objects_RC \
18713     postdep_objects_RC \
18714     predeps_RC \
18715     postdeps_RC \
18716     compiler_lib_search_path_RC \
18717     archive_cmds_RC \
18718     archive_expsym_cmds_RC \
18719     postinstall_cmds_RC \
18720     postuninstall_cmds_RC \
18721     old_archive_from_expsyms_cmds_RC \
18722     allow_undefined_flag_RC \
18723     no_undefined_flag_RC \
18724     export_symbols_cmds_RC \
18725     hardcode_libdir_flag_spec_RC \
18726     hardcode_libdir_flag_spec_ld_RC \
18727     hardcode_libdir_separator_RC \
18728     hardcode_automatic_RC \
18729     module_cmds_RC \
18730     module_expsym_cmds_RC \
18731     lt_cv_prog_compiler_c_o_RC \
18732     exclude_expsyms_RC \
18733     include_expsyms_RC; do
18734
18735     case $var in
18736     old_archive_cmds_RC | \
18737     old_archive_from_new_cmds_RC | \
18738     archive_cmds_RC | \
18739     archive_expsym_cmds_RC | \
18740     module_cmds_RC | \
18741     module_expsym_cmds_RC | \
18742     old_archive_from_expsyms_cmds_RC | \
18743     export_symbols_cmds_RC | \
18744     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18745     postinstall_cmds | postuninstall_cmds | \
18746     old_postinstall_cmds | old_postuninstall_cmds | \
18747     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18748       # Double-quote double-evaled strings.
18749       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18750       ;;
18751     *)
18752       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18753       ;;
18754     esac
18755   done
18756
18757   case $lt_echo in
18758   *'\$0 --fallback-echo"')
18759     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18760     ;;
18761   esac
18762
18763 cfgfile="$ofile"
18764
18765   cat <<__EOF__ >> "$cfgfile"
18766 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18767
18768 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18769
18770 # Shell to use when invoking shell scripts.
18771 SHELL=$lt_SHELL
18772
18773 # Whether or not to build shared libraries.
18774 build_libtool_libs=$enable_shared
18775
18776 # Whether or not to build static libraries.
18777 build_old_libs=$enable_static
18778
18779 # Whether or not to add -lc for building shared libraries.
18780 build_libtool_need_lc=$archive_cmds_need_lc_RC
18781
18782 # Whether or not to disallow shared libs when runtime libs are static
18783 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18784
18785 # Whether or not to optimize for fast installation.
18786 fast_install=$enable_fast_install
18787
18788 # The host system.
18789 host_alias=$host_alias
18790 host=$host
18791 host_os=$host_os
18792
18793 # The build system.
18794 build_alias=$build_alias
18795 build=$build
18796 build_os=$build_os
18797
18798 # An echo program that does not interpret backslashes.
18799 echo=$lt_echo
18800
18801 # The archiver.
18802 AR=$lt_AR
18803 AR_FLAGS=$lt_AR_FLAGS
18804
18805 # A C compiler.
18806 LTCC=$lt_LTCC
18807
18808 # LTCC compiler flags.
18809 LTCFLAGS=$lt_LTCFLAGS
18810
18811 # A language-specific compiler.
18812 CC=$lt_compiler_RC
18813
18814 # Is the compiler the GNU C compiler?
18815 with_gcc=$GCC_RC
18816
18817 # An ERE matcher.
18818 EGREP=$lt_EGREP
18819
18820 # The linker used to build libraries.
18821 LD=$lt_LD_RC
18822
18823 # Whether we need hard or soft links.
18824 LN_S=$lt_LN_S
18825
18826 # A BSD-compatible nm program.
18827 NM=$lt_NM
18828
18829 # A symbol stripping program
18830 STRIP=$lt_STRIP
18831
18832 # Used to examine libraries when file_magic_cmd begins "file"
18833 MAGIC_CMD=$MAGIC_CMD
18834
18835 # Used on cygwin: DLL creation program.
18836 DLLTOOL="$DLLTOOL"
18837
18838 # Used on cygwin: object dumper.
18839 OBJDUMP="$OBJDUMP"
18840
18841 # Used on cygwin: assembler.
18842 AS="$AS"
18843
18844 # The name of the directory that contains temporary libtool files.
18845 objdir=$objdir
18846
18847 # How to create reloadable object files.
18848 reload_flag=$lt_reload_flag
18849 reload_cmds=$lt_reload_cmds
18850
18851 # How to pass a linker flag through the compiler.
18852 wl=$lt_lt_prog_compiler_wl_RC
18853
18854 # Object file suffix (normally "o").
18855 objext="$ac_objext"
18856
18857 # Old archive suffix (normally "a").
18858 libext="$libext"
18859
18860 # Shared library suffix (normally ".so").
18861 shrext_cmds='$shrext_cmds'
18862
18863 # Executable file suffix (normally "").
18864 exeext="$exeext"
18865
18866 # Additional compiler flags for building library objects.
18867 pic_flag=$lt_lt_prog_compiler_pic_RC
18868 pic_mode=$pic_mode
18869
18870 # What is the maximum length of a command?
18871 max_cmd_len=$lt_cv_sys_max_cmd_len
18872
18873 # Does compiler simultaneously support -c and -o options?
18874 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18875
18876 # Must we lock files when doing compilation?
18877 need_locks=$lt_need_locks
18878
18879 # Do we need the lib prefix for modules?
18880 need_lib_prefix=$need_lib_prefix
18881
18882 # Do we need a version for libraries?
18883 need_version=$need_version
18884
18885 # Whether dlopen is supported.
18886 dlopen_support=$enable_dlopen
18887
18888 # Whether dlopen of programs is supported.
18889 dlopen_self=$enable_dlopen_self
18890
18891 # Whether dlopen of statically linked programs is supported.
18892 dlopen_self_static=$enable_dlopen_self_static
18893
18894 # Compiler flag to prevent dynamic linking.
18895 link_static_flag=$lt_lt_prog_compiler_static_RC
18896
18897 # Compiler flag to turn off builtin functions.
18898 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18899
18900 # Compiler flag to allow reflexive dlopens.
18901 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18902
18903 # Compiler flag to generate shared objects directly from archives.
18904 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18905
18906 # Compiler flag to generate thread-safe objects.
18907 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18908
18909 # Library versioning type.
18910 version_type=$version_type
18911
18912 # Format of library name prefix.
18913 libname_spec=$lt_libname_spec
18914
18915 # List of archive names.  First name is the real one, the rest are links.
18916 # The last name is the one that the linker finds with -lNAME.
18917 library_names_spec=$lt_library_names_spec
18918
18919 # The coded name of the library, if different from the real name.
18920 soname_spec=$lt_soname_spec
18921
18922 # Commands used to build and install an old-style archive.
18923 RANLIB=$lt_RANLIB
18924 old_archive_cmds=$lt_old_archive_cmds_RC
18925 old_postinstall_cmds=$lt_old_postinstall_cmds
18926 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18927
18928 # Create an old-style archive from a shared archive.
18929 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18930
18931 # Create a temporary old-style archive to link instead of a shared archive.
18932 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18933
18934 # Commands used to build and install a shared archive.
18935 archive_cmds=$lt_archive_cmds_RC
18936 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18937 postinstall_cmds=$lt_postinstall_cmds
18938 postuninstall_cmds=$lt_postuninstall_cmds
18939
18940 # Commands used to build a loadable module (assumed same as above if empty)
18941 module_cmds=$lt_module_cmds_RC
18942 module_expsym_cmds=$lt_module_expsym_cmds_RC
18943
18944 # Commands to strip libraries.
18945 old_striplib=$lt_old_striplib
18946 striplib=$lt_striplib
18947
18948 # Dependencies to place before the objects being linked to create a
18949 # shared library.
18950 predep_objects=$lt_predep_objects_RC
18951
18952 # Dependencies to place after the objects being linked to create a
18953 # shared library.
18954 postdep_objects=$lt_postdep_objects_RC
18955
18956 # Dependencies to place before the objects being linked to create a
18957 # shared library.
18958 predeps=$lt_predeps_RC
18959
18960 # Dependencies to place after the objects being linked to create a
18961 # shared library.
18962 postdeps=$lt_postdeps_RC
18963
18964 # The library search path used internally by the compiler when linking
18965 # a shared library.
18966 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18967
18968 # Method to check whether dependent libraries are shared objects.
18969 deplibs_check_method=$lt_deplibs_check_method
18970
18971 # Command to use when deplibs_check_method == file_magic.
18972 file_magic_cmd=$lt_file_magic_cmd
18973
18974 # Flag that allows shared libraries with undefined symbols to be built.
18975 allow_undefined_flag=$lt_allow_undefined_flag_RC
18976
18977 # Flag that forces no undefined symbols.
18978 no_undefined_flag=$lt_no_undefined_flag_RC
18979
18980 # Commands used to finish a libtool library installation in a directory.
18981 finish_cmds=$lt_finish_cmds
18982
18983 # Same as above, but a single script fragment to be evaled but not shown.
18984 finish_eval=$lt_finish_eval
18985
18986 # Take the output of nm and produce a listing of raw symbols and C names.
18987 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18988
18989 # Transform the output of nm in a proper C declaration
18990 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18991
18992 # Transform the output of nm in a C name address pair
18993 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18994
18995 # This is the shared library runtime path variable.
18996 runpath_var=$runpath_var
18997
18998 # This is the shared library path variable.
18999 shlibpath_var=$shlibpath_var
19000
19001 # Is shlibpath searched before the hard-coded library search path?
19002 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19003
19004 # How to hardcode a shared library path into an executable.
19005 hardcode_action=$hardcode_action_RC
19006
19007 # Whether we should hardcode library paths into libraries.
19008 hardcode_into_libs=$hardcode_into_libs
19009
19010 # Flag to hardcode \$libdir into a binary during linking.
19011 # This must work even if \$libdir does not exist.
19012 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19013
19014 # If ld is used when linking, flag to hardcode \$libdir into
19015 # a binary during linking. This must work even if \$libdir does
19016 # not exist.
19017 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19018
19019 # Whether we need a single -rpath flag with a separated argument.
19020 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19021
19022 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19023 # resulting binary.
19024 hardcode_direct=$hardcode_direct_RC
19025
19026 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19027 # resulting binary.
19028 hardcode_minus_L=$hardcode_minus_L_RC
19029
19030 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19031 # the resulting binary.
19032 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19033
19034 # Set to yes if building a shared library automatically hardcodes DIR into the library
19035 # and all subsequent libraries and executables linked against it.
19036 hardcode_automatic=$hardcode_automatic_RC
19037
19038 # Variables whose values should be saved in libtool wrapper scripts and
19039 # restored at relink time.
19040 variables_saved_for_relink="$variables_saved_for_relink"
19041
19042 # Whether libtool must link a program against all its dependency libraries.
19043 link_all_deplibs=$link_all_deplibs_RC
19044
19045 # Compile-time system search path for libraries
19046 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19047
19048 # Run-time system search path for libraries
19049 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19050
19051 # Fix the shell variable \$srcfile for the compiler.
19052 fix_srcfile_path="$fix_srcfile_path_RC"
19053
19054 # Set to yes if exported symbols are required.
19055 always_export_symbols=$always_export_symbols_RC
19056
19057 # The commands to list exported symbols.
19058 export_symbols_cmds=$lt_export_symbols_cmds_RC
19059
19060 # The commands to extract the exported symbol list from a shared archive.
19061 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19062
19063 # Symbols that should not be listed in the preloaded symbols.
19064 exclude_expsyms=$lt_exclude_expsyms_RC
19065
19066 # Symbols that must always be exported.
19067 include_expsyms=$lt_include_expsyms_RC
19068
19069 # ### END LIBTOOL TAG CONFIG: $tagname
19070
19071 __EOF__
19072
19073
19074 else
19075   # If there is no Makefile yet, we rely on a make rule to execute
19076   # `config.status --recheck' to rerun these tests and create the
19077   # libtool script then.
19078   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19079   if test -f "$ltmain_in"; then
19080     test -f Makefile && make "$ltmain"
19081   fi
19082 fi
19083
19084
19085 ac_ext=c
19086 ac_cpp='$CPP $CPPFLAGS'
19087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19090
19091 CC="$lt_save_CC"
19092
19093         ;;
19094
19095       *)
19096         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19097 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19098    { (exit 1); exit 1; }; }
19099         ;;
19100       esac
19101
19102       # Append the new tag name to the list of available tags.
19103       if test -n "$tagname" ; then
19104       available_tags="$available_tags $tagname"
19105     fi
19106     fi
19107   done
19108   IFS="$lt_save_ifs"
19109
19110   # Now substitute the updated list of available tags.
19111   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19112     mv "${ofile}T" "$ofile"
19113     chmod +x "$ofile"
19114   else
19115     rm -f "${ofile}T"
19116     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19117 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19118    { (exit 1); exit 1; }; }
19119   fi
19120 fi
19121
19122
19123
19124 # This can be used to rebuild libtool when needed
19125 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19126
19127 # Always use our own libtool.
19128 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19129
19130 # Prevent multiple expansion
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153 # Check whether --with-transport-agent was given.
19154 if test "${with_transport_agent+set}" = set; then
19155   withval=$with_transport_agent; transport_agent="$withval"
19156 else
19157   transport_agent="no"
19158 fi
19159
19160
19161
19162 if test "x$transport_agent" = "xno"; then
19163     case $target in
19164         *apple-darwin*)  use_mac_ta="yes" ;;
19165         *) use_curl_ta="yes" ;;
19166     esac
19167 else
19168     case $transport_agent in
19169         curl)  use_curl_ta="yes" ;;
19170         mac)  use_mac_ta="yes" ;;
19171         mozilla)  use_mozilla_ta="yes" ;;
19172         *) { { echo "$as_me:$LINENO: error: you must choose one of the following transport agents: curl/mac/mozilla" >&5
19173 echo "$as_me: error: you must choose one of the following transport agents: curl/mac/mozilla" >&2;}
19174    { (exit 1); exit 1; }; } ;;
19175     esac
19176 fi
19177
19178 if test "x$use_curl_ta" = "xyes"; then
19179     { echo "$as_me:$LINENO: checking for libcurl" >&5
19180 echo $ECHO_N "checking for libcurl... $ECHO_C" >&6; }
19181     if CURL_LDFLAGS=`sh -c 'curl-config --libs' 2>&5` && \
19182        CURL_CFLAGS=`sh -c 'curl-config --cflags' 2>&5`; then
19183             { echo "$as_me:$LINENO: result: found" >&5
19184 echo "${ECHO_T}found" >&6; }
19185
19186
19187             CPPFLAGS="-DFUN_TRANSPORT_AGENT=FUN_CURL_TRANSPORT_AGENT $CPPFLAGS"
19188     else
19189             { echo "$as_me:$LINENO: result: missing" >&5
19190 echo "${ECHO_T}missing" >&6; }
19191             { { echo "$as_me:$LINENO: error: libcurl is required, check that its development package is installed and curl-config is in your PATH" >&5
19192 echo "$as_me: error: libcurl is required, check that its development package is installed and curl-config is in your PATH" >&2;}
19193    { (exit 1); exit 1; }; }
19194     fi
19195 fi
19196
19197 if test "x$use_mac_ta" = "xyes"; then
19198     CURL_LDFLAGS="-framework CoreServices"
19199
19200     CPPFLAGS="-DFUN_TRANSPORT_AGENT=FUN_MAC_TRANSPORT_AGENT $CPPFLAGS"
19201 fi
19202
19203 if test "x$use_mozilla_ta" = "xyes"; then
19204
19205
19206 # Check whether --with-mozilla-sdk-path was given.
19207 if test "${with_mozilla_sdk_path+set}" = set; then
19208   withval=$with_mozilla_sdk_path; mozilla_sdk_path="$withval"
19209 else
19210   { { echo "$as_me:$LINENO: error: Mozilla SDK is required, you must specify its path using --with-mozilla-sdk-path=DIR" >&5
19211 echo "$as_me: error: Mozilla SDK is required, you must specify its path using --with-mozilla-sdk-path=DIR" >&2;}
19212    { (exit 1); exit 1; }; }
19213 fi
19214
19215
19216         CPPFLAGS="-I$mozilla_sdk_path/include -I$mozilla_sdk_path/include/xpcom -I$mozilla_sdk_path/include/nspr -I$mozilla_sdk_path/include/string -I$mozilla_sdk_path/include/content $CPPFLAGS"
19217         LDFLAGS="-L$mozilla_sdk_path/lib -lxpcomglue_s -lxpcom -lnspr4 -lplds4 -lplc4 $LDFLAGS"
19218
19219         { echo "$as_me:$LINENO: checking for mozilla headers" >&5
19220 echo $ECHO_N "checking for mozilla headers... $ECHO_C" >&6; }
19221
19222 for ac_header in mozilla-config.h
19223 do
19224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19226   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19229   echo $ECHO_N "(cached) $ECHO_C" >&6
19230 fi
19231 ac_res=`eval echo '${'$as_ac_Header'}'`
19232                { echo "$as_me:$LINENO: result: $ac_res" >&5
19233 echo "${ECHO_T}$ac_res" >&6; }
19234 else
19235   # Is the header compilable?
19236 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19238 cat >conftest.$ac_ext <<_ACEOF
19239 /* confdefs.h.  */
19240 _ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h.  */
19244 $ac_includes_default
19245 #include <$ac_header>
19246 _ACEOF
19247 rm -f conftest.$ac_objext
19248 if { (ac_try="$ac_compile"
19249 case "(($ac_try" in
19250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251   *) ac_try_echo=$ac_try;;
19252 esac
19253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19254   (eval "$ac_compile") 2>conftest.er1
19255   ac_status=$?
19256   grep -v '^ *+' conftest.er1 >conftest.err
19257   rm -f conftest.er1
19258   cat conftest.err >&5
19259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260   (exit $ac_status); } && {
19261          test -z "$ac_c_werror_flag" ||
19262          test ! -s conftest.err
19263        } && test -s conftest.$ac_objext; then
19264   ac_header_compiler=yes
19265 else
19266   echo "$as_me: failed program was:" >&5
19267 sed 's/^/| /' conftest.$ac_ext >&5
19268
19269         ac_header_compiler=no
19270 fi
19271
19272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19274 echo "${ECHO_T}$ac_header_compiler" >&6; }
19275
19276 # Is the header present?
19277 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19279 cat >conftest.$ac_ext <<_ACEOF
19280 /* confdefs.h.  */
19281 _ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h.  */
19285 #include <$ac_header>
19286 _ACEOF
19287 if { (ac_try="$ac_cpp conftest.$ac_ext"
19288 case "(($ac_try" in
19289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290   *) ac_try_echo=$ac_try;;
19291 esac
19292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19293   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19294   ac_status=$?
19295   grep -v '^ *+' conftest.er1 >conftest.err
19296   rm -f conftest.er1
19297   cat conftest.err >&5
19298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299   (exit $ac_status); } >/dev/null && {
19300          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19301          test ! -s conftest.err
19302        }; then
19303   ac_header_preproc=yes
19304 else
19305   echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19307
19308   ac_header_preproc=no
19309 fi
19310
19311 rm -f conftest.err conftest.$ac_ext
19312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19313 echo "${ECHO_T}$ac_header_preproc" >&6; }
19314
19315 # So?  What about this header?
19316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19317   yes:no: )
19318     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19320     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19322     ac_header_preproc=yes
19323     ;;
19324   no:yes:* )
19325     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19327     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19328 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19329     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19330 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19331     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19332 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19333     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19335     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19336 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19337
19338     ;;
19339 esac
19340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19343   echo $ECHO_N "(cached) $ECHO_C" >&6
19344 else
19345   eval "$as_ac_Header=\$ac_header_preproc"
19346 fi
19347 ac_res=`eval echo '${'$as_ac_Header'}'`
19348                { echo "$as_me:$LINENO: result: $ac_res" >&5
19349 echo "${ECHO_T}$ac_res" >&6; }
19350
19351 fi
19352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19353   cat >>confdefs.h <<_ACEOF
19354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19355 _ACEOF
19356
19357 else
19358   { { echo "$as_me:$LINENO: error: Mozilla headers not found, you must specify the Mozilla SDK path using --with-mozilla-sdk-path=DIR" >&5
19359 echo "$as_me: error: Mozilla headers not found, you must specify the Mozilla SDK path using --with-mozilla-sdk-path=DIR" >&2;}
19360    { (exit 1); exit 1; }; }
19361 fi
19362
19363 done
19364
19365
19366         CPPFLAGS="-DFUN_TRANSPORT_AGENT=FUN_MOZ_TRANSPORT_AGENT $CPPFLAGS"
19367 fi
19368
19369
19370 for ac_header in time.h
19371 do
19372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19374   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19377   echo $ECHO_N "(cached) $ECHO_C" >&6
19378 fi
19379 ac_res=`eval echo '${'$as_ac_Header'}'`
19380                { echo "$as_me:$LINENO: result: $ac_res" >&5
19381 echo "${ECHO_T}$ac_res" >&6; }
19382 else
19383   # Is the header compilable?
19384 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19386 cat >conftest.$ac_ext <<_ACEOF
19387 /* confdefs.h.  */
19388 _ACEOF
19389 cat confdefs.h >>conftest.$ac_ext
19390 cat >>conftest.$ac_ext <<_ACEOF
19391 /* end confdefs.h.  */
19392 $ac_includes_default
19393 #include <$ac_header>
19394 _ACEOF
19395 rm -f conftest.$ac_objext
19396 if { (ac_try="$ac_compile"
19397 case "(($ac_try" in
19398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399   *) ac_try_echo=$ac_try;;
19400 esac
19401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402   (eval "$ac_compile") 2>conftest.er1
19403   ac_status=$?
19404   grep -v '^ *+' conftest.er1 >conftest.err
19405   rm -f conftest.er1
19406   cat conftest.err >&5
19407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408   (exit $ac_status); } && {
19409          test -z "$ac_c_werror_flag" ||
19410          test ! -s conftest.err
19411        } && test -s conftest.$ac_objext; then
19412   ac_header_compiler=yes
19413 else
19414   echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.$ac_ext >&5
19416
19417         ac_header_compiler=no
19418 fi
19419
19420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19422 echo "${ECHO_T}$ac_header_compiler" >&6; }
19423
19424 # Is the header present?
19425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19427 cat >conftest.$ac_ext <<_ACEOF
19428 /* confdefs.h.  */
19429 _ACEOF
19430 cat confdefs.h >>conftest.$ac_ext
19431 cat >>conftest.$ac_ext <<_ACEOF
19432 /* end confdefs.h.  */
19433 #include <$ac_header>
19434 _ACEOF
19435 if { (ac_try="$ac_cpp conftest.$ac_ext"
19436 case "(($ac_try" in
19437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19438   *) ac_try_echo=$ac_try;;
19439 esac
19440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19441   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19442   ac_status=$?
19443   grep -v '^ *+' conftest.er1 >conftest.err
19444   rm -f conftest.er1
19445   cat conftest.err >&5
19446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447   (exit $ac_status); } >/dev/null && {
19448          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19449          test ! -s conftest.err
19450        }; then
19451   ac_header_preproc=yes
19452 else
19453   echo "$as_me: failed program was:" >&5
19454 sed 's/^/| /' conftest.$ac_ext >&5
19455
19456   ac_header_preproc=no
19457 fi
19458
19459 rm -f conftest.err conftest.$ac_ext
19460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19461 echo "${ECHO_T}$ac_header_preproc" >&6; }
19462
19463 # So?  What about this header?
19464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19465   yes:no: )
19466     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19470     ac_header_preproc=yes
19471     ;;
19472   no:yes:* )
19473     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19475     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19476 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19477     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19479     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19480 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19483     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19485
19486     ;;
19487 esac
19488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19491   echo $ECHO_N "(cached) $ECHO_C" >&6
19492 else
19493   eval "$as_ac_Header=\$ac_header_preproc"
19494 fi
19495 ac_res=`eval echo '${'$as_ac_Header'}'`
19496                { echo "$as_me:$LINENO: result: $ac_res" >&5
19497 echo "${ECHO_T}$ac_res" >&6; }
19498
19499 fi
19500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19501   cat >>confdefs.h <<_ACEOF
19502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19503 _ACEOF
19504
19505 fi
19506
19507 done
19508
19509
19510 # Check whether --enable-unit-tests was given.
19511 if test "${enable_unit_tests+set}" = set; then
19512   enableval=$enable_unit_tests; enable_unit_tests="$enableval"
19513 else
19514   enable_unit_tests="no"
19515 fi
19516
19517 # Check whether --enable-integration-tests was given.
19518 if test "${enable_integration_tests+set}" = set; then
19519   enableval=$enable_integration_tests; enable_integration_tests="$enableval"
19520 else
19521   enable_integration_tests="no"
19522 fi
19523
19524 # Check whether --enable-assert was given.
19525 if test "${enable_assert+set}" = set; then
19526   enableval=$enable_assert; enable_assert="$enableval"
19527 else
19528   enable_assert="no"
19529 fi
19530
19531
19532 if test $enable_assert == "no"; then
19533
19534 cat >>confdefs.h <<\_ACEOF
19535 #define NDEBUG 1
19536 _ACEOF
19537
19538 fi
19539
19540 # Optionally use wchar_t for unicode strings
19541 # Check whether --enable-wchar was given.
19542 if test "${enable_wchar+set}" = set; then
19543   enableval=$enable_wchar; enable_wchar="$enableval"
19544 else
19545   enable_wchar="no"
19546 fi
19547
19548
19549 if test $enable_wchar == "yes"; then
19550
19551 cat >>confdefs.h <<\_ACEOF
19552 #define USE_WCHAR 1
19553 _ACEOF
19554
19555
19556 for ac_header in wchar.h
19557 do
19558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19560   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19563   echo $ECHO_N "(cached) $ECHO_C" >&6
19564 fi
19565 ac_res=`eval echo '${'$as_ac_Header'}'`
19566                { echo "$as_me:$LINENO: result: $ac_res" >&5
19567 echo "${ECHO_T}$ac_res" >&6; }
19568 else
19569   # Is the header compilable?
19570 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19572 cat >conftest.$ac_ext <<_ACEOF
19573 /* confdefs.h.  */
19574 _ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h.  */
19578 $ac_includes_default
19579 #include <$ac_header>
19580 _ACEOF
19581 rm -f conftest.$ac_objext
19582 if { (ac_try="$ac_compile"
19583 case "(($ac_try" in
19584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585   *) ac_try_echo=$ac_try;;
19586 esac
19587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19588   (eval "$ac_compile") 2>conftest.er1
19589   ac_status=$?
19590   grep -v '^ *+' conftest.er1 >conftest.err
19591   rm -f conftest.er1
19592   cat conftest.err >&5
19593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594   (exit $ac_status); } && {
19595          test -z "$ac_c_werror_flag" ||
19596          test ! -s conftest.err
19597        } && test -s conftest.$ac_objext; then
19598   ac_header_compiler=yes
19599 else
19600   echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19602
19603         ac_header_compiler=no
19604 fi
19605
19606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19608 echo "${ECHO_T}$ac_header_compiler" >&6; }
19609
19610 # Is the header present?
19611 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19613 cat >conftest.$ac_ext <<_ACEOF
19614 /* confdefs.h.  */
19615 _ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h.  */
19619 #include <$ac_header>
19620 _ACEOF
19621 if { (ac_try="$ac_cpp conftest.$ac_ext"
19622 case "(($ac_try" in
19623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624   *) ac_try_echo=$ac_try;;
19625 esac
19626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19628   ac_status=$?
19629   grep -v '^ *+' conftest.er1 >conftest.err
19630   rm -f conftest.er1
19631   cat conftest.err >&5
19632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633   (exit $ac_status); } >/dev/null && {
19634          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19635          test ! -s conftest.err
19636        }; then
19637   ac_header_preproc=yes
19638 else
19639   echo "$as_me: failed program was:" >&5
19640 sed 's/^/| /' conftest.$ac_ext >&5
19641
19642   ac_header_preproc=no
19643 fi
19644
19645 rm -f conftest.err conftest.$ac_ext
19646 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19647 echo "${ECHO_T}$ac_header_preproc" >&6; }
19648
19649 # So?  What about this header?
19650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19651   yes:no: )
19652     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19654     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19656     ac_header_preproc=yes
19657     ;;
19658   no:yes:* )
19659     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19661     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19662 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19663     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19665     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19666 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19667     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19669     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19671
19672     ;;
19673 esac
19674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19677   echo $ECHO_N "(cached) $ECHO_C" >&6
19678 else
19679   eval "$as_ac_Header=\$ac_header_preproc"
19680 fi
19681 ac_res=`eval echo '${'$as_ac_Header'}'`
19682                { echo "$as_me:$LINENO: result: $ac_res" >&5
19683 echo "${ECHO_T}$ac_res" >&6; }
19684
19685 fi
19686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19687   cat >>confdefs.h <<_ACEOF
19688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19689 _ACEOF
19690
19691 fi
19692
19693 done
19694
19695 fi
19696
19697 # cppunit needed?
19698 if test $enable_unit_tests == "yes" || test $enable_integration_tests == yes; then
19699         CPPUNIT_CXXFLAGS=`cppunit-config --cflags` || { { echo "$as_me:$LINENO: error: \"cppunit-config --cflags failed - is it installed?\"" >&5
19700 echo "$as_me: error: \"cppunit-config --cflags failed - is it installed?\"" >&2;}
19701    { (exit 1); exit 1; }; }
19702         CPPUNIT_LDFLAGS=`cppunit-config --libs` || { { echo "$as_me:$LINENO: error: \"cppunit-config --libs failed - is it installed?\"" >&5
19703 echo "$as_me: error: \"cppunit-config --libs failed - is it installed?\"" >&2;}
19704    { (exit 1); exit 1; }; }
19705         CPPUNIT_TESTS=client-test
19706
19707 for ac_header in signal.h
19708 do
19709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19711   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19714   echo $ECHO_N "(cached) $ECHO_C" >&6
19715 fi
19716 ac_res=`eval echo '${'$as_ac_Header'}'`
19717                { echo "$as_me:$LINENO: result: $ac_res" >&5
19718 echo "${ECHO_T}$ac_res" >&6; }
19719 else
19720   # Is the header compilable?
19721 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19723 cat >conftest.$ac_ext <<_ACEOF
19724 /* confdefs.h.  */
19725 _ACEOF
19726 cat confdefs.h >>conftest.$ac_ext
19727 cat >>conftest.$ac_ext <<_ACEOF
19728 /* end confdefs.h.  */
19729 $ac_includes_default
19730 #include <$ac_header>
19731 _ACEOF
19732 rm -f conftest.$ac_objext
19733 if { (ac_try="$ac_compile"
19734 case "(($ac_try" in
19735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736   *) ac_try_echo=$ac_try;;
19737 esac
19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739   (eval "$ac_compile") 2>conftest.er1
19740   ac_status=$?
19741   grep -v '^ *+' conftest.er1 >conftest.err
19742   rm -f conftest.er1
19743   cat conftest.err >&5
19744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745   (exit $ac_status); } && {
19746          test -z "$ac_c_werror_flag" ||
19747          test ! -s conftest.err
19748        } && test -s conftest.$ac_objext; then
19749   ac_header_compiler=yes
19750 else
19751   echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19753
19754         ac_header_compiler=no
19755 fi
19756
19757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19758 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19759 echo "${ECHO_T}$ac_header_compiler" >&6; }
19760
19761 # Is the header present?
19762 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19763 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19764 cat >conftest.$ac_ext <<_ACEOF
19765 /* confdefs.h.  */
19766 _ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h.  */
19770 #include <$ac_header>
19771 _ACEOF
19772 if { (ac_try="$ac_cpp conftest.$ac_ext"
19773 case "(($ac_try" in
19774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775   *) ac_try_echo=$ac_try;;
19776 esac
19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19779   ac_status=$?
19780   grep -v '^ *+' conftest.er1 >conftest.err
19781   rm -f conftest.er1
19782   cat conftest.err >&5
19783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784   (exit $ac_status); } >/dev/null && {
19785          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19786          test ! -s conftest.err
19787        }; then
19788   ac_header_preproc=yes
19789 else
19790   echo "$as_me: failed program was:" >&5
19791 sed 's/^/| /' conftest.$ac_ext >&5
19792
19793   ac_header_preproc=no
19794 fi
19795
19796 rm -f conftest.err conftest.$ac_ext
19797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19798 echo "${ECHO_T}$ac_header_preproc" >&6; }
19799
19800 # So?  What about this header?
19801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19802   yes:no: )
19803     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19807     ac_header_preproc=yes
19808     ;;
19809   no:yes:* )
19810     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19812     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19813 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19814     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19816     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19817 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19820     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19822
19823     ;;
19824 esac
19825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19828   echo $ECHO_N "(cached) $ECHO_C" >&6
19829 else
19830   eval "$as_ac_Header=\$ac_header_preproc"
19831 fi
19832 ac_res=`eval echo '${'$as_ac_Header'}'`
19833                { echo "$as_me:$LINENO: result: $ac_res" >&5
19834 echo "${ECHO_T}$ac_res" >&6; }
19835
19836 fi
19837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19838   cat >>confdefs.h <<_ACEOF
19839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19840 _ACEOF
19841
19842 fi
19843
19844 done
19845
19846 fi
19847
19848
19849
19850
19851 if test $enable_unit_tests == "yes"; then
19852
19853 cat >>confdefs.h <<\_ACEOF
19854 #define ENABLE_UNIT_TESTS 1
19855 _ACEOF
19856
19857 fi
19858 if test $enable_integration_tests == "yes"; then
19859
19860 cat >>confdefs.h <<\_ACEOF
19861 #define ENABLE_INTEGRATION_TESTS 1
19862 _ACEOF
19863
19864 fi
19865
19866
19867 ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile test/Makefile"
19868
19869 cat >confcache <<\_ACEOF
19870 # This file is a shell script that caches the results of configure
19871 # tests run on this system so they can be shared between configure
19872 # scripts and configure runs, see configure's option --config-cache.
19873 # It is not useful on other systems.  If it contains results you don't
19874 # want to keep, you may remove or edit it.
19875 #
19876 # config.status only pays attention to the cache file if you give it
19877 # the --recheck option to rerun configure.
19878 #
19879 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19880 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19881 # following values.
19882
19883 _ACEOF
19884
19885 # The following way of writing the cache mishandles newlines in values,
19886 # but we know of no workaround that is simple, portable, and efficient.
19887 # So, we kill variables containing newlines.
19888 # Ultrix sh set writes to stderr and can't be redirected directly,
19889 # and sets the high bit in the cache file unless we assign to the vars.
19890 (
19891   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19892     eval ac_val=\$$ac_var
19893     case $ac_val in #(
19894     *${as_nl}*)
19895       case $ac_var in #(
19896       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19897 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19898       esac
19899       case $ac_var in #(
19900       _ | IFS | as_nl) ;; #(
19901       *) $as_unset $ac_var ;;
19902       esac ;;
19903     esac
19904   done
19905
19906   (set) 2>&1 |
19907     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19908     *${as_nl}ac_space=\ *)
19909       # `set' does not quote correctly, so add quotes (double-quote
19910       # substitution turns \\\\ into \\, and sed turns \\ into \).
19911       sed -n \
19912         "s/'/'\\\\''/g;
19913           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19914       ;; #(
19915     *)
19916       # `set' quotes correctly as required by POSIX, so do not add quotes.
19917       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19918       ;;
19919     esac |
19920     sort
19921 ) |
19922   sed '
19923      /^ac_cv_env_/b end
19924      t clear
19925      :clear
19926      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19927      t end
19928      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19929      :end' >>confcache
19930 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19931   if test -w "$cache_file"; then
19932     test "x$cache_file" != "x/dev/null" &&
19933       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19934 echo "$as_me: updating cache $cache_file" >&6;}
19935     cat confcache >$cache_file
19936   else
19937     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19938 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19939   fi
19940 fi
19941 rm -f confcache
19942
19943 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19944 # Let make expand exec_prefix.
19945 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19946
19947 DEFS=-DHAVE_CONFIG_H
19948
19949 ac_libobjs=
19950 ac_ltlibobjs=
19951 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19952   # 1. Remove the extension, and $U if already installed.
19953   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19954   ac_i=`echo "$ac_i" | sed "$ac_script"`
19955   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19956   #    will be set to the directory where LIBOBJS objects are built.
19957   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19958   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19959 done
19960 LIBOBJS=$ac_libobjs
19961
19962 LTLIBOBJS=$ac_ltlibobjs
19963
19964
19965 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19966   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19967 Usually this means the macro was only invoked conditionally." >&5
19968 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19969 Usually this means the macro was only invoked conditionally." >&2;}
19970    { (exit 1); exit 1; }; }
19971 fi
19972 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19973   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19974 Usually this means the macro was only invoked conditionally." >&5
19975 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19976 Usually this means the macro was only invoked conditionally." >&2;}
19977    { (exit 1); exit 1; }; }
19978 fi
19979 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19980   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19981 Usually this means the macro was only invoked conditionally." >&5
19982 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19983 Usually this means the macro was only invoked conditionally." >&2;}
19984    { (exit 1); exit 1; }; }
19985 fi
19986
19987 : ${CONFIG_STATUS=./config.status}
19988 ac_clean_files_save=$ac_clean_files
19989 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19990 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19991 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19992 cat >$CONFIG_STATUS <<_ACEOF
19993 #! $SHELL
19994 # Generated by $as_me.
19995 # Run this file to recreate the current configuration.
19996 # Compiler output produced by configure, useful for debugging
19997 # configure, is in config.log if it exists.
19998
19999 debug=false
20000 ac_cs_recheck=false
20001 ac_cs_silent=false
20002 SHELL=\${CONFIG_SHELL-$SHELL}
20003 _ACEOF
20004
20005 cat >>$CONFIG_STATUS <<\_ACEOF
20006 ## --------------------- ##
20007 ## M4sh Initialization.  ##
20008 ## --------------------- ##
20009
20010 # Be more Bourne compatible
20011 DUALCASE=1; export DUALCASE # for MKS sh
20012 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20013   emulate sh
20014   NULLCMD=:
20015   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20016   # is contrary to our usage.  Disable this feature.
20017   alias -g '${1+"$@"}'='"$@"'
20018   setopt NO_GLOB_SUBST
20019 else
20020   case `(set -o) 2>/dev/null` in
20021   *posix*) set -o posix ;;
20022 esac
20023
20024 fi
20025
20026
20027
20028
20029 # PATH needs CR
20030 # Avoid depending upon Character Ranges.
20031 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20032 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20033 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20034 as_cr_digits='0123456789'
20035 as_cr_alnum=$as_cr_Letters$as_cr_digits
20036
20037 # The user is always right.
20038 if test "${PATH_SEPARATOR+set}" != set; then
20039   echo "#! /bin/sh" >conf$$.sh
20040   echo  "exit 0"   >>conf$$.sh
20041   chmod +x conf$$.sh
20042   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20043     PATH_SEPARATOR=';'
20044   else
20045     PATH_SEPARATOR=:
20046   fi
20047   rm -f conf$$.sh
20048 fi
20049
20050 # Support unset when possible.
20051 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20052   as_unset=unset
20053 else
20054   as_unset=false
20055 fi
20056
20057
20058 # IFS
20059 # We need space, tab and new line, in precisely that order.  Quoting is
20060 # there to prevent editors from complaining about space-tab.
20061 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20062 # splitting by setting IFS to empty value.)
20063 as_nl='
20064 '
20065 IFS=" ""        $as_nl"
20066
20067 # Find who we are.  Look in the path if we contain no directory separator.
20068 case $0 in
20069   *[\\/]* ) as_myself=$0 ;;
20070   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20071 for as_dir in $PATH
20072 do
20073   IFS=$as_save_IFS
20074   test -z "$as_dir" && as_dir=.
20075   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20076 done
20077 IFS=$as_save_IFS
20078
20079      ;;
20080 esac
20081 # We did not find ourselves, most probably we were run as `sh COMMAND'
20082 # in which case we are not to be found in the path.
20083 if test "x$as_myself" = x; then
20084   as_myself=$0
20085 fi
20086 if test ! -f "$as_myself"; then
20087   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20088   { (exit 1); exit 1; }
20089 fi
20090
20091 # Work around bugs in pre-3.0 UWIN ksh.
20092 for as_var in ENV MAIL MAILPATH
20093 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20094 done
20095 PS1='$ '
20096 PS2='> '
20097 PS4='+ '
20098
20099 # NLS nuisances.
20100 for as_var in \
20101   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20102   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20103   LC_TELEPHONE LC_TIME
20104 do
20105   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20106     eval $as_var=C; export $as_var
20107   else
20108     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20109   fi
20110 done
20111
20112 # Required to use basename.
20113 if expr a : '\(a\)' >/dev/null 2>&1 &&
20114    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20115   as_expr=expr
20116 else
20117   as_expr=false
20118 fi
20119
20120 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20121   as_basename=basename
20122 else
20123   as_basename=false
20124 fi
20125
20126
20127 # Name of the executable.
20128 as_me=`$as_basename -- "$0" ||
20129 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20130          X"$0" : 'X\(//\)$' \| \
20131          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20132 echo X/"$0" |
20133     sed '/^.*\/\([^/][^/]*\)\/*$/{
20134             s//\1/
20135             q
20136           }
20137           /^X\/\(\/\/\)$/{
20138             s//\1/
20139             q
20140           }
20141           /^X\/\(\/\).*/{
20142             s//\1/
20143             q
20144           }
20145           s/.*/./; q'`
20146
20147 # CDPATH.
20148 $as_unset CDPATH
20149
20150
20151
20152   as_lineno_1=$LINENO
20153   as_lineno_2=$LINENO
20154   test "x$as_lineno_1" != "x$as_lineno_2" &&
20155   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20156
20157   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20158   # uniformly replaced by the line number.  The first 'sed' inserts a
20159   # line-number line after each line using $LINENO; the second 'sed'
20160   # does the real work.  The second script uses 'N' to pair each
20161   # line-number line with the line containing $LINENO, and appends
20162   # trailing '-' during substitution so that $LINENO is not a special
20163   # case at line end.
20164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20165   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20166   # E. McMahon (1931-1989) for sed's syntax.  :-)
20167   sed -n '
20168     p
20169     /[$]LINENO/=
20170   ' <$as_myself |
20171     sed '
20172       s/[$]LINENO.*/&-/
20173       t lineno
20174       b
20175       :lineno
20176       N
20177       :loop
20178       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20179       t loop
20180       s/-\n.*//
20181     ' >$as_me.lineno &&
20182   chmod +x "$as_me.lineno" ||
20183     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20184    { (exit 1); exit 1; }; }
20185
20186   # Don't try to exec as it changes $[0], causing all sort of problems
20187   # (the dirname of $[0] is not the place where we might find the
20188   # original and so on.  Autoconf is especially sensitive to this).
20189   . "./$as_me.lineno"
20190   # Exit status is that of the last command.
20191   exit
20192 }
20193
20194
20195 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20196   as_dirname=dirname
20197 else
20198   as_dirname=false
20199 fi
20200
20201 ECHO_C= ECHO_N= ECHO_T=
20202 case `echo -n x` in
20203 -n*)
20204   case `echo 'x\c'` in
20205   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20206   *)   ECHO_C='\c';;
20207   esac;;
20208 *)
20209   ECHO_N='-n';;
20210 esac
20211
20212 if expr a : '\(a\)' >/dev/null 2>&1 &&
20213    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20214   as_expr=expr
20215 else
20216   as_expr=false
20217 fi
20218
20219 rm -f conf$$ conf$$.exe conf$$.file
20220 if test -d conf$$.dir; then
20221   rm -f conf$$.dir/conf$$.file
20222 else
20223   rm -f conf$$.dir
20224   mkdir conf$$.dir
20225 fi
20226 echo >conf$$.file
20227 if ln -s conf$$.file conf$$ 2>/dev/null; then
20228   as_ln_s='ln -s'
20229   # ... but there are two gotchas:
20230   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20231   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20232   # In both cases, we have to default to `cp -p'.
20233   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20234     as_ln_s='cp -p'
20235 elif ln conf$$.file conf$$ 2>/dev/null; then
20236   as_ln_s=ln
20237 else
20238   as_ln_s='cp -p'
20239 fi
20240 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20241 rmdir conf$$.dir 2>/dev/null
20242
20243 if mkdir -p . 2>/dev/null; then
20244   as_mkdir_p=:
20245 else
20246   test -d ./-p && rmdir ./-p
20247   as_mkdir_p=false
20248 fi
20249
20250 if test -x / >/dev/null 2>&1; then
20251   as_test_x='test -x'
20252 else
20253   if ls -dL / >/dev/null 2>&1; then
20254     as_ls_L_option=L
20255   else
20256     as_ls_L_option=
20257   fi
20258   as_test_x='
20259     eval sh -c '\''
20260       if test -d "$1"; then
20261         test -d "$1/.";
20262       else
20263         case $1 in
20264         -*)set "./$1";;
20265         esac;
20266         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20267         ???[sx]*):;;*)false;;esac;fi
20268     '\'' sh
20269   '
20270 fi
20271 as_executable_p=$as_test_x
20272
20273 # Sed expression to map a string onto a valid CPP name.
20274 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20275
20276 # Sed expression to map a string onto a valid variable name.
20277 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20278
20279
20280 exec 6>&1
20281
20282 # Save the log message, to keep $[0] and so on meaningful, and to
20283 # report actual input values of CONFIG_FILES etc. instead of their
20284 # values after options handling.
20285 ac_log="
20286 This file was extended by $as_me, which was
20287 generated by GNU Autoconf 2.61.  Invocation command line was
20288
20289   CONFIG_FILES    = $CONFIG_FILES
20290   CONFIG_HEADERS  = $CONFIG_HEADERS
20291   CONFIG_LINKS    = $CONFIG_LINKS
20292   CONFIG_COMMANDS = $CONFIG_COMMANDS
20293   $ $0 $@
20294
20295 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20296 "
20297
20298 _ACEOF
20299
20300 cat >>$CONFIG_STATUS <<_ACEOF
20301 # Files that config.status was made for.
20302 config_files="$ac_config_files"
20303 config_headers="$ac_config_headers"
20304 config_commands="$ac_config_commands"
20305
20306 _ACEOF
20307
20308 cat >>$CONFIG_STATUS <<\_ACEOF
20309 ac_cs_usage="\
20310 \`$as_me' instantiates files from templates according to the
20311 current configuration.
20312
20313 Usage: $0 [OPTIONS] [FILE]...
20314
20315   -h, --help       print this help, then exit
20316   -V, --version    print version number and configuration settings, then exit
20317   -q, --quiet      do not print progress messages
20318   -d, --debug      don't remove temporary files
20319       --recheck    update $as_me by reconfiguring in the same conditions
20320   --file=FILE[:TEMPLATE]
20321                    instantiate the configuration file FILE
20322   --header=FILE[:TEMPLATE]
20323                    instantiate the configuration header FILE
20324
20325 Configuration files:
20326 $config_files
20327
20328 Configuration headers:
20329 $config_headers
20330
20331 Configuration commands:
20332 $config_commands
20333
20334 Report bugs to <bug-autoconf@gnu.org>."
20335
20336 _ACEOF
20337 cat >>$CONFIG_STATUS <<_ACEOF
20338 ac_cs_version="\\
20339 config.status
20340 configured by $0, generated by GNU Autoconf 2.61,
20341   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20342
20343 Copyright (C) 2006 Free Software Foundation, Inc.
20344 This config.status script is free software; the Free Software Foundation
20345 gives unlimited permission to copy, distribute and modify it."
20346
20347 ac_pwd='$ac_pwd'
20348 srcdir='$srcdir'
20349 INSTALL='$INSTALL'
20350 _ACEOF
20351
20352 cat >>$CONFIG_STATUS <<\_ACEOF
20353 # If no file are specified by the user, then we need to provide default
20354 # value.  By we need to know if files were specified by the user.
20355 ac_need_defaults=:
20356 while test $# != 0
20357 do
20358   case $1 in
20359   --*=*)
20360     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20361     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20362     ac_shift=:
20363     ;;
20364   *)
20365     ac_option=$1
20366     ac_optarg=$2
20367     ac_shift=shift
20368     ;;
20369   esac
20370
20371   case $ac_option in
20372   # Handling of the options.
20373   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20374     ac_cs_recheck=: ;;
20375   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20376     echo "$ac_cs_version"; exit ;;
20377   --debug | --debu | --deb | --de | --d | -d )
20378     debug=: ;;
20379   --file | --fil | --fi | --f )
20380     $ac_shift
20381     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20382     ac_need_defaults=false;;
20383   --header | --heade | --head | --hea )
20384     $ac_shift
20385     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20386     ac_need_defaults=false;;
20387   --he | --h)
20388     # Conflict between --help and --header
20389     { echo "$as_me: error: ambiguous option: $1
20390 Try \`$0 --help' for more information." >&2
20391    { (exit 1); exit 1; }; };;
20392   --help | --hel | -h )
20393     echo "$ac_cs_usage"; exit ;;
20394   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20395   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20396     ac_cs_silent=: ;;
20397
20398   # This is an error.
20399   -*) { echo "$as_me: error: unrecognized option: $1
20400 Try \`$0 --help' for more information." >&2
20401    { (exit 1); exit 1; }; } ;;
20402
20403   *) ac_config_targets="$ac_config_targets $1"
20404      ac_need_defaults=false ;;
20405
20406   esac
20407   shift
20408 done
20409
20410 ac_configure_extra_args=
20411
20412 if $ac_cs_silent; then
20413   exec 6>/dev/null
20414   ac_configure_extra_args="$ac_configure_extra_args --silent"
20415 fi
20416
20417 _ACEOF
20418 cat >>$CONFIG_STATUS <<_ACEOF
20419 if \$ac_cs_recheck; then
20420   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20421   CONFIG_SHELL=$SHELL
20422   export CONFIG_SHELL
20423   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20424 fi
20425
20426 _ACEOF
20427 cat >>$CONFIG_STATUS <<\_ACEOF
20428 exec 5>>config.log
20429 {
20430   echo
20431   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20432 ## Running $as_me. ##
20433 _ASBOX
20434   echo "$ac_log"
20435 } >&5
20436
20437 _ACEOF
20438 cat >>$CONFIG_STATUS <<_ACEOF
20439 #
20440 # INIT-COMMANDS
20441 #
20442 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20443
20444 _ACEOF
20445
20446 cat >>$CONFIG_STATUS <<\_ACEOF
20447
20448 # Handling of arguments.
20449 for ac_config_target in $ac_config_targets
20450 do
20451   case $ac_config_target in
20452     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20453     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20454     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20455     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20456     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20457     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20458
20459   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20460 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20461    { (exit 1); exit 1; }; };;
20462   esac
20463 done
20464
20465
20466 # If the user did not use the arguments to specify the items to instantiate,
20467 # then the envvar interface is used.  Set only those that are not.
20468 # We use the long form for the default assignment because of an extremely
20469 # bizarre bug on SunOS 4.1.3.
20470 if $ac_need_defaults; then
20471   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20472   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20473   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20474 fi
20475
20476 # Have a temporary directory for convenience.  Make it in the build tree
20477 # simply because there is no reason against having it here, and in addition,
20478 # creating and moving files from /tmp can sometimes cause problems.
20479 # Hook for its removal unless debugging.
20480 # Note that there is a small window in which the directory will not be cleaned:
20481 # after its creation but before its name has been assigned to `$tmp'.
20482 $debug ||
20483 {
20484   tmp=
20485   trap 'exit_status=$?
20486   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20487 ' 0
20488   trap '{ (exit 1); exit 1; }' 1 2 13 15
20489 }
20490 # Create a (secure) tmp directory for tmp files.
20491
20492 {
20493   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20494   test -n "$tmp" && test -d "$tmp"
20495 }  ||
20496 {
20497   tmp=./conf$$-$RANDOM
20498   (umask 077 && mkdir "$tmp")
20499 } ||
20500 {
20501    echo "$me: cannot create a temporary directory in ." >&2
20502    { (exit 1); exit 1; }
20503 }
20504
20505 #
20506 # Set up the sed scripts for CONFIG_FILES section.
20507 #
20508
20509 # No need to generate the scripts if there are no CONFIG_FILES.
20510 # This happens for instance when ./config.status config.h
20511 if test -n "$CONFIG_FILES"; then
20512
20513 _ACEOF
20514
20515
20516
20517 ac_delim='%!_!# '
20518 for ac_last_try in false false false false false :; do
20519   cat >conf$$subs.sed <<_ACEOF
20520 SHELL!$SHELL$ac_delim
20521 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20522 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20523 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20524 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20525 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20526 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20527 exec_prefix!$exec_prefix$ac_delim
20528 prefix!$prefix$ac_delim
20529 program_transform_name!$program_transform_name$ac_delim
20530 bindir!$bindir$ac_delim
20531 sbindir!$sbindir$ac_delim
20532 libexecdir!$libexecdir$ac_delim
20533 datarootdir!$datarootdir$ac_delim
20534 datadir!$datadir$ac_delim
20535 sysconfdir!$sysconfdir$ac_delim
20536 sharedstatedir!$sharedstatedir$ac_delim
20537 localstatedir!$localstatedir$ac_delim
20538 includedir!$includedir$ac_delim
20539 oldincludedir!$oldincludedir$ac_delim
20540 docdir!$docdir$ac_delim
20541 infodir!$infodir$ac_delim
20542 htmldir!$htmldir$ac_delim
20543 dvidir!$dvidir$ac_delim
20544 pdfdir!$pdfdir$ac_delim
20545 psdir!$psdir$ac_delim
20546 libdir!$libdir$ac_delim
20547 localedir!$localedir$ac_delim
20548 mandir!$mandir$ac_delim
20549 DEFS!$DEFS$ac_delim
20550 ECHO_C!$ECHO_C$ac_delim
20551 ECHO_N!$ECHO_N$ac_delim
20552 ECHO_T!$ECHO_T$ac_delim
20553 LIBS!$LIBS$ac_delim
20554 build_alias!$build_alias$ac_delim
20555 host_alias!$host_alias$ac_delim
20556 target_alias!$target_alias$ac_delim
20557 build!$build$ac_delim
20558 build_cpu!$build_cpu$ac_delim
20559 build_vendor!$build_vendor$ac_delim
20560 build_os!$build_os$ac_delim
20561 host!$host$ac_delim
20562 host_cpu!$host_cpu$ac_delim
20563 host_vendor!$host_vendor$ac_delim
20564 host_os!$host_os$ac_delim
20565 target!$target$ac_delim
20566 target_cpu!$target_cpu$ac_delim
20567 target_vendor!$target_vendor$ac_delim
20568 target_os!$target_os$ac_delim
20569 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20570 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20571 INSTALL_DATA!$INSTALL_DATA$ac_delim
20572 CYGPATH_W!$CYGPATH_W$ac_delim
20573 PACKAGE!$PACKAGE$ac_delim
20574 VERSION!$VERSION$ac_delim
20575 ACLOCAL!$ACLOCAL$ac_delim
20576 AUTOCONF!$AUTOCONF$ac_delim
20577 AUTOMAKE!$AUTOMAKE$ac_delim
20578 AUTOHEADER!$AUTOHEADER$ac_delim
20579 MAKEINFO!$MAKEINFO$ac_delim
20580 install_sh!$install_sh$ac_delim
20581 STRIP!$STRIP$ac_delim
20582 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20583 mkdir_p!$mkdir_p$ac_delim
20584 AWK!$AWK$ac_delim
20585 SET_MAKE!$SET_MAKE$ac_delim
20586 am__leading_dot!$am__leading_dot$ac_delim
20587 AMTAR!$AMTAR$ac_delim
20588 am__tar!$am__tar$ac_delim
20589 am__untar!$am__untar$ac_delim
20590 CXX!$CXX$ac_delim
20591 CXXFLAGS!$CXXFLAGS$ac_delim
20592 LDFLAGS!$LDFLAGS$ac_delim
20593 CPPFLAGS!$CPPFLAGS$ac_delim
20594 ac_ct_CXX!$ac_ct_CXX$ac_delim
20595 EXEEXT!$EXEEXT$ac_delim
20596 OBJEXT!$OBJEXT$ac_delim
20597 DEPDIR!$DEPDIR$ac_delim
20598 am__include!$am__include$ac_delim
20599 am__quote!$am__quote$ac_delim
20600 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20601 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20602 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20603 CXXDEPMODE!$CXXDEPMODE$ac_delim
20604 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20605 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20606 CC!$CC$ac_delim
20607 CFLAGS!$CFLAGS$ac_delim
20608 ac_ct_CC!$ac_ct_CC$ac_delim
20609 CCDEPMODE!$CCDEPMODE$ac_delim
20610 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20611 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20612 GREP!$GREP$ac_delim
20613 EGREP!$EGREP$ac_delim
20614 LN_S!$LN_S$ac_delim
20615 ECHO!$ECHO$ac_delim
20616 AR!$AR$ac_delim
20617 _ACEOF
20618
20619   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20620     break
20621   elif $ac_last_try; then
20622     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20623 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20624    { (exit 1); exit 1; }; }
20625   else
20626     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20627   fi
20628 done
20629
20630 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20631 if test -n "$ac_eof"; then
20632   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20633   ac_eof=`expr $ac_eof + 1`
20634 fi
20635
20636 cat >>$CONFIG_STATUS <<_ACEOF
20637 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20638 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20639 _ACEOF
20640 sed '
20641 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20642 s/^/s,@/; s/!/@,|#_!!_#|/
20643 :n
20644 t n
20645 s/'"$ac_delim"'$/,g/; t
20646 s/$/\\/; p
20647 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20648 ' >>$CONFIG_STATUS <conf$$subs.sed
20649 rm -f conf$$subs.sed
20650 cat >>$CONFIG_STATUS <<_ACEOF
20651 CEOF$ac_eof
20652 _ACEOF
20653
20654
20655 ac_delim='%!_!# '
20656 for ac_last_try in false false false false false :; do
20657   cat >conf$$subs.sed <<_ACEOF
20658 RANLIB!$RANLIB$ac_delim
20659 CPP!$CPP$ac_delim
20660 CXXCPP!$CXXCPP$ac_delim
20661 F77!$F77$ac_delim
20662 FFLAGS!$FFLAGS$ac_delim
20663 ac_ct_F77!$ac_ct_F77$ac_delim
20664 LIBTOOL!$LIBTOOL$ac_delim
20665 CURL_LDFLAGS!$CURL_LDFLAGS$ac_delim
20666 CURL_CFLAGS!$CURL_CFLAGS$ac_delim
20667 CPPUNIT_CXXFLAGS!$CPPUNIT_CXXFLAGS$ac_delim
20668 CPPUNIT_LDFLAGS!$CPPUNIT_LDFLAGS$ac_delim
20669 CPPUNIT_TESTS!$CPPUNIT_TESTS$ac_delim
20670 LIBOBJS!$LIBOBJS$ac_delim
20671 LTLIBOBJS!$LTLIBOBJS$ac_delim
20672 _ACEOF
20673
20674   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
20675     break
20676   elif $ac_last_try; then
20677     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20678 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20679    { (exit 1); exit 1; }; }
20680   else
20681     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20682   fi
20683 done
20684
20685 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20686 if test -n "$ac_eof"; then
20687   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20688   ac_eof=`expr $ac_eof + 1`
20689 fi
20690
20691 cat >>$CONFIG_STATUS <<_ACEOF
20692 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20693 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20694 _ACEOF
20695 sed '
20696 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20697 s/^/s,@/; s/!/@,|#_!!_#|/
20698 :n
20699 t n
20700 s/'"$ac_delim"'$/,g/; t
20701 s/$/\\/; p
20702 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20703 ' >>$CONFIG_STATUS <conf$$subs.sed
20704 rm -f conf$$subs.sed
20705 cat >>$CONFIG_STATUS <<_ACEOF
20706 :end
20707 s/|#_!!_#|//g
20708 CEOF$ac_eof
20709 _ACEOF
20710
20711
20712 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20713 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20714 # trailing colons and then remove the whole line if VPATH becomes empty
20715 # (actually we leave an empty line to preserve line numbers).
20716 if test "x$srcdir" = x.; then
20717   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20718 s/:*\$(srcdir):*/:/
20719 s/:*\${srcdir}:*/:/
20720 s/:*@srcdir@:*/:/
20721 s/^\([^=]*=[     ]*\):*/\1/
20722 s/:*$//
20723 s/^[^=]*=[       ]*$//
20724 }'
20725 fi
20726
20727 cat >>$CONFIG_STATUS <<\_ACEOF
20728 fi # test -n "$CONFIG_FILES"
20729
20730
20731 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
20732 do
20733   case $ac_tag in
20734   :[FHLC]) ac_mode=$ac_tag; continue;;
20735   esac
20736   case $ac_mode$ac_tag in
20737   :[FHL]*:*);;
20738   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20739 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20740    { (exit 1); exit 1; }; };;
20741   :[FH]-) ac_tag=-:-;;
20742   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20743   esac
20744   ac_save_IFS=$IFS
20745   IFS=:
20746   set x $ac_tag
20747   IFS=$ac_save_IFS
20748   shift
20749   ac_file=$1
20750   shift
20751
20752   case $ac_mode in
20753   :L) ac_source=$1;;
20754   :[FH])
20755     ac_file_inputs=
20756     for ac_f
20757     do
20758       case $ac_f in
20759       -) ac_f="$tmp/stdin";;
20760       *) # Look for the file first in the build tree, then in the source tree
20761          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20762          # because $ac_f cannot contain `:'.
20763          test -f "$ac_f" ||
20764            case $ac_f in
20765            [\\/$]*) false;;
20766            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20767            esac ||
20768            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20769 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20770    { (exit 1); exit 1; }; };;
20771       esac
20772       ac_file_inputs="$ac_file_inputs $ac_f"
20773     done
20774
20775     # Let's still pretend it is `configure' which instantiates (i.e., don't
20776     # use $as_me), people would be surprised to read:
20777     #    /* config.h.  Generated by config.status.  */
20778     configure_input="Generated from "`IFS=:
20779           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20780     if test x"$ac_file" != x-; then
20781       configure_input="$ac_file.  $configure_input"
20782       { echo "$as_me:$LINENO: creating $ac_file" >&5
20783 echo "$as_me: creating $ac_file" >&6;}
20784     fi
20785
20786     case $ac_tag in
20787     *:-:* | *:-) cat >"$tmp/stdin";;
20788     esac
20789     ;;
20790   esac
20791
20792   ac_dir=`$as_dirname -- "$ac_file" ||
20793 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20794          X"$ac_file" : 'X\(//\)[^/]' \| \
20795          X"$ac_file" : 'X\(//\)$' \| \
20796          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20797 echo X"$ac_file" |
20798     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20799             s//\1/
20800             q
20801           }
20802           /^X\(\/\/\)[^/].*/{
20803             s//\1/
20804             q
20805           }
20806           /^X\(\/\/\)$/{
20807             s//\1/
20808             q
20809           }
20810           /^X\(\/\).*/{
20811             s//\1/
20812             q
20813           }
20814           s/.*/./; q'`
20815   { as_dir="$ac_dir"
20816   case $as_dir in #(
20817   -*) as_dir=./$as_dir;;
20818   esac
20819   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20820     as_dirs=
20821     while :; do
20822       case $as_dir in #(
20823       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20824       *) as_qdir=$as_dir;;
20825       esac
20826       as_dirs="'$as_qdir' $as_dirs"
20827       as_dir=`$as_dirname -- "$as_dir" ||
20828 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20829          X"$as_dir" : 'X\(//\)[^/]' \| \
20830          X"$as_dir" : 'X\(//\)$' \| \
20831          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20832 echo X"$as_dir" |
20833     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20834             s//\1/
20835             q
20836           }
20837           /^X\(\/\/\)[^/].*/{
20838             s//\1/
20839             q
20840           }
20841           /^X\(\/\/\)$/{
20842             s//\1/
20843             q
20844           }
20845           /^X\(\/\).*/{
20846             s//\1/
20847             q
20848           }
20849           s/.*/./; q'`
20850       test -d "$as_dir" && break
20851     done
20852     test -z "$as_dirs" || eval "mkdir $as_dirs"
20853   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20854 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20855    { (exit 1); exit 1; }; }; }
20856   ac_builddir=.
20857
20858 case "$ac_dir" in
20859 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20860 *)
20861   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20862   # A ".." for each directory in $ac_dir_suffix.
20863   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20864   case $ac_top_builddir_sub in
20865   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20866   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20867   esac ;;
20868 esac
20869 ac_abs_top_builddir=$ac_pwd
20870 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20871 # for backward compatibility:
20872 ac_top_builddir=$ac_top_build_prefix
20873
20874 case $srcdir in
20875   .)  # We are building in place.
20876     ac_srcdir=.
20877     ac_top_srcdir=$ac_top_builddir_sub
20878     ac_abs_top_srcdir=$ac_pwd ;;
20879   [\\/]* | ?:[\\/]* )  # Absolute name.
20880     ac_srcdir=$srcdir$ac_dir_suffix;
20881     ac_top_srcdir=$srcdir
20882     ac_abs_top_srcdir=$srcdir ;;
20883   *) # Relative name.
20884     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20885     ac_top_srcdir=$ac_top_build_prefix$srcdir
20886     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20887 esac
20888 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20889
20890
20891   case $ac_mode in
20892   :F)
20893   #
20894   # CONFIG_FILE
20895   #
20896
20897   case $INSTALL in
20898   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20899   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20900   esac
20901 _ACEOF
20902
20903 cat >>$CONFIG_STATUS <<\_ACEOF
20904 # If the template does not know about datarootdir, expand it.
20905 # FIXME: This hack should be removed a few years after 2.60.
20906 ac_datarootdir_hack=; ac_datarootdir_seen=
20907
20908 case `sed -n '/datarootdir/ {
20909   p
20910   q
20911 }
20912 /@datadir@/p
20913 /@docdir@/p
20914 /@infodir@/p
20915 /@localedir@/p
20916 /@mandir@/p
20917 ' $ac_file_inputs` in
20918 *datarootdir*) ac_datarootdir_seen=yes;;
20919 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20920   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20921 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20922 _ACEOF
20923 cat >>$CONFIG_STATUS <<_ACEOF
20924   ac_datarootdir_hack='
20925   s&@datadir@&$datadir&g
20926   s&@docdir@&$docdir&g
20927   s&@infodir@&$infodir&g
20928   s&@localedir@&$localedir&g
20929   s&@mandir@&$mandir&g
20930     s&\\\${datarootdir}&$datarootdir&g' ;;
20931 esac
20932 _ACEOF
20933
20934 # Neutralize VPATH when `$srcdir' = `.'.
20935 # Shell code in configure.ac might set extrasub.
20936 # FIXME: do we really want to maintain this feature?
20937 cat >>$CONFIG_STATUS <<_ACEOF
20938   sed "$ac_vpsub
20939 $extrasub
20940 _ACEOF
20941 cat >>$CONFIG_STATUS <<\_ACEOF
20942 :t
20943 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20944 s&@configure_input@&$configure_input&;t t
20945 s&@top_builddir@&$ac_top_builddir_sub&;t t
20946 s&@srcdir@&$ac_srcdir&;t t
20947 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20948 s&@top_srcdir@&$ac_top_srcdir&;t t
20949 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20950 s&@builddir@&$ac_builddir&;t t
20951 s&@abs_builddir@&$ac_abs_builddir&;t t
20952 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20953 s&@INSTALL@&$ac_INSTALL&;t t
20954 $ac_datarootdir_hack
20955 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20956
20957 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20958   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20959   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20960   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20961 which seems to be undefined.  Please make sure it is defined." >&5
20962 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20963 which seems to be undefined.  Please make sure it is defined." >&2;}
20964
20965   rm -f "$tmp/stdin"
20966   case $ac_file in
20967   -) cat "$tmp/out"; rm -f "$tmp/out";;
20968   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20969   esac
20970  ;;
20971   :H)
20972   #
20973   # CONFIG_HEADER
20974   #
20975 _ACEOF
20976
20977 # Transform confdefs.h into a sed script `conftest.defines', that
20978 # substitutes the proper values into config.h.in to produce config.h.
20979 rm -f conftest.defines conftest.tail
20980 # First, append a space to every undef/define line, to ease matching.
20981 echo 's/$/ /' >conftest.defines
20982 # Then, protect against being on the right side of a sed subst, or in
20983 # an unquoted here document, in config.status.  If some macros were
20984 # called several times there might be several #defines for the same
20985 # symbol, which is useless.  But do not sort them, since the last
20986 # AC_DEFINE must be honored.
20987 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20988 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20989 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20990 # PARAMS is the parameter list in the macro definition--in most cases, it's
20991 # just an empty string.
20992 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
20993 ac_dB='\\)[      (].*,\\1define\\2'
20994 ac_dC=' '
20995 ac_dD=' ,'
20996
20997 uniq confdefs.h |
20998   sed -n '
20999         t rset
21000         :rset
21001         s/^[     ]*#[    ]*define[       ][      ]*//
21002         t ok
21003         d
21004         :ok
21005         s/[\\&,]/\\&/g
21006         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21007         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21008   ' >>conftest.defines
21009
21010 # Remove the space that was appended to ease matching.
21011 # Then replace #undef with comments.  This is necessary, for
21012 # example, in the case of _POSIX_SOURCE, which is predefined and required
21013 # on some systems where configure will not decide to define it.
21014 # (The regexp can be short, since the line contains either #define or #undef.)
21015 echo 's/ $//
21016 s,^[     #]*u.*,/* & */,' >>conftest.defines
21017
21018 # Break up conftest.defines:
21019 ac_max_sed_lines=50
21020
21021 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21022 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21023 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21024 # et cetera.
21025 ac_in='$ac_file_inputs'
21026 ac_out='"$tmp/out1"'
21027 ac_nxt='"$tmp/out2"'
21028
21029 while :
21030 do
21031   # Write a here document:
21032     cat >>$CONFIG_STATUS <<_ACEOF
21033     # First, check the format of the line:
21034     cat >"\$tmp/defines.sed" <<\\CEOF
21035 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
21036 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
21037 b
21038 :def
21039 _ACEOF
21040   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21041   echo 'CEOF
21042     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21043   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21044   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21045   grep . conftest.tail >/dev/null || break
21046   rm -f conftest.defines
21047   mv conftest.tail conftest.defines
21048 done
21049 rm -f conftest.defines conftest.tail
21050
21051 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21052 cat >>$CONFIG_STATUS <<\_ACEOF
21053   if test x"$ac_file" != x-; then
21054     echo "/* $configure_input  */" >"$tmp/config.h"
21055     cat "$ac_result" >>"$tmp/config.h"
21056     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21057       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21058 echo "$as_me: $ac_file is unchanged" >&6;}
21059     else
21060       rm -f $ac_file
21061       mv "$tmp/config.h" $ac_file
21062     fi
21063   else
21064     echo "/* $configure_input  */"
21065     cat "$ac_result"
21066   fi
21067   rm -f "$tmp/out12"
21068 # Compute $ac_file's index in $config_headers.
21069 _am_stamp_count=1
21070 for _am_header in $config_headers :; do
21071   case $_am_header in
21072     $ac_file | $ac_file:* )
21073       break ;;
21074     * )
21075       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21076   esac
21077 done
21078 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21079 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21080          X$ac_file : 'X\(//\)[^/]' \| \
21081          X$ac_file : 'X\(//\)$' \| \
21082          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21083 echo X$ac_file |
21084     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21085             s//\1/
21086             q
21087           }
21088           /^X\(\/\/\)[^/].*/{
21089             s//\1/
21090             q
21091           }
21092           /^X\(\/\/\)$/{
21093             s//\1/
21094             q
21095           }
21096           /^X\(\/\).*/{
21097             s//\1/
21098             q
21099           }
21100           s/.*/./; q'`/stamp-h$_am_stamp_count
21101  ;;
21102
21103   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21104 echo "$as_me: executing $ac_file commands" >&6;}
21105  ;;
21106   esac
21107
21108
21109   case $ac_file$ac_mode in
21110     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21111   # Strip MF so we end up with the name of the file.
21112   mf=`echo "$mf" | sed -e 's/:.*$//'`
21113   # Check whether this is an Automake generated Makefile or not.
21114   # We used to match only the files named `Makefile.in', but
21115   # some people rename them; so instead we look at the file content.
21116   # Grep'ing the first line is not enough: some people post-process
21117   # each Makefile.in and add a new line on top of each file to say so.
21118   # So let's grep whole file.
21119   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21120     dirpart=`$as_dirname -- "$mf" ||
21121 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21122          X"$mf" : 'X\(//\)[^/]' \| \
21123          X"$mf" : 'X\(//\)$' \| \
21124          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21125 echo X"$mf" |
21126     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21127             s//\1/
21128             q
21129           }
21130           /^X\(\/\/\)[^/].*/{
21131             s//\1/
21132             q
21133           }
21134           /^X\(\/\/\)$/{
21135             s//\1/
21136             q
21137           }
21138           /^X\(\/\).*/{
21139             s//\1/
21140             q
21141           }
21142           s/.*/./; q'`
21143   else
21144     continue
21145   fi
21146   # Extract the definition of DEPDIR, am__include, and am__quote
21147   # from the Makefile without running `make'.
21148   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21149   test -z "$DEPDIR" && continue
21150   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21151   test -z "am__include" && continue
21152   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21153   # When using ansi2knr, U may be empty or an underscore; expand it
21154   U=`sed -n 's/^U = //p' < "$mf"`
21155   # Find all dependency output files, they are included files with
21156   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21157   # simplest approach to changing $(DEPDIR) to its actual value in the
21158   # expansion.
21159   for file in `sed -n "
21160     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21161        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21162     # Make sure the directory exists.
21163     test -f "$dirpart/$file" && continue
21164     fdir=`$as_dirname -- "$file" ||
21165 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21166          X"$file" : 'X\(//\)[^/]' \| \
21167          X"$file" : 'X\(//\)$' \| \
21168          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21169 echo X"$file" |
21170     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21171             s//\1/
21172             q
21173           }
21174           /^X\(\/\/\)[^/].*/{
21175             s//\1/
21176             q
21177           }
21178           /^X\(\/\/\)$/{
21179             s//\1/
21180             q
21181           }
21182           /^X\(\/\).*/{
21183             s//\1/
21184             q
21185           }
21186           s/.*/./; q'`
21187     { as_dir=$dirpart/$fdir
21188   case $as_dir in #(
21189   -*) as_dir=./$as_dir;;
21190   esac
21191   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21192     as_dirs=
21193     while :; do
21194       case $as_dir in #(
21195       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21196       *) as_qdir=$as_dir;;
21197       esac
21198       as_dirs="'$as_qdir' $as_dirs"
21199       as_dir=`$as_dirname -- "$as_dir" ||
21200 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21201          X"$as_dir" : 'X\(//\)[^/]' \| \
21202          X"$as_dir" : 'X\(//\)$' \| \
21203          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21204 echo X"$as_dir" |
21205     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21206             s//\1/
21207             q
21208           }
21209           /^X\(\/\/\)[^/].*/{
21210             s//\1/
21211             q
21212           }
21213           /^X\(\/\/\)$/{
21214             s//\1/
21215             q
21216           }
21217           /^X\(\/\).*/{
21218             s//\1/
21219             q
21220           }
21221           s/.*/./; q'`
21222       test -d "$as_dir" && break
21223     done
21224     test -z "$as_dirs" || eval "mkdir $as_dirs"
21225   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21226 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21227    { (exit 1); exit 1; }; }; }
21228     # echo "creating $dirpart/$file"
21229     echo '# dummy' > "$dirpart/$file"
21230   done
21231 done
21232  ;;
21233
21234   esac
21235 done # for ac_tag
21236
21237
21238 { (exit 0); exit 0; }
21239 _ACEOF
21240 chmod +x $CONFIG_STATUS
21241 ac_clean_files=$ac_clean_files_save
21242
21243
21244 # configure is writing to config.log, and then calls config.status.
21245 # config.status does its own redirection, appending to config.log.
21246 # Unfortunately, on DOS this fails, as config.log is still kept open
21247 # by configure, so config.status won't be able to write to it; its
21248 # output is simply discarded.  So we exec the FD to /dev/null,
21249 # effectively closing config.log, so it can be properly (re)opened and
21250 # appended to by config.status.  When coming back to configure, we
21251 # need to make the FD available again.
21252 if test "$no_create" != yes; then
21253   ac_cs_success=:
21254   ac_config_status_args=
21255   test "$silent" = yes &&
21256     ac_config_status_args="$ac_config_status_args --quiet"
21257   exec 5>/dev/null
21258   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21259   exec 5>>config.log
21260   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21261   # would make configure fail if this is the last instruction.
21262   $ac_cs_success || { (exit 1); exit 1; }
21263 fi
21264